| 
														
															@@ -15,11 +15,14 @@ import org.jeecg.modules.documents.costLossReview.entity.SyCostLossReview; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.documents.costLossReview.service.ISyCostLossReviewService; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.documents.costLossReview.service.ISyCostLossReviewService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.documents.orderData.entity.SyOrderData; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.documents.orderData.entity.SyOrderData; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.documents.orderData.service.ISyOrderDataService; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.documents.orderData.service.ISyOrderDataService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import org.jeecg.modules.report.entity.AccessorItem; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.report.entity.FabricLoss; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.report.entity.FabricLoss; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.report.entity.SyFabricLossReport; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.report.entity.SyFabricLossReport; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import org.jeecg.modules.report.mapper.FabricLossMapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.report.service.ISyFabricLossReportService; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.report.service.ISyFabricLossReportService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.syPlanStatistics.entity.SyPlanStatistics; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.syPlanStatistics.entity.SyPlanStatistics; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.syPlanStatistics.service.ISyPlanStatisticsService; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.syPlanStatistics.service.ISyPlanStatisticsService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import org.jeecg.modules.system.util.oConvertUtils; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
														
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.web.bind.annotation.*; 
														 | 
														
														 | 
														
															 import org.springframework.web.bind.annotation.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -40,6 +43,8 @@ public class SyCostLossReviewController extends JeecgController<SyOrderData, ISy 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private ISyPlanStatisticsService syPlanStatisticsService; 
														 | 
														
														 | 
														
															     private ISyPlanStatisticsService syPlanStatisticsService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															    @Autowired 
														 | 
														
														 | 
														
															    @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															    private ISyFabricLossReportService syFabricLossReportService; 
														 | 
														
														 | 
														
															    private ISyFabricLossReportService syFabricLossReportService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private FabricLossMapper fabricLossMapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															    /** 
														 | 
														
														 | 
														
															    /** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     * 分页列表查询 
														 | 
														
														 | 
														
															     * 分页列表查询 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -61,14 +66,16 @@ public class SyCostLossReviewController extends JeecgController<SyOrderData, ISy 
														 | 
													
												
											
												
													
														| 
														 | 
														
															        IPage<SyCostLossReview> nullList = new Page<>(); 
														 | 
														
														 | 
														
															        IPage<SyCostLossReview> nullList = new Page<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															        List<String> sumList = new ArrayList<>(); 
														 | 
														
														 | 
														
															        List<String> sumList = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															        if(syCostLossReview.getPlanNo()=="" || syCostLossReview.getPlanNo()==null){ 
														 | 
														
														 | 
														
															        if(syCostLossReview.getPlanNo()=="" || syCostLossReview.getPlanNo()==null){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-           if(syCostLossReview.getFstatus()!=null && syCostLossReview.getFstatus()!=""){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-               List<String> list= syCostLossReviewService.queryCodeByfstatus(syCostLossReview.getFstatus()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           if(syCostLossReview.getFstatus()!=null && syCostLossReview.getFstatus()!="" || oConvertUtils.isNotEmpty(syCostLossReview.getFfirstApproveDate())){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               //查面损的数据 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               List<String> list= syCostLossReviewService.queryCodeByfstatus(syCostLossReview.getFstatus(),syCostLossReview.getFfirstApproveDate()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                if(list.size()<1){ 
														 | 
														
														 | 
														
															                if(list.size()<1){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                    return Result.OK(nullList); 
														 | 
														
														 | 
														
															                    return Result.OK(nullList); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                } 
														 | 
														
														 | 
														
															                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                sumList=list; 
														 | 
														
														 | 
														
															                sumList=list; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															            } 
														 | 
														
														 | 
														
															            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															            if(syCostLossReview.getCstatus()!=null && syCostLossReview.getCstatus()!=""){ 
														 | 
														
														 | 
														
															            if(syCostLossReview.getCstatus()!=null && syCostLossReview.getCstatus()!=""){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               //查成本的数据 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                List<String> list= syCostLossReviewService.queryCodeBycstatus(syCostLossReview.getCstatus()); 
														 | 
														
														 | 
														
															                List<String> list= syCostLossReviewService.queryCodeBycstatus(syCostLossReview.getCstatus()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                if(list.size()<1){ 
														 | 
														
														 | 
														
															                if(list.size()<1){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                    return Result.OK(nullList); 
														 | 
														
														 | 
														
															                    return Result.OK(nullList); 
														 |