调解系统整理

This commit is contained in:
18792927508
2024-01-08 15:05:57 +08:00
parent 913c31ca88
commit 62183896ab
38 changed files with 199 additions and 161 deletions
@@ -13,7 +13,7 @@
<result column="dept_name_firchar" property="deptNameFirchar" />
</resultMap>
<insert id="insertCaseNumRule" parameterType="CaseNumRule" useGeneratedKeys="true" keyProperty="id">
<insert id="insertCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" useGeneratedKeys="true" keyProperty="id">
insert into ms_case_num_rule(
<if test="ruleType != null">rule_type,</if>
<if test="prefixstr != null and prefixstr != '' ">prefixstr,</if>
@@ -35,7 +35,7 @@
)
</insert>
<update id="updateCaseNumRule" parameterType="CaseNumRule">
<update id="updateCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule">
update ms_case_num_rule
<set>
<if test="ruleType != null">rule_type = #{ruleType},</if>
@@ -51,11 +51,11 @@
</if>
</where>
</update>
<delete id="deleteCaseNumRule" parameterType="CaseNumRule">
<delete id="deleteCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule">
delete from ms_case_num_rule where id = #{id}
</delete>
<select id="selectCaseNumRules" parameterType="CaseNumRule" resultMap="BaseResultMap">
<select id="selectCaseNumRules" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" resultMap="BaseResultMap">
SELECT id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
FROM ms_case_num_rule
<where>
@@ -90,7 +90,7 @@
</where>
</select>
<select id="selectCaseNumRule" parameterType="CaseNumRule" resultMap="BaseResultMap">
<select id="selectCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" resultMap="BaseResultMap">
SELECT id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
FROM ms_case_num_rule
<where>
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.DeptIdentifyMapper">
<resultMap type="DeptIdentify" id="DeptIdentifyResult">
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" id="DeptIdentifyResult">
<id property="id" column="id" />
<result property="identifyStatus" column="identify_status" />
<result property="identifyDate" column="identify_date" />
@@ -25,7 +25,7 @@
</resultMap>
<select id="selectDeptIdentify" parameterType="DeptIdentify" resultMap="DeptIdentifyResult">
<select id="selectDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" resultMap="DeptIdentifyResult">
SELECT id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id,
oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone
,identify_email,dept_id ,user_id
@@ -56,7 +56,7 @@
</select>
<insert id="insertDeptIdentify" parameterType="DeptIdentify" useGeneratedKeys="true" keyProperty="id">
<insert id="insertDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" useGeneratedKeys="true" keyProperty="id">
insert into ms_dept_identify(
<if test="identifyName != null and identifyName != ''">identify_name,</if>
<if test="identifyStatus != null">identify_status,</if>
@@ -99,7 +99,7 @@
<update id="updateDeptIdentify" parameterType="DeptIdentify">
<update id="updateDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify">
update ms_dept_identify
<set>
<if test="identifyDate != null">identify_date = #{identifyDate},</if>
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.SealManageMapper">
<resultMap type="SealManage" id="SealManageResult">
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" id="SealManageResult">
<id property="id" column="id" />
<result property="identifyId" column="identify_id" />
<result property="sealName" column="seal_name" />
@@ -13,7 +13,7 @@
<result property="isUse" column="is_use" />
</resultMap>
<select id="selectSealList" parameterType="SealManage" resultMap="SealManageResult">
<select id="selectSealList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" resultMap="SealManageResult">
SELECT id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use
FROM ms_seal_manage
<where>
@@ -27,7 +27,7 @@
</select>
<insert id="insertSealManage" parameterType="SealManage" useGeneratedKeys="true" keyProperty="id">
<insert id="insertSealManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" useGeneratedKeys="true" keyProperty="id">
insert into ms_seal_manage(
<if test="identifyId != null">identify_id,</if>
<if test="sealName != null and sealName != ''">seal_name,</if>
@@ -45,7 +45,7 @@
)
</insert>
<update id="updateSealManage" parameterType="SealManage">
<update id="updateSealManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage">
update ms_seal_manage
<set>
<if test="identifyId != null">identify_id = #{identifyId},</if>
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.miniprogress.IdentityAuthenticationMapper">
<resultMap type="IdentityAuthentication" id="IdentityAuthenticationResult">
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" id="IdentityAuthenticationResult">
<id property="id" column="id" />
<result property="name" column="name" />
<result property="identityNo" column="identity_no" />
@@ -15,7 +15,7 @@
</resultMap>
<insert id="insertIdentityAuthentication" parameterType="IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
<insert id="insertIdentityAuthentication" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
insert into ms_identi_authenti(
<if test="userId != null">user_id,</if>
<if test="idAddress != null and idAddress != ''">id_address,</if>
@@ -50,7 +50,7 @@
where id = #{id}
</update>
<select id="selectIdentityAuthentication" parameterType="IdentityAuthentication" resultMap="IdentityAuthenticationResult">
<select id="selectIdentityAuthentication" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" resultMap="IdentityAuthenticationResult">
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name
from ms_identi_authenti i
<where>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.mscase.MsCaseAffiliateLogMapper">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAffiliateLogMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliateLog">
<!--
WARNING - @mbg.generated
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.mscase.MsCaseApplicationMapper">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseApplicationMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication">
<!--
WARNING - @mbg.generated
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachLogMapper">
<resultMap type="CaseAttach" id="CaseAttachResult">
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" id="CaseAttachResult">
<id property="annexId" column="annex_id" />
<result property="caseAppliId" column="case_appli_id" />
<result property="annexName" column="annex_name" />
@@ -81,14 +81,14 @@
</where>
</select>
<update id="updateCaseAttach" parameterType="CaseAttach">
<update id="updateCaseAttach" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach">
update ms_case_attach_log
set
case_appli_log_id= #{caseAppliLogId}
where annex_id = #{annexId}
</update>
<update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
<update id="updateCaseAttachBycaseid" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" >
update ms_case_attach_log
<set>
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachMapper">
<resultMap type="CaseAttach" id="CaseAttachResult">
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" id="CaseAttachResult">
<id property="annexId" column="annex_id" />
<result property="caseAppliId" column="case_appli_id" />
<result property="annexName" column="annex_name" />
@@ -96,14 +96,14 @@
</where>
</select>
<update id="updateCaseAttach" parameterType="CaseAttach">
<update id="updateCaseAttach" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach">
update ms_case_attach
set
case_appli_id= #{caseAppliId}
where annex_id = #{annexId}
</update>
<update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
<update id="updateCaseAttachBycaseid" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" >
update ms_case_attach
<set>
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SendMailRecordMapper">
<resultMap type="SendMailRecord" id="SendMailRecordResult">
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord" id="SendMailRecordResult">
<id property="id" column="id" />
<result property="mailName" column="mail_name" />
<result property="mailContent" column="mail_content" />
@@ -16,7 +16,7 @@
</resultMap>
<select id="selectSendMailRecord" parameterType="SendMailRecord" resultMap="SendMailRecordResult">
<select id="selectSendMailRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord" resultMap="SendMailRecordResult">
SELECT s.id ,s.mail_name ,s.mail_content ,s.mail_address ,s.send_time ,s.case_id ,s.create_time ,s.create_by ,
s.update_by ,s.update_time , s.send_status ,c.case_num
from send_mail_record s left join ms_case_application c
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SmsRecordMapper">
<resultMap type="SmsSendRecord" id="SmsSendRecordResult">
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" id="SmsSendRecordResult">
<id property="id" column="id" />
<result property="caseId" column="case_appli_id" />
<result property="caseNum" column="case_num" />
@@ -17,7 +17,7 @@
<result property="updateBy" column="update_by" />
<result property="sendStatus" column="send_status" />
</resultMap>
<insert id="saveSmsSendRecord" parameterType="SmsSendRecord" useGeneratedKeys="true" keyProperty="id">
<insert id="saveSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" useGeneratedKeys="true" keyProperty="id">
insert into sms_send_record(
<if test="caseId != null ">case_appli_id,</if>
@@ -65,7 +65,7 @@
</foreach>
</insert>
<select id="getSmsSendRecord" parameterType="SmsSendRecord" resultMap="SmsSendRecordResult">
<select id="getSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" resultMap="SmsSendRecordResult">
select id ,case_appli_id ,case_num ,phone ,send_time ,send_content,send_status
from sms_send_record
@@ -19,16 +19,16 @@
<select id="listByTemplateId" resultMap="BaseResultMap">
select f.id ,f.file_name ,f.start_content ,f.end_content ,
f.`column` , ifnull(f.is_default,0) is_default ,f.`column_name`,ifnull(f.start_content_repeat_order,1) start_content_repeat_order,ifnull(f.end_content_repeat_order,1) end_content_repeat_order,ifnull(f.fatch_order,0) fatch_order
from ms_fatch_rule f join ms_template_fatch_rule tfr on f.id=tfr.ms_fatch_rule_id
from ms_fatch_rule f join ms_template_fatch_rule tfr on f.id=tfr.fatch_rule_id
where tfr.template_id=#{templateId}
</select>
<select id="selectFatchRuleList" parameterType="FatchRule" resultMap="BaseResultMap">
<select id="selectFatchRuleList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
f.`column` ,f.is_default ,f.`column_name`,f.start_content_repeat_order,f.end_content_repeat_order,f.fatch_order
FROM ms_template_fatch_rule tf
left join ms_template_manage t on tf.template_id = t.id
LEFT JOIN ms_fatch_rule f on tf.ms_fatch_rule_id = f.id
LEFT JOIN ms_fatch_rule f on tf.fatch_rule_id = f.id
<where>
<if test="templateId != null">
AND tf.template_id = #{templateId}
@@ -36,7 +36,7 @@
</where>
</select>
<select id="selectColumnandComment" parameterType="FatchRule" resultMap="BaseResultMap">
<select id="selectColumnandComment" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
select
a.COLUMN_name as `column`,
a.COLumn_comment as column_name
@@ -56,7 +56,7 @@
</select>
<select id="selectColumnbycomment" parameterType="FatchRule" resultMap="BaseResultMap">
<select id="selectColumnbycomment" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
select
COLUMN_NAME
from
@@ -69,7 +69,7 @@
</select>
<select id="selectFatchRuleListIsDefault" parameterType="FatchRule" resultMap="BaseResultMap">
<select id="selectFatchRuleListIsDefault" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
f.`column` ,f.is_default ,f.`column_name`
FROM ms_fatch_rule f
@@ -87,7 +87,7 @@
</foreach>
</delete>
<insert id="insertFatchRule" parameterType="FatchRule" useGeneratedKeys="true" keyProperty="id">
<insert id="insertFatchRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" useGeneratedKeys="true" keyProperty="id">
insert into ms_fatch_rule(
<if test="fileName != null and fileName != ''">file_name,</if>
<if test="startContent != null and startContent != ''">start_content,</if>
@@ -10,7 +10,7 @@
<result column="fatch_rule_id" property="fatchRuleId" />
</resultMap>
<select id="selectTemplateFatchRulecount" parameterType="TemplateFatchRule" resultType="Integer">
<select id="selectTemplateFatchRulecount" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule" resultType="Integer">
select count(1) from ms_template_fatch_rule t
<where>
<if test="templateId != null">
@@ -19,7 +19,7 @@
</where>
</select>
<select id="selectTemplateFatchRuleList" parameterType="TemplateFatchRule" resultMap="BaseResultMap">
<select id="selectTemplateFatchRuleList" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule" resultMap="BaseResultMap">
SELECT t.id ,t.template_id ,t.fatch_rule_id
from ms_template_fatch_rule t
<where>
@@ -35,7 +35,7 @@
delete from ms_template_fatch_rule where template_id=#{id}
</delete>
<insert id="insertTemplateFatchRule" parameterType="TemplateFatchRule" useGeneratedKeys="true" keyProperty="id">
<insert id="insertTemplateFatchRule" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule" useGeneratedKeys="true" keyProperty="id">
insert into ms_template_fatch_rule(
<if test="templateId != null">template_id,</if>
<if test="fatchRuleId != null">fatch_rule_id</if>
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.template.TemplateManageMapper">
<resultMap type="TemplateManage" id="TemplateManageResult">
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" id="TemplateManageResult">
<id property="id" column="id" />
<result property="identifyId" column="identify_id" />
<result property="temName" column="tem_name" />
@@ -15,7 +15,7 @@
<result property="fileName" column="file_name" />
</resultMap>
<insert id="insertTemplateManage" parameterType="TemplateManage" useGeneratedKeys="true" keyProperty="id">
<insert id="insertTemplateManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" useGeneratedKeys="true" keyProperty="id">
insert into ms_template_manage(
<if test="identifyId != null">identify_id,</if>
<if test="temName != null and temName != ''">tem_name,</if>
@@ -39,7 +39,7 @@
)
</insert>
<update id="updateTemplateManage" parameterType="TemplateManage">
<update id="updateTemplateManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage">
update ms_template_manage
<set>
<if test="identifyId != null">identify_id = #{identifyId},</if>
@@ -61,7 +61,7 @@
</where>
</update>
<select id="selectTemplateList" parameterType="TemplateManage" resultMap="TemplateManageResult">
<select id="selectTemplateList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" resultMap="TemplateManageResult">
SELECT id, identify_id ,tem_name , tem_type,tem_format,tem_orig_path,tem_revis_path ,file_name
FROM ms_template_manage
<where>