Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Arbitrate-Backend into qtz3
This commit is contained in:
@@ -680,7 +680,7 @@ public class CaseApplication extends BaseEntity {
|
||||
@Excel(name = "被申请人主体信息-身份证号",width = 26)
|
||||
private String debtorIdentityNum;
|
||||
/** 被申请人主体信息-性别 */
|
||||
@Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,女=1")
|
||||
@Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,1=女")
|
||||
private String responSex;
|
||||
|
||||
public Date getResponBirth() {
|
||||
|
||||
+14
-5
@@ -102,13 +102,17 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
||||
} else if (identityType == 2) { //被申请人
|
||||
datas.put("resName", affiliate.getName());
|
||||
datas.put("resAddress", affiliate.getResidenAffili());
|
||||
datas.put("resSex", affiliate.getResponSex());
|
||||
String responSex = affiliate.getResponSex();
|
||||
if (responSex.equals("0")){
|
||||
datas.put("resSex","男");
|
||||
}else{
|
||||
datas.put("resSex","女");
|
||||
}
|
||||
Date responBirth = affiliate.getResponBirth();
|
||||
if (responBirth != null) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
String responBirthStr = sdf.format(responBirth);
|
||||
datas.put("resDateOfBirth", responBirthStr);
|
||||
|
||||
}
|
||||
datas.put("resContactAddress", affiliate.getContactAddress());
|
||||
nameAgentList.add(affiliate.getNameAgent());
|
||||
@@ -253,7 +257,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
||||
//申请人证据材料
|
||||
datas.put("appEvidenceMaterial", null);
|
||||
//被申请人证据材料
|
||||
datas.put("resEvidenceMaterial", null);
|
||||
datas.put("resEvidenceMaterial","(详见附件列表)");
|
||||
datas.put("applicaCrossOpin", caseApplication1.getApplicaCrossOpin());
|
||||
if (arbitrateRecord1 != null) {
|
||||
datas.put("factDetermi", arbitrateRecord1.getFactDetermi());
|
||||
@@ -647,7 +651,12 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
||||
} else if (identityType == 2) { //被申请人
|
||||
datas.put("resName", affiliate.getName());
|
||||
datas.put("resAddress", affiliate.getResidenAffili());
|
||||
datas.put("resSex", affiliate.getResponSex());
|
||||
String responSex = affiliate.getResponSex();
|
||||
if (responSex.equals("0")){
|
||||
datas.put("resSex","男");
|
||||
}else{
|
||||
datas.put("resSex","女");
|
||||
}
|
||||
Date responBirth = affiliate.getResponBirth();
|
||||
if (responBirth != null) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
@@ -798,7 +807,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
||||
//申请人证据材料
|
||||
datas.put("appEvidenceMaterial", null);
|
||||
//被申请人证据材料
|
||||
datas.put("resEvidenceMaterial", null);
|
||||
datas.put("resEvidenceMaterial","(详见附件列表)");
|
||||
datas.put("applicaCrossOpin", caseApplication1.getApplicaCrossOpin());
|
||||
if (arbitrateRecord1 != null) {
|
||||
datas.put("factDetermi", arbitrateRecord1.getFactDetermi());
|
||||
|
||||
+31
-12
@@ -115,6 +115,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
Long userId = user.getUserId();
|
||||
// 查询登录人身份证号
|
||||
SysUser sysUser = sysUserMapper.selectUserById(userId);
|
||||
startPage();
|
||||
// 已办案件
|
||||
if(caseApplication.getSelectCaseStatus().equals("1")){
|
||||
caseApplication.setLoginUserName(sysUser.getUserName());
|
||||
@@ -125,7 +126,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
if (CollectionUtil.isEmpty(roles)) {
|
||||
throw new ServiceException("该用户没有角色权限");
|
||||
}
|
||||
startPage();
|
||||
|
||||
for (SysRole role : roles) {
|
||||
// 超级管理员和仲裁委(部门长)案件,可查看所有案件 √
|
||||
if (role.getRoleName().equals("超级管理员")
|
||||
@@ -136,7 +137,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|| role.getRoleName().equals("部门长")) {
|
||||
List<Integer> caseStatusList = new ArrayList<>();
|
||||
caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
||||
caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
|
||||
caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
||||
caseApplication.setDeptHeadStatus(caseStatusList);
|
||||
}
|
||||
@@ -196,7 +196,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
||role.getRoleName().equals("部门长")){
|
||||
|
||||
caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
||||
caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
|
||||
caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
||||
caseApplication.setDeptHeadStatus(caseStatusList);
|
||||
}
|
||||
@@ -258,7 +257,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
// caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR);
|
||||
caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
|
||||
int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
//1975139 修改开庭时间通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已改为{3},请知晓,如非本人操作,请忽略本短信
|
||||
//发送短信通知
|
||||
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
||||
request.setTemplateId("1975139");
|
||||
|
||||
// 发送开庭日期通知短信
|
||||
sendHearDateMessage(caseApplication,request,"1975139");
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.CHECK_ARBITRATION_METHOD,"");
|
||||
return rows;
|
||||
@@ -2136,16 +2141,30 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
}
|
||||
|
||||
//发送短信通知
|
||||
//发送短信通知 1947342 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
||||
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
||||
request.setTemplateId("1947342");
|
||||
// 发送开庭日期通知短信
|
||||
sendHearDateMessage(caseApplication,request,"1947342");
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.MODIFY_HEARDATE,"");
|
||||
|
||||
return rows;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送开庭日期通知短信
|
||||
* @param caseApplication
|
||||
* @param request
|
||||
*/
|
||||
private void sendHearDateMessage(CaseApplication caseApplication, SmsUtils.SendSmsRequest request,String templateId) {
|
||||
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)){
|
||||
@@ -2170,7 +2189,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
smsSendRecord.setCaseNum(caseApplicationselect.getCaseNum());
|
||||
smsSendRecord.setPhone(request.getPhone());
|
||||
smsSendRecord.setSendTime(new Date());
|
||||
String content="尊敬的"+name+"用户,您的"+caseNum+"仲裁案件,开庭日期已确定为"+hearDatestr+",请知晓,如非本人操作,请忽略本短信。";
|
||||
String content="";
|
||||
if(templateId.equals("1947342")) {
|
||||
content = "尊敬的" + name + "用户,您的" + caseNum + "仲裁案件,开庭日期已确定为" + hearDatestr + ",请知晓,如非本人操作,请忽略本短信。";
|
||||
}
|
||||
if(templateId.equals("1975139")) {
|
||||
content = "尊敬的" + name + "用户,您的" + caseNum + "仲裁案件,开庭日期已改为" + hearDatestr + ",请知晓,如非本人操作,请忽略本短信。";
|
||||
}
|
||||
smsSendRecord.setSendContent(content);
|
||||
smsSendRecord.setCreateBy(getUsername());
|
||||
smsRecordMapper.saveSmsSendRecord(smsSendRecord);
|
||||
@@ -2212,15 +2237,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
}
|
||||
}
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.MODIFY_HEARDATE,"");
|
||||
|
||||
return rows;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public int pendingAppointArbotrar(CaseApplication caseApplication) {
|
||||
|
||||
@@ -82,12 +82,7 @@
|
||||
<if test="loginUserName != null and loginUserName != ''">
|
||||
AND r.create_by=#{loginUserName} AND ca.identity_type=1
|
||||
</if>
|
||||
<if test="caseStatusList != null and caseStatusList.size() > 0">
|
||||
and r.case_node in
|
||||
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
</where>
|
||||
order by c.create_time desc,c.case_num desc
|
||||
</select>
|
||||
@@ -150,7 +145,7 @@
|
||||
<!--仲裁员-->
|
||||
<if test="userId != null and userId != ''">
|
||||
or ( t.identity_type=1 and
|
||||
t.case_status in (7,8,9,12,13,14,17)
|
||||
t.case_status in (7,8,9,12,13,17)
|
||||
and
|
||||
instr (t.arbitrator_id,#{userId})>0)
|
||||
</if>
|
||||
@@ -238,7 +233,7 @@
|
||||
<!--仲裁员-->
|
||||
<if test="userId != null and userId != ''">
|
||||
or ( t.identity_type=1 and
|
||||
t.case_status in (7,8,9,12,13,14,17)
|
||||
t.case_status in (7,8,9,12,13,17)
|
||||
and
|
||||
instr (t.arbitrator_id,#{userId})>0)
|
||||
</if>
|
||||
@@ -600,7 +595,7 @@ order by c.create_time desc limit 1
|
||||
CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
|
||||
from case_application c left join case_payment_record p on c.id = p.case_id
|
||||
where c.case_status = 3
|
||||
AND c.id = #{id}
|
||||
AND c.id = #{id} and p.payment_status=1
|
||||
|
||||
</select>
|
||||
<select id="selectCaseNumLike" resultType="java.lang.Integer">
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
cl.create_by createBy,cl.create_nick_name createNickName,cl.create_time createTime,cl.update_by updateBy,cl.update_time updateTime,
|
||||
CASE cl.case_node 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 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 '送达仲裁文书' when 17 then '案件归档'
|
||||
when 26 then '证据确认成功'
|
||||
|
||||
Reference in New Issue
Block a user