|  | @@ -90,7 +90,12 @@ public class SyCostLossReviewController extends JeecgController<SyOrderData, ISy
 | 
											
												
													
														|  |         if(syCostLossReview.getPlanNo()=="" || syCostLossReview.getPlanNo()==null){
 |  |         if(syCostLossReview.getPlanNo()=="" || syCostLossReview.getPlanNo()==null){
 | 
											
												
													
														|  |             if(syCostLossReview.getFstatus()!=null && syCostLossReview.getFstatus()!="" || oConvertUtils.isNotEmpty(syCostLossReview.getFfirstApproveDateB())){
 |  |             if(syCostLossReview.getFstatus()!=null && syCostLossReview.getFstatus()!="" || oConvertUtils.isNotEmpty(syCostLossReview.getFfirstApproveDateB())){
 | 
											
												
													
														|  |                 //查面损的数据
 |  |                 //查面损的数据
 | 
											
												
													
														|  | -               List<String> list= syCostLossReviewService.queryCodeByfstatus(syCostLossReview.getFstatus(),syCostLossReview.getFfirstApproveDateB(),syCostLossReview.getFfirstApproveDateE());
 |  | 
 | 
											
												
													
														|  | 
 |  | +               List<String> statusList = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +               String statusSplit[] = syCostLossReview.getFstatus().split(",");
 | 
											
												
													
														|  | 
 |  | +               for(String str:statusSplit){
 | 
											
												
													
														|  | 
 |  | +                   statusList.add(str);
 | 
											
												
													
														|  | 
 |  | +               }
 | 
											
												
													
														|  | 
 |  | +               List<String> list= syCostLossReviewService.queryCodeByfstatus(statusList,syCostLossReview.getFfirstApproveDateB(),syCostLossReview.getFfirstApproveDateE());
 | 
											
												
													
														|  |                 if(list.size()<1){
 |  |                 if(list.size()<1){
 | 
											
												
													
														|  |                     return Result.OK(nullList);
 |  |                     return Result.OK(nullList);
 | 
											
												
													
														|  |                 }
 |  |                 }
 | 
											
										
											
												
													
														|  | @@ -98,7 +103,12 @@ public class SyCostLossReviewController extends JeecgController<SyOrderData, ISy
 | 
											
												
													
														|  |             }
 |  |             }
 | 
											
												
													
														|  |             if(syCostLossReview.getCstatus()!=null && syCostLossReview.getCstatus()!=""){
 |  |             if(syCostLossReview.getCstatus()!=null && syCostLossReview.getCstatus()!=""){
 | 
											
												
													
														|  |                 //查成本的数据
 |  |                 //查成本的数据
 | 
											
												
													
														|  | -               List<String> list= syCostLossReviewService.queryCodeBycstatus(syCostLossReview.getCstatus());
 |  | 
 | 
											
												
													
														|  | 
 |  | +               List<String> statusList = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +               String statusSplit[] = syCostLossReview.getCstatus().split(",");
 | 
											
												
													
														|  | 
 |  | +               for(String str:statusSplit){
 | 
											
												
													
														|  | 
 |  | +                   statusList.add(str);
 | 
											
												
													
														|  | 
 |  | +               }
 | 
											
												
													
														|  | 
 |  | +               List<String> list= syCostLossReviewService.queryCodeBycstatus(statusList);
 | 
											
												
													
														|  |                 if(list.size()<1){
 |  |                 if(list.size()<1){
 | 
											
												
													
														|  |                     return Result.OK(nullList);
 |  |                     return Result.OK(nullList);
 | 
											
												
													
														|  |                 }
 |  |                 }
 | 
											
										
											
												
													
														|  | @@ -210,6 +220,8 @@ public class SyCostLossReviewController extends JeecgController<SyOrderData, ISy
 | 
											
												
													
														|  |                 sy.setPlanMan(planStatistics.get(0).getPlanMan());
 |  |                 sy.setPlanMan(planStatistics.get(0).getPlanMan());
 | 
											
												
													
														|  |                 sy.setRemarks(planStatistics.get(0).getRemarks());
 |  |                 sy.setRemarks(planStatistics.get(0).getRemarks());
 | 
											
												
													
														|  |                 sy.setId(planStatistics.get(0).getId());
 |  |                 sy.setId(planStatistics.get(0).getId());
 | 
											
												
													
														|  | 
 |  | +               //刷成衣结束日期
 | 
											
												
													
														|  | 
 |  | +               sy.setReadyEndDate(planStatistics.get(0).getReadyEndDate());
 | 
											
												
													
														|  |             }
 |  |             }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |         }
 |  |         }
 | 
											
										
											
												
													
														|  | @@ -228,7 +240,17 @@ public class SyCostLossReviewController extends JeecgController<SyOrderData, ISy
 | 
											
												
													
														|  |                                          @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
 |  |                                          @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
 | 
											
												
													
														|  |                                          HttpServletRequest req){
 |  |                                          HttpServletRequest req){
 | 
											
												
													
														|  |         Page<FabricLossReview> page = new Page<FabricLossReview>(pageNo, pageSize);
 |  |         Page<FabricLossReview> page = new Page<FabricLossReview>(pageNo, pageSize);
 | 
											
												
													
														|  | -       IPage<FabricLossReview> pageList = syCostLossReviewService.querySyFabricLossReport(sy,page);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        List<String> statusList = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +        String stuta = sy.getStatus();
 | 
											
												
													
														|  | 
 |  | +        if(oConvertUtils.isNotEmpty(stuta)){
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            String statusSplit[] = stuta.split(",");
 | 
											
												
													
														|  | 
 |  | +            for(String str:statusSplit){
 | 
											
												
													
														|  | 
 |  | +                statusList.add(str);
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +       IPage<FabricLossReview> pageList = syCostLossReviewService.querySyFabricLossReport(statusList,sy,page);
 | 
											
												
													
														|  |          for(FabricLossReview li:pageList.getRecords()){
 |  |          for(FabricLossReview li:pageList.getRecords()){
 | 
											
												
													
														|  |              //查询指派人
 |  |              //查询指派人
 | 
											
												
													
														|  |              String name = syCostLossReviewMapper.querySyApprovalAssignedBy(li.getCCode());
 |  |              String name = syCostLossReviewMapper.querySyApprovalAssignedBy(li.getCCode());
 | 
											
										
											
												
													
														|  | @@ -250,7 +272,17 @@ public class SyCostLossReviewController extends JeecgController<SyOrderData, ISy
 | 
											
												
													
														|  |                                           @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
 |  |                                           @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
 | 
											
												
													
														|  |                                           HttpServletRequest req){
 |  |                                           HttpServletRequest req){
 | 
											
												
													
														|  |          Page<CostAllocationReview> page = new Page<CostAllocationReview>(pageNo, pageSize);
 |  |          Page<CostAllocationReview> page = new Page<CostAllocationReview>(pageNo, pageSize);
 | 
											
												
													
														|  | -        IPage<CostAllocationReview> pageList = syCostLossReviewService.queryCostAllocation(sy,page);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        List<String> statusList = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +        String stuta = sy.getStatus();
 | 
											
												
													
														|  | 
 |  | +        if(oConvertUtils.isNotEmpty(stuta)){
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            String statusSplit[] = stuta.split(",");
 | 
											
												
													
														|  | 
 |  | +            for(String str:statusSplit){
 | 
											
												
													
														|  | 
 |  | +                statusList.add(str);
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        IPage<CostAllocationReview> pageList = syCostLossReviewService.queryCostAllocation(statusList,sy,page);
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          for(CostAllocationReview li:pageList.getRecords()){
 |  |          for(CostAllocationReview li:pageList.getRecords()){
 | 
											
												
													
														|  |              //查询指派人
 |  |              //查询指派人
 | 
											
										
											
												
													
														|  | @@ -442,7 +474,16 @@ public class SyCostLossReviewController extends JeecgController<SyOrderData, ISy
 | 
											
												
													
														|  |                            @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
 |  |                            @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
 | 
											
												
													
														|  |                            HttpServletRequest req, HttpServletResponse response) throws IOException {
 |  |                            HttpServletRequest req, HttpServletResponse response) throws IOException {
 | 
											
												
													
														|  |          Page<CostAllocationReview> page = new Page<CostAllocationReview>(pageNo, -1);
 |  |          Page<CostAllocationReview> page = new Page<CostAllocationReview>(pageNo, -1);
 | 
											
												
													
														|  | -        IPage<CostAllocationReview> pageList = syCostLossReviewService.queryCostAllocation(sy,page);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        List<String> statusList = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +        String stuta = sy.getStatus();
 | 
											
												
													
														|  | 
 |  | +        if(oConvertUtils.isNotEmpty(stuta)){
 | 
											
												
													
														|  | 
 |  | +            String statusSplit[] = stuta.split(",");
 | 
											
												
													
														|  | 
 |  | +            for(String str:statusSplit){
 | 
											
												
													
														|  | 
 |  | +                statusList.add(str);
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        IPage<CostAllocationReview> pageList = syCostLossReviewService.queryCostAllocation(statusList,sy,page);
 | 
											
												
													
														|  |          //获取模板输入流
 |  |          //获取模板输入流
 | 
											
												
													
														|  |          InputStream inStream = new FileInputStream("D:\\单证模板\\成本分配列表.xlsx");
 |  |          InputStream inStream = new FileInputStream("D:\\单证模板\\成本分配列表.xlsx");
 | 
											
												
													
														|  |          //通过poi创建表对象
 |  |          //通过poi创建表对象
 |