|
@@ -58,19 +58,10 @@ 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.setAuditUserIdList(standardOpinion.getAuditUserIdList());
|
|
|
+ info.setProjectAllNumber(dao.getProjectAllNumber(info));
|
|
|
+ Integer standardNumber=dao.getStandardNumber(info);
|
|
|
info.setStandardNumber(standardNumber);
|
|
|
info.setAuditUserIdList(standardOpinion.getAuditUserIdList());
|
|
|
info.setStartDate(standardOpinion.getStartDate());
|