调解系统tkmybatis逆向生成代码

This commit is contained in:
18792927508
2024-01-08 10:19:01 +08:00
parent 9e3830ae2f
commit 6610927255
58 changed files with 2447 additions and 493 deletions
@@ -1,117 +0,0 @@
package com.ruoyi.system.domain.entity.baseinfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Table(name = "country")
public class Country {
/**
* 国家ID
*/
@Id
@Column(name = "CountryId")
@GeneratedValue(generator = "JDBC")
private Integer countryid;
/**
* 国家名称
*/
@Column(name = "CountryName")
private String countryname;
/**
* 国家英文名
*/
@Column(name = "EnglishName")
private String englishname;
/**
* 国家缩写
*/
@Column(name = "AbbreviationName")
private String abbreviationname;
/**
* 国家名本地
*/
@Column(name = "CountryNameLocal")
private String countrynamelocal;
/**
* 国家标志路径
*/
@Column(name = "FlagPath")
private String flagpath;
/**
* 是否启用 1代表启用0代表不启用
*/
@Column(name = "IsActive")
private Byte isactive;
/**
* 经度
*/
@Column(name = "Longitude")
private BigDecimal longitude;
/**
* 纬度
*/
@Column(name = "Latitude")
private BigDecimal latitude;
/**
* 主页路径
*/
private String url;
/**
* 时区
*/
@Column(name = "Timezone")
private Integer timezone;
/**
* 创建人
*/
@Column(name = "CreatedBy")
private Integer createdby;
/**
* 创建时间
*/
@Column(name = "DateCreated")
private Date datecreated;
/**
* 更新人
*/
@Column(name = "UpdatedBy")
private Integer updatedby;
/**
* 更新时间
*/
@Column(name = "DateUpdated")
private Date dateupdated;
/**
* 国家地图Json
*/
@Column(name = "CountryJson")
private String countryjson;
}
@@ -1,16 +0,0 @@
package com.ruoyi.system.mapper.baseinfo;
import com.ruoyi.system.domain.entity.baseinfo.Country;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface CountryDAO {
/**
* 查询国家
*/
@Select("select * from country where CountryId=${CountryId}")
List<Country> selectCountryInfoById(@Param("CountryId") Integer CountryId);
}
@@ -1,8 +0,0 @@
package com.ruoyi.system.mapper.baseinfo;
import com.ruoyi.system.domain.entity.baseinfo.Country;
import tk.mybatis.mapper.common.Mapper;
public interface CountryMapper extends Mapper<Country> {
}
@@ -1,25 +0,0 @@
package com.ruoyi.system.service;
import com.ruoyi.system.domain.entity.baseinfo.Country;
import com.ruoyi.system.mapper.baseinfo.CountryDAO;
import com.ruoyi.system.mapper.baseinfo.CountryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class TestMapperService {
@Autowired
CountryMapper countryMapper;
@Autowired
CountryDAO countryDAO;
public Object queryCountry() {
List<Country> countries = countryMapper.selectAll();
return countries;
}
public Object queryCountryById(Integer countryId) {
List<Country> countries = countryDAO.selectCountryInfoById(countryId);
return countries;
}
}
@@ -0,0 +1,36 @@
package com.ruoyi.wisdomarbitrate.domain.entity.casestatus;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_status")
public class MsCaseStatus {
/**
* id
*/
@Id
@GeneratedValue(generator = "JDBC")
private Integer id;
/**
* 案件状态
*/
@Column(name = "case_status")
private Integer caseStatus;
/**
* 案件状态名称
*/
@Column(name = "case_status_name")
private String caseStatusName;
/**
* 顺序
*/
private Integer sort;
}
@@ -0,0 +1,28 @@
package com.ruoyi.wisdomarbitrate.domain.entity.casestatus;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_status_role")
public class MsCaseStatusRole {
@Id
@GeneratedValue(generator = "JDBC")
private Integer id;
/**
* 案件状态表id,关联案件状态表
*/
@Column(name = "case_status_id")
private Integer caseStatusId;
/**
* 角色id,关联角色表
*/
@Column(name = "role_id")
private Integer roleId;
}
@@ -0,0 +1,112 @@
package com.ruoyi.wisdomarbitrate.domain.entity.dept;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_seal_sign_record")
public class MsSealSignRecord {
@Id
@GeneratedValue(generator = "JDBC")
private Long id;
/**
* 文件id
*/
@Column(name = "file_id")
private String fileId;
/**
* 文件名称
*/
@Column(name = "file_name")
private String fileName;
/**
* 流程id
*/
@Column(name = "sign_flow_id")
private String signFlowId;
/**
* 签名人账户
*/
@Column(name = "penson_account")
private String pensonAccount;
/**
* 签名人姓名
*/
@Column(name = "penson_name")
private String pensonName;
/**
* 机构名称
*/
@Column(name = "orgnize_name")
private String orgnizeName;
/**
* 机构经办人
*/
@Column(name = "orgn_name_psn_acc")
private String orgnNamePsnAcc;
/**
* 机构经办人名称
*/
@Column(name = "orgn_name_psn_name")
private String orgnNamePsnName;
/**
* 流程状态
*/
@Column(name = "sign_flow_status")
private Integer signFlowStatus;
@Column(name = "case_appli_id")
private Long caseAppliId;
/**
* 签名位置页数
*/
@Column(name = "position_pagepsn")
private String positionPagepsn;
/**
* 签名位置x坐标
*/
@Column(name = "position_xpsn")
private Double positionXpsn;
/**
* 签名位置y坐标
*/
@Column(name = "position_ypsn")
private Double positionYpsn;
/**
* 印章位置页数
*/
@Column(name = "position_pageorg")
private String positionPageorg;
/**
* 印章位置x坐标
*/
@Column(name = "position_xorg")
private Double positionXorg;
/**
* 印章位置y坐标
*/
@Column(name = "position_yorg")
private Double positionYorg;
@Column(name = "file_download_url")
private String fileDownloadUrl;
}
@@ -0,0 +1,122 @@
package com.ruoyi.wisdomarbitrate.domain.entity.mscase;
import java.util.Date;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_affiliate")
public class MsCaseAffiliate {
/**
* 案件主表id,案件申请表主键
*/
@Id
@Column(name = "case_appli_id")
private Long caseAppliId;
/**
* 申请机构
*/
@Column(name = "application_organ_id")
private String applicationOrganId;
/**
* 申请机构名称
*/
@Column(name = "application_organ_name")
private String applicationOrganName;
/**
* 统一社会信用代码
*/
@Column(name = "credit_code")
private String creditCode;
/**
* 法定代表人
*/
@Column(name = "comp_legal_person")
private String compLegalPerson;
/**
* 申请人住所
*/
@Column(name = "applicant_home")
private String applicantHome;
/**
* 申请人联系地址
*/
@Column(name = "applicant_address")
private String applicantAddress;
/**
* 委托代理人姓名
*/
@Column(name = "name_agent")
private String nameAgent;
/**
* 代理人联系电话
*/
@Column(name = "contact_telphone_agent")
private String contactTelphoneAgent;
/**
* 代理人邮箱
*/
@Column(name = "agent_email")
private String agentEmail;
/**
* 申请人快递单号
*/
@Column(name = "applicant_track_num")
private String applicantTrackNum;
/**
* 被申请人姓名
*/
@Column(name = "respondent_name")
private String respondentName;
/**
* 被申请人身份证号
*/
@Column(name = "respondent_identity_num")
private String respondentIdentityNum;
/**
* 被申请人性别(0=男,女=1)
*/
@Column(name = "respondent_sex")
private String respondentSex;
/**
* 被申请人出生年月日
*/
@Column(name = "respondent_birth")
private Date respondentBirth;
/**
* 被申请人申请人住所
*/
@Column(name = "respondent_home")
private String respondentHome;
/**
* 被申请人邮箱
*/
@Column(name = "respondent_email")
private String respondentEmail;
/**
* 被申请人快递单号
*/
@Column(name = "respondent_track_num")
private String respondentTrackNum;
}
@@ -0,0 +1,122 @@
package com.ruoyi.wisdomarbitrate.domain.entity.mscase;
import java.util.Date;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_affiliate_log")
public class MsCaseAffiliateLog {
/**
* 案件日志表表id,案件申请表主键
*/
@Id
@Column(name = "case_appli_log_id")
private Long caseAppliLogId;
/**
* 申请机构
*/
@Column(name = "application_organ_id")
private String applicationOrganId;
/**
* 申请机构名称
*/
@Column(name = "application_organ_name")
private String applicationOrganName;
/**
* 统一社会信用代码
*/
@Column(name = "credit_code")
private String creditCode;
/**
* 法定代表人
*/
@Column(name = "comp_legal_person")
private String compLegalPerson;
/**
* 申请人住所
*/
@Column(name = "applicant_home")
private String applicantHome;
/**
* 申请人联系地址
*/
@Column(name = "applicant_address")
private String applicantAddress;
/**
* 委托代理人姓名
*/
@Column(name = "name_agent")
private String nameAgent;
/**
* 代理人联系电话
*/
@Column(name = "contact_telphone_agent")
private String contactTelphoneAgent;
/**
* 代理人邮箱
*/
@Column(name = "agent_email")
private String agentEmail;
/**
* 申请人快递单号
*/
@Column(name = "applicant_track_num")
private String applicantTrackNum;
/**
* 被申请人姓名
*/
@Column(name = "respondent_name")
private String respondentName;
/**
* 被申请人身份证号
*/
@Column(name = "respondent_identity_num")
private String respondentIdentityNum;
/**
* 被申请人性别(0=男,女=1)
*/
@Column(name = "respondent_sex")
private String respondentSex;
/**
* 被申请人出生年月日
*/
@Column(name = "respondent_birth")
private Date respondentBirth;
/**
* 被申请人申请人住所
*/
@Column(name = "respondent_home")
private String respondentHome;
/**
* 被申请人邮箱
*/
@Column(name = "respondent_email")
private String respondentEmail;
/**
* 被申请人快递单号
*/
@Column(name = "respondent_track_num")
private String respondentTrackNum;
}
@@ -0,0 +1,199 @@
package com.ruoyi.wisdomarbitrate.domain.entity.mscase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_application")
public class MsCaseApplication {
/**
* id
*/
@Id
@GeneratedValue(generator = "JDBC")
private Long id;
/**
* 批次
*/
@Column(name = "batch_number")
private Integer batchNumber;
/**
* 模板id
*/
@Column(name = "template_id")
private Long templateId;
/**
* 案件编号
*/
@Column(name = "case_num")
private String caseNum;
/**
* 案件标的(欠款总金额)
*/
@Column(name = "case_subject_amount")
private BigDecimal caseSubjectAmount;
/**
* 调解方式,1-开庭调解,2-书面调解
*/
@Column(name = "mediation_method")
private String mediationMethod;
/**
* 案件状态,字典
*/
@Column(name = "case_status")
private Integer caseStatus;
/**
* 开庭日期
*/
@Column(name = "hear_date")
private Date hearDate;
/**
* 调解应缴费用
*/
@Column(name = "fee_payable")
private BigDecimal feePayable;
/**
* 调解员id
*/
@Column(name = "mediator_id")
private Long mediatorId;
/**
* 调解员名称
*/
@Column(name = "mediator_name")
private String mediatorName;
/**
* 是否同意组庭,0否,1是
*/
@Column(name = "is_agree_pend_tral")
private Integer isAgreePendTral;
/**
* 支付方式(0线上支付,1线下支付)
*/
@Column(name = "pay_type")
private String payType;
/**
* 是否仲裁反请求,1是,0否
*/
@Column(name = "adjudica_counter")
private Integer adjudicaCounter;
/**
* 被申请人是否缺席,1是,0否
*/
@Column(name = "is_absence")
private Integer isAbsence;
/**
* 是否锁定,0-否,1-是
*/
@Column(name = "lock_status")
private Integer lockStatus;
/**
* 视频会议房间号id
*/
@Column(name = "room_id")
private String roomId;
/**
* 申请人是否书面审理,1是,0否
*/
@Column(name = "appli_iswrit_hear")
private Integer appliIswritHear;
/**
* 被申请人是否书面审理,1是,0否
*/
@Column(name = "respon_isWrit_hear")
private Integer responIswritHear;
/**
* 创建者
*/
@Column(name = "create_by")
private String createBy;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 更新者
*/
@Column(name = "update_by")
private String updateBy;
/**
* 更新时间
*/
@Column(name = "update_time")
private Date updateTime;
/**
* 版本号
*/
private Integer version;
/**
* 申请人仲裁请求
*/
@Column(name = "arbitrat_claims")
private String arbitratClaims;
/**
* 事实和理由
*/
private String facts;
/**
* 申请人请求仲裁庭裁决
*/
@Column(name = "request_rule")
private String requestRule;
/**
* 案件描述
*/
@Column(name = "case_describe")
private String caseDescribe;
/**
* 调解书URL
*/
@Column(name = "mediation_url")
private String mediationUrl;
/**
* 仲裁反请求原因
*/
@Column(name = "adjudica_counter_reason")
private String adjudicaCounterReason;
/**
* 调解内容
*/
@Column(name = "mediation_agreement")
private String mediationAgreement;
}
@@ -0,0 +1,145 @@
package com.ruoyi.wisdomarbitrate.domain.entity.mscase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_application_log")
public class MsCaseApplicationLog {
/**
* id
*/
@Id
@GeneratedValue(generator = "JDBC")
private Long id;
/**
* 案件id,关联案件申请表
*/
@Column(name = "case_appli_id")
private Long caseAppliId;
/**
* 批次
*/
@Column(name = "batch_number")
private Integer batchNumber;
/**
* 模板id
*/
@Column(name = "template_id")
private Long templateId;
/**
* 案件编号
*/
@Column(name = "case_num")
private String caseNum;
/**
* 案件标的(欠款总金额)
*/
@Column(name = "case_subject_amount")
private BigDecimal caseSubjectAmount;
/**
* 调解方式,枚举,1-开庭调解,2-书面调解
*/
@Column(name = "mediation_method")
private Integer mediationMethod;
/**
* 案件状态,字典
*/
@Column(name = "case_status")
private Integer caseStatus;
/**
* 调解应缴费用
*/
@Column(name = "fee_payable")
private BigDecimal feePayable;
/**
* 是否锁定,0-否,1-是
*/
@Column(name = "lock_status")
private Integer lockStatus;
/**
* 申请人是否书面审理,1是,0否
*/
@Column(name = "appli_iswrit_hear")
private Integer appliIswritHear;
/**
* 被申请人是否书面审理,1是,0否
*/
@Column(name = "respon_isWrit_hear")
private Integer responIswritHear;
/**
* 创建者
*/
@Column(name = "create_by")
private String createBy;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 更新者
*/
@Column(name = "update_by")
private String updateBy;
/**
* 更新时间
*/
@Column(name = "update_time")
private Date updateTime;
/**
* 版本号
*/
private Integer version;
/**
* 申请人仲裁请求
*/
@Column(name = "arbitrat_claims")
private String arbitratClaims;
/**
* 事实和理由
*/
private String facts;
/**
* 申请人请求仲裁庭裁决
*/
@Column(name = "request_rule")
private String requestRule;
/**
* 案件描述
*/
@Column(name = "case_describe")
private String caseDescribe;
/**
* 调解内容
*/
@Column(name = "mediation_agreement")
private String mediationAgreement;
}
@@ -0,0 +1,72 @@
package com.ruoyi.wisdomarbitrate.domain.entity.mscase;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_attach")
public class MsCaseAttach {
/**
* 附件id
*/
@Id
@Column(name = "annex_id")
private Long annexId;
/**
* 案件申请id
*/
@Column(name = "case_appli_id")
private Long caseAppliId;
/**
* 附件名称
*/
@Column(name = "annex_name")
private String annexName;
/**
* 附件路径
*/
@Column(name = "annex_path")
private String annexPath;
/**
* 附件类型,立案申请书(1)、申请人证据材料(2)、仲裁文书(3)、案件视频(4)、身份证件(5)、被申请人证据材料 (6)、庭审笔录(7)、缴费凭证(8)、视频录制(9)、公章图片(10)、语音转录文件(11)
*/
@Column(name = "annex_type")
private Integer annexType;
/**
* 备注
*/
private String note;
/**
* 用户id
*/
@Column(name = "use_id")
private Long useId;
/**
* 用户账户
*/
@Column(name = "use_account")
private String useAccount;
/**
* 印章状态(0未启用,1已启用)
*/
@Column(name = "seal_status")
private Long sealStatus;
/**
* 是否是证据上传,0-否,1-是
*/
@Column(name = "is_batch_upload")
private Long isBatchUpload;
}
@@ -0,0 +1,72 @@
package com.ruoyi.wisdomarbitrate.domain.entity.mscase;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_attach_log")
public class MsCaseAttachLog {
/**
* id
*/
@Id
@GeneratedValue(generator = "JDBC")
private Long id;
/**
* 案件申请id
*/
@Column(name = "case_appli_log_id")
private Long caseAppliLogId;
/**
* 附件id
*/
@Column(name = "annex_id")
private Long annexId;
/**
* 附件名称
*/
@Column(name = "annex_name")
private String annexName;
/**
* 附件路径
*/
@Column(name = "annex_path")
private String annexPath;
/**
* 附件类型,立案申请书(1)、申请人证据材料(2)、仲裁文书(3)、案件视频(4)、身份证件(5)、被申请人证据材料 (6)、庭审笔录(7)、缴费凭证(8)、视频录制(9)、公章图片(10)
*/
@Column(name = "annex_type")
private Integer annexType;
/**
* 备注
*/
private String note;
/**
* 用户id
*/
@Column(name = "use_id")
private Long useId;
/**
* 用户账户
*/
@Column(name = "use_account")
private String useAccount;
/**
* 印章状态(0未启用,1已启用)
*/
@Column(name = "seal_status")
private Long sealStatus;
}
@@ -0,0 +1,70 @@
package com.ruoyi.wisdomarbitrate.domain.entity.mscase;
import java.util.Date;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@Table(name = "ms_case_log_record")
public class MsCaseLogRecord {
@Id
@GeneratedValue(generator = "JDBC")
private Long id;
/**
* 案件申请id
*/
@Column(name = "case_appli_id")
private Long caseAppliId;
/**
* 案件节点
*/
@Column(name = "case_node")
private Integer caseNode;
/**
* 案件节点时间
*/
@Column(name = "case_node_time")
private Date caseNodeTime;
/**
* 操作人用户名
*/
@Column(name = "create_by")
private String createBy;
/**
* 操作人用户昵称
*/
@Column(name = "create_nick_name")
private String createNickName;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 更新者
*/
@Column(name = "update_by")
private String updateBy;
/**
* 更新时间
*/
@Column(name = "update_time")
private Date updateTime;
/**
* 备注
*/
private String notes;
}
@@ -0,0 +1,414 @@
package com.ruoyi.wisdomarbitrate.domain.vo.mscase;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class MsCaseApplicationVO extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 查询案件时区分是否待办案件,0待办案件,1已办案件
*/
private String selectCaseStatus;
/** ID */
private Long id;
/** 案件名称 */
@Excel(name = "案件名称")
private String caseName;
/** 案件编号 */
// @Excel(name = "案件编号")
private String caseNum;
/** 案件标的 */
@Excel(name = "案件标的")
private BigDecimal caseSubjectAmount;
/**
* 模板id
*/
private Long templateId;
/** 立案日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date registerDate;
/** 仲裁方式 */
private Integer arbitratMethod;
/**
* 是否导入,0手动录入,1导入,默认0
*/
private Integer importFlag;
/** 仲裁方式名称 */
private String arbitratMethodName;
/** 案件状态 */
private Integer caseStatus;
/** 申请人是否书面审理 */
private Integer applicantIsWrittenHear;
/** 被申请人是否书面审理 */
private Integer respondentIsWrittenHear;
/** 开庭方式是否一致 */
private Integer arbitraMethodIssame;
/** 仲裁方式说明 */
private String arbitratMethodIllustrate;
/** 案件申请表ID */
private Long caseAppliId;
/** 开庭日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date hearDate;
/** 借款开始日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "借款开始日期")
private Date loanStartDate;
/** 借款结束日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "借款结束日期")
private Date loanEndDate;
/** 合同编号 */
@Excel(name = "合同编号")
private String contractNumber;
/** 申请人主张欠本金 */
@Excel(name = "申请人主张欠本金")
private BigDecimal claimPrinciOwed;
/** 申请人主张欠利息 */
@Excel(name = "申请人主张欠利息")
private BigDecimal claimInterestOwed;
/** 申请人主张违约金 */
@Excel(name = "申请人主张违约金")
private BigDecimal claimLiquidDamag;
/** 申请人请求仲裁庭裁决 */
@Excel(name = "申请人请求仲裁庭裁决",width = 36)
private String requestRule;
/** 是否财产保全申请 */
@Excel(name = "是否财产保全申请",width = 26,combo= {"是","否"},readConverterExp = "0=否,1=是")
private Integer properPreser;
/** 申请人仲裁请求及事实和理由 */
@Excel(name = "申请人仲裁请求及事实和理由",width = 36)
private String arbitratClaims;
/** 仲裁应缴费用 */
private BigDecimal feePayable;
/** 开始在线视频时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date beginVideoDate;
/** 在线视频人员 */
private String onlineVideoPerson;
/** 仲裁员id */
private String arbitratorId;
/** 仲裁员名称 */
private String arbitratorName;
/** 案件描述 */
private String caseDescribe;
/** 裁决书URL */
private String filearbitraUrl;
/** 是否同意组庭 */
private Integer isAgreePendTral;
/** 是否有异议需要举证 */
private Integer objectionAddEviden;
/** 是否需要开庭审理 */
private Integer openCourtHear;
/** 是否仲裁反请求 */
private Integer adjudicaCounter;
/**
* 仲裁反请求原因
*/
private String adjudicaCounterReason;
/** 被申请人是否缺席 */
private Integer isAbsence;
/** 是否管辖异议申请 */
private Integer objectiJuris;
/** 被申请人质证意见 */
private String responCrossOpin;
/** 被申请人的答辩意见 */
private String responDefenOpini;
/** 申请人是否缺席 */
private Integer appliIsAbsen;
/** 申请人质证意见 */
private String applicaCrossOpin;
/** 支付状态 */
private Integer paymentStatus;
/** 支付状态描述 */
private String paymentStatusName;
/**
* 支付方式code,0线上支付,1线下支付
*/
private Integer payTypeCode;
/**
* 支付方式name,0线上支付,1线下支付
*/
private String payTypeName;
/**
* 缴费凭证
*/
private List<CaseAttach> payOrderList;
// 导入校验失败信息
private StringBuilder errorMsg;
/**
* 是否锁定,0-否,1-是
*/
private Integer lockStatus;
/** 案件状态名称 */
private String caseStatusName;
/** 是否同意审核 */
private Integer agreeOrNotCheck;
/** 申请人名称 */
private String applicantName;
/** 被申请人名称 */
private String respondentName;
/**
* 用户身份证号
*/
private String idCard;
/**
* 用户id
*/
private String userId;
/**
* 登录用户用户名
*/
private String loginUserName;
private List<Long> deptIds;
/**
* 部门长状态
*/
private List<Integer> deptHeadStatus;
/**
* 代理人角色有关部门
*/
private List<Long> agentDeptIds;
/**
* 财务状态
*/
private Integer financeStatus;
/**
* 是否是被申请人,仲裁员,部门长,财务,代理人,0-否,1-是
*/
private Integer isOtherRole;
/**
* 案件日志id
*/
private Long caseLogId;
/** 仲裁结果 */
private String caseResult;
/** 是否指派仲裁员 */
private int pendingAppointArbotrar;
private List<Integer> caseStatusList;
private List<Integer> annexTypeList;
private Integer annexType;
/**
* 案件附件列表
*/
private List<CaseAttach> caseAttachList;
/** 身份类型 */
// @Excel(name = "身份类型")
private int identityType;
/**
* 申请人主体信息
*/
/** 姓名 */
@Excel(name = "申请人主体信息-申请人(机构)",width = 26)
private String name;
/** 身份证号 */
@Excel(name = "申请人主体信息-代码",width = 26)
private String identityNum;
/** 申请人主体信息-法定代表人 */
@Excel(name = "申请人主体信息-法定代表人",width = 26)
private String compLegalPerson;
/** 申请人主体信息-法定代表人 */
@Excel(name = "申请人主体信息-法定代表人职位",width = 26)
private String compLegalperPost;
/**
* 申请人主体信息-申请人(机构)id
*/
private String nameId;
/** 联系电话 */
@Excel(name = "申请人主体信息-联系电话",width = 26)
private String contactTelphone;
/** 联系地址 */
@Excel(name = "申请人主体信息-联系地址",width = 26)
private String contactAddress;
/** 单位电话 */
@Excel(name = "申请人主体信息-单位电话",width = 26)
private String workTelphone;
/** 单位地址 */
@Excel(name = "申请人主体信息-单位地址",width = 26)
private String workAddress;
/** 申请人住所 */
@Excel(name = "申请人主体信息-住所",width = 26)
private String residenAffiliAppli;
/** 申请人邮箱 */
@Excel(name = "申请人主体信息-邮箱",width = 26)
private String email;
/** 代理人姓名 */
@Excel(name = "申请人主体信息-代理人姓名",width = 26)
private String nameAgent;
/** 身份证号 */
@Excel(name = "申请人主体信息-代理人身份证号",width = 26)
private String identityNumAgent;
/** 联系电话 */
@Excel(name = "申请人主体信息-代理人联系电话",width = 26)
private String contactTelphoneAgent;
/** 联系地址 */
@Excel(name = "申请人主体信息-代理人联系地址",width = 26)
private String contactAddressAgent;
/** 申请人代理人职称 */
@Excel(name = "申请人主体信息-代理人职称",width = 26)
private String appliAgentTitle;
/**
* 被申请人主体信息
*/
/** 姓名 */
@Excel(name = "被申请人主体信息-申请人姓名",width = 26)
private String debtorName;
/** 身份证号 */
@Excel(name = "被申请人主体信息-身份证号",width = 26)
private String debtorIdentityNum;
/** 被申请人主体信息-性别 */
@Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,1=女")
private String responSex;
/** 被申请人主体信息-出生年月日 */
@Excel(name = "被申请人主体信息-出生年月日",width = 26)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date responBirth;
/** 联系电话 */
@Excel(name = "被申请人主体信息-联系电话",width = 26)
private String debtorContactTelphone;
/** 联系地址 */
@Excel(name = "被申请人主体信息-联系地址",width = 26)
private String debtorContactAddress;
/** 被申请人住所 */
@Excel(name = "被申请人主体信息-住所",width = 26)
private String residenAffiliRespon;
/** 单位电话 */
@Excel(name = "被申请人主体信息-单位电话",width = 26)
private String debtorWorkTelphone;
/** 单位地址 */
@Excel(name = "被申请人主体信息-单位地址",width = 26)
private String debtorWorkAddress;
/** 邮箱 */
@Excel(name = "被申请人主体信息-邮箱",width = 26)
private String debtorEmail;
/** 代理人姓名 */
@Excel(name = "被申请人主体信息-代理人姓名",width = 26)
private String debtorNameAgent;
/** 身份证号 */
@Excel(name = "被申请人主体信息-代理人身份证号",width = 26)
private String debtorIdentityNumAgent;
/** 联系电话 */
@Excel(name = "被申请人主体信息-代理人联系电话",width = 26)
private String debtorContactTelphoneAgent;
/** 联系地址 */
@Excel(name = "被申请人主体信息-代理人联系地址",width = 26)
private String debtorContactAddressAgent;
/**
* 申请机构id
*/
private String applicationOrganId;
/**
* 版本号
*/
private Integer version;
/**
* 修改案件的提交状态,0-未提交,1-已提交,2-同意,3-拒绝,4-撤销
*/
private Integer updateSubmitStatus;
/** 合同名称 */
private String contractName;
/**
* 事实和理由
*/
private String facts;
/**
* 合同甲方
*/
private String partyA;
/**
* 利率
*/
private String interestRate;
/**
* 待还金额
*/
private String outstandingMoney;
/**
* 调解达成协议内容
*/
private String mediationAgreement;
/**
* 金融消费纠纷基本情况
*/
private String disputes;
/**
* 贷款类型
*/
private String loanType;
/**
* 贷款期限
*/
private String loanTerm;
/**
* 本案争议焦点
*/
private String caseFocus;
/**
* 本案事实
*/
private String caseFacts;
/**
* 被申请人对上述材料的质证意见
*/
private String respondentOpinion;
/**
* 申请人对上述材料的质证意见
*/
private String applicantOpinion;
/**
* 批号
*/
private Integer batchNumber;
/**
* 自定义字段
*/
private List<MsColumnValueVO> msColumnValueVOS;
/**
* 待办状态,0待办,1已办
*/
private Integer pendingStatus;
/** e签宝流程id */
private String signFlowId;;
}
@@ -6,7 +6,7 @@ import lombok.Data;
* 动态配置字段表
*/
@Data
public class ColumnValue {
public class MsColumnValueVO {
private static final long serialVersionUID = 1L;
/**
@@ -3,7 +3,6 @@ package com.ruoyi.wisdomarbitrate.domain.vo.mscase;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
@@ -13,7 +12,7 @@ import java.util.Date;
* @date 2023-11-08 11:05
*/
@Data
public class ReservedConferenceVO {
public class MsReservedConferenceVO {
/**
* 用户id
*/
@@ -0,0 +1,7 @@
package com.ruoyi.wisdomarbitrate.mapper.casestatus;
import com.ruoyi.wisdomarbitrate.domain.entity.casestatus.MsCaseStatus;
import tk.mybatis.mapper.common.Mapper;
public interface MsCaseStatusMapper extends Mapper<MsCaseStatus> {
}
@@ -0,0 +1,7 @@
package com.ruoyi.wisdomarbitrate.mapper.casestatus;
import com.ruoyi.wisdomarbitrate.domain.entity.casestatus.MsCaseStatusRole;
import tk.mybatis.mapper.common.Mapper;
public interface MsCaseStatusRoleMapper extends Mapper<MsCaseStatusRole> {
}
@@ -0,0 +1,7 @@
package com.ruoyi.wisdomarbitrate.mapper.dept;
import com.ruoyi.wisdomarbitrate.domain.entity.dept.MsSealSignRecord;
import tk.mybatis.mapper.common.Mapper;
public interface MsSealSignRecordMapper extends Mapper<MsSealSignRecord> {
}
@@ -1,18 +0,0 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.MsCaseLogRecordDTO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface CaseLogRecordMapper extends Mapper<MsCaseLogRecordDTO> {
List<CaseLogRecord> selectCaseLogRecordList(CaseLogRecord caseLogRecord);
int insertCaseLogRecord(CaseLogRecord caseLogRecord);
void batchInsertRecord(@Param("list")List<CaseLogRecord> list);
}
@@ -1,29 +0,0 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.ColumnValue;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 动态配置字段表
*/
@Repository
public interface ColumnValueLogMapper {
/**
* 批量新增
*/
int batchSave(@Param("list") List<ColumnValue> list);
void batchUpdate(@Param("list") List<ColumnValue> list);
/**
* 根据案件id查询字段及值
* @param caseAppliLogId
* @return
*/
List<ColumnValue> listBycaseAppliLogId(@Param("caseAppliLogId") Long caseAppliLogId);
List<ColumnValue> queryColumnValueList(ColumnValue columnValue);
}
@@ -1,36 +0,0 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.ColumnValue;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 动态配置字段表
*/
@Repository
public interface ColumnValueMapper {
/**
* 批量新增
*/
int batchSave(@Param("list") List<ColumnValue> list);
/**
* 根据案件id查询字段及值
* @param caseId
* @return
*/
List<ColumnValue> listByCaseId(@Param("caseId") Long caseId);
List<ColumnValue> queryColumnValueList(ColumnValue columnValue);
/**
* 批量修改
*/
void batchUpdate(@Param("list") List<ColumnValue> list);
int updateColumnValue(ColumnValue columnValue);
}
@@ -0,0 +1,7 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliateLog;
import tk.mybatis.mapper.common.Mapper;
public interface MsCaseAffiliateLogMapper extends Mapper<MsCaseAffiliateLog> {
}
@@ -0,0 +1,7 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliate;
import tk.mybatis.mapper.common.Mapper;
public interface MsCaseAffiliateMapper extends Mapper<MsCaseAffiliate> {
}
@@ -0,0 +1,7 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplicationLog;
import tk.mybatis.mapper.common.Mapper;
public interface MsCaseApplicationLogMapper extends Mapper<MsCaseApplicationLog> {
}
@@ -0,0 +1,7 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication;
import tk.mybatis.mapper.common.Mapper;
public interface MsCaseApplicationMapper extends Mapper<MsCaseApplication> {
}
@@ -1,6 +1,6 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseApplicationVO;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@@ -8,12 +8,12 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface CaseAttachLogMapper {
public interface MsCaseAttachLogMapper {
int save(CaseAttach caseAttach);
List<CaseAttach> queryAnnexPathByCaseId(Long id);
List<CaseAttach> queryCaseAttachList(CaseApplication caseApplication);
List<CaseAttach> queryCaseAttachList(MsCaseApplicationVO msCaseApplicationVO);
int updateCaseAttach(CaseAttach caseAttach);
@@ -1,6 +1,6 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseApplicationVO;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@@ -8,13 +8,13 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface CaseAttachMapper {
public interface MsCaseAttachMapper {
int save(CaseAttach caseAttach);
int batchSave(@Param("list") List<CaseAttach> caseAttach);
List<CaseAttach> queryAnnexPathByCaseId(Long id);
List<CaseAttach> queryCaseAttachList(CaseApplication caseApplication);
List<CaseAttach> queryCaseAttachList(MsCaseApplicationVO msCaseApplicationVO);
int updateCaseAttach(CaseAttach caseAttach);
@@ -0,0 +1,7 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord;
import tk.mybatis.mapper.common.Mapper;
public interface MsCaseLogRecordMapper extends Mapper<MsCaseLogRecord> {
}
@@ -0,0 +1,29 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsColumnValueVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 动态配置字段表
*/
@Repository
public interface MsColumnValueLogMapper {
/**
* 批量新增
*/
int batchSave(@Param("list") List<MsColumnValueVO> list);
void batchUpdate(@Param("list") List<MsColumnValueVO> list);
/**
* 根据案件id查询字段及值
* @param caseAppliLogId
* @return
*/
List<MsColumnValueVO> listBycaseAppliLogId(@Param("caseAppliLogId") Long caseAppliLogId);
List<MsColumnValueVO> queryColumnValueList(MsColumnValueVO msColumnValueVO);
}
@@ -0,0 +1,35 @@
package com.ruoyi.wisdomarbitrate.mapper.mscase;
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsColumnValueVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 动态配置字段表
*/
@Repository
public interface MsColumnValueMapper {
/**
* 批量新增
*/
int batchSave(@Param("list") List<MsColumnValueVO> list);
/**
* 根据案件id查询字段及值
* @param caseId
* @return
*/
List<MsColumnValueVO> listByCaseId(@Param("caseId") Long caseId);
List<MsColumnValueVO> queryColumnValueList(MsColumnValueVO msColumnValueVO);
/**
* 批量修改
*/
void batchUpdate(@Param("list") List<MsColumnValueVO> list);
int updateColumnValue(MsColumnValueVO msColumnValueVO);
}
@@ -0,0 +1,655 @@
package com.ruoyi.wisdomarbitrate.service.dept.impl;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.constant.FileTransformation;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.exception.EsignDemoException;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.SealUtil;
import com.ruoyi.common.utils.file.FileUploadUtils;
import com.ruoyi.system.mapper.SysDeptMapper;
import com.ruoyi.system.mapper.SysDictDataMapper;
import com.ruoyi.system.mapper.SysUserMapper;
import com.ruoyi.system.mapper.SysUserPostMapper;
import com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach;
import com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify;
import com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule;
import com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage;
import com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule;
import com.ruoyi.wisdomarbitrate.mapper.dept.DeptIdentifyMapper;
import com.ruoyi.wisdomarbitrate.mapper.dept.SealManageMapper;
import com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachMapper;
import com.ruoyi.wisdomarbitrate.mapper.template.FatchRuleMapper;
import com.ruoyi.wisdomarbitrate.mapper.template.TemplateManageMapper;
import com.ruoyi.wisdomarbitrate.service.dept.IDeptIdentifyService;
import com.ruoyi.wisdomarbitrate.utils.SignAward;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import com.ruoyi.wisdomarbitrate.mapper.template.TemplateFatchRuleMapper;
import java.io.File;
import java.io.IOException;
import java.time.LocalDate;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static com.ruoyi.common.utils.PageUtils.startPage;
import static com.ruoyi.common.utils.SecurityUtils.getUsername;
@Service
public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
@Autowired
private DeptIdentifyMapper deptIdentifyMapper;
@Autowired
private MsCaseAttachMapper msCaseAttachMapper;
@Autowired
private SealManageMapper sealManageMapper;
@Autowired
private SysDeptMapper sysDeptMapper;
@Autowired
private SysUserMapper sysUserMapper;
@Autowired
private TemplateManageMapper templateManageMapper;
@Autowired
private SysUserPostMapper sysUserPostMapper;
@Autowired
private TemplateFatchRuleMapper templateFatchRuleMapper;
@Autowired
private FatchRuleMapper fatchRuleMapper;
@Autowired
private SysDictDataMapper dictDataMapper;
@Override
@Transactional
public List<DeptIdentify> selectDeptIdentify(DeptIdentify deptIdentify) {
return deptIdentifyMapper.selectDeptIdentify(deptIdentify);
}
@Override
@Transactional
public DeptIdentify selectDeptIndefiUrl(DeptIdentify deptIdentify) throws EsignDemoException {
List<DeptIdentify> deptIdentifysnew = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
DeptIdentify deptIdentifynew = new DeptIdentify();
if (deptIdentifysnew != null && deptIdentifysnew.size() > 0) {
Gson gson = new Gson();
DeptIdentify deptIdentifyselect = deptIdentifysnew.get(0);
EsignHttpResponse identifyUrl = SignAward.deptIdentifyUrl(deptIdentifyselect);
JsonObject signUrlJsonObject = gson.fromJson(identifyUrl.getBody(), JsonObject.class);
int code = signUrlJsonObject.get("code").getAsInt();
if (code == 0) {
JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
String url = signUrlData.get("authUrl").getAsString();
//获取本次认证授权流程ID
String authFlowId = signUrlData.get("authFlowId").getAsString();
deptIdentify.setAuthFlowId(authFlowId);
deptIdentifynew.setIdentifyUrl(url);
deptIdentify.setIdentifyDate(new Date());
int row = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
}
}
return deptIdentifynew;
}
@Override
@Transactional
public AjaxResult enableDept(DeptIdentify deptIdentify) {
//参数校验
if (deptIdentify.getId() == null) {
return AjaxResult.error("请检查参数");
}
List<DeptIdentify> deptIdentifysnew = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
DeptIdentify deptIdentifyselect = deptIdentifysnew.get(0);
Integer identifyStatus = deptIdentifyselect.getIdentifyStatus();
if (identifyStatus != 1) {
return AjaxResult.error("这个认证数据未进行认证,不能启用");
}
deptIdentifyselect.setIsUse(1);
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentifyselect);
if (i > 0) {
//把其他认证数据置为未使用
DeptIdentify deptIdentify2 = new DeptIdentify();
deptIdentify2.setIsUse(1);
List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify2);
for (DeptIdentify deptIdentify3 : deptIdentifies) {
if (deptIdentify3.equals(deptIdentifyselect)) {
continue;
}
deptIdentify3.setIsUse(0);
deptIdentifyMapper.updateDeptIdentify(deptIdentify3);
}
return AjaxResult.success("启用成功");
}
return AjaxResult.error();
}
@Override
public AjaxResult sealUpload(Long id, String sealName, MultipartFile file) {
try {
if (file.isEmpty()) {
return AjaxResult.error("请选择要上传的文件");
}
String filePath = RuoYiConfig.getUploadPath();
// 上传
String fileName = FileUploadUtils.upload(filePath, file);
DeptIdentify deptIdentify = new DeptIdentify();
deptIdentify.setId(id);
List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
if (deptIdentifies != null && deptIdentifies.size() > 0) {
for (DeptIdentify identify : deptIdentifies) {
//先判断企业用户是否授予资源管理权限
String authFlowId = identify.getAuthFlowId();
if (authFlowId == null) {
return AjaxResult.error("改机构尚未认证,不能上传自定义公章");
}
EsignHttpResponse response1 = SealUtil.queryAuthProcess(authFlowId);
JSONObject jsonObject1 = JSONObject.parseObject(response1.getBody());
int authorizedStatus = jsonObject1.getJSONObject("data").getIntValue("authorizedStatus");
if (authorizedStatus == 1) {//授权流程状态 0流程过期失效 1已授权 2授权中 3审批未通过
String prefix = "/profile";
int startIndex = fileName.indexOf(prefix);
startIndex += prefix.length();
String annexPath = "home/ruoyi/uploadPath" + fileName.substring(startIndex);
//创建机构图片印章
//String annexPath = "D:\\develop\\2.jpg";
EsignHttpResponse response = SignAward.createOrgByImage(identify, sealName, annexPath);
JSONObject jsonObject = JSONObject.parseObject(response.getBody());
int code = jsonObject.getIntValue("code");
if (code == 0) { //业务码,0表示成功,非0表示异常。
String sealId = jsonObject.getJSONObject("data").getString("sealId");
//保存到表里
SealManage sealManage = new SealManage();
sealManage.setIdentifyId(identify.getId());
sealManage.setSealName(sealName);
sealManage.setSealId(sealId);
sealManage.setSealStatus(0); //默认为未审核
sealManage.setIsUse(0); //默认为禁用
int i = sealManageMapper.insertSealManage(sealManage);
if (i > 0) {
return AjaxResult.success("上传成功");
}
}
return AjaxResult.error(jsonObject.getString("message"));
}
return AjaxResult.error("企业用户未授予资源管理权限");
}
}
} catch (IOException e) {
e.printStackTrace();
} catch (EsignDemoException e) {
e.printStackTrace();
}
return AjaxResult.error();
}
@Override
public AjaxResult receiveNotify(String body) {
/* 请求Body数据格式如下:
{
"action":"SEAL_AUDIT",
"auditStatus":1,
"psnId":"c7e00294**41e7",
"rejectReason":"",
"sealBizType":"COMMON",
"sealId":"af80ba0f-xx-xx-xx-a2da292d7f7f",
"sealName":"赵四的图片印章",
"statusDescription":"通过"
}*/
//解析body数据
try {
JSONObject jsonObject = JSONObject.parseObject(body);
String action = jsonObject.getString("action");
if (action.equals("SEAL_AUDIT")) { //SEAL_AUDIT表示图片印章审核结果通知
String auditStatus = jsonObject.getString("auditStatus");
if (auditStatus.equals("1")) { //图片印章审核结果 1通过 ,0驳回
//审核通过,拿到印章id和机构账号ID
String orgId = jsonObject.getString("orgId");
String sealId = jsonObject.getString("sealId");
//查询指定印章详情(机构)
EsignHttpResponse response = SignAward.getOrgSeal(orgId, sealId);
JSONObject jsonObject1 = JSONObject.parseObject(response.getBody());
if (jsonObject1.getIntValue("code") == 0) { //业务码,0表示成功,非0表示异常。
int sealStatus = jsonObject1.getJSONObject("data").getIntValue("sealStatus");
if (sealStatus == 1) { //印章状态 1已启用,2待审核,3审核不通过,4 挂起
String sealImageDownloadUrl = jsonObject1.getString("sealImageDownloadUrl");
LocalDate now = LocalDate.now();
String year = Integer.toString(now.getYear());
String month = String.format("%02d", now.getMonthValue());
String day = String.format("%02d", now.getDayOfMonth());
String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
String fileName = UUID.randomUUID().toString().replace("-", "") + ".pdf";
String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
String savePath = "/home/ruoyi/uploadPath/upload/";
// 创建日期目录
File saveFolder = new File(saveFolderPath);
if (!saveFolder.exists()) {
saveFolder.mkdirs();
}
String resultFilePath = saveFolderPath + "/" + fileName;
File resultFilePathFile = new File(resultFilePath);
if (!resultFilePathFile.exists()) {
resultFilePathFile.createNewFile();
}
boolean downLoadFile = FileTransformation.downLoadFileByUrl(sealImageDownloadUrl, resultFilePath);
if (downLoadFile) {
CaseAttach caseAttach = new CaseAttach();
caseAttach.setAnnexType(10); //10代表印章图片
caseAttach.setAnnexPath(savePath);
caseAttach.setAnnexName(saveName);
int i1 = msCaseAttachMapper.save(caseAttach);
if (i1 > 0) {
//将附件id保存到公章管理表里
Integer annexId1 = caseAttach.getAnnexId();
SealManage sealManage = new SealManage();
sealManage.setSealId(sealId);
List<SealManage> selectSealList = sealManageMapper.selectSealList(sealManage);
if (selectSealList != null && selectSealList.size() > 0) {
SealManage sealManage1 = selectSealList.get(0);
sealManage1.setAnnexId(annexId1);
sealManage1.setSealStatus(1); //启用
sealManageMapper.updateSealManage(sealManage1);
}
}
}
}
}
}
}
} catch (EsignDemoException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return new AjaxResult(200, "success");
}
@Override
public List<SealManage> getSealList(DeptIdentify deptIdentify) {
if (deptIdentify.getId() == null) {
return null;
}
SealManage sealManage = new SealManage();
sealManage.setIdentifyId(deptIdentify.getId());
List<SealManage> selectSealList = sealManageMapper.selectSealList(sealManage);
if (selectSealList != null && selectSealList.size() > 0) {
for (SealManage sealManage1 : selectSealList) {
Integer annexId = sealManage1.getAnnexId();
if (annexId != null) {
//根据附件id查询路径
CaseAttach caseAttach = msCaseAttachMapper.queryAnnexById(annexId);
String annexName = caseAttach.getAnnexName();
String prefix = "/profile";
int startIndex = annexName.indexOf(prefix);
startIndex += prefix.length();
String annexPath = "/uploadPath" + annexName.substring(startIndex);
sealManage1.setAnnexPath(annexPath);
} else {
sealManage1.setAnnexPath(null);
}
}
}
return selectSealList;
}
@Override
public AjaxResult updateSealLockStatus(SealManage sealManage) {
sealManageMapper.updateSealManage(sealManage);
return AjaxResult.success();
}
@Override
public AjaxResult insertDeptIdentify(DeptIdentify deptIdentify) {
//参数校验
String identifyName = deptIdentify.getIdentifyName();
if (identifyName == null) {
AjaxResult.error("请检查参数是否完整");
}
Integer identifyType = deptIdentify.getIdentifyType();
if (identifyType == null) {
deptIdentify.setIdentifyType(1); // 设置机构默认为仲裁机构
}
deptIdentify.setIdentifyStatus(0); //设置认证状态默认为未认证
deptIdentify.setIsUse(0); //设置机构默认为未启用
//将机构名称保存到部门表里
SysDept sysDept = new SysDept();
sysDept.setDeptName(identifyName);
sysDept.setParentId(0L);
sysDept.setDeptType(1);
int i1 = sysDeptMapper.insertDept(sysDept);
if (i1 > 0) {
/* //将经办人信息存入到用户表里
Long deptId = sysDept.getDeptId();
SysUser sysUser = new SysUser();
sysUser.setDeptId(deptId);
sysUser.setUserName(deptIdentify.getOperUserName());
sysUser.setNickName(operName);
sysUser.setPhonenumber(operPhone);
SysUser sysUser1 = sysUserMapper.selectUserByUserName(deptIdentify.getOperUserName());
if (sysUser1== null) {
sysUserMapper.insertUser(sysUser);
}
Long userId = sysUser.getUserId();
deptIdentify.setDeptId(deptId);
deptIdentify.setUserId(userId);
List<SysUserPost> sysUserPosts = new ArrayList<>();
SysUserPost sysUserPost = new SysUserPost();
sysUserPost.setUserId(userId);
sysUserPost.setPostId(5L);
sysUserPosts.add(sysUserPost);
sysUserPostMapper.batchUserPost(sysUserPosts);*/
Long deptId = sysDept.getDeptId();
deptIdentify.setDeptId(deptId);
}
int i = deptIdentifyMapper.insertDeptIdentify(deptIdentify);
if (i > 0) {
return AjaxResult.success("新增成功");
}
return AjaxResult.error();
}
@Override
public AjaxResult deleteDeptIdentify(Long id) {
DeptIdentify deptIdentify = new DeptIdentify();
deptIdentify.setId(id);
deptIdentify.setDelFlag(2);
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
if (i > 0) {
//删除部门表数据
sysDeptMapper.deleteDeptById(id);
return AjaxResult.success("删除成功");
}
return AjaxResult.error();
}
@Override
public AjaxResult updateDeptIdentify(DeptIdentify deptIdentify) {
Long id = deptIdentify.getId();
if (id == null) {
return AjaxResult.error();
}
DeptIdentify deptIdentifyNew = new DeptIdentify();
deptIdentifyNew.setId(id);
List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentifyNew);
if (deptIdentifies != null && deptIdentifies.size() > 0) {
DeptIdentify deptIdentify1 = deptIdentifies.get(0);
if (deptIdentify1.getIdentifyStatus() == 1) {
return AjaxResult.error("已认证的机构不允许修改");
}
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
if (i > 0) {
//修改部门表数据
SysDept sysDept = new SysDept();
sysDept.setDeptId(deptIdentify1.getDeptId());
sysDept.setDeptName(deptIdentify.getIdentifyName());
sysDeptMapper.updateDept(sysDept);
return AjaxResult.success("修改成功");
}
}
return null;
}
@Override
public AjaxResult insertTemplate(TemplateManage templateManage, MultipartFile file) {
//参数校验
if (templateManage.getIdentifyId() == null || file == null || templateManage.getTemName() == null) {
return AjaxResult.error("请检查参数是否完整");
}
if (templateManage.getTemType() == null) {
templateManage.setTemType(1); //默认模板类型为1(裁决书)
}
try {
String filePath = RuoYiConfig.getUploadPath();
// 上传
String fileName = FileUploadUtils.upload(filePath, file);
String prefix = "/profile";
int startIndex = fileName.indexOf(prefix);
startIndex += prefix.length();
String annexPath = "uploadPath" + fileName.substring(startIndex);
templateManage.setTemOrigPath(annexPath);
String format = getFileExtension(fileName);
templateManage.setTemFormat(format);
String subFileName = fileName.substring(fileName.lastIndexOf("/") + 1);
templateManage.setFileName(subFileName);
templateManage.setCreateBy(getUsername());
int i = templateManageMapper.insertTemplateManage(templateManage);
if (i > 0) {
return AjaxResult.success("新增成功");
}
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
@Override
public AjaxResult updateTemplate(TemplateManage templateManage, MultipartFile file) {
Long id = templateManage.getId();
if (id == null) {
return AjaxResult.error();
}
try {
if (file != null && file.getSize() > 0) {
String filePath = RuoYiConfig.getUploadPath();
// 上传
String fileName = FileUploadUtils.upload(filePath, file);
String prefix = "/profile";
int startIndex = fileName.indexOf(prefix);
startIndex += prefix.length();
String annexPath = "uploadPath" + fileName.substring(startIndex);
templateManage.setTemOrigPath(annexPath);
String subFileName = fileName.substring(fileName.lastIndexOf("/") + 1);
templateManage.setFileName(subFileName);
String format = getFileExtension(fileName);
templateManage.setTemFormat(format);
}
templateManage.setUpdateBy(getUsername());
int i = templateManageMapper.updateTemplateManage(templateManage);
if (i > 0) {
return AjaxResult.success("修改成功");
}
} catch (IOException e) {
e.printStackTrace();
}
return AjaxResult.error();
}
@Override
public AjaxResult deleteTemplate(Long id) {
TemplateManage templateManage = new TemplateManage();
templateManage.setId(id);
templateManage.setDelFlag(2);
int i = templateManageMapper.updateTemplateManage(templateManage);
if (i > 0) {
return AjaxResult.success("删除成功");
}
return AjaxResult.error();
}
@Override
public List<TemplateManage> getTemplateList(DeptIdentify deptIdentify) {
TemplateManage templateManage = new TemplateManage();
templateManage.setIdentifyId(deptIdentify.getId());
List<TemplateManage> templateManages = templateManageMapper.selectTemplateList(templateManage);
if (templateManages != null && templateManages.size() > 0) {
for (TemplateManage manage : templateManages) {
//根据机构id查询机构名称
Long identifyId = manage.getIdentifyId();
if (identifyId != null) {
deptIdentify.setId(identifyId);
List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
if (deptIdentifies != null && deptIdentifies.size() > 0) {
manage.setIdentifyName(deptIdentifies.get(0).getIdentifyName());
}
}
}
}
return templateManages;
}
@Override
public List<SysUser> selectPostUserByDeptId(DeptIdentify deptIdentify) {
List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
if (deptIdentifies != null && deptIdentifies.size() > 0) {
deptIdentify = deptIdentifies.get(0);
if (deptIdentify.getDeptId() != null) {
//默认查询经办人的
Long roleId = 106L;
List<SysUser> sysUserList = sysUserMapper.selectRoleUserByDeptId(deptIdentify.getDeptId(), roleId);
return sysUserList;
}
}
return null;
}
@Override
public AjaxResult bindHandler(DeptIdentify deptIdentify) {
if (deptIdentify.getId() == null || deptIdentify.getUserId() == null) {
return AjaxResult.error("请检查参数是否完整");
}
//根据userid查询用户信息
SysUser sysUser = sysUserMapper.selectUserById(deptIdentify.getUserId());
if (sysUser != null) {
deptIdentify.setOperName(sysUser.getNickName());
deptIdentify.setOperPhone(sysUser.getPhonenumber());
deptIdentify.setOperUserName(sysUser.getUserName());
deptIdentify.setUserId(deptIdentify.getUserId());
//更新
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
if (i > 0) {
return AjaxResult.success("绑定成功");
}
}
return null;
}
@Override
public List<FatchRule> getFatchRuleByTemplateid(TemplateManage templateManage) {
FatchRule fatchRule = new FatchRule();
fatchRule.setTemplateId(templateManage.getId());
return fatchRuleMapper.selectFatchRuleList(fatchRule);
}
@Override
@Transactional
public AjaxResult saveFatchRules(TemplateManage templateManage) {
TemplateFatchRule templateFatchRule = new TemplateFatchRule();
templateFatchRule.setTemplateId(templateManage.getId());
templateFatchRuleMapper.deleteTemplateFatchRule(templateManage.getId());
List<FatchRule> fatchRules = templateManage.getFatchRules();
Map<Object, Long> columnmap = fatchRules.stream().collect(Collectors.groupingBy(fatchRule -> fatchRule.getColumn(), Collectors.counting()));
Stream<Object> columnStream = columnmap.entrySet().stream().filter(entry -> entry.getValue() > 1).map(entry -> entry.getKey());
List<String> strlist1 = new ArrayList<>();
columnStream.forEach(column -> {
strlist1.add(column.toString());
});
if(strlist1!=null&&strlist1.size()>0){
throw new ServiceException("字段' " + String.join(",", strlist1) + " '重复");
}
Map<Object, Long> columnNamemap = fatchRules.stream().collect(Collectors.groupingBy(fatchRule -> fatchRule.getColumnName(), Collectors.counting()));
Stream<Object> columnNameStream = columnNamemap.entrySet().stream().filter(entry -> entry.getValue() > 1).map(entry -> entry.getKey());
List<String> strlist2 = new ArrayList<>();
columnNameStream.forEach(column -> {
strlist2.add(column.toString());
});
if(strlist2!=null&&strlist2.size()>0){
throw new ServiceException("字段' " + String.join(",", strlist2) + " '重复");
}
if(fatchRules!=null&&fatchRules.size()>0){
for (FatchRule fatchRule : fatchRules) {
//保存抓取规则数据
fatchRuleMapper.insertFatchRule(fatchRule);
//保存模板抓取规则关联关系
Long fatchRuleId = fatchRule.getId();
if(fatchRuleId!=null){
templateFatchRule.setFatchRuleId(fatchRuleId);
templateFatchRuleMapper.insertTemplateFatchRule(templateFatchRule);
}
}
return AjaxResult.success("新增成功");
}
return AjaxResult.error();
}
@Override
public List<FatchRule> selectColumnandComment() {
List<FatchRule> fatchRules = new ArrayList<>();
FatchRule fatchRuleselect = new FatchRule();
fatchRuleselect.setDatabaseName("test_smart_arbitration");
fatchRules = fatchRuleMapper.selectColumnandComment(fatchRuleselect);
return fatchRules;
}
@Override
public FatchRule selectColumnbycomment(FatchRule fatchRule) {
fatchRule.setDatabaseName("test_smart_arbitration");
FatchRule fatchRulesel = fatchRuleMapper.selectColumnbycomment(fatchRule);
return fatchRulesel;
}
/**
* 根据模板id查询模板字段列表
* @param templateManage
* @return
*/
@Override
public List<FatchRule> getTemplateInfoById(TemplateManage templateManage) {
FatchRule fatchRule = new FatchRule();
fatchRule.setTemplateId(templateManage.getId());
List<FatchRule> fatchRuleList = fatchRuleMapper.selectFatchRuleList(fatchRule);
if(CollectionUtil.isEmpty(fatchRuleList)){
fatchRuleList=new ArrayList<>();
}
List<String> columnNameList = fatchRuleList.stream().map(FatchRule::getColumnName).collect(Collectors.toList());
// 在系统表中查询案件内置字段
SysDictData sysDictData = new SysDictData();
sysDictData.setDictType("case_built_type");
List<SysDictData> dictDataList = dictDataMapper.selectDictDataList(sysDictData);
if(CollectionUtil.isNotEmpty(dictDataList)){
for (SysDictData dictData : dictDataList) {
if(StrUtil.isEmpty(dictData.getDictLabel())||columnNameList.contains(dictData.getDictLabel())){
continue;
}
FatchRule rule=new FatchRule();
rule.setColumn(dictData.getDictValue());
rule.setColumnName(dictData.getDictLabel());
fatchRuleList.add(rule);
}
}
return fatchRuleList;
}
private String getFileExtension(String fileName) {
int lastDotIndex = fileName.lastIndexOf(".");
if (lastDotIndex > 0 && lastDotIndex < fileName.length() - 1) {
return fileName.substring(lastDotIndex + 1);
}
return "";
}
}
@@ -1,17 +0,0 @@
package com.ruoyi.wisdomarbitrate.service.mscase;
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
import java.util.List;
public interface ICaseLogRecordService {
List<CaseLogRecord> selectCaseLogRecordList(CaseLogRecord caseLogRecord);
}
@@ -0,0 +1,16 @@
package com.ruoyi.wisdomarbitrate.service.mscase;
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord;
import java.util.List;
public interface MsCaseLogRecordService {
List<MsCaseLogRecord> selectCaseLogRecordList(MsCaseLogRecord caseLogRecord);
}
@@ -1,7 +1,7 @@
package com.ruoyi.wisdomarbitrate.service.mscase;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.ReservedConferenceVO;
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsReservedConferenceVO;
import javax.servlet.http.HttpServletRequest;
@@ -41,10 +41,10 @@ public interface VideoService {
/**
* 根据html字符串转pdf并和案件关联
* @param reservedConferenceVO
* @param msReservedConferenceVO
* @return
*/
AjaxResult htmlToPDF(ReservedConferenceVO reservedConferenceVO);
AjaxResult htmlToPDF(MsReservedConferenceVO msReservedConferenceVO);
/**
* 根据案件id和类型查询附件
@@ -1,51 +0,0 @@
package com.ruoyi.wisdomarbitrate.service.mscase.impl;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
import com.ruoyi.wisdomarbitrate.mapper.mscase.CaseLogRecordMapper;
import com.ruoyi.wisdomarbitrate.service.mscase.ICaseLogRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
public class CaseLogRecordServiceImpl implements ICaseLogRecordService {
@Autowired
private CaseLogRecordMapper caseLogRecordMapper;
@Override
public List<CaseLogRecord> selectCaseLogRecordList(CaseLogRecord caseLogRecord) {
List<CaseLogRecord> records = caseLogRecordMapper.selectCaseLogRecordList(caseLogRecord);
if(CollectionUtil.isNotEmpty(records)){
records.forEach(record->{
StringBuilder contentBuilder = new StringBuilder();
String caseNodeTime="";
if(record.getCaseNodeTime()!=null){
caseNodeTime= DateUtil.format(record.getCaseNodeTime(), DatePattern.NORM_DATETIME_FORMATTER);
}
contentBuilder.append(Optional.ofNullable(record.getCreateNickName()).orElse("")).append("(").append(record.getCreateBy()).append(")").append("于").append(caseNodeTime);
if(StrUtil.isNotEmpty(record.getContent())){
contentBuilder.append(record.getContent());
}
if(StrUtil.isNotEmpty(record.getNotes())){
contentBuilder.append(",").append(record.getNotes());
}
record.setContent(contentBuilder.toString());
});
}
return records;
}
}
@@ -0,0 +1,27 @@
package com.ruoyi.wisdomarbitrate.service.mscase.impl;
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord;
import com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseLogRecordMapper;
import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseLogRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class MsCaseLogRecordServiceImpl implements MsCaseLogRecordService {
@Autowired
private MsCaseLogRecordMapper caseLogRecordMapper;
@Override
public List<MsCaseLogRecord> selectCaseLogRecordList(MsCaseLogRecord caseLogRecord) {
List<MsCaseLogRecord> records = caseLogRecordMapper.select(caseLogRecord);
return records;
}
}
@@ -5,12 +5,11 @@ 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.system.mapper.SysUserMapper;
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
import com.ruoyi.wisdomarbitrate.mapper.mscase.CaseLogRecordMapper;
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord;
import com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseLogRecordMapper;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* 案件记录日志文件
@@ -19,7 +18,7 @@ import java.util.List;
*/
public class CaseLogUtils
{
private static CaseLogRecordMapper caseLogRecordMapper= SpringUtil.getBean(CaseLogRecordMapper.class);
private static MsCaseLogRecordMapper caseLogRecordMapper= SpringUtil.getBean(MsCaseLogRecordMapper.class);
private static SysUserMapper userMapper= SpringUtil.getBean(SysUserMapper.class);
/**
@@ -29,7 +28,7 @@ public class CaseLogUtils
* @param notes 备注
*/
public static void insertCaseLog(@NotNull Long caseAppliId, @NotEmpty Integer caseNode, String notes ){
CaseLogRecord operLog = new CaseLogRecord();
MsCaseLogRecord operLog = new MsCaseLogRecord();
// 获取当前的用户
LoginUser loginUser = SecurityUtils.getLoginUser();
if(loginUser!=null) {
@@ -45,7 +44,7 @@ public class CaseLogUtils
operLog.setCaseAppliId(caseAppliId);
operLog.setCaseNode(caseNode);
operLog.setNotes(notes);
caseLogRecordMapper.insertCaseLogRecord(operLog);
caseLogRecordMapper.insert(operLog);
}
/**
* 新增案件日志
@@ -54,7 +53,7 @@ public class CaseLogUtils
* @param notes 备注
*/
public static void insertCaseLog(@NotNull Long caseAppliId, @NotEmpty Integer caseNode, String notes ,LoginUser loginUser ){
CaseLogRecord operLog = new CaseLogRecord();
MsCaseLogRecord operLog = new MsCaseLogRecord();
// 获取当前的用户
if(loginUser!=null) {
SysUser sysUser = userMapper.selectUserById(loginUser.getUserId());
@@ -69,16 +68,6 @@ public class CaseLogUtils
operLog.setCaseAppliId(caseAppliId);
operLog.setCaseNode(caseNode);
operLog.setNotes(notes);
caseLogRecordMapper.insertCaseLogRecord(operLog);
caseLogRecordMapper.insert(operLog);
}
/**
* 批量新增案件日志
* @param list
*/
public static void batchInsertCaseLog(List<CaseLogRecord> list ){
caseLogRecordMapper.batchInsertRecord(list);
}
}