优化案件提交退还原因

This commit is contained in:
qitz
2023-12-12 14:59:01 +08:00
parent 23d53688e4
commit b1f0fb8f6f
6 changed files with 29 additions and 4 deletions
@@ -324,7 +324,7 @@ public class CaseApplicationController extends BaseController {
if(CollectionUtil.isEmpty(batchCaseApplication.getIds())|| batchCaseApplication.getAgreeOrNotCheck()==null){
return error("参数校验失败");
}
return success(caseApplicationService.submitCaseApplicationCheck(batchCaseApplication.getIds(),batchCaseApplication.getAgreeOrNotCheck()));
return success(caseApplicationService.submitCaseApplicationCheck(batchCaseApplication.getIds(),batchCaseApplication.getAgreeOrNotCheck(),batchCaseApplication.getRejectReason()));
}
/**
@@ -57,6 +57,19 @@ public class ArbitrateRecord extends BaseEntity {
*/
private String applicantOpinion;
/**
* 立案审查驳回原因
*/
private String caseCheckReject;
/**
* 仲裁员确认裁决书驳回
*/
private String arbitrateReject;
/**
* 部门长确认裁决书驳回
*/
private String deptorReject;
@@ -20,4 +20,6 @@ public class BatchCaseApplication {
* 1同意,0拒绝
*/
private Integer opinion;
/** 驳回原因 */
private String rejectReason;
}
@@ -45,7 +45,7 @@ public interface ICaseApplicationService {
AjaxResult checkArbitrateRecord(CaseApplication caseApplication);
int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck);
int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck,String rejectReason);
CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
@@ -2230,7 +2230,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
@Override
@Transactional
public int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck) {
public int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck,String rejectReason) {
//提交立案审查
int rows = 0;
for (Long id : ids) {
@@ -2243,6 +2243,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
} else if (agreeOrNotCheck == 2) {//拒绝审核
caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
rows += caseApplicationMapper.submitCaseApplication(caseApplication);
ArbitrateRecord arbitrateRecordsel = new ArbitrateRecord();
arbitrateRecordsel.setCaseAppliId(id);
ArbitrateRecord arbitrateRecordnew = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecordsel);
arbitrateRecordnew.setCaseCheckReject(rejectReason);
arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecordnew);
}
// 新增日志
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT, "");
@@ -74,6 +74,9 @@
<if test="caseFacts != null and caseFacts != ''">case_facts = #{caseFacts},</if>
<if test="respondentOpinion != null and respondentOpinion != ''">respondent_opinion = #{respondentOpinion},</if>
<if test="applicantOpinion != null and applicantOpinion != ''">applicant_opinion = #{applicantOpinion},</if>
<if test="caseCheckReject != null and caseCheckReject != ''">case_check_reject = #{caseCheckReject},</if>
<if test="arbitrateReject != null and arbitrateReject != ''">arbitrate_reject = #{arbitrateReject},</if>
<if test="deptorReject != null and deptorReject != ''">deptor_reject = #{deptorReject},</if>
update_time = sysdate()
</set>
where id = #{id}
@@ -82,7 +85,8 @@
<select id="selectArbitrateRecord" parameterType="ArbitrateRecord" resultMap="ArbitrateRecordResult">
SELECT a.id ,a.case_appli_id ,a.eviden_determi ,a.fact_determi ,a.case_sketch ,a.arbitrate_think ,a.ruling_follows ,
a.verifica_opinion ,a.check_opinion,a.annex_id,a.case_focus,a.case_facts,a.respondent_opinion,a.applicant_opinion
a.verifica_opinion ,a.check_opinion,a.annex_id,a.case_focus,a.case_facts,a.respondent_opinion,a.applicant_opinion,
a.case_check_reject ,a.arbitrate_reject,a.deptor_reject
from arbitrate_record a
<where>
<if test="caseAppliId != null ">