Commit d40747a4 authored by wangxl's avatar wangxl

1

parent b8207974
...@@ -342,6 +342,7 @@ public class CommonEnum { ...@@ -342,6 +342,7 @@ public class CommonEnum {
waitSubmit(10, "待提交"), waitSubmit(10, "待提交"),
toAudit(20, "评审中"), toAudit(20, "评审中"),
returnModify(30, "返回修改"), returnModify(30, "返回修改"),
lastModify(35, "终审返回修改"),
failed(40, "未批准立项"), failed(40, "未批准立项"),
pass(50, "批准立项"), pass(50, "批准立项"),
report(55, "结题上报"), report(55, "结题上报"),
......
...@@ -304,13 +304,12 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD ...@@ -304,13 +304,12 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
} }
//返回修改 //返回修改
else if (model.getAuditResult().equals(CommonEnum.auditResult.returnModify.getCode())) { else if (model.getAuditResult().equals(CommonEnum.auditResult.returnModify.getCode())) {
if (auditMethod.equals(CommonEnum.auditMethod.last.getCode()))
throw new BusinessException("终审项目不能返回修改!");
unitLevel = unitLevel + 1; unitLevel = unitLevel + 1;
// 跳过县级行政机构 // 跳过县级行政机构
if (reportTreeCode.length() / properties.getDefaultCodeLength() > 3 && auditUnitTreeCode.length() / properties.getDefaultCodeLength() == 2) { if (reportTreeCode.length() / properties.getDefaultCodeLength() > 3 && auditUnitTreeCode.length() / properties.getDefaultCodeLength() == 2) {
unitLevel = comProjectAuditDAO.getMaxUnitLevelByObjectId(model.getAuditObjectId()); unitLevel = comProjectAuditDAO.getMaxUnitLevelByObjectId(model.getAuditObjectId());
} }
if (!model.getAuditMethod().equals(CommonEnum.auditMethod.last.getCode())) {
//更新上报表 //更新上报表
ComProjectAudit auditNote = this.getAudit(auditObjectId, null, auditType, CommonEnum.auditMethod.audit.getCode(), unitLevel); ComProjectAudit auditNote = this.getAudit(auditObjectId, null, auditType, CommonEnum.auditMethod.audit.getCode(), unitLevel);
if (null != auditNote) { if (null != auditNote) {
...@@ -321,6 +320,7 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD ...@@ -321,6 +320,7 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
unitId = auditNote.getAuditUnitId(); unitId = auditNote.getAuditUnitId();
} }
} }
}
return unitId; return unitId;
} }
......
...@@ -700,6 +700,9 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro ...@@ -700,6 +700,9 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
} }
} else if (audit.getAuditResult().equals(CommonEnum.auditResult.returnModify.getCode())) { } else if (audit.getAuditResult().equals(CommonEnum.auditResult.returnModify.getCode())) {
if (unitId == null) if (unitId == null)
if (audit.getAuditMethod().equals(CommonEnum.auditMethod.last.getCode()))
projState = CommonEnum.projState.lastModify.getCode();
else
projState = CommonEnum.projState.returnModify.getCode(); projState = CommonEnum.projState.returnModify.getCode();
} else { } else {
projState = CommonEnum.projState.failed.getCode(); projState = CommonEnum.projState.failed.getCode();
......
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