|
|
|
@ -8,10 +8,7 @@ import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.constant.ConstantStatus;
|
|
|
|
|
import com.glxp.api.entity.basic.FilterSysEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiProductEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiRelevanceEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.*;
|
|
|
|
|
import com.glxp.api.entity.system.SystemParamConfigEntity;
|
|
|
|
|
import com.glxp.api.entity.thrsys.ThrProductsEntity;
|
|
|
|
|
import com.glxp.api.entity.thrsys.ThrSystemEntity;
|
|
|
|
@ -25,10 +22,7 @@ import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.res.basic.BasicProductThirdSysResponse;
|
|
|
|
|
import com.glxp.api.res.basic.UdiRelevanceResponse;
|
|
|
|
|
import com.glxp.api.service.auth.CustomerService;
|
|
|
|
|
import com.glxp.api.service.basic.BasicBackUpdateProductService;
|
|
|
|
|
import com.glxp.api.service.basic.BasicUpdateProductService;
|
|
|
|
|
import com.glxp.api.service.basic.UdiProductService;
|
|
|
|
|
import com.glxp.api.service.basic.UdiRelevanceService;
|
|
|
|
|
import com.glxp.api.service.basic.*;
|
|
|
|
|
import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
|
import com.glxp.api.service.thrsys.ThrDataService;
|
|
|
|
|
import com.glxp.api.service.thrsys.ThrSystemService;
|
|
|
|
@ -64,6 +58,9 @@ public class UdiRelevanceController {
|
|
|
|
|
private ThrSystemService thrSystemService;
|
|
|
|
|
@Resource
|
|
|
|
|
ThrDataService thrDataService;
|
|
|
|
|
@Resource
|
|
|
|
|
UdiRlSupService udiRlSupService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/udi/udirel/download")
|
|
|
|
@ -93,7 +90,7 @@ public class UdiRelevanceController {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|
List<UdiRelevanceResponse> udiRelevanceResponses = null;
|
|
|
|
|
udiRelevanceResponses = udiRelevanceService.selectAllByNameCode(filterUdiRelRequest.getNameCode(), filterUdiRelRequest.getUnitFk());
|
|
|
|
|
udiRelevanceResponses = udiRelevanceService.filterUdiJoinSup(filterUdiRelRequest);
|
|
|
|
|
PageInfo<UdiRelevanceResponse> pageInfo;
|
|
|
|
|
pageInfo = new PageInfo<>(udiRelevanceResponses);
|
|
|
|
|
PageSimpleResponse<UdiRelevanceResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
@ -156,19 +153,17 @@ public class UdiRelevanceController {
|
|
|
|
|
}
|
|
|
|
|
udiRelevanceResponses = udiRelevanceService.filterUdiGp(filterUdiRelRequest);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//todo 供应商器械信息还未完成
|
|
|
|
|
// if (udiRelevanceResponses != null && udiRelevanceResponses.size() > 0) {
|
|
|
|
|
// for (UdiRelevanceResponse udiRelevanceResponse : udiRelevanceResponses) {
|
|
|
|
|
// CompanyProductRelevanceEntity companyProductRelevanceEntity =
|
|
|
|
|
// companyProductRelevanceService.findCompanyProductRelevanceByUdiRlIdFk(udiRelevanceResponse.getId() + "", filterUdiInfoRequest.getCustomerId());
|
|
|
|
|
// if (companyProductRelevanceEntity != null) {
|
|
|
|
|
// udiRelevanceResponse.setIsSelect(true);
|
|
|
|
|
// } else {
|
|
|
|
|
// udiRelevanceResponse.setIsSelect(false);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
if (udiRelevanceResponses != null && udiRelevanceResponses.size() > 0) {
|
|
|
|
|
for (UdiRelevanceResponse udiRelevanceResponse : udiRelevanceResponses) {
|
|
|
|
|
UdiRlSupEntity companyProductRelevanceEntity =
|
|
|
|
|
udiRlSupService.findCompanyProductRelevanceByUdiRlIdFk(udiRelevanceResponse.getId() + "", filterUdiRelRequest.getCustomerId());
|
|
|
|
|
if (companyProductRelevanceEntity != null) {
|
|
|
|
|
udiRelevanceResponse.setIsSelect(true);
|
|
|
|
|
} else {
|
|
|
|
|
udiRelevanceResponse.setIsSelect(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PageInfo<UdiRelevanceResponse> pageInfo;
|
|
|
|
|
pageInfo = new PageInfo<>(udiRelevanceResponses);
|
|
|
|
|