Commit 6aa876b1 authored by wangxl's avatar wangxl

1

parent 61bc4639
...@@ -231,10 +231,10 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD ...@@ -231,10 +231,10 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
this.updateAudit(comProjectAudit.getId(), CommonEnum.auditResult.waitAudit.getCode(), "", maxIndex + 1, SecurityUserHolder.getPersonId(), new Date(), null, null, null, null); this.updateAudit(comProjectAudit.getId(), CommonEnum.auditResult.waitAudit.getCode(), "", maxIndex + 1, SecurityUserHolder.getPersonId(), new Date(), null, null, null, null);
} else { } else {
//插入上报表 //插入上报表
this.insertAudit(reportYear, auditType, auditObjectId, CommonEnum.auditMethod.audit.getCode(), auditUnitId, null, CommonEnum.auditResult.waitAudit.getCode(), null, treeCode.length() / properties.getDefaultCodeLength(), maxIndex + 1, SecurityUserHolder.getPersonId()); this.insertAudit(reportYear, auditType, auditObjectId, auditMethod, auditUnitId, null, CommonEnum.auditResult.waitAudit.getCode(), null, treeCode.length() / properties.getDefaultCodeLength(), maxIndex + 1, SecurityUserHolder.getPersonId());
} }
// 插入审核记录表 // 插入审核记录表
comProjectAuditNoteService.insertAuditNote(reportYear, auditType, auditObjectId, CommonEnum.auditMethod.audit.getCode(), auditUnitId, null, CommonEnum.auditResult.waitAudit.getCode(), null, treeCode.length() / properties.getDefaultCodeLength(), maxIndex + 1, SecurityUserHolder.getPersonId()); comProjectAuditNoteService.insertAuditNote(reportYear, auditType, auditObjectId, auditMethod, auditUnitId, null, CommonEnum.auditResult.waitAudit.getCode(), null, treeCode.length() / properties.getDefaultCodeLength(), maxIndex + 1, SecurityUserHolder.getPersonId());
} }
public String audit(ComProjectAudit model, String reportTreeCode, String auditUnitTreeCode) { public String audit(ComProjectAudit model, String reportTreeCode, String auditUnitTreeCode) {
......
...@@ -934,7 +934,8 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro ...@@ -934,7 +934,8 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
&& !StringUtil.isContainsRole(SecurityUserHolder.getRoles(), CommonEnum.systemRole.topGov.getCode().toString()) && !StringUtil.isContainsRole(SecurityUserHolder.getRoles(), CommonEnum.systemRole.topGov.getCode().toString())
&& !project.getProjState().equals(CommonEnum.projState.draft.getCode()) && !project.getProjState().equals(CommonEnum.projState.draft.getCode())
&& !project.getProjState().equals(CommonEnum.projState.waitSubmit.getCode()) && !project.getProjState().equals(CommonEnum.projState.waitSubmit.getCode())
&& !project.getProjState().equals(CommonEnum.projState.returnModify.getCode())) && !project.getProjState().equals(CommonEnum.projState.returnModify.getCode())
&& !project.getProjState().equals(CommonEnum.projState.lastModify.getCode()))
throw new BusinessException("项目已上报!"); throw new BusinessException("项目已上报!");
ComProject comProject = convert2Entity(dto); ComProject comProject = convert2Entity(dto);
comProjectBasicService.insertOrUpdate(dto); comProjectBasicService.insertOrUpdate(dto);
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</select> </select>
<select id="getCount" resultType="com.yiboshi.science.param.dto.DataStatisticsDTO"> <select id="getCount" resultType="com.yiboshi.science.param.dto.DataStatisticsDTO">
SELECT ifnull(sum(case when proj_state in(-10,10) then 1 else 0 end),0) count1, SELECT ifnull(sum(case when proj_state in(-10,10) then 1 else 0 end),0) count1,
ifnull(sum(case when proj_state =30 then 1 else 0 end),0) count2, ifnull(sum(case when proj_state in(30,35) then 1 else 0 end),0) count2,
ifnull(sum(case when proj_state in(20,22,24,26,28,40,50) then 1 else 0 end),0) count3, ifnull(sum(case when proj_state in(20,22,24,26,28,40,50) then 1 else 0 end),0) count3,
ifnull(sum(case when proj_state is not null then 1 else 0 end),0) count4 ifnull(sum(case when proj_state is not null then 1 else 0 end),0) count4
FROM com_project c FROM com_project c
......
...@@ -25,6 +25,12 @@ ...@@ -25,6 +25,12 @@
where a.id = #{id} where a.id = #{id}
</select> </select>
<select id="getTopUnit" resultType="com.yiboshi.science.param.dto.ComUnitDTO">
select a.*
from com_unit a
where length(a.tree_code) = #{len}
</select>
<select id="getUnitByTreeCode" resultType="com.yiboshi.science.param.dto.ComUnitDTO"> <select id="getUnitByTreeCode" resultType="com.yiboshi.science.param.dto.ComUnitDTO">
select a.* select a.*
from com_unit a from com_unit a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment