Commit 1e2b1294 authored by wangxl's avatar wangxl

1

parent aba1c513
...@@ -21,6 +21,7 @@ import java.util.List; ...@@ -21,6 +21,7 @@ import java.util.List;
public interface ComUnitDAO extends BaseMapper<ComUnit>, BaseDAO<ComUnitQueryVO, ComUnitDTO, ComUnit> { public interface ComUnitDAO extends BaseMapper<ComUnit>, BaseDAO<ComUnitQueryVO, ComUnitDTO, ComUnit> {
String getMaxTreeCode(String Code); String getMaxTreeCode(String Code);
ComUnitDTO getUnitById(String id); ComUnitDTO getUnitById(String id);
ComUnitDTO getTopUnit(int len); ComUnitDTO getTopUnit(int len);
......
...@@ -158,9 +158,11 @@ public class ComProjectAuditController extends BaseController<ComProjectAuditSer ...@@ -158,9 +158,11 @@ public class ComProjectAuditController extends BaseController<ComProjectAuditSer
if (Objects.nonNull(e.getTotalFunding())) { if (Objects.nonNull(e.getTotalFunding())) {
total = e.getTotalFunding(); total = e.getTotalFunding();
} }
if (Objects.nonNull(e.getGovFunding())) { if (Objects.nonNull(e.getGovFunding())) {
gov = e.getGovFunding(); gov = e.getGovFunding();
} }
self = total.subtract(gov); self = total.subtract(gov);
e.setSelfFunding(self); e.setSelfFunding(self);
} }
......
...@@ -75,6 +75,7 @@ public interface ComProjectAuditService extends BaseService<ComProjectAuditQuery ...@@ -75,6 +75,7 @@ public interface ComProjectAuditService extends BaseService<ComProjectAuditQuery
* @param auditUnitId * @param auditUnitId
* @param treeCode * @param treeCode
*/ */
void report(Integer reportYear, String reportObjectId, Integer auditType,Integer auditMethod, String auditUnitId, String treeCode); void report(Integer reportYear, String reportObjectId, Integer auditType,Integer auditMethod, String auditUnitId, String treeCode);
/** 项目/任务书/中期考核审核 /** 项目/任务书/中期考核审核
* *
......
...@@ -17,6 +17,7 @@ import java.util.List; ...@@ -17,6 +17,7 @@ import java.util.List;
*/ */
public interface ComUnitService extends BaseService<ComUnitQueryVO, ComUnitDTO, ComUnit> { public interface ComUnitService extends BaseService<ComUnitQueryVO, ComUnitDTO, ComUnit> {
/** 获取最高级单位 /** 获取最高级单位
* *
* @return * @return
......
...@@ -222,6 +222,7 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD ...@@ -222,6 +222,7 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
} }
public void report(Integer reportYear, String auditObjectId, Integer auditType,Integer auditMethod, String auditUnitId, String treeCode) { public void report(Integer reportYear, String auditObjectId, Integer auditType,Integer auditMethod, String auditUnitId, String treeCode) {
if (null == auditMethod) if (null == auditMethod)
auditMethod = CommonEnum.auditMethod.audit.getCode(); auditMethod = CommonEnum.auditMethod.audit.getCode();
int maxIndex = this.getMaxAuditIndex(auditObjectId); int maxIndex = this.getMaxAuditIndex(auditObjectId);
......
...@@ -153,6 +153,7 @@ public class ComProjectCheckServiceImpl extends BaseServiceImpl<ComProjectCheckD ...@@ -153,6 +153,7 @@ public class ComProjectCheckServiceImpl extends BaseServiceImpl<ComProjectCheckD
throw new BusinessException("中期考核表不存在或已上报"); throw new BusinessException("中期考核表不存在或已上报");
ComProjectCheck comProjectCheck = convert2Entity(comProjectCheckDTO); ComProjectCheck comProjectCheck = convert2Entity(comProjectCheckDTO);
comProjectResultsService.insertList(comProjectCheckDTO.getResults(), comProjectCheck.getId()); comProjectResultsService.insertList(comProjectCheckDTO.getResults(), comProjectCheck.getId());
comProjectAuditService.report(comProjectCheckDTO.getCheckYear(), comProjectCheckDTO.getId(), 3,null, unitId, treeCode); comProjectAuditService.report(comProjectCheckDTO.getCheckYear(), comProjectCheckDTO.getId(), 3,null, unitId, treeCode);
comProjectCheck.setCheckState(CommonEnum.checkState.review.getCode()); comProjectCheck.setCheckState(CommonEnum.checkState.review.getCode());
return this.update(comProjectCheck); return this.update(comProjectCheck);
......
...@@ -193,6 +193,7 @@ public class ComProjectConclusionServiceImpl extends BaseServiceImpl<ComProjectC ...@@ -193,6 +193,7 @@ public class ComProjectConclusionServiceImpl extends BaseServiceImpl<ComProjectC
modal.setState(CommonEnum.conclusionState.report.getCode()); modal.setState(CommonEnum.conclusionState.report.getCode());
modal.setThesisState(CommonEnum.thesisState.pass.getCode()); modal.setThesisState(CommonEnum.thesisState.pass.getCode());
comProjectService.updateStateOrNo(conclusion.getProjId(), CommonEnum.projState.report.getCode(), null, null); comProjectService.updateStateOrNo(conclusion.getProjId(), CommonEnum.projState.report.getCode(), null, null);
comProjectAuditService.report(DateUtils.getYear(), conclusion.getId(), 4,null, auditUnitId, treeCode); comProjectAuditService.report(DateUtils.getYear(), conclusion.getId(), 4,null, auditUnitId, treeCode);
return this.update(modal); return this.update(modal);
} }
......
...@@ -654,6 +654,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro ...@@ -654,6 +654,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
unitId = unit.getId(); unitId = unit.getId();
treeCode = unit.getTreeCode(); treeCode = unit.getTreeCode();
} }
comProjectAuditService.report(comProject.getReportYear(), model.getAuditObjectId(), model.getAuditType(), auditMethod, unitId, treeCode); comProjectAuditService.report(comProject.getReportYear(), model.getAuditObjectId(), model.getAuditType(), auditMethod, unitId, treeCode);
String versionNo = ""; String versionNo = "";
if (null == comProject.getVersionNo()) if (null == comProject.getVersionNo())
......
...@@ -115,6 +115,7 @@ public class ComUnitServiceImpl extends BaseServiceImpl<ComUnitDAO, ComUnitQuery ...@@ -115,6 +115,7 @@ public class ComUnitServiceImpl extends BaseServiceImpl<ComUnitDAO, ComUnitQuery
return new Pagination<>(dtoList, page.getTotal(), vo.getPageSize()); return new Pagination<>(dtoList, page.getTotal(), vo.getPageSize());
} }
public ComUnitDTO getTopUnit() { public ComUnitDTO getTopUnit() {
return comUnitDAO.getTopUnit(properties.getDefaultCodeLength()); return comUnitDAO.getTopUnit(properties.getDefaultCodeLength());
} }
......
...@@ -67,6 +67,7 @@ public class IDCardUtil { ...@@ -67,6 +67,7 @@ public class IDCardUtil {
String uyear = "19" + IDCard.substring(6, 8); String uyear = "19" + IDCard.substring(6, 8);
// 身份证上的月份 // 身份证上的月份
String uyue = IDCard.substring(8, 10); String uyue = IDCard.substring(8, 10);
// 当前年份 // 当前年份
String fyear = format.format(date).substring(0, 4); String fyear = format.format(date).substring(0, 4);
// 当前月份 // 当前月份
...@@ -81,6 +82,7 @@ public class IDCardUtil { ...@@ -81,6 +82,7 @@ public class IDCardUtil {
} else if (IDCard.length() == EIGHTEEN_ID_CARD) { } else if (IDCard.length() == EIGHTEEN_ID_CARD) {
// 身份证上的年份 // 身份证上的年份
String year = IDCard.substring(6).substring(0, 4); String year = IDCard.substring(6).substring(0, 4);
// 身份证上的月份 // 身份证上的月份
String yue = IDCard.substring(10).substring(0, 2); String yue = IDCard.substring(10).substring(0, 2);
// 当前年份 // 当前年份
......
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