修改申请
This commit is contained in:
@@ -148,4 +148,12 @@ public interface SysUserMapper
|
||||
* @return
|
||||
*/
|
||||
SysUser selectUserByIdCard(@Param("idCard")String identityNo);
|
||||
|
||||
/**
|
||||
* 根据部门和角色查询用户
|
||||
* @param applicationOrganId
|
||||
* @param roleName
|
||||
* @return
|
||||
*/
|
||||
List<SysUser> selectByDeptIdAndRole(@Param("deptId")String applicationOrganId, @Param("roleName")String roleName);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,10 @@ public class CaseAffiliate extends BaseEntity {
|
||||
private Long id;
|
||||
/** 案件申请id */
|
||||
private Long caseAppliId;
|
||||
/**
|
||||
* 案件申请日志id
|
||||
*/
|
||||
private Long caseAppliLogId;
|
||||
/** 身份类型 */
|
||||
private int identityType;
|
||||
/** 姓名 */
|
||||
@@ -48,6 +52,26 @@ public class CaseAffiliate extends BaseEntity {
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date responBirth;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private Integer version;
|
||||
|
||||
public Long getCaseAppliLogId() {
|
||||
return caseAppliLogId;
|
||||
}
|
||||
|
||||
public void setCaseAppliLogId(Long caseAppliLogId) {
|
||||
this.caseAppliLogId = caseAppliLogId;
|
||||
}
|
||||
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
|
||||
@@ -73,6 +73,16 @@ public class CaseApplication extends BaseEntity {
|
||||
|
||||
/** 案件状态 */
|
||||
private Integer caseStatus;
|
||||
/** 案件申请表ID */
|
||||
private Long caseAppliId;
|
||||
|
||||
public Long getCaseAppliId() {
|
||||
return caseAppliId;
|
||||
}
|
||||
|
||||
public void setCaseAppliId(Long caseAppliId) {
|
||||
this.caseAppliId = caseAppliId;
|
||||
}
|
||||
|
||||
public Integer getCaseStatus() {
|
||||
return caseStatus;
|
||||
@@ -402,6 +412,30 @@ public class CaseApplication extends BaseEntity {
|
||||
* 财务状态
|
||||
*/
|
||||
private Integer financeStatus;
|
||||
/**
|
||||
* 是否是被申请人,仲裁员,部门长,财务,代理人,0-否,1-是
|
||||
*/
|
||||
private Integer isOtherRole;
|
||||
/**
|
||||
* 案件日志id
|
||||
*/
|
||||
private Long caseLogId;
|
||||
|
||||
public Long getCaseLogId() {
|
||||
return caseLogId;
|
||||
}
|
||||
|
||||
public void setCaseLogId(Long caseLogId) {
|
||||
this.caseLogId = caseLogId;
|
||||
}
|
||||
|
||||
public Integer getIsOtherRole() {
|
||||
return isOtherRole;
|
||||
}
|
||||
|
||||
public void setIsOtherRole(Integer isOtherRole) {
|
||||
this.isOtherRole = isOtherRole;
|
||||
}
|
||||
|
||||
public List<Long> getAgentDeptIds() {
|
||||
return agentDeptIds;
|
||||
@@ -775,6 +809,30 @@ public class CaseApplication extends BaseEntity {
|
||||
* 申请机构id
|
||||
*/
|
||||
private String applicationOrganId;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private Integer version;
|
||||
/**
|
||||
* 修改案件的提交状态,0-未提交,1-已提交,2-同意,3-拒绝,4-撤销
|
||||
*/
|
||||
private Integer updateSubmitStatus;
|
||||
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Integer getUpdateSubmitStatus() {
|
||||
return updateSubmitStatus;
|
||||
}
|
||||
|
||||
public void setUpdateSubmitStatus(Integer updateSubmitStatus) {
|
||||
this.updateSubmitStatus = updateSubmitStatus;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
|
||||
+255
@@ -0,0 +1,255 @@
|
||||
package com.ruoyi.wisdomarbitrate.domain.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangqiong
|
||||
* @description 案件日志
|
||||
* @date 2023-11-17 14:01
|
||||
*/
|
||||
@Data
|
||||
public class CaseApplicationLogDTO {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 案件编号
|
||||
*/
|
||||
private String caseNum;
|
||||
|
||||
/**
|
||||
* 案件标的
|
||||
*/
|
||||
private Double caseSubjectAmount;
|
||||
|
||||
/**
|
||||
* 立案日期
|
||||
*/
|
||||
private Date registerDate;
|
||||
|
||||
/**
|
||||
* 仲裁方式,视频仲裁(1)、书面仲裁(2)
|
||||
*/
|
||||
private Long arbitratMethod;
|
||||
|
||||
/**
|
||||
* 案件状态,立案申请(0)、待立案审查(1)、 待缴费(2)、待缴费确认(3)、 待案件质证(4)、
|
||||
*/
|
||||
private Integer caseStatus;
|
||||
|
||||
/**
|
||||
* 开庭日期
|
||||
*/
|
||||
private Date hearDate;
|
||||
|
||||
/**
|
||||
* 申请人仲裁请求及事实和理由
|
||||
*/
|
||||
private String arbitratClaims;
|
||||
|
||||
/**
|
||||
* 借款开始日期
|
||||
*/
|
||||
private Date loanStartDate;
|
||||
|
||||
/**
|
||||
* 借款结束日期
|
||||
*/
|
||||
private Date loanEndDate;
|
||||
|
||||
/**
|
||||
* 申请人主张欠本金
|
||||
*/
|
||||
private Double claimPrinciOwed;
|
||||
|
||||
/**
|
||||
* 申请人主张欠利息
|
||||
*/
|
||||
private Double claimInterestOwed;
|
||||
|
||||
/**
|
||||
* 申请人主张违约金
|
||||
*/
|
||||
private Double claimLiquidDamag;
|
||||
|
||||
/**
|
||||
* 仲裁应缴费用
|
||||
*/
|
||||
private Double feePayable;
|
||||
|
||||
/**
|
||||
* 开始在线视频时间
|
||||
*/
|
||||
private Date beginVideoDate;
|
||||
|
||||
/**
|
||||
* 在线视频人员
|
||||
*/
|
||||
private String onlineVideoPerson;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
private String contractNumber;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 仲裁员id
|
||||
*/
|
||||
private String arbitratorId;
|
||||
|
||||
/**
|
||||
* 仲裁员名称
|
||||
*/
|
||||
private String arbitratorName;
|
||||
|
||||
/**
|
||||
* 已确认组庭的仲裁员id
|
||||
*/
|
||||
private String pendedTrialArbitorid;
|
||||
|
||||
/**
|
||||
* 是否指派仲裁员,1是,2否
|
||||
*/
|
||||
private Integer pendingAppointArbotrar;
|
||||
|
||||
/**
|
||||
* 案件名称
|
||||
*/
|
||||
private String caseName;
|
||||
|
||||
/**
|
||||
* 案件描述
|
||||
*/
|
||||
private String caseDescribe;
|
||||
|
||||
/**
|
||||
* 仲裁结果
|
||||
*/
|
||||
private String caseResult;
|
||||
|
||||
/**
|
||||
* 是否同意组庭,0否,1是
|
||||
*/
|
||||
private Integer isAgreePendTral;
|
||||
|
||||
/**
|
||||
* 是否有异议需要举证,1是,0否
|
||||
*/
|
||||
private Integer objectionAddEviden;
|
||||
|
||||
/**
|
||||
* 是否需要开庭审理,1是,0否
|
||||
*/
|
||||
private Integer openCourtHear;
|
||||
|
||||
/**
|
||||
* paid_expenses
|
||||
*/
|
||||
private Double paidExpenses;
|
||||
|
||||
/**
|
||||
* 裁决书URL
|
||||
*/
|
||||
private String filearbitraUrl;
|
||||
|
||||
/**
|
||||
* 支付方式(0线上支付,1线下支付)
|
||||
*/
|
||||
private String payType;
|
||||
|
||||
/**
|
||||
* 申请人请求仲裁庭裁决
|
||||
*/
|
||||
private String requestRule;
|
||||
|
||||
/**
|
||||
* 是否仲裁反请求,1是,0否
|
||||
*/
|
||||
private Integer adjudicaCounter;
|
||||
|
||||
/**
|
||||
* 是否财产保全申请,1是,0否
|
||||
*/
|
||||
private Integer properPreser;
|
||||
|
||||
/**
|
||||
* 是否管辖异议申请,1是,0否
|
||||
*/
|
||||
private Integer objectiJuris;
|
||||
|
||||
/**
|
||||
* 被申请人是否缺席,1是,0否
|
||||
*/
|
||||
private Integer isAbsence;
|
||||
|
||||
/**
|
||||
* 被申请人质证意见
|
||||
*/
|
||||
private String responCrossOpin;
|
||||
|
||||
/**
|
||||
* 申请人质证意见
|
||||
*/
|
||||
private String applicaCrossOpin;
|
||||
|
||||
/**
|
||||
* 被申请人的答辩意见
|
||||
*/
|
||||
private String responDefenOpini;
|
||||
|
||||
/**
|
||||
* 申请人是否缺席,1是,0否
|
||||
*/
|
||||
private Integer appliIsAbsen;
|
||||
|
||||
/**
|
||||
* 是否锁定,0-否,1-是
|
||||
*/
|
||||
private Integer lockStatus;
|
||||
|
||||
/**
|
||||
* 视频会议房间号id,多个用逗号拼接
|
||||
*/
|
||||
private String roomId;
|
||||
|
||||
/**
|
||||
* 是否导入,0手动录入,1导入,默认0
|
||||
*/
|
||||
private Integer importFlag;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private Long version;
|
||||
|
||||
/**
|
||||
* 修改案件的提交状态,0-未提交,1-已提交,2-同意,3,拒绝
|
||||
*/
|
||||
private Integer updateSubmitStatus;
|
||||
}
|
||||
@@ -10,24 +10,24 @@ import lombok.Data;
|
||||
@Data
|
||||
public class ToDoCount {
|
||||
|
||||
private int caseApply; // 立案申请
|
||||
private int caseApplyCheck; // 待立案审查
|
||||
private int caseApplyPay; // 待缴费
|
||||
private int caseApplyPayCheck; // 待缴费确认
|
||||
private int caseApplyEvidence; //待案件质证
|
||||
private int caseApplyGroupCheck; // 待组庭审核
|
||||
private int caseApplyGroupConfirm; // 待组庭确定
|
||||
private int caseApply=0; // 立案申请
|
||||
private int caseApplyCheck=0; // 待立案审查
|
||||
private int caseApplyPay=0; // 待缴费
|
||||
private int caseApplyPayCheck=0; // 待缴费确认
|
||||
private int caseApplyEvidence=0; //待案件质证
|
||||
private int caseApplyGroupCheck=0; // 待组庭审核
|
||||
private int caseApplyGroupConfirm=0; // 待组庭确定
|
||||
// private int caseApplyGroupNotice;
|
||||
private int caseApplyArbitrateWay; // 待审核仲裁方式
|
||||
private int caseApplyGroupOnline; // 待开庭审理
|
||||
private int caseApplyGroupOffline; // 待书面审理
|
||||
private int caseApplyAward; // 待生成仲裁文书
|
||||
private int caseApplyAwardCheck; // 待核验仲裁文书
|
||||
private int caseApplyAwardConfirm; // 待审核仲裁文书
|
||||
private int caseApplyAwardSign; // 待仲裁文书签名
|
||||
private int caseApplyAwardSeal; // 待仲裁文书用印
|
||||
private int caseApplyAwardSend; // 待仲裁文书送达
|
||||
private int caseApplyStored; // 待案件归档
|
||||
private int caseApplyArchived; // 已归档
|
||||
private int updateOnlineHearDate; // 待修改开庭时间
|
||||
private int caseApplyArbitrateWay=0; // 待审核仲裁方式
|
||||
private int caseApplyGroupOnline=0; // 待开庭审理
|
||||
private int caseApplyGroupOffline=0; // 待书面审理
|
||||
private int caseApplyAward=0; // 待生成仲裁文书
|
||||
private int caseApplyAwardCheck=0; // 待核验仲裁文书
|
||||
private int caseApplyAwardConfirm=0; // 待审核仲裁文书
|
||||
private int caseApplyAwardSign=0; // 待仲裁文书签名
|
||||
private int caseApplyAwardSeal=0; // 待仲裁文书用印
|
||||
private int caseApplyAwardSend=0; // 待仲裁文书送达
|
||||
private int caseApplyStored=0; // 待案件归档
|
||||
private int caseApplyArchived=0; // 已归档
|
||||
private int updateOnlineHearDate=0; // 待修改开庭时间
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.ruoyi.wisdomarbitrate.domain.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 修改案件提交至秘书
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class UpdateSubmitVO {
|
||||
/**
|
||||
* 案件id
|
||||
*/
|
||||
private Long caseId;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private Integer version;
|
||||
/**
|
||||
* 修改案件的提交状态,0-未提交,1-已提交,2-同意已修改的案件,3-拒绝已修改的案件,4-撤销,5-同意撤销,6-拒绝撤销
|
||||
*/
|
||||
private Integer updateSubmitStatus;
|
||||
/**
|
||||
* 是否同意,0-否,1-是
|
||||
*/
|
||||
private Integer isAgree;
|
||||
|
||||
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.ruoyi.wisdomarbitrate.mapper;
|
||||
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
@Repository
|
||||
public interface CaseAffiliateLogMapper {
|
||||
|
||||
|
||||
int batchCaseAffiliate(List<CaseAffiliate> caseAffiliates);
|
||||
|
||||
|
||||
void deletecaseAffiliate(CaseApplication caseApplication);
|
||||
void batchDeletecaseAffiliate(@Param("ids") List<Long> ids);
|
||||
|
||||
|
||||
List<CaseAffiliate> selectCaseAffiliate(CaseAffiliate caseAffiliate);
|
||||
CaseAffiliate selectCaseAffiliateByIdentityType(@Param("caseAppliLogId") Long caseAppliLogId, @Param("identityType")int identityType);
|
||||
|
||||
int updataCaseAffiliate(CaseAffiliate caseAffiliate);
|
||||
|
||||
}
|
||||
@@ -29,4 +29,10 @@ public interface CaseAffiliateMapper {
|
||||
* @return
|
||||
*/
|
||||
List<CaseAffiliate> emailByCaseId(@Param("caseAppliId")Long id);
|
||||
|
||||
/**
|
||||
* 批量修改
|
||||
* @param affiliateLogList
|
||||
*/
|
||||
void updataCaseAffiliateByCaseId(@Param("caseAppliId")Long caseAppliId,@Param("list") List<CaseAffiliate> affiliateLogList);
|
||||
}
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.ruoyi.wisdomarbitrate.mapper;
|
||||
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangqiong
|
||||
* @description 案件日志
|
||||
* @date 2023-11-17 14:05
|
||||
*/
|
||||
@Repository
|
||||
public interface CaseApplicationLogMapper {
|
||||
int insert(CaseApplication caseApplicationLog);
|
||||
|
||||
int deleteById(Long id);
|
||||
|
||||
|
||||
|
||||
CaseApplication selectByCaseIdAndVersion(@Param("caseAppliId")long caseAppliId,@Param("version") int version);
|
||||
|
||||
Integer selectMaxVersionByCaseId(@Param("caseAppliId")long caseAppliId);
|
||||
|
||||
/**
|
||||
* 修改日志表状态
|
||||
* @param vo
|
||||
*/
|
||||
void updateStatus(UpdateSubmitVO vo);
|
||||
|
||||
/**
|
||||
* 根据案件id查询秘书角色最新版本号
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
Integer selectMaxVersionBySecret(@Param("caseAppliId")Long id);
|
||||
|
||||
/**
|
||||
* 根据案件id删除案件记录表和案件关联人日志表
|
||||
* @param ids
|
||||
*/
|
||||
void batchDeleteLog(@Param("ids") List<Long> ids);
|
||||
|
||||
}
|
||||
+22
@@ -12,6 +12,7 @@ import java.util.List;
|
||||
|
||||
public interface CaseApplicationMapper {
|
||||
List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication);
|
||||
List<CaseApplication> selectCaseApplicationList1(CaseApplication caseApplication);
|
||||
|
||||
int selectCaseApplicationCount(CaseApplication caseApplication);
|
||||
|
||||
@@ -109,4 +110,25 @@ public interface CaseApplicationMapper {
|
||||
* @return
|
||||
*/
|
||||
Integer selectMaxRoomId();
|
||||
|
||||
/**
|
||||
* 修改案件版本号
|
||||
* @param id
|
||||
* @param version
|
||||
*/
|
||||
void updateVersionById(@Param("id")Long id, @Param("version")Integer version);
|
||||
|
||||
/**
|
||||
* 查询秘书案件
|
||||
* @param caseApplication
|
||||
* @return
|
||||
*/
|
||||
List<CaseApplication> selectSecretaryCase(CaseApplication caseApplication);
|
||||
|
||||
/**
|
||||
* 查询申请人案件
|
||||
* @param caseApplication
|
||||
* @return
|
||||
*/
|
||||
List<CaseApplication> selectApplicationCase(CaseApplication caseApplication);
|
||||
}
|
||||
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
package com.ruoyi.wisdomarbitrate.service;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
|
||||
|
||||
/**
|
||||
* @author wangqiong
|
||||
* @description 案件日志
|
||||
* @date 2023-11-17 13:58
|
||||
*/
|
||||
public interface CaseApplicationLogService {
|
||||
/**
|
||||
* 新增案件日志
|
||||
* @param caseApplicationLog
|
||||
* @return
|
||||
*/
|
||||
int insert(CaseApplication caseApplicationLog);
|
||||
|
||||
/**
|
||||
* 根据案件日志id删除案件日志
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
int delete(Long id);
|
||||
|
||||
/**
|
||||
* 根据案件id和版本号查询案件日志
|
||||
* @param id
|
||||
* @param version
|
||||
* @return
|
||||
*/
|
||||
CaseApplication selectByCaseIdAndVersion(Long id, int version);
|
||||
|
||||
/**
|
||||
* 修改的案件提交到秘书
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
AjaxResult submit(UpdateSubmitVO vo);
|
||||
|
||||
/**
|
||||
* 修改撤销申请
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
AjaxResult revoke(UpdateSubmitVO vo);
|
||||
|
||||
/**
|
||||
* 秘书审核修改的案件
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
AjaxResult updateAudit(UpdateSubmitVO vo);
|
||||
|
||||
|
||||
}
|
||||
+1
-1
@@ -21,7 +21,7 @@ public interface ICaseApplicationService {
|
||||
|
||||
int selectCaseApplicationCount(CaseApplication caseApplication);
|
||||
|
||||
int editCaseApplication(CaseApplication caseApplication);
|
||||
AjaxResult editCaseApplication(CaseApplication caseApplication);
|
||||
|
||||
int submitCaseApplication( List<Long> ids);
|
||||
|
||||
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
package com.ruoyi.wisdomarbitrate.service.impl;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.UpdateSubmitStatus;
|
||||
import com.ruoyi.common.enums.YesOrNoEnum;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
|
||||
import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateLogMapper;
|
||||
import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper;
|
||||
import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationLogMapper;
|
||||
import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
|
||||
import com.ruoyi.wisdomarbitrate.service.CaseApplicationLogService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author wangqiong
|
||||
* @description 案件日志
|
||||
* @date 2023-11-17 14:05
|
||||
*/
|
||||
@Service
|
||||
public class CaseApplicationLogServiceImpl implements CaseApplicationLogService {
|
||||
@Autowired
|
||||
private CaseApplicationLogMapper caseApplicationLogMapper;
|
||||
@Autowired
|
||||
private CaseApplicationMapper caseApplicationMapper;
|
||||
@Autowired
|
||||
private CaseAffiliateLogMapper caseAffiliateLogMapper;
|
||||
@Autowired
|
||||
private CaseAffiliateMapper caseAffiliateMapper;
|
||||
@Override
|
||||
public int insert(CaseApplication caseApplicationLog) {
|
||||
return caseApplicationLogMapper.insert(caseApplicationLog);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delete(Long id) {
|
||||
return caseApplicationLogMapper.deleteById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public CaseApplication selectByCaseIdAndVersion(Long id, int version) {
|
||||
return caseApplicationLogMapper.selectByCaseIdAndVersion(id,version);
|
||||
}
|
||||
/**
|
||||
* 修改的案件提交到秘书
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public AjaxResult submit(UpdateSubmitVO vo) {
|
||||
vo.setUpdateSubmitStatus(UpdateSubmitStatus.COMMITTED.getCode());
|
||||
// 修改日志表提交状态
|
||||
caseApplicationLogMapper.updateStatus(vo);
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult revoke(UpdateSubmitVO vo) {
|
||||
vo.setUpdateSubmitStatus(UpdateSubmitStatus.REVOKE.getCode());
|
||||
// 修改日志表提交状态
|
||||
caseApplicationLogMapper.updateStatus(vo);
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 秘书审核修改的案件
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Transactional
|
||||
@Override
|
||||
public AjaxResult updateAudit(UpdateSubmitVO vo) {
|
||||
if (Objects.equals(vo.getUpdateSubmitStatus(), UpdateSubmitStatus.COMMITTED.getCode())) {
|
||||
// 审核修改提交状态
|
||||
if (Objects.equals(vo.getIsAgree(), YesOrNoEnum.YES.getCode())) {
|
||||
// 如果版本号为1,则直接返回
|
||||
if(vo.getVersion() <= 1){
|
||||
return AjaxResult.success();
|
||||
}
|
||||
// 同意,查询日志记录表本版本数据,将数据更新到主表,并将日志表改版本的状态改为同意
|
||||
// 查询日志记录表本版本数据
|
||||
CaseApplication caseApplicationLog = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion());
|
||||
if (caseApplicationLog == null) {
|
||||
return AjaxResult.error("未找到该案件");
|
||||
}
|
||||
// 将日志表改版本的状态改为同意
|
||||
vo.setUpdateSubmitStatus(UpdateSubmitStatus.AGREE.getCode());
|
||||
caseApplicationLogMapper.updateStatus(vo);
|
||||
// 根据caseLogId查询相关人员表
|
||||
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||
caseAffiliate.setCaseAppliLogId(caseApplicationLog.getCaseLogId());
|
||||
List<CaseAffiliate> affiliateLogList = caseAffiliateLogMapper.selectCaseAffiliate(caseAffiliate);
|
||||
caseApplicationLog.setId(caseApplicationLog.getCaseAppliId());
|
||||
// 更新案件主表
|
||||
caseApplicationMapper.updataCaseApplication(caseApplicationLog);
|
||||
|
||||
// 更新相关人员主表
|
||||
caseAffiliateMapper.updataCaseAffiliateByCaseId(caseApplicationLog.getCaseAppliId(), affiliateLogList);
|
||||
} else {
|
||||
// 拒绝,将日志表改版本的状态改为拒绝
|
||||
vo.setUpdateSubmitStatus(UpdateSubmitStatus.REFUSE.getCode());
|
||||
caseApplicationLogMapper.updateStatus(vo);
|
||||
// 修改案件表的版本号
|
||||
// caseApplicationMapper.updateVersionById(vo.getCaseId(),vo.getVersion());
|
||||
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
// todo 需确定
|
||||
// else if (Objects.equals(vo.getUpdateSubmitStatus(), UpdateSubmitStatus.REVOKE.getCode())) {
|
||||
// // 如果版本号为1,则直接返回
|
||||
// if(vo.getVersion() <= 1){
|
||||
// return AjaxResult.success();
|
||||
// }
|
||||
// // 审核修改撤销状态
|
||||
// if (Objects.equals(vo.getIsAgree(), YesOrNoEnum.YES.getCode())) {
|
||||
// // 同意撤销,查询日志记录表上个版本数据,将数据更新到主表,并将日志表改版本的状态改为同意撤销
|
||||
// // 查询日志记录表上个版本未被拒绝数据
|
||||
// CaseApplication caseApplicationLog = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion()-1);
|
||||
// if (caseApplicationLog == null) {
|
||||
// return AjaxResult.error("未找到该案件");
|
||||
// }
|
||||
// // 将日志表改版本的状态改为拒绝
|
||||
// vo.setUpdateSubmitStatus(UpdateSubmitStatus.AGREE_REVOKE.getCode());
|
||||
// caseApplicationLogMapper.updateStatus(vo);
|
||||
// // 根据caseLogId查询相关人员表
|
||||
// CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||
// caseAffiliate.setCaseAppliLogId(caseApplicationLog.getCaseLogId());
|
||||
// List<CaseAffiliate> affiliateLogList = caseAffiliateLogMapper.selectCaseAffiliate(caseAffiliate);
|
||||
// caseApplicationLog.setId(caseApplicationLog.getCaseAppliId());
|
||||
// // 更新案件主表
|
||||
// caseApplicationMapper.updataCaseApplication(caseApplicationLog);
|
||||
//
|
||||
// // 更新相关人员主表
|
||||
// caseAffiliateMapper.updataCaseAffiliateByCaseId(caseApplicationLog.getCaseAppliId(), affiliateLogList);
|
||||
// } else {
|
||||
// // 拒绝撤销,将日志表改版本的状态改为拒绝撤销
|
||||
// vo.setUpdateSubmitStatus(UpdateSubmitStatus.REFUSE_REVOKE.getCode());
|
||||
// caseApplicationLogMapper.updateStatus(vo);
|
||||
// // 修改案件表的版本号
|
||||
// // caseApplicationMapper.updateVersionById(vo.getCaseId(),vo.getVersion());
|
||||
// }
|
||||
// return AjaxResult.success();
|
||||
// }
|
||||
return AjaxResult.success();
|
||||
}
|
||||
}
|
||||
+153
-105
@@ -2,6 +2,7 @@ package com.ruoyi.wisdomarbitrate.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.IdcardUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@@ -14,11 +15,13 @@ import com.ruoyi.common.constant.CaseApplicationConstants;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.*;
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.common.enums.UpdateSubmitStatus;
|
||||
import com.ruoyi.common.exception.EsignDemoException;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.*;
|
||||
import com.ruoyi.common.utils.file.SaaSAPIFileUtils;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.utils.thread.ThreadPoolUtil;
|
||||
import com.ruoyi.system.domain.SysUserRole;
|
||||
import com.ruoyi.system.mapper.SysDeptMapper;
|
||||
import com.ruoyi.system.mapper.SysRoleMapper;
|
||||
@@ -59,9 +62,11 @@ import java.util.*;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.ruoyi.common.core.domain.AjaxResult.success;
|
||||
import static com.ruoyi.common.utils.PageUtils.startPage;
|
||||
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
|
||||
import static com.ruoyi.common.utils.SecurityUtils.getUsername;
|
||||
import static com.ruoyi.wisdomarbitrate.utils.CaseLogUtils.insertCaseLog;
|
||||
|
||||
|
||||
@Service
|
||||
@@ -107,13 +112,17 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
@Autowired
|
||||
private SealManageMapper sealManageMapper;
|
||||
@Autowired
|
||||
private CaseApplicationLogMapper caseApplicationLogMapper;
|
||||
@Autowired
|
||||
private CaseAffiliateLogMapper caseAffiliateLogMapper;
|
||||
|
||||
// 手机号正则
|
||||
private static final Pattern TELEPHONE_REGX = Pattern.compile("^1(3\\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$");
|
||||
// 邮箱正则
|
||||
private static final Pattern EMAIL_PATTERN = Pattern.compile("^[a-zA-Z0-9_+&*-]+(?:\\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,7}$");
|
||||
// 身份证号码正则表达式
|
||||
private static final String ID_REGEX = "^(\\d{14}|\\d{17})(\\d|[Xx])$";
|
||||
private static final String ID_REGEX = "^(\\\\d{15}$|\\\\d{18}$|\\\\d{17}([0-9]|X))$";
|
||||
|
||||
/**
|
||||
* 数据权限:1.每个人不同的角色,而每个角色可以操作不同的案件状态
|
||||
@@ -148,40 +157,47 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
|
||||
for (SysRole role : roles) {
|
||||
if(StrUtil.isEmpty(role.getRoleName())){
|
||||
continue;
|
||||
}
|
||||
// 超级管理员和仲裁委(部门长)案件,可查看所有案件 √
|
||||
if (role.getRoleName().equals("超级管理员")
|
||||
if ("超级管理员".equals(role.getRoleName())
|
||||
) {
|
||||
return caseApplicationMapper.selectAdminCaseApplicationList(caseApplication);
|
||||
}
|
||||
if (role.getRoleName().equals("仲裁委")
|
||||
|| role.getRoleName().equals("部门长")) {
|
||||
if ("仲裁委".equals(role.getRoleName())
|
||||
|| "部门长".equals(role.getRoleName())) {
|
||||
List<Integer> caseStatusList = new ArrayList<>();
|
||||
caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
||||
caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
||||
caseApplication.setDeptHeadStatus(caseStatusList);
|
||||
caseApplication.setIsOtherRole(1);
|
||||
}
|
||||
if (role.getRoleName().equals("仲裁员")) {
|
||||
if ("仲裁员".equals(role.getRoleName())) {
|
||||
caseApplication.setUserId(String.valueOf(userId));
|
||||
caseApplication.setIsOtherRole(1);
|
||||
}
|
||||
if (role.getRoleName().equals("财务")) {
|
||||
if ("财务".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
caseApplication.setFinanceStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
|
||||
}
|
||||
if (role.getRoleName().equals("法律顾问")) {
|
||||
if ("法律顾问".equals(role.getRoleName())) {
|
||||
// 查询角色有关的用户部门
|
||||
// List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
|
||||
List<Long> deptIds = new ArrayList<>();
|
||||
deptIds.add(sysUser.getDeptId());
|
||||
caseApplication.setDeptIds(deptIds);
|
||||
}
|
||||
if (role.getRoleName().equals("申请人")) {
|
||||
if ("申请人".equals(role.getRoleName())) {
|
||||
// 查询有关的用户部门
|
||||
caseApplication.setApplicationOrganId(String.valueOf(sysUser.getDeptId()));
|
||||
}
|
||||
if (role.getRoleName().equals("被申请人")) {
|
||||
if ("被申请人".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
//
|
||||
caseApplication.setIdCard(String.valueOf(sysUser.getIdCard()));
|
||||
}
|
||||
if (role.getRoleName().equals("代理人")) {
|
||||
if ("代理人".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
// 查询角色有关的用户部门
|
||||
// List<Long> agentDeptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
|
||||
List<Long> agentDeptIds = new ArrayList<>();
|
||||
@@ -192,7 +208,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
|
||||
// 根据条件查询申请人,被申请人,仲裁员,法律顾问案件
|
||||
return caseApplicationMapper.selectCaseApplicationList(caseApplication);
|
||||
// return caseApplicationMapper.selectCaseApplicationList(caseApplication);
|
||||
return caseApplicationMapper.selectCaseApplicationList1(caseApplication);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -215,40 +232,47 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
CaseApplication caseApplication = new CaseApplication();
|
||||
List<Integer> caseStatusList = new ArrayList<>();
|
||||
for (SysRole role : roles) {
|
||||
if(StrUtil.isEmpty(role.getRoleName())){
|
||||
continue;
|
||||
}
|
||||
// 超级管理员和仲裁委(部门长)案件,可查看所有案件 √
|
||||
if (role.getRoleName().equals("超级管理员")
|
||||
) {
|
||||
return caseApplicationMapper.selectAdminCaseToDoCount();
|
||||
}
|
||||
if (role.getRoleName().equals("仲裁委")
|
||||
|| role.getRoleName().equals("部门长")) {
|
||||
|
||||
if ("仲裁委".equals(role.getRoleName())
|
||||
|| "部门长".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
||||
caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
||||
caseApplication.setDeptHeadStatus(caseStatusList);
|
||||
}
|
||||
if (role.getRoleName().equals("仲裁员")) {
|
||||
if ("仲裁员".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
caseApplication.setUserId(String.valueOf(userId));
|
||||
}
|
||||
if (role.getRoleName().equals("财务")) {
|
||||
if ("财务".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
caseApplication.setFinanceStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
|
||||
}
|
||||
if (role.getRoleName().equals("法律顾问")) {
|
||||
if ("法律顾问".equals(role.getRoleName())) {
|
||||
// 查询角色有关的用户部门
|
||||
// List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
|
||||
List<Long> deptIds = new ArrayList<>();
|
||||
deptIds.add(sysUser.getDeptId());
|
||||
caseApplication.setDeptIds(deptIds);
|
||||
}
|
||||
if (role.getRoleName().equals("申请人")) {
|
||||
if ("申请人".equals(role.getRoleName())) {
|
||||
// 查询角色有关的用户部门
|
||||
caseApplication.setApplicationOrganId(String.valueOf(sysUser.getDeptId()));
|
||||
}
|
||||
if (role.getRoleName().equals("被申请人")) {
|
||||
if ("被申请人".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
//
|
||||
caseApplication.setIdCard(String.valueOf(sysUser.getIdCard()));
|
||||
}
|
||||
if (role.getRoleName().equals("代理人")) {
|
||||
if ("代理人".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
// 查询角色有关的用户部门
|
||||
// List<Long> agentDeptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
|
||||
List<Long> agentDeptIds = new ArrayList<>();
|
||||
@@ -259,7 +283,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
|
||||
// 根据条件查询申请人,被申请人,仲裁员,法律顾问案件
|
||||
return caseApplicationMapper.selectTodoCountByRole(caseApplication);
|
||||
ToDoCount toDoCount = caseApplicationMapper.selectTodoCountByRole(caseApplication);
|
||||
if(toDoCount==null){
|
||||
return new ToDoCount();
|
||||
}
|
||||
return toDoCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -280,7 +308,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
records.addAll(recordsnofinish);
|
||||
datas.put("allCasenode", records);
|
||||
datas.put("caseStatus", caseStatus);
|
||||
return AjaxResult.success(datas);
|
||||
return success(datas);
|
||||
|
||||
}
|
||||
|
||||
@@ -298,7 +326,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
// 发送开庭日期通知短信
|
||||
sendHearDateMessage(caseApplication, request, "1975139");
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_OPENCOURT_HEAR, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_OPENCOURT_HEAR, "");
|
||||
return rows;
|
||||
}
|
||||
|
||||
@@ -511,7 +539,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
}
|
||||
|
||||
return AjaxResult.success();
|
||||
return success();
|
||||
|
||||
}
|
||||
|
||||
@@ -846,6 +874,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增案件
|
||||
* @param caseApplication
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public int insertcaseApplication(CaseApplication caseApplication) {
|
||||
@@ -860,8 +893,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
String caseNum = generateCaseNum();
|
||||
caseApplication.setCaseNum(caseNum);
|
||||
caseApplication.setCreateBy(getUsername());
|
||||
caseApplication.setVersion(1);
|
||||
// 新增立案信息
|
||||
int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
|
||||
if(rows==0){
|
||||
return rows;
|
||||
}
|
||||
List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
|
||||
Map<String, Long> deptMap = new HashMap<>();
|
||||
// 判断申请机构
|
||||
@@ -876,6 +913,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
Long roleId = roleMapper.selectRoleIdByName("申请人");
|
||||
for (CaseAffiliate caseAffiliate : caseAffiliates) {
|
||||
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
||||
caseAffiliate.setCaseAppliLogId(caseApplication.getId());
|
||||
if (caseAffiliate.getIdentityType() == 1 && StrUtil.isNotEmpty(caseAffiliate.getName())) {
|
||||
// 将组织机构id设为申请人名称
|
||||
if (deptMap.containsKey(caseAffiliate.getName())) {
|
||||
@@ -918,7 +956,19 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
}
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_APPLICATION, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_APPLICATION, "");
|
||||
// 异步新增案件日志
|
||||
ThreadPoolUtil.execute(() -> {
|
||||
caseApplication.setCaseAppliId(caseApplication.getId());
|
||||
caseApplication.setUpdateSubmitStatus(UpdateSubmitStatus.UNCOMMITTED.getCode());
|
||||
int insertRow = caseApplicationLogMapper.insert(caseApplication);
|
||||
if (insertRow != 0 && CollectionUtil.isNotEmpty(caseAffiliates)) {
|
||||
caseAffiliates.forEach(caseAffiliate -> caseAffiliate.setCaseAppliLogId(caseApplication.getId()));
|
||||
// 插入案件日志人员相关表
|
||||
caseAffiliateLogMapper.batchCaseAffiliate(caseAffiliates);
|
||||
}
|
||||
});
|
||||
|
||||
return rows;
|
||||
}
|
||||
|
||||
@@ -950,15 +1000,17 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public int editCaseApplication(CaseApplication caseApplication) {
|
||||
public AjaxResult editCaseApplication(CaseApplication caseApplication) {
|
||||
//根据仲裁费用计费规则计算应缴费用
|
||||
//暂时设置计费比率为0.01
|
||||
BigDecimal feeRate = new BigDecimal("0.01");
|
||||
BigDecimal feePayable = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2, RoundingMode.HALF_UP);
|
||||
caseApplication.setFeePayable(feePayable);
|
||||
caseApplication.setUpdateBy(getUsername());
|
||||
|
||||
int rows = caseApplicationMapper.updataCaseApplication(caseApplication);
|
||||
// int rows = caseApplicationMapper.updataCaseApplication(caseApplication);
|
||||
// if(rows==0){
|
||||
// return rows;
|
||||
// }
|
||||
List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
|
||||
if (caseAffiliates != null && caseAffiliates.size() > 0) {
|
||||
// 查询所有的组织机构,组装成map
|
||||
@@ -1001,7 +1053,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
}
|
||||
|
||||
caseAffiliateMapper.updataCaseAffiliate(caseAffiliate);
|
||||
// caseAffiliateMapper.updataCaseAffiliate(caseAffiliate);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1013,8 +1065,29 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
|
||||
}
|
||||
// 根据案件id查询最新版本号
|
||||
Integer maxVersion = caseApplicationLogMapper.selectMaxVersionByCaseId(caseApplication.getId());
|
||||
if (maxVersion == null) {
|
||||
maxVersion = 1;
|
||||
}
|
||||
caseApplication.setVersion(maxVersion+1);
|
||||
// 将修改提交状态改为未提交
|
||||
caseApplication.setUpdateSubmitStatus(UpdateSubmitStatus.UNCOMMITTED.getCode());
|
||||
// 修改案件表的版本号
|
||||
// caseApplicationMapper.updateVersionById(caseApplication.getId(),caseApplication.getVersion());
|
||||
|
||||
return rows;
|
||||
// 异步新增案件日志
|
||||
ThreadPoolUtil.execute(() -> {
|
||||
caseApplication.setCaseAppliId(caseApplication.getId());
|
||||
int insertRow = caseApplicationLogMapper.insert(caseApplication);
|
||||
if (insertRow != 0 && CollectionUtil.isNotEmpty(caseAffiliates)) {
|
||||
caseAffiliates.forEach(caseAffiliate -> caseAffiliate.setCaseAppliLogId(caseApplication.getId()));
|
||||
// 插入案件日志人员相关表
|
||||
caseAffiliateLogMapper.batchCaseAffiliate(caseAffiliates);
|
||||
}
|
||||
});
|
||||
|
||||
return success();
|
||||
}
|
||||
|
||||
|
||||
@@ -1132,7 +1205,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
application.setCaseStatus(CaseApplicationConstants.CASE_CHECK);
|
||||
rows += caseApplicationMapper.submitCaseApplication(application);
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(application.getId(), CaseApplicationConstants.CASE_CHECK, "");
|
||||
insertCaseLog(application.getId(), CaseApplicationConstants.CASE_CHECK, "");
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
@@ -1140,16 +1213,17 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
@Override
|
||||
@Transactional
|
||||
public int deletecaseApplicationByIds(List<Long> ids) {
|
||||
|
||||
int rows = caseApplicationMapper.batchDeletecaseApplication(ids);
|
||||
caseAffiliateMapper.batchDeletecaseAffiliate(ids);
|
||||
return caseApplicationMapper.batchDeletecaseApplication(ids);
|
||||
caseApplicationLogMapper.batchDeleteLog(ids);
|
||||
return rows;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CaseApplication selectCaseApplication(CaseApplication caseApplication) {
|
||||
CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
|
||||
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
||||
CaseApplication caseApplicationselect=caseApplicationLogMapper.selectByCaseIdAndVersion(caseApplication.getId(),caseApplication.getVersion());
|
||||
caseApplicationselect.setId(caseApplication.getId());
|
||||
|
||||
|
||||
ArbitrateRecord arbitrateRecord = new ArbitrateRecord();
|
||||
arbitrateRecord.setCaseAppliId(caseApplication.getId());
|
||||
@@ -1178,8 +1252,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
}
|
||||
caseApplicationselect.setCaseAttachList(caseAttachList);
|
||||
|
||||
List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
|
||||
CaseAffiliate caseAffiliateLog = new CaseAffiliate();
|
||||
caseAffiliateLog.setCaseAppliLogId(caseApplication.getCaseLogId());
|
||||
List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateLogMapper.selectCaseAffiliate(caseAffiliateLog);
|
||||
if (caseAffiliatListeselect != null) {
|
||||
// 查询组织机构
|
||||
List<SysDept> sysDepts = sysDeptMapper.selectDeptList(new SysDept());
|
||||
@@ -1219,6 +1294,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
int successNum = 0;
|
||||
List<CaseAffiliate> caseAffiliateLogList=new ArrayList<>();
|
||||
if (caseApplicationList != null && caseApplicationList.size() > 0) {
|
||||
// 1,查询所有的组织机构,组装成map
|
||||
List<SysDept> deptList = sysDeptMapper.selectDeptList(new SysDept());
|
||||
@@ -1254,14 +1330,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
}
|
||||
if (caseApplicationListinsert.size() > 0) {
|
||||
// List<CaseApplication> caseApplicationListinsertDiffer = caseApplicationListinsert.stream().collect(
|
||||
// collectingAndThen(
|
||||
// toCollection(() -> new TreeSet<>(Comparator.comparing(CaseApplication::getCaseNum))),
|
||||
// ArrayList::new));
|
||||
|
||||
|
||||
//对不重复的立案对象集合的立案对象重新组装对应的案件关联人信息
|
||||
// if(caseApplicationListinsertDiffer!=null&&caseApplicationListinsertDiffer.size()>0){
|
||||
List<CaseApplication> caseApplicationNewList = null;
|
||||
for (int i = 0; i < caseApplicationListinsert.size(); i++) {
|
||||
caseApplicationNewList = new ArrayList<>();
|
||||
@@ -1290,9 +1359,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
// 新增立案信息
|
||||
caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
||||
caseApplicationItera.setCreateBy(getUsername());
|
||||
caseApplicationItera.setImportFlag(1);
|
||||
int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
|
||||
if(rows==0){
|
||||
continue;
|
||||
}
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplicationItera.getId(), CaseApplicationConstants.CASE_APPLICATION, "");
|
||||
insertCaseLog(caseApplicationItera.getId(), CaseApplicationConstants.CASE_APPLICATION, "");
|
||||
|
||||
List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
|
||||
if (caseAffiliates != null && caseAffiliates.size() > 0) {
|
||||
@@ -1302,16 +1375,31 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
caseAffiliateMapper.batchCaseAffiliate(caseAffiliates);
|
||||
}
|
||||
// 新增案件记录
|
||||
caseApplicationItera.setCaseAppliId(caseApplicationItera.getId());
|
||||
caseApplicationItera.setUpdateSubmitStatus(UpdateSubmitStatus.UNCOMMITTED.getCode());
|
||||
caseApplicationItera.setVersion(1);
|
||||
|
||||
int insertRow = caseApplicationLogMapper.insert(caseApplicationItera);
|
||||
if(insertRow>0){
|
||||
caseAffiliates.forEach(caseAffiliate -> caseAffiliate.setCaseAppliLogId(caseApplicationItera.getId()));
|
||||
caseAffiliateLogList.addAll(caseAffiliates);
|
||||
}
|
||||
successNum++;
|
||||
successMsg.append("<br/>").append(successNum).append("、立案编号 ").append(caseApplicationItera.getCaseNum()).append(" 导入成功");
|
||||
}
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
// 异步新增案件日志
|
||||
ThreadPoolUtil.execute(() -> {
|
||||
if ( CollectionUtil.isNotEmpty(caseAffiliateLogList)) {
|
||||
// 插入案件日志人员相关表
|
||||
caseAffiliateLogMapper.batchCaseAffiliate(caseAffiliateLogList);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
} else {
|
||||
@@ -1342,48 +1430,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
validDebtorApplicationAgentColumn(caseApplication, failureMsg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证身份证号码是否合法
|
||||
* @param idCard
|
||||
* @return
|
||||
*/
|
||||
public static boolean validateIdCard(String idCard) {
|
||||
if (idCard == null || idCard.trim().isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!Pattern.matches(ID_REGEX, idCard)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// 根据身份证号码的长度,采取不同的校验位计算方式
|
||||
if (idCard.length() == 15) {
|
||||
// 旧版身份证校验位计算
|
||||
int sum = 0;
|
||||
int[] weights = {7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8};
|
||||
String idDigits = idCard.substring(0, 14);
|
||||
for (int i = 0; i < idDigits.length(); i++) {
|
||||
sum += Integer.parseInt(idDigits.substring(i, i + 1)) * weights[i];
|
||||
}
|
||||
int checkCode = 11 - (sum % 11);
|
||||
if (checkCode == 10) {
|
||||
checkCode = 0;
|
||||
}
|
||||
return idCard.substring(idCard.length() - 1).equals(String.valueOf(checkCode));
|
||||
} else if (idCard.length() == 18) {
|
||||
// 新版身份证校验位计算
|
||||
int sum = 0;
|
||||
int[] weights = {6, 7, 8, 4, 5, 6, 3, 2, 1, 0, 9, 7, 3, 4, 5, 6, 2, 8};
|
||||
String idDigits = idCard.substring(0, 17);
|
||||
for (int i = 0; i < idDigits.length(); i++) {
|
||||
sum += Integer.parseInt(idDigits.substring(i, i + 1)) * weights[i];
|
||||
}
|
||||
int checkCode = sum % 10;
|
||||
return idCard.substring(idCard.length() - 1).equals(String.valueOf(checkCode));
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* 校验被申请人代理信息
|
||||
*
|
||||
@@ -1398,7 +1444,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
if (StrUtil.isEmpty(caseApplication.getDebtorIdentityNumAgent())) {
|
||||
failureMsg.append("【被申请人主体信息-代理人身份证号】字段不能为空;");
|
||||
} else if (!validateIdCard(caseApplication.getDebtorIdentityNumAgent())) {
|
||||
} else if (! IdcardUtil.isValidCard((caseApplication.getDebtorIdentityNumAgent()))) {
|
||||
failureMsg.append("【被申请人主体信息-代理人身份证号】不合法;");
|
||||
}
|
||||
String debtorContactTelphoneAgent = caseApplication.getDebtorContactTelphoneAgent();
|
||||
@@ -1428,7 +1474,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
if (StrUtil.isEmpty(caseApplication.getDebtorIdentityNum())) {
|
||||
failureMsg.append("【被申请人主体信息-身份证号】字段不能为空;");
|
||||
} else if (!validateIdCard(caseApplication.getDebtorIdentityNum())) {
|
||||
} else if (! IdcardUtil.isValidCard(caseApplication.getDebtorIdentityNum())) {
|
||||
failureMsg.append("【被申请人主体信息-身份证号】不合法;");
|
||||
}
|
||||
String debtorContactTelphone = caseApplication.getDebtorContactTelphone();
|
||||
@@ -1485,7 +1531,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
if (StrUtil.isEmpty(caseApplication.getIdentityNumAgent())) {
|
||||
failureMsg.append("【申请人主体信息-代理人身份证号】字段不能为空;");
|
||||
} else if (!validateIdCard(caseApplication.getIdentityNumAgent())) {
|
||||
} else if (!IdcardUtil.isValidCard(caseApplication.getIdentityNumAgent())) {
|
||||
failureMsg.append("【申请人主体信息-代理人身份证号】不合法;");
|
||||
}
|
||||
validAgentInfo(caseApplication, failureMsg, deptMap);
|
||||
@@ -1701,7 +1747,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
}
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL, "");
|
||||
return rows;
|
||||
}
|
||||
|
||||
@@ -1713,7 +1759,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
|
||||
arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CHECK_ARBITRATION, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CHECK_ARBITRATION, "");
|
||||
return rows;
|
||||
|
||||
}
|
||||
@@ -1906,18 +1952,18 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.SIGN_ARBITRATION, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.SIGN_ARBITRATION, "");
|
||||
|
||||
rows = caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
} else if (agreeOrNotCheck.intValue() == 2) {//拒绝审核
|
||||
caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.VERPRIF_ARBITRATION, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.VERPRIF_ARBITRATION, "");
|
||||
|
||||
rows = caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
}
|
||||
|
||||
return AjaxResult.success();
|
||||
return success();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1937,7 +1983,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
rows += caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
}
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT, "");
|
||||
}
|
||||
|
||||
|
||||
@@ -2144,7 +2190,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
caseLogRecordMapper.insertCaseLogRecord(caseLogRecord);
|
||||
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.GENERATED_ARBITRATION, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.GENERATED_ARBITRATION, "");
|
||||
|
||||
|
||||
}
|
||||
@@ -2163,7 +2209,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
caseLogRecordMapper.insertCaseLogRecord(caseLogRecord);
|
||||
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.GENERATED_ARBITRATION, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.GENERATED_ARBITRATION, "");
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2281,7 +2327,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
//获取案件详细信息
|
||||
CaseApplication caseApplicationSelct = selectCaseApplication(caseApplication);
|
||||
return AjaxResult.success(caseApplicationSelct);
|
||||
return success(caseApplicationSelct);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return AjaxResult.error("生成庭审笔录异常");
|
||||
@@ -2344,7 +2390,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
// 发送开庭日期通知短信
|
||||
sendHearDateMessage(caseApplication, request, "1947342");
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.MODIFY_HEARDATE, "");
|
||||
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.MODIFY_HEARDATE, "");
|
||||
|
||||
return rows;
|
||||
|
||||
@@ -2682,7 +2728,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
ReservedConference conference = new ReservedConference(reservedConferenceVO.getCaseId(), roomId,
|
||||
reservedConferenceVO.getScheduleStartTime(), reservedConferenceVO.getScheduleEndTime(),1);
|
||||
reservedConferenceMapper.insert(conference);
|
||||
return AjaxResult.success("预约会议成功");
|
||||
return success("预约会议成功");
|
||||
|
||||
case 42002:
|
||||
return AjaxResult.error("预定会议无效");
|
||||
@@ -2770,8 +2816,10 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
@Override
|
||||
public AjaxResult deleteRoom(String roomId) {
|
||||
|
||||
return AjaxResult.success( reservedConferenceMapper.deleteByRoomId(roomId));
|
||||
return success( reservedConferenceMapper.deleteByRoomId(roomId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
+45
-11
@@ -1,6 +1,7 @@
|
||||
package com.ruoyi.wisdomarbitrate.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.config.RuoYiConfig;
|
||||
import com.ruoyi.common.constant.CaseApplicationConstants;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
@@ -8,6 +9,7 @@ import com.ruoyi.common.core.domain.entity.SysRole;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.common.utils.SmsUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.utils.spring.SpringUtils;
|
||||
import com.ruoyi.system.mapper.SysUserMapper;
|
||||
@@ -27,12 +29,11 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.ruoyi.common.utils.SecurityUtils.getUsername;
|
||||
|
||||
@Service
|
||||
public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
||||
@Autowired
|
||||
@@ -47,6 +48,8 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
||||
private CaseEvidenceDirectoryMapper caseEvidenceDirectoryMapper;
|
||||
@Autowired
|
||||
private SysUserMapper sysUserMapper;
|
||||
@Autowired
|
||||
private SmsRecordMapper smsRecordMapper;
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
@@ -246,13 +249,6 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
||||
.build();
|
||||
int count = caseAttachMapper.save(caseAttach);
|
||||
if (count > 0 && annexType != null && annexType != 8) {
|
||||
// if (id != null) {
|
||||
// //修改案件状态
|
||||
// CaseApplication caseApplication = new CaseApplication();
|
||||
// caseApplication.setId(id);
|
||||
// caseApplication.setCaseStatus(4);
|
||||
// caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
// }
|
||||
CaseAttach caseAttachselect = new CaseAttach();
|
||||
caseAttachselect.setAnnexId(caseAttach.getAnnexId());
|
||||
caseAttachselect.setAnnexName(caseAttach.getAnnexName());
|
||||
@@ -266,6 +262,44 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
||||
e.printStackTrace();
|
||||
return AjaxResult.error("上传失败");
|
||||
}
|
||||
// 给秘书发送短信
|
||||
// 根据caseid查询该案件的法律顾问,根据案件id查申请表,查到申请机构id,然后拿申请机构id查询在哪个人下并且角色要是法律顾问
|
||||
CaseAffiliate caseAffiliate = caseAffiliateMapper.selectCaseAffiliateByIdentityType(id, 1);
|
||||
if(caseAffiliate!= null && StrUtil.isNotEmpty(caseAffiliate.getApplicationOrganId())){
|
||||
List<SysUser> userList= sysUserMapper.selectByDeptIdAndRole(caseAffiliate.getApplicationOrganId(),"法律顾问");
|
||||
if(CollectionUtil.isNotEmpty(userList)){
|
||||
// 新增短信记录
|
||||
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
||||
// 1992106 普通短信 修改证据资料通知 尊敬的{1}用户,您的{2}仲裁案件,有新的证据上传,请知晓,如非本人操作,请忽略本短信。
|
||||
request.setTemplateId("1992106");
|
||||
CaseApplication caseApplication = new CaseApplication();
|
||||
caseApplication.setId(id);
|
||||
caseApplication = caseApplicationMapper.selectCaseApplication(caseApplication);
|
||||
for (SysUser user : userList) {
|
||||
request.setPhone(user.getPhonenumber());
|
||||
request.setTemplateParamSet(new String[]{user.getNickName(),caseApplication.getCaseNum()});
|
||||
Boolean aBoolean = SmsUtils.sendSms(request);
|
||||
//保存短信发送记录
|
||||
SmsSendRecord smsSendRecord = new SmsSendRecord();
|
||||
smsSendRecord.setCaseId(caseAffiliate.getCaseAppliId());
|
||||
|
||||
smsSendRecord.setCaseNum(caseApplication.getCaseNum());
|
||||
smsSendRecord.setPhone(request.getPhone());
|
||||
smsSendRecord.setSendTime(new Date());
|
||||
String content = "尊敬的" + user.getNickName() + ",您的"+caseApplication.getCaseNum()+"仲裁案件,有新的证据上传,请知晓,如非本人操作,请忽略本短信。";
|
||||
smsSendRecord.setSendContent(content);
|
||||
smsSendRecord.setCreateBy(getUsername());
|
||||
if (aBoolean) {
|
||||
smsSendRecord.setSendStatus(1);
|
||||
} else {
|
||||
smsSendRecord.setSendStatus(0);
|
||||
}
|
||||
smsRecordMapper.saveSmsSendRecord(smsSendRecord);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return AjaxResult.success("上传成功", successList);
|
||||
|
||||
|
||||
+1
-1
@@ -209,7 +209,7 @@ public class VideoServiceImpl implements VideoService {
|
||||
recordParams.setOutputFormat(0L); // 0:(默认)输出文件为hls格式。1:输出文件格式为hls+mp4。2:输出文件格式为hls+aac
|
||||
MixLayoutParams mixLayoutParams = new MixLayoutParams();
|
||||
// 布局模式: 1:悬浮布局;2:屏幕分享布局;3:九宫格布局(默认);4:自定义布局;
|
||||
mixLayoutParams.setMixLayoutMode(1L);
|
||||
mixLayoutParams.setMixLayoutMode(3L);
|
||||
req.setMixLayoutParams(mixLayoutParams);
|
||||
|
||||
StorageParams storageParams1 = new StorageParams();
|
||||
|
||||
Reference in New Issue
Block a user