优化立案审查驳回接口

This commit is contained in:
qitz
2023-12-12 17:12:31 +08:00
parent 4c4dfcd9d5
commit 209de376e3
5 changed files with 14 additions and 6 deletions
@@ -21,5 +21,5 @@ public class BatchCaseApplication {
*/
private Integer opinion;
/** 驳回原因 */
private String rejectReason;
private String caseCheckReject;
}
@@ -45,7 +45,7 @@ public interface ICaseApplicationService {
AjaxResult checkArbitrateRecord(CaseApplication caseApplication);
int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck,String rejectReason);
int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck,String caseCheckReject);
CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
@@ -1886,7 +1886,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
@Override
@Transactional
public int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck,String rejectReason) {
public int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck,String caseCheckReject) {
//提交立案审查
int rows = 0;
for (Long id : ids) {
@@ -1902,8 +1902,14 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
ArbitrateRecord arbitrateRecordsel = new ArbitrateRecord();
arbitrateRecordsel.setCaseAppliId(id);
ArbitrateRecord arbitrateRecordnew = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecordsel);
arbitrateRecordnew.setCaseCheckReject(rejectReason);
arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecordnew);
if(arbitrateRecordnew!=null){
arbitrateRecordnew.setCaseCheckReject(caseCheckReject);
arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecordnew);
}else {
arbitrateRecordsel.setCaseCheckReject(caseCheckReject);
arbitrateRecordMapper.insertArbitrateRecord(arbitrateRecordsel);
}
}
// 新增日志