Sfoglia il codice sorgente

报表数据生成

QuietShadow 3 anni fa
parent
commit
da3dd3b22e

+ 4 - 3
src/main/java/com/steerinfo/ems/trmworkprocmaterialvalue/controller/TRmWorkprocMaterialValueController.java

@@ -241,9 +241,7 @@ public class TRmWorkprocMaterialValueController extends BaseRESTfulController {
 		tRmWorkprocMaterialValueService.synchronousData();
 		tRmWorkprocMaterialValueService.synchronousData4();
 		tRmWorkprocMaterialValueService.synchronousData5();
-        //根据报表中的原料数据生成
-        tRmWorkprocMaterialValueService.getReportValue(parmas);
-        tRmWorkprocMaterialValueService.getMaterialValue(parmas);
+
 		parmas.put("useflag", "1");
 		// 查询需要统计的计量点信息
 		List<TRmWorkprocMaterial> l = tRmWorkprocMaterialMapper.selectByParameters(parmas);
@@ -252,6 +250,9 @@ public class TRmWorkprocMaterialValueController extends BaseRESTfulController {
 			TRmWorkprocMaterial t = l.get(i);
 			res = formulaService.reItemVal(t.getItemid(),clock,timegranid,clocke);
 		}
+        //根据报表中的原料数据生成
+        //tRmWorkprocMaterialValueService.getReportValue(parmas);
+        tRmWorkprocMaterialValueService.getMaterialValue(parmas);
 		if(!res.isEmpty()){
 			return failed(null, res);
 		}

+ 1 - 1
src/main/java/com/steerinfo/ems/trmworkprocproductvalue/controller/TRmWorkprocProductValueController.java

@@ -436,7 +436,7 @@ public class TRmWorkprocProductValueController extends BaseRESTfulController {
 			res = formulaService.reItemVal(t.getItemid(),clock,timegranid,clocke);
 		}
         //根据报表中的产量数据生成
-        tRmWorkprocProductValueService.getReportValue(parmas);
+        //tRmWorkprocProductValueService.getReportValue(parmas);
         tRmWorkprocProductValueService.getReportProductValue(parmas);
 		if(!res.isEmpty()){
 			return failed(null, res);