Sfoglia il codice sorgente

标准意见检查管理(总评价数)

[user3] 3 anni fa
parent
commit
8e2dbef13a

+ 13 - 1
src/main/java/com/jeeplus/modules/bzshbExamine/service/StandardOpinionAllService.java

@@ -58,8 +58,20 @@ public class StandardOpinionAllService extends CrudService<StandardOpinionDao, S
         if(null == standardOpinion.getEndDate()){
             standardOpinion.setEndDate(new Date());
         }
-
+        //获取AB级的质量复核数量
+        Integer AJi=dao.getAjiStandard();
+        Integer BJi=dao.getBjiStandard();
         for (StandardOpinion info: recordsList) {
+            //B级项目数量
+            Integer BCount=dao.getBjiProject(info);
+            if (null==BCount){
+                BCount=0;
+            }
+            //A级项目数量
+            Integer ACount=info.getProjectAllNumber()-BCount;
+            //获取AB级项目的总质量复核数量
+            Integer standardNumber=(ACount*AJi)+(BCount*BJi);
+            info.setStandardNumber(standardNumber);
             info.setAuditUserIdList(standardOpinion.getAuditUserIdList());
             info.setStartDate(standardOpinion.getStartDate());
             info.setEndDate(standardOpinion.getEndDate());

+ 2 - 0
src/main/webapp/webpage/modules/bzshStandardOpinion/StandardOpinionAllList.jsp

@@ -260,6 +260,7 @@
 				{field:'index',align:'center', fixed: 'left', title: '序号',width:40}
 				,{field:'userName',align:'center', title: '项目责任人'}
 				,{field:'projectAllNumber',align:'center', title: '总项目数'}
+				,{field:'standardNumber',align:'center', title: '总评价数'}
 				,{field:'projectAllCount',align:'center', title: '当前项目数'}
 				,{field:'standardCount',align:'center', title: '当前标准评价数'}
 				,{field:'op',align:'center',title:"操作", fixed: 'right',width:100,templet:function(d){
@@ -282,6 +283,7 @@
 					,"startDate":"<fmt:formatDate value="${bzshbExamin.startDate}" pattern="yyyy-MM-dd"/>"
 					,"endDate":"<fmt:formatDate value="${bzshbExamin.endDate}" pattern="yyyy-MM-dd"/>"
 					,"projectAllNumber":"${bzshbExamin.projectAllNumber}"
+					,"standardNumber":"${bzshbExamin.standardNumber}"
 					,"projectAllCount":"${bzshbExamin.projectAllCount}"
 					,"standardCount":"${bzshbExamin.standardCount}"
                 }