fix: 不符合项评估库列表
This commit is contained in:
+7
@@ -61,6 +61,8 @@ public class ProcessSCCEndListener implements ExecutionListener {
|
|||||||
@Resource
|
@Resource
|
||||||
private ProcessApprovalRecordService processApprovalRecordService;
|
private ProcessApprovalRecordService processApprovalRecordService;
|
||||||
|
|
||||||
|
public static final String TO_BE_RECTIFIED = "1";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void notify(DelegateExecution delegateExecution) {
|
public void notify(DelegateExecution delegateExecution) {
|
||||||
log.info("法规符合性排查流程结束监听器开始执行");
|
log.info("法规符合性排查流程结束监听器开始执行");
|
||||||
@@ -152,6 +154,11 @@ public class ProcessSCCEndListener implements ExecutionListener {
|
|||||||
lawsEvaluationNotMetLibraries.forEach(detail -> {
|
lawsEvaluationNotMetLibraries.forEach(detail -> {
|
||||||
detail.setId(null);
|
detail.setId(null);
|
||||||
detail.setAllApprovalUser(allApprovalUsers);
|
detail.setAllApprovalUser(allApprovalUsers);
|
||||||
|
detail.setStandardId(scc.getStandardId());
|
||||||
|
detail.setStandardName(scc.getStandardName());
|
||||||
|
detail.setStandardNumber(scc.getStandardNumber());
|
||||||
|
detail.setProblemType(detail.getResult());
|
||||||
|
detail.setRectifyStatus(TO_BE_RECTIFIED);
|
||||||
});
|
});
|
||||||
notMetService.saveBatch(lawsEvaluationNotMetLibraries);
|
notMetService.saveBatch(lawsEvaluationNotMetLibraries);
|
||||||
log.info("法规符合性排查流程结束监听器结束执行");
|
log.info("法规符合性排查流程结束监听器结束执行");
|
||||||
|
|||||||
+5
-1
@@ -13,8 +13,12 @@
|
|||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="pageList" resultType="com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibrary">
|
<select id="pageList" resultType="com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibrary">
|
||||||
select nm.*
|
select nm.*,
|
||||||
|
nm.standard_id,
|
||||||
|
IF(nm.standard_id IS NOT NULL, d.standard_number, d.standard_number) AS standard_number,
|
||||||
|
IF(nm.standard_id IS NOT NULL, d.standard_name, d.standard_name) AS standard_name
|
||||||
from laws_evaluation_not_met_library nm
|
from laws_evaluation_not_met_library nm
|
||||||
|
left join laws_domestic_standard as d on d.id = nm.standard_id
|
||||||
${ew.customSqlSegment}
|
${ew.customSqlSegment}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user