调解系统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,25 +0,0 @@
<?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.baseinfo.CountryMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.system.domain.entity.baseinfo.Country">
<!--
WARNING - @mbg.generated
-->
<id column="CountryId" jdbcType="INTEGER" property="countryid" />
<result column="CountryName" jdbcType="VARCHAR" property="countryname" />
<result column="EnglishName" jdbcType="VARCHAR" property="englishname" />
<result column="AbbreviationName" jdbcType="VARCHAR" property="abbreviationname" />
<result column="CountryNameLocal" jdbcType="VARCHAR" property="countrynamelocal" />
<result column="FlagPath" jdbcType="VARCHAR" property="flagpath" />
<result column="IsActive" jdbcType="TINYINT" property="isactive" />
<result column="Longitude" jdbcType="DECIMAL" property="longitude" />
<result column="Latitude" jdbcType="DECIMAL" property="latitude" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="Timezone" jdbcType="INTEGER" property="timezone" />
<result column="CreatedBy" jdbcType="INTEGER" property="createdby" />
<result column="DateCreated" jdbcType="TIMESTAMP" property="datecreated" />
<result column="UpdatedBy" jdbcType="INTEGER" property="updatedby" />
<result column="DateUpdated" jdbcType="TIMESTAMP" property="dateupdated" />
<result column="CountryJson" jdbcType="VARCHAR" property="countryjson" />
</resultMap>
</mapper>
@@ -0,0 +1,13 @@
<?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.wisdomarbitrate.mapper.casestatus.MsCaseStatusMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.casestatus.MsCaseStatus">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="case_status" jdbcType="INTEGER" property="caseStatus" />
<result column="case_status_name" jdbcType="VARCHAR" property="caseStatusName" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
</mapper>
@@ -0,0 +1,12 @@
<?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.wisdomarbitrate.mapper.casestatus.MsCaseStatusRoleMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.casestatus.MsCaseStatusRole">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="case_status_id" jdbcType="INTEGER" property="caseStatusId" />
<result column="role_id" jdbcType="INTEGER" property="roleId" />
</resultMap>
</mapper>
@@ -0,0 +1,27 @@
<?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.wisdomarbitrate.mapper.dept.MsSealSignRecordMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.dept.MsSealSignRecord">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="file_id" jdbcType="VARCHAR" property="fileId" />
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
<result column="sign_flow_id" jdbcType="VARCHAR" property="signFlowId" />
<result column="penson_account" jdbcType="VARCHAR" property="pensonAccount" />
<result column="penson_name" jdbcType="VARCHAR" property="pensonName" />
<result column="orgnize_name" jdbcType="VARCHAR" property="orgnizeName" />
<result column="orgn_name_psn_acc" jdbcType="VARCHAR" property="orgnNamePsnAcc" />
<result column="orgn_name_psn_name" jdbcType="VARCHAR" property="orgnNamePsnName" />
<result column="sign_flow_status" jdbcType="INTEGER" property="signFlowStatus" />
<result column="case_appli_id" jdbcType="BIGINT" property="caseAppliId" />
<result column="position_pagepsn" jdbcType="VARCHAR" property="positionPagepsn" />
<result column="position_xpsn" jdbcType="DOUBLE" property="positionXpsn" />
<result column="position_ypsn" jdbcType="DOUBLE" property="positionYpsn" />
<result column="position_pageorg" jdbcType="VARCHAR" property="positionPageorg" />
<result column="position_xorg" jdbcType="DOUBLE" property="positionXorg" />
<result column="position_yorg" jdbcType="DOUBLE" property="positionYorg" />
<result column="file_download_url" jdbcType="LONGVARCHAR" property="fileDownloadUrl" />
</resultMap>
</mapper>
@@ -1,66 +0,0 @@
<?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.wisdomarbitrate.mapper.mscase.CaseLogRecordMapper">
<resultMap type="CaseLogRecord" id="CaseLogRecordResult">
<id property="id" column="id" />
<result property="caseAppliId" column="case_appli_id" />
<result property="caseNode" column="case_node" />
<result property="caseNodeTime" column="case_node_time" />
<result property="notes" column="notes" />
<result property="caseNum" column="case_num" />
<result property="createBy" column=" create_by" />
<result property="createNickName" column="create_nick_name" />
</resultMap>
<insert id="insertCaseLogRecord">
insert into ms_case_log_record(case_appli_id, case_node,case_node_time,notes,create_by,create_nick_name,create_time,update_by,update_time ) values(
#{caseAppliId},#{caseNode},sysdate(),#{notes},#{createBy},#{createNickName},sysdate(),#{updateBy},sysdate()
)
</insert>
<insert id="batchInsertRecord">
insert into ms_case_log_record(case_appli_id, case_node,case_node_time,notes,create_by,create_nick_name,create_time,update_by,update_time ) values
<foreach item="item" index="index" collection="list" separator=",">
(
#{item.caseAppliId},#{item.caseNode},sysdate(),#{item.notes},#{item.createBy},#{item.createNickName},sysdate(),#{item.updateBy},sysdate()
)
</foreach>
</insert>
<select id="selectCaseLogRecordList" resultType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord">
select cl.case_node caseNode ,cl.case_node_time caseNodeTime ,cl.notes ,cl.id ,cl.case_appli_id caseAppliId,
cl.create_by createBy,cl.create_nick_name createNickName,cl.create_time createTime,cl.update_by updateBy,cl.update_time updateTime,
CASE cl.case_node when 0 then '立案申请' when 1 then '提交立案申请' when 2 then '立案审查'
when 3 then '支付成功' when 4 then '缴费确认' when 5 then '案件质证'
when 6 then '组庭审核' when 7 then '组庭确认' when 8 then '当前仲裁方式为开庭审理'
when 9 then '当前仲裁方式为书面审理' when 10 then '书面审理' when 11 then '秘书审核裁决书'
when 12 then '部门长核验裁决书' when 13 then '同意裁决书' when 14 then '签名成功'
when 15 then '用印成功' when 16 then '送达仲裁文书' when 17 then '案件归档'
when 26 then '证据确认成功'
when 31 then '修改开庭时间'
when 18 then '仲裁员审核仲裁文书'
ELSE '无案件状态'
END content,
CASE cl.case_node when 0 then '申请人' when 1 then '申请人' when 2 then '法律顾问'
when 3 then '申请人' when 4 then '财务' when 5 then '被申请人'
when 6 then '部门长' when 7 then '仲裁员' when 8 then '仲裁员'
when 9 then '仲裁员' when 10 then '仲裁员' when 11 then '法律顾问'
when 12 then '仲裁员' when 13 then '仲裁员' when 14 then '部门长'
when 15 then '法律顾问' when 16 then '法律顾问'
ELSE '无角色'
END roleName
from ms_case_log_record cl
<where>
<if test="caseAppliId != null and caseAppliId != ''">
AND cl.case_appli_id = #{caseAppliId}
</if>
</where>
order by create_time asc
</select>
</mapper>
@@ -0,0 +1,27 @@
<?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">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliateLog">
<!--
WARNING - @mbg.generated
-->
<id column="case_appli_log_id" jdbcType="BIGINT" property="caseAppliLogId" />
<result column="application_organ_id" jdbcType="VARCHAR" property="applicationOrganId" />
<result column="application_organ_name" jdbcType="VARCHAR" property="applicationOrganName" />
<result column="credit_code" jdbcType="VARCHAR" property="creditCode" />
<result column="comp_legal_person" jdbcType="VARCHAR" property="compLegalPerson" />
<result column="applicant_home" jdbcType="VARCHAR" property="applicantHome" />
<result column="applicant_address" jdbcType="VARCHAR" property="applicantAddress" />
<result column="name_agent" jdbcType="VARCHAR" property="nameAgent" />
<result column="contact_telphone_agent" jdbcType="VARCHAR" property="contactTelphoneAgent" />
<result column="agent_email" jdbcType="VARCHAR" property="agentEmail" />
<result column="applicant_track_num" jdbcType="VARCHAR" property="applicantTrackNum" />
<result column="respondent_name" jdbcType="VARCHAR" property="respondentName" />
<result column="respondent_identity_num" jdbcType="VARCHAR" property="respondentIdentityNum" />
<result column="respondent_sex" jdbcType="VARCHAR" property="respondentSex" />
<result column="respondent_birth" jdbcType="TIMESTAMP" property="respondentBirth" />
<result column="respondent_home" jdbcType="VARCHAR" property="respondentHome" />
<result column="respondent_email" jdbcType="VARCHAR" property="respondentEmail" />
<result column="respondent_track_num" jdbcType="VARCHAR" property="respondentTrackNum" />
</resultMap>
</mapper>
@@ -0,0 +1,27 @@
<?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.wisdomarbitrate.mapper.mscase.MsCaseAffiliateMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliate">
<!--
WARNING - @mbg.generated
-->
<id column="case_appli_id" jdbcType="BIGINT" property="caseAppliId" />
<result column="application_organ_id" jdbcType="VARCHAR" property="applicationOrganId" />
<result column="application_organ_name" jdbcType="VARCHAR" property="applicationOrganName" />
<result column="credit_code" jdbcType="VARCHAR" property="creditCode" />
<result column="comp_legal_person" jdbcType="VARCHAR" property="compLegalPerson" />
<result column="applicant_home" jdbcType="VARCHAR" property="applicantHome" />
<result column="applicant_address" jdbcType="VARCHAR" property="applicantAddress" />
<result column="name_agent" jdbcType="VARCHAR" property="nameAgent" />
<result column="contact_telphone_agent" jdbcType="VARCHAR" property="contactTelphoneAgent" />
<result column="agent_email" jdbcType="VARCHAR" property="agentEmail" />
<result column="applicant_track_num" jdbcType="VARCHAR" property="applicantTrackNum" />
<result column="respondent_name" jdbcType="VARCHAR" property="respondentName" />
<result column="respondent_identity_num" jdbcType="VARCHAR" property="respondentIdentityNum" />
<result column="respondent_sex" jdbcType="VARCHAR" property="respondentSex" />
<result column="respondent_birth" jdbcType="TIMESTAMP" property="respondentBirth" />
<result column="respondent_home" jdbcType="VARCHAR" property="respondentHome" />
<result column="respondent_email" jdbcType="VARCHAR" property="respondentEmail" />
<result column="respondent_track_num" jdbcType="VARCHAR" property="respondentTrackNum" />
</resultMap>
</mapper>
@@ -0,0 +1,31 @@
<?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.wisdomarbitrate.mapper.mscase.MsCaseApplicationLogMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplicationLog">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="case_appli_id" jdbcType="BIGINT" property="caseAppliId" />
<result column="batch_number" jdbcType="INTEGER" property="batchNumber" />
<result column="template_id" jdbcType="BIGINT" property="templateId" />
<result column="case_num" jdbcType="VARCHAR" property="caseNum" />
<result column="case_subject_amount" jdbcType="DECIMAL" property="caseSubjectAmount" />
<result column="mediation_method" jdbcType="INTEGER" property="mediationMethod" />
<result column="case_status" jdbcType="INTEGER" property="caseStatus" />
<result column="fee_payable" jdbcType="DECIMAL" property="feePayable" />
<result column="lock_status" jdbcType="INTEGER" property="lockStatus" />
<result column="appli_iswrit_hear" jdbcType="INTEGER" property="appliIswritHear" />
<result column="respon_isWrit_hear" jdbcType="INTEGER" property="responIswritHear" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="version" jdbcType="INTEGER" property="version" />
<result column="arbitrat_claims" jdbcType="LONGVARCHAR" property="arbitratClaims" />
<result column="facts" jdbcType="LONGVARCHAR" property="facts" />
<result column="request_rule" jdbcType="LONGVARCHAR" property="requestRule" />
<result column="case_describe" jdbcType="LONGVARCHAR" property="caseDescribe" />
<result column="mediation_agreement" jdbcType="LONGVARCHAR" property="mediationAgreement" />
</resultMap>
</mapper>
@@ -0,0 +1,40 @@
<?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">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="batch_number" jdbcType="INTEGER" property="batchNumber" />
<result column="template_id" jdbcType="BIGINT" property="templateId" />
<result column="case_num" jdbcType="VARCHAR" property="caseNum" />
<result column="case_subject_amount" jdbcType="DECIMAL" property="caseSubjectAmount" />
<result column="mediation_method" jdbcType="CHAR" property="mediationMethod" />
<result column="case_status" jdbcType="INTEGER" property="caseStatus" />
<result column="hear_date" jdbcType="TIMESTAMP" property="hearDate" />
<result column="fee_payable" jdbcType="DECIMAL" property="feePayable" />
<result column="mediator_id" jdbcType="BIGINT" property="mediatorId" />
<result column="mediator_name" jdbcType="VARCHAR" property="mediatorName" />
<result column="is_agree_pend_tral" jdbcType="INTEGER" property="isAgreePendTral" />
<result column="pay_type" jdbcType="CHAR" property="payType" />
<result column="adjudica_counter" jdbcType="INTEGER" property="adjudicaCounter" />
<result column="is_absence" jdbcType="INTEGER" property="isAbsence" />
<result column="lock_status" jdbcType="INTEGER" property="lockStatus" />
<result column="room_id" jdbcType="VARCHAR" property="roomId" />
<result column="appli_iswrit_hear" jdbcType="INTEGER" property="appliIswritHear" />
<result column="respon_isWrit_hear" jdbcType="INTEGER" property="responIswritHear" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="version" jdbcType="INTEGER" property="version" />
<result column="arbitrat_claims" jdbcType="LONGVARCHAR" property="arbitratClaims" />
<result column="facts" jdbcType="LONGVARCHAR" property="facts" />
<result column="request_rule" jdbcType="LONGVARCHAR" property="requestRule" />
<result column="case_describe" jdbcType="LONGVARCHAR" property="caseDescribe" />
<result column="mediation_url" jdbcType="LONGVARCHAR" property="mediationUrl" />
<result column="adjudica_counter_reason" jdbcType="LONGVARCHAR" property="adjudicaCounterReason" />
<result column="mediation_agreement" jdbcType="LONGVARCHAR" property="mediationAgreement" />
</resultMap>
</mapper>
@@ -2,7 +2,7 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.CaseAttachLogMapper">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachLogMapper">
<resultMap type="CaseAttach" id="CaseAttachResult">
<id property="annexId" column="annex_id" />
<result property="caseAppliId" column="case_appli_id" />
@@ -2,7 +2,7 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.CaseAttachMapper">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachMapper">
<resultMap type="CaseAttach" id="CaseAttachResult">
<id property="annexId" column="annex_id" />
<result property="caseAppliId" column="case_appli_id" />
@@ -0,0 +1,19 @@
<?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.wisdomarbitrate.mapper.mscase.MsCaseLogRecordMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="case_appli_id" jdbcType="BIGINT" property="caseAppliId" />
<result column="case_node" jdbcType="INTEGER" property="caseNode" />
<result column="case_node_time" jdbcType="TIMESTAMP" property="caseNodeTime" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_nick_name" jdbcType="VARCHAR" property="createNickName" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="notes" jdbcType="LONGVARCHAR" property="notes" />
</resultMap>
</mapper>
@@ -2,8 +2,8 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.ColumnValueLogMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.vo.mscase.ColumnValue" >
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsColumnValueLogMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsColumnValueVO" >
<result column="id" property="id" />
<result column="column" property="column" />
<result column="name" property="name" />
@@ -33,7 +33,7 @@
where `COLUMN`=#{item.column} and `NAME`=#{item.name} and case_appli_log_id=#{item.caseAppliLogId};
</foreach>
</update>
<select id="queryColumnValueList" parameterType="ColumnValue" resultMap="BaseResultMap">
<select id="queryColumnValueList" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsColumnValueVO" resultMap="BaseResultMap">
select * from ms_column_value_log c
<where>
<if test="caseAppliLogId != null">
@@ -2,8 +2,8 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.ColumnValueMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.vo.mscase.ColumnValue" >
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsColumnValueMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsColumnValueVO" >
<result column="id" property="id" />
<result column="column" property="column" />
<result column="name" property="name" />
@@ -31,7 +31,7 @@
</foreach>
</update>
<update id="updateColumnValue" parameterType="ColumnValue">
<update id="updateColumnValue" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsColumnValueVO">
update ms_column_value
<set>
<if test="value != null and value != ''">
@@ -45,7 +45,7 @@
select * from ms_column_value where case_id=#{caseId}
</select>
<select id="queryColumnValueList" parameterType="ColumnValue" resultMap="BaseResultMap">
<select id="queryColumnValueList" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsColumnValueVO" resultMap="BaseResultMap">
select * from ms_column_value c
<where>
<if test="caseId != null">