组庭确认开发
This commit is contained in:
+12
-1
@@ -141,13 +141,24 @@ public class CaseApplicationController extends BaseController {
|
|||||||
* 组庭审核
|
* 组庭审核
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('caseApplication:pendTralCheck')")
|
@PreAuthorize("@ss.hasPermi('caseApplication:pendTralCheck')")
|
||||||
@Log(title = "组庭", businessType = BusinessType.UPDATE)
|
@Log(title = "组庭审核", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping("/pendTralCheck")
|
@PostMapping("/pendTralCheck")
|
||||||
public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication)
|
public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication)
|
||||||
{
|
{
|
||||||
return toAjax(caseApplicationService.pendTralCheck(caseApplication));
|
return toAjax(caseApplicationService.pendTralCheck(caseApplication));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组庭确认
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('caseApplication:pendTralSure')")
|
||||||
|
@Log(title = "组庭确认", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/pendTralSure")
|
||||||
|
public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication)
|
||||||
|
{
|
||||||
|
return toAjax(caseApplicationService.pendTralSure(caseApplication));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ package com.ruoyi.wisdomarbitrate.domain;
|
|||||||
|
|
||||||
import com.ruoyi.common.core.domain.BaseEntity;
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class Arbitrator extends BaseEntity {
|
public class Arbitrator extends BaseEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@@ -22,6 +24,16 @@ public class Arbitrator extends BaseEntity {
|
|||||||
/** 联系电话 */
|
/** 联系电话 */
|
||||||
private String telephone;
|
private String telephone;
|
||||||
|
|
||||||
|
List<Long> idList;
|
||||||
|
|
||||||
|
public List<Long> getIdList() {
|
||||||
|
return idList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdList(List<Long> idList) {
|
||||||
|
this.idList = idList;
|
||||||
|
}
|
||||||
|
|
||||||
public String getArbitratorName() {
|
public String getArbitratorName() {
|
||||||
return arbitratorName;
|
return arbitratorName;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,37 @@ public class CaseApplication extends BaseEntity {
|
|||||||
private int objectionAddEviden;
|
private int objectionAddEviden;
|
||||||
/** 是否需要开庭审理 */
|
/** 是否需要开庭审理 */
|
||||||
private int openCourtHear;
|
private int openCourtHear;
|
||||||
|
/** 案件状态名称 */
|
||||||
|
private String caseStatusName;
|
||||||
|
|
||||||
|
public String getCaseStatusName() {
|
||||||
|
return caseStatusName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCaseStatusName(String caseStatusName) {
|
||||||
|
this.caseStatusName = caseStatusName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 申请人名称 */
|
||||||
|
private String applicantName;
|
||||||
|
/** 被申请人名称 */
|
||||||
|
private String respondentName;
|
||||||
|
|
||||||
|
public String getApplicantName() {
|
||||||
|
return applicantName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApplicantName(String applicantName) {
|
||||||
|
this.applicantName = applicantName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRespondentName() {
|
||||||
|
return respondentName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRespondentName(String respondentName) {
|
||||||
|
this.respondentName = respondentName;
|
||||||
|
}
|
||||||
|
|
||||||
public int getObjectionAddEviden() {
|
public int getObjectionAddEviden() {
|
||||||
return objectionAddEviden;
|
return objectionAddEviden;
|
||||||
|
|||||||
+2
@@ -27,4 +27,6 @@ public interface ICaseApplicationService {
|
|||||||
int pendingAppointArbotrar(CaseApplication caseApplication);
|
int pendingAppointArbotrar(CaseApplication caseApplication);
|
||||||
|
|
||||||
int pendTralCheck(CaseApplication caseApplication);
|
int pendTralCheck(CaseApplication caseApplication);
|
||||||
|
|
||||||
|
int pendTralSure(CaseApplication caseApplication);
|
||||||
}
|
}
|
||||||
|
|||||||
+82
-5
@@ -2,11 +2,14 @@ package com.ruoyi.wisdomarbitrate.service.impl;
|
|||||||
|
|
||||||
import com.ruoyi.common.constant.CaseApplicationConstants;
|
import com.ruoyi.common.constant.CaseApplicationConstants;
|
||||||
import com.ruoyi.common.exception.ServiceException;
|
import com.ruoyi.common.exception.ServiceException;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import com.ruoyi.common.utils.SmsUtils;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
import com.ruoyi.common.utils.bean.BeanUtils;
|
import com.ruoyi.common.utils.bean.BeanUtils;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
|
import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
|
import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||||
|
import com.ruoyi.wisdomarbitrate.mapper.ArbitratorMapper;
|
||||||
import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper;
|
import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper;
|
||||||
import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
|
import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
|
||||||
import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
|
import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
|
||||||
@@ -15,10 +18,8 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.ArrayList;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Comparator;
|
import java.util.*;
|
||||||
import java.util.List;
|
|
||||||
import java.util.TreeSet;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static com.ruoyi.common.core.domain.AjaxResult.error;
|
import static com.ruoyi.common.core.domain.AjaxResult.error;
|
||||||
@@ -33,6 +34,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private CaseAffiliateMapper caseAffiliateMapper;
|
private CaseAffiliateMapper caseAffiliateMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ArbitratorMapper arbitratorMapper;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication) {
|
public List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication) {
|
||||||
@@ -99,7 +103,20 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||||
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
||||||
List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
|
List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
|
||||||
if(caseApplicationselect!=null){
|
if(caseAffiliatListeselect!=null){
|
||||||
|
StringBuffer applicantName = new StringBuffer();
|
||||||
|
StringBuffer respondentName = new StringBuffer();
|
||||||
|
for (int i = 0; i < caseAffiliatListeselect.size(); i++){
|
||||||
|
CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(i);
|
||||||
|
int identityType = caseAffiliateselect.getIdentityType();
|
||||||
|
if(identityType==1){
|
||||||
|
applicantName.append(caseAffiliateselect.getName()).append(",");;
|
||||||
|
}else if(identityType==2){
|
||||||
|
respondentName.append(caseAffiliateselect.getName()).append(",");;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
caseApplicationselect.setApplicantName(applicantName.toString());
|
||||||
|
caseApplicationselect.setRespondentName(respondentName.toString());
|
||||||
caseApplicationselect.setCaseAffiliates(caseAffiliatListeselect);
|
caseApplicationselect.setCaseAffiliates(caseAffiliatListeselect);
|
||||||
}
|
}
|
||||||
return caseApplicationselect;
|
return caseApplicationselect;
|
||||||
@@ -231,6 +248,66 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
return rows;
|
return rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public int pendTralSure(CaseApplication caseApplication) {
|
||||||
|
caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
|
||||||
|
int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||||
|
|
||||||
|
//发送短信通知
|
||||||
|
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
||||||
|
request.setTemplateId("1931000");
|
||||||
|
|
||||||
|
CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
|
||||||
|
String caseNum = caseApplicationselect.getCaseNum();
|
||||||
|
Date hearDate = caseApplicationselect.getHearDate();
|
||||||
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||||
|
String hearDatestr = dateFormat.format(hearDate);
|
||||||
|
|
||||||
|
String arbitratorId = caseApplicationselect.getArbitratorId();
|
||||||
|
List<Arbitrator> arbitratorList = new ArrayList<>();
|
||||||
|
if(StringUtils.isNotEmpty(arbitratorId)){
|
||||||
|
String[] idStrList = arbitratorId.split(",");
|
||||||
|
List<Long> idList = new ArrayList<>();
|
||||||
|
for(int i = 0;i < idStrList.length;i ++ ){
|
||||||
|
idList.add(Long.parseLong(idStrList[i]));
|
||||||
|
}
|
||||||
|
Arbitrator arbitrator = new Arbitrator();
|
||||||
|
arbitrator.setIdList(idList);
|
||||||
|
arbitratorList = arbitratorMapper.selectArbitratorList(arbitrator);
|
||||||
|
if(arbitratorList!=null) {
|
||||||
|
for (int i = 0; i < arbitratorList.size(); i++) {
|
||||||
|
Arbitrator arbitratorselect = arbitratorList.get(i);
|
||||||
|
//给仲裁员发送短信通知
|
||||||
|
request.setPhone(arbitratorselect.getTelephone());
|
||||||
|
// 1931000 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
||||||
|
String name = arbitratorselect.getArbitratorName();
|
||||||
|
request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
|
||||||
|
SmsUtils.sendSms(request);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||||
|
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
||||||
|
List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
|
||||||
|
if(caseAffiliatListeselect!=null) {
|
||||||
|
for (int j = 0; j < caseAffiliatListeselect.size(); j++) {
|
||||||
|
CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(j);
|
||||||
|
int identityType = caseAffiliateselect.getIdentityType();
|
||||||
|
//给申请人、被申请人发送短信通知
|
||||||
|
request.setPhone(caseAffiliateselect.getContactTelphone());
|
||||||
|
// 1931000 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
||||||
|
String name = caseAffiliateselect.getName();
|
||||||
|
request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
|
||||||
|
SmsUtils.sendSms(request);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return rows;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public int pendingAppointArbotrar(CaseApplication caseApplication) {
|
public int pendingAppointArbotrar(CaseApplication caseApplication) {
|
||||||
|
|||||||
@@ -26,6 +26,14 @@
|
|||||||
<if test="arbitratorName != null and arbitratorName != ''">
|
<if test="arbitratorName != null and arbitratorName != ''">
|
||||||
AND a.arbitrator_name like concat('%', #{arbitratorName}, '%')
|
AND a.arbitrator_name like concat('%', #{arbitratorName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<if test="idList != null and idList.size() > 0">
|
||||||
|
AND a.id in
|
||||||
|
<foreach item="id" collection="idList" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<result property="beginVideoDate" column="begin_video_date" />
|
<result property="beginVideoDate" column="begin_video_date" />
|
||||||
<result property="onlineVideoPerson" column="online_video_person" />
|
<result property="onlineVideoPerson" column="online_video_person" />
|
||||||
<result property="contractNumber" column="contract_number" />
|
<result property="contractNumber" column="contract_number" />
|
||||||
|
<result property="caseStatusName" column="caseStatusName" />
|
||||||
<result property="createBy" column="create_by" />
|
<result property="createBy" column="create_by" />
|
||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="updateBy" column="update_by" />
|
<result property="updateBy" column="update_by" />
|
||||||
@@ -34,7 +34,16 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
<select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
||||||
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,c.hear_date ,c.arbitrat_claims ,
|
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,
|
||||||
|
CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
|
||||||
|
when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
|
||||||
|
when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
|
||||||
|
when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
|
||||||
|
when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
|
||||||
|
when 15 then '待仲裁文书送达' when 16 then '待案件归档'
|
||||||
|
ELSE '无案件状态'
|
||||||
|
END caseStatusName,
|
||||||
|
c.hear_date ,c.arbitrat_claims ,
|
||||||
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
|
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
|
||||||
c.paid_expenses ,c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
|
c.paid_expenses ,c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
|
||||||
c.update_by ,c.update_time
|
c.update_by ,c.update_time
|
||||||
@@ -152,6 +161,7 @@
|
|||||||
<if test="isAgreePendTral != null">is_agree_pend_tral = #{isAgreePendTral},</if>
|
<if test="isAgreePendTral != null">is_agree_pend_tral = #{isAgreePendTral},</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="hearDate != null">hear_date = #{hearDate},</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
Reference in New Issue
Block a user