批量审查
This commit is contained in:
+12
@@ -366,6 +366,18 @@ public class CaseApplicationController extends BaseController {
|
|||||||
return success(caseApplicationselect);
|
return success(caseApplicationselect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量提交立案审查
|
||||||
|
*/
|
||||||
|
@Log(title = "批量提交立案审查", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/submitCaseApplicationCheckBatch")
|
||||||
|
public AjaxResult submitCaseApplicationCheckBatch(@RequestBody BatchCaseApplication batchCaseApplication) {
|
||||||
|
if(StringUtils.isEmpty(batchCaseApplication.getBatchNumber()) || batchCaseApplication.getAgreeOrNotCheck()==null){
|
||||||
|
return error("参数校验失败");
|
||||||
|
}
|
||||||
|
return success(caseApplicationService.submitCaseApplicationCheckBatch(batchCaseApplication.getBatchNumber(),batchCaseApplication.getAgreeOrNotCheck(),batchCaseApplication.getCaseCheckReject()));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 下载案件压缩包
|
* 下载案件压缩包
|
||||||
*/
|
*/
|
||||||
|
|||||||
+2
@@ -139,4 +139,6 @@ public interface ICaseApplicationService {
|
|||||||
List<CaseApplication> selectCaseApplicationListBatchByRole(CaseApplication caseApplication);
|
List<CaseApplication> selectCaseApplicationListBatchByRole(CaseApplication caseApplication);
|
||||||
|
|
||||||
int submitCaseApplicationBatch(String batchNumber);
|
int submitCaseApplicationBatch(String batchNumber);
|
||||||
|
|
||||||
|
int submitCaseApplicationCheckBatch(String batchNumber, Integer agreeOrNotCheck, String caseCheckReject);
|
||||||
}
|
}
|
||||||
|
|||||||
+89
-4
@@ -1989,10 +1989,14 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
if (agreeOrNotCheck == 1) {//同意审核
|
if (agreeOrNotCheck == 1) {//同意审核
|
||||||
caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
|
caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
|
||||||
rows += caseApplicationMapper.submitCaseApplication(caseApplication);
|
rows += caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||||
|
// 新增日志
|
||||||
|
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT, notes);
|
||||||
} else if (agreeOrNotCheck == 2) {//拒绝审核
|
} else if (agreeOrNotCheck == 2) {//拒绝审核
|
||||||
notes="驳回立案申请,驳回原因:"+caseCheckReject;
|
notes="驳回立案申请,驳回原因:"+caseCheckReject;
|
||||||
caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
||||||
rows += caseApplicationMapper.submitCaseApplication(caseApplication);
|
rows += caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||||
|
// 新增日志
|
||||||
|
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_APPLICATION, notes);
|
||||||
ArbitrateRecord arbitrateRecordsel = new ArbitrateRecord();
|
ArbitrateRecord arbitrateRecordsel = new ArbitrateRecord();
|
||||||
arbitrateRecordsel.setCaseAppliId(id);
|
arbitrateRecordsel.setCaseAppliId(id);
|
||||||
ArbitrateRecord arbitrateRecordnew = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecordsel);
|
ArbitrateRecord arbitrateRecordnew = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecordsel);
|
||||||
@@ -2044,11 +2048,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 新增日志
|
|
||||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT, notes);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return rows;
|
return rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2619,6 +2620,90 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
return rows;
|
return rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public int submitCaseApplicationCheckBatch(String batchNumber, Integer agreeOrNotCheck, String caseCheckReject) {
|
||||||
|
int rows = 0;
|
||||||
|
CaseApplication caseApplicationsel = new CaseApplication();
|
||||||
|
caseApplicationsel.setBatchNumber(Integer.parseInt(batchNumber));
|
||||||
|
caseApplicationsel.setCaseStatus(CaseApplicationConstants.CASE_CHECK);
|
||||||
|
List<CaseApplication> caseApplications = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplicationsel);
|
||||||
|
List<Long> ids = caseApplications.stream().map(CaseApplication::getId).collect(Collectors.toList());
|
||||||
|
if(caseApplications!=null&&caseApplications.size()>0){
|
||||||
|
for (Long id : ids) {
|
||||||
|
String notes="";
|
||||||
|
CaseApplication caseApplication = new CaseApplication();
|
||||||
|
caseApplication.setId(id);
|
||||||
|
caseApplication.setAgreeOrNotCheck(agreeOrNotCheck);
|
||||||
|
if (agreeOrNotCheck == 1) {
|
||||||
|
//同意审核
|
||||||
|
caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
|
||||||
|
rows += caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||||
|
// 新增日志
|
||||||
|
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT, notes);
|
||||||
|
} else if (agreeOrNotCheck == 2) {
|
||||||
|
//拒绝审核
|
||||||
|
notes="驳回立案申请,驳回原因:"+caseCheckReject;
|
||||||
|
caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
||||||
|
rows += caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||||
|
// 新增日志
|
||||||
|
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_APPLICATION, notes);
|
||||||
|
ArbitrateRecord arbitrateRecordsel = new ArbitrateRecord();
|
||||||
|
arbitrateRecordsel.setCaseAppliId(id);
|
||||||
|
ArbitrateRecord arbitrateRecordnew = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecordsel);
|
||||||
|
if(arbitrateRecordnew!=null){
|
||||||
|
arbitrateRecordnew.setCaseCheckReject(caseCheckReject);
|
||||||
|
arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecordnew);
|
||||||
|
}else {
|
||||||
|
arbitrateRecordsel.setCaseCheckReject(caseCheckReject);
|
||||||
|
arbitrateRecordMapper.insertArbitrateRecord(arbitrateRecordsel);
|
||||||
|
}
|
||||||
|
//发短信给申请人
|
||||||
|
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
||||||
|
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||||
|
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
||||||
|
List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
|
||||||
|
if (caseAffiliates != null && caseAffiliates.size() > 0) {
|
||||||
|
for (CaseAffiliate affiliate : caseAffiliates) {
|
||||||
|
//获取身份类型
|
||||||
|
int identityType = affiliate.getIdentityType();
|
||||||
|
//查询案件详细信息
|
||||||
|
CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
|
||||||
|
String caseName = "仲裁";
|
||||||
|
String caseNum = caseApplication1.getCaseNum();
|
||||||
|
|
||||||
|
if (identityType == 1) {
|
||||||
|
request.setPhone(affiliate.getContactTelphone());
|
||||||
|
request.setTemplateId("2018697");
|
||||||
|
String name = affiliate.getName();
|
||||||
|
request.setTemplateParamSet(new String[]{name, caseName, caseNum,caseCheckReject});
|
||||||
|
Boolean aBoolean = SmsUtils.sendSms(request);
|
||||||
|
//保存短信发送记录
|
||||||
|
SmsSendRecord smsSendRecord = new SmsSendRecord();
|
||||||
|
smsSendRecord.setCaseId(caseApplication.getId());
|
||||||
|
smsSendRecord.setCaseNum(caseNum);
|
||||||
|
smsSendRecord.setPhone(request.getPhone());
|
||||||
|
smsSendRecord.setSendTime(new Date());
|
||||||
|
String content = "尊敬的" + name + "用户,您的" + caseName + "案件" + caseNum + "已拒绝,拒接原因:" + caseCheckReject;
|
||||||
|
smsSendRecord.setSendContent(content);
|
||||||
|
smsSendRecord.setCreateBy(getUsername());
|
||||||
|
if (aBoolean) {
|
||||||
|
smsSendRecord.setSendStatus(1);
|
||||||
|
} else {
|
||||||
|
smsSendRecord.setSendStatus(0);
|
||||||
|
}
|
||||||
|
smsRecordMapper.saveSmsSendRecord(smsSendRecord);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
private String getColumnstr(String columnname) {
|
private String getColumnstr(String columnname) {
|
||||||
String columnstr = "";
|
String columnstr = "";
|
||||||
switch (columnname) {
|
switch (columnname) {
|
||||||
|
|||||||
+1
@@ -235,6 +235,7 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
|||||||
caseApplication1.setPendingAppointArbotrar(caseEvidenceDTO.getPendingAppointArbotrar());
|
caseApplication1.setPendingAppointArbotrar(caseEvidenceDTO.getPendingAppointArbotrar());
|
||||||
caseApplication1.setAdjudicaCounter(caseEvidenceDTO.getAdjudicaCounter());
|
caseApplication1.setAdjudicaCounter(caseEvidenceDTO.getAdjudicaCounter());
|
||||||
caseApplication1.setObjectiJuris(caseEvidenceDTO.getObjectiJuris());
|
caseApplication1.setObjectiJuris(caseEvidenceDTO.getObjectiJuris());
|
||||||
|
caseApplication1.setRespondentIsWrittenHear(caseEvidenceDTO.getRespondentIsWrittenHear());
|
||||||
List<Arbitrator> arbitrators = caseEvidenceDTO.getArbitrators();
|
List<Arbitrator> arbitrators = caseEvidenceDTO.getArbitrators();
|
||||||
if (arbitrators != null && arbitrators.size() > 0) {
|
if (arbitrators != null && arbitrators.size() > 0) {
|
||||||
List<Long> ids = arbitrators.stream().map(Arbitrator::getId).collect(Collectors.toList());
|
List<Long> ids = arbitrators.stream().map(Arbitrator::getId).collect(Collectors.toList());
|
||||||
|
|||||||
@@ -1155,6 +1155,7 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="objectionAddEviden != null">objection_add_eviden = #{objectionAddEviden},</if>
|
<if test="objectionAddEviden != null">objection_add_eviden = #{objectionAddEviden},</if>
|
||||||
<if test="openCourtHear != null">open_court_hear = #{openCourtHear},</if>
|
<if test="openCourtHear != null">open_court_hear = #{openCourtHear},</if>
|
||||||
|
<if test="respondentIsWrittenHear != null">respon_isWrit_hear = #{respondentIsWrittenHear},</if>
|
||||||
<if test="hearDate != null">hear_date = #{hearDate},</if>
|
<if test="hearDate != null">hear_date = #{hearDate},</if>
|
||||||
<if test="filearbitraUrl != null and filearbitraUrl != ''">filearbitra_url = #{filearbitraUrl},</if>
|
<if test="filearbitraUrl != null and filearbitraUrl != ''">filearbitra_url = #{filearbitraUrl},</if>
|
||||||
<if test="adjudicaCounterReason != null and adjudicaCounterReason != ''">adjudica_counter_reason =
|
<if test="adjudicaCounterReason != null and adjudicaCounterReason != ''">adjudica_counter_reason =
|
||||||
|
|||||||
Reference in New Issue
Block a user