代码备份

master
薛宇 2 years ago
parent 2f65e8b750
commit f8f42565e1

@ -26,6 +26,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.BasicUdiProductService;
import com.glxp.api.service.basic.ProductInfoService;
import com.glxp.api.service.basic.UdiRelevanceService;
@ -60,6 +61,8 @@ public class UdiRelevanceController extends BaseController {
ThrDataService thrDataService;
@Resource
ProductInfoService productInfoService;
@Resource
BasicUdiProductService basicUdiProductService;
//基础信息-耗材字典-查询页面、业务单据-选入耗材字典-查询页面
@AuthRuleAnnotation("")
@ -215,16 +218,36 @@ public class UdiRelevanceController extends BaseController {
}
//资质证书选入产品列表 产品名称,生产企业过滤
// @AuthRuleAnnotation("")
// @GetMapping("/udi/cert/filterUdi")
// public BaseResponse filterCertUdi(FilterUdiRelRequest filterUdiRelRequest) {
// List<UdiRelevanceResponse> udiRelevanceResponses = udiRelevanceService.filterCertUdi(filterUdiRelRequest);
// PageInfo<UdiRelevanceResponse> pageInfo;
// pageInfo = new PageInfo<>(udiRelevanceResponses);
// PageSimpleResponse<UdiRelevanceResponse> pageSimpleResponse = new PageSimpleResponse<>();
// pageSimpleResponse.setTotal(pageInfo.getTotal());
// pageSimpleResponse.setList(udiRelevanceResponses);
// return ResultVOUtils.success(pageSimpleResponse);
// }
@AuthRuleAnnotation("")
@GetMapping("/udi/cert/filterUdi")
public BaseResponse filterCertUdi(FilterUdiRelRequest filterUdiRelRequest) {
List<UdiRelevanceResponse> udiRelevanceResponses = udiRelevanceService.filterCertUdi(filterUdiRelRequest);
PageInfo<UdiRelevanceResponse> pageInfo;
pageInfo = new PageInfo<>(udiRelevanceResponses);
PageSimpleResponse<UdiRelevanceResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(udiRelevanceResponses);
return ResultVOUtils.success(pageSimpleResponse);
// List<UdiRelevanceResponse> udiRelevanceResponses = udiRelevanceService.filterCertUdi(filterUdiRelRequest);
// PageInfo<UdiRelevanceResponse> pageInfo;
// pageInfo = new PageInfo<>(udiRelevanceResponses);
// PageSimpleResponse<UdiRelevanceResponse> pageSimpleResponse = new PageSimpleResponse<>();
// pageSimpleResponse.setTotal(pageInfo.getTotal());
// pageSimpleResponse.setList(udiRelevanceResponses);
// return ResultVOUtils.success(pageSimpleResponse);
List<BasicUdiProductEntity> udiDlDeviceResponse = basicUdiProductService.filterList(filterUdiRelRequest);
PageInfo<BasicUdiProductEntity> basicUdiRelResponsePageInfo = new PageInfo<>(udiDlDeviceResponse);
PageSimpleResponse<BasicUdiProductEntity> basicUdiRelResponsePageSimpleResponse = new PageSimpleResponse<>();
basicUdiRelResponsePageSimpleResponse.setTotal(basicUdiRelResponsePageInfo.getTotal());
basicUdiRelResponsePageSimpleResponse.setList(udiDlDeviceResponse);
return ResultVOUtils.success(basicUdiRelResponsePageSimpleResponse);
}

Loading…
Cancel
Save