|
|
|
@ -94,10 +94,10 @@ public class UdiRlSupController extends BaseController {
|
|
|
|
|
companyProductRelevanceRequest.setCustomerId(null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (ObjectUtil.isNotNull(companyProductRelevanceRequest.getUserFlag())){
|
|
|
|
|
if (ObjectUtil.isNotNull(companyProductRelevanceRequest.getUserFlag())) {
|
|
|
|
|
Integer userFlag = companyProductRelevanceRequest.getUserFlag();
|
|
|
|
|
//获取 供应商状态为 userFlag 的 customerIds列表
|
|
|
|
|
List<Long> customerIds = customerInfoService.selectCustomerIdListByUserFlag(userFlag);
|
|
|
|
|
List<Long> customerIds = customerInfoService.selectCustomerIdListByUserFlag(userFlag);
|
|
|
|
|
companyProductRelevanceRequest.setCustomerIds(customerIds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -124,10 +124,10 @@ public class UdiRlSupController extends BaseController {
|
|
|
|
|
companyProductRelevanceRequest.setDiType(1);
|
|
|
|
|
}
|
|
|
|
|
//包装采购类型校验
|
|
|
|
|
if (StrUtil.isNotEmpty(companyProductRelevanceRequest.getAction())){
|
|
|
|
|
if (StrUtil.isNotEmpty(companyProductRelevanceRequest.getAction())) {
|
|
|
|
|
BasicBussinessTypeEntity bussinessTypeEntity = basicBussinessTypeService.findByAction(companyProductRelevanceRequest.getAction());
|
|
|
|
|
//是否校验产品采购类型 :1:校验;2.无需校验
|
|
|
|
|
if(IntUtil.value(bussinessTypeEntity.getVailProductAttributes()) == 1){
|
|
|
|
|
if (IntUtil.value(bussinessTypeEntity.getVailProductAttributes()) == 1) {
|
|
|
|
|
companyProductRelevanceRequest.setPurType(IntUtil.value(bussinessTypeEntity.getActionType()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -304,7 +304,7 @@ public class UdiRlSupController extends BaseController {
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/sale/info/company/product/relevance/copyCustomerId")
|
|
|
|
|
public BaseResponse copyCustomerId(@RequestBody @Valid CopyCustomerIdRequest copyCustomerIdRequest,
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|