包分类
This commit is contained in:
+108
@@ -0,0 +1,108 @@
|
||||
<?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.CaseAttachLogMapper">
|
||||
<resultMap type="CaseAttach" id="CaseAttachResult">
|
||||
<id property="annexId" column="annex_id" />
|
||||
<result property="caseAppliId" column="case_appli_id" />
|
||||
<result property="annexName" column="annex_name" />
|
||||
<result property="annexPath" column="annex_path" />
|
||||
<result property="annexType" column="annex_type" />
|
||||
<result property="note" column="note" />
|
||||
<result property="userId" column="use_id" />
|
||||
<result property="userName" column="use_account" />
|
||||
<result property="sealStatus" column="seal_status" />
|
||||
<result property="caseAppliLogId" column="case_appli_log_id" />
|
||||
</resultMap>
|
||||
<insert id="save" useGeneratedKeys="true" keyProperty="annexId">
|
||||
INSERT INTO ms_case_attach_log (case_appli_log_id, annex_id,annex_name, annex_path , annex_type,note,use_id,use_account,seal_status)
|
||||
VALUES (#{caseAppliLogId},#{annexId}, #{annexName}, #{annexPath},#{annexType},#{note},#{userId},#{userName},#{sealStatus})
|
||||
</insert>
|
||||
<insert id="batchSave">
|
||||
INSERT INTO ms_case_attach_log (case_appli_log_id, annex_id,annex_name, annex_path , annex_type,note,use_id,use_account,seal_status)
|
||||
VALUES
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(#{item.caseAppliLogId},#{item.annexId}, #{item.annexName}, #{item.annexPath},#{item.annexType},#{item.note},#{item.userId},#{item.userName},#{item.sealStatus})
|
||||
</foreach>
|
||||
</insert>
|
||||
<delete id="deleteByFileIds">
|
||||
delete from ms_case_attach_log
|
||||
where annex_id in
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="queryAnnexPathByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" resultMap="CaseAttachResult">
|
||||
select *
|
||||
from ms_case_attach_log
|
||||
where case_appli_log_id =#{id}
|
||||
</select>
|
||||
|
||||
<select id="getCaseAttachByCaseIdAndType" resultType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" resultMap="CaseAttachResult">
|
||||
select *
|
||||
from ms_case_attach_log
|
||||
<where>
|
||||
<if test="caseAppliLogId != null ">
|
||||
AND case_appli_log_id = #{caseAppliLogId}
|
||||
</if>
|
||||
<if test="annexType != null ">
|
||||
AND annex_type = #{annexType}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="queryCaseAttachList" resultMap="CaseAttachResult">
|
||||
select *
|
||||
from ms_case_attach_log
|
||||
<where>
|
||||
<if test="caseLogId != null ">
|
||||
AND case_appli_log_id = #{caseLogId}
|
||||
</if>
|
||||
<if test="annexType != null ">
|
||||
AND annex_type = #{annexType}
|
||||
</if>
|
||||
<if test="annexTypeList != null and annexTypeList.size() > 0">
|
||||
and annex_type in
|
||||
<foreach item="annexType" collection="annexTypeList" open="(" separator="," close=")">
|
||||
#{annexType}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="queryAnnexById" resultType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" resultMap="CaseAttachResult">
|
||||
select *
|
||||
from ms_case_attach_log
|
||||
<where>
|
||||
<if test="annexId != null ">
|
||||
AND annex_id = #{annexId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="updateCaseAttach" parameterType="CaseAttach">
|
||||
update ms_case_attach_log
|
||||
set
|
||||
case_appli_log_id= #{caseAppliLogId}
|
||||
where annex_id = #{annexId}
|
||||
</update>
|
||||
|
||||
<update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
|
||||
update ms_case_attach_log
|
||||
<set>
|
||||
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
||||
<if test="annexPath != null and annexPath != ''">annex_path = #{annexPath}</if>
|
||||
</set>
|
||||
<where>
|
||||
<if test="caseAppliId != null ">
|
||||
AND case_appli_log_id = #{caseAppliLogId}
|
||||
</if>
|
||||
<if test="annexType != null ">
|
||||
AND annex_type = #{annexType}
|
||||
</if>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,124 @@
|
||||
<?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.CaseAttachMapper">
|
||||
<resultMap type="CaseAttach" id="CaseAttachResult">
|
||||
<id property="annexId" column="annex_id" />
|
||||
<result property="caseAppliId" column="case_appli_id" />
|
||||
<result property="annexName" column="annex_name" />
|
||||
<result property="annexPath" column="annex_path" />
|
||||
<result property="annexType" column="annex_type" />
|
||||
<result property="note" column="note" />
|
||||
<result property="userId" column="use_id" />
|
||||
<result property="userName" column="use_account" />
|
||||
<result property="sealStatus" column="seal_status" />
|
||||
</resultMap>
|
||||
<insert id="save" useGeneratedKeys="true" keyProperty="annexId">
|
||||
INSERT INTO ms_case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,is_batch_upload)
|
||||
VALUES (#{caseAppliId}, #{annexName}, #{annexPath},#{annexType},#{note},#{userId},#{userName},#{sealStatus},#{isBatchUpload})
|
||||
</insert>
|
||||
<insert id="batchSave" useGeneratedKeys="true" keyProperty="annexId">
|
||||
INSERT INTO ms_case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,is_batch_upload)
|
||||
VALUES
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
|
||||
|
||||
(#{item.caseAppliId}, #{item.annexName}, #{item.annexPath},#{item.annexType},#{item.note},#{item.userId},#{item.userName},#{item.sealStatus},#{item.isBatchUpload})
|
||||
</foreach>
|
||||
</insert>
|
||||
<delete id="deleteByFileIds">
|
||||
delete from ms_case_attach
|
||||
where annex_id in
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteByCasedIdAndType">
|
||||
delete from ms_case_attach
|
||||
where case_appli_id = #{caseAppliId}
|
||||
and annex_type = #{annexType}
|
||||
<if test="isBatchUpload != null ">
|
||||
AND is_batch_upload = #{isBatchUpload}
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
<select id="queryAnnexPathByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" resultMap="CaseAttachResult">
|
||||
select annex_id,case_appli_id,annex_name,annex_path,annex_type,note,use_id,use_account
|
||||
from ms_case_attach
|
||||
where case_appli_id =#{id}
|
||||
</select>
|
||||
|
||||
<select id="getCaseAttachByCaseIdAndType" resultType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" resultMap="CaseAttachResult">
|
||||
select annex_id,case_appli_id,annex_name,annex_path,annex_type,note,use_id,use_account
|
||||
from ms_case_attach
|
||||
<where>
|
||||
<if test="caseAppliId != null ">
|
||||
AND case_appli_id = #{caseAppliId}
|
||||
</if>
|
||||
<if test="annexType != null ">
|
||||
AND annex_type = #{annexType}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<delete id="deleteCaseAttachByCasedIdAndType">
|
||||
delete from ms_case_attach
|
||||
where case_appli_id = #{caseAppliId}
|
||||
and annex_type = #{annexType}
|
||||
</delete>
|
||||
|
||||
<select id="queryCaseAttachList" resultMap="CaseAttachResult">
|
||||
select annex_id,case_appli_id,annex_name,annex_path,annex_type,note,use_id,use_account
|
||||
from ms_case_attach
|
||||
<where>
|
||||
<if test="id != null ">
|
||||
AND case_appli_id = #{id}
|
||||
</if>
|
||||
<if test="annexType != null ">
|
||||
AND annex_type = #{annexType}
|
||||
</if>
|
||||
<if test="annexTypeList != null and annexTypeList.size() > 0">
|
||||
and annex_type in
|
||||
<foreach item="annexType" collection="annexTypeList" open="(" separator="," close=")">
|
||||
#{annexType}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="queryAnnexById" resultType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" resultMap="CaseAttachResult">
|
||||
select *
|
||||
from ms_case_attach
|
||||
<where>
|
||||
<if test="annexId != null ">
|
||||
AND annex_id = #{annexId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="updateCaseAttach" parameterType="CaseAttach">
|
||||
update ms_case_attach
|
||||
set
|
||||
case_appli_id= #{caseAppliId}
|
||||
where annex_id = #{annexId}
|
||||
</update>
|
||||
|
||||
<update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
|
||||
update ms_case_attach
|
||||
<set>
|
||||
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
||||
<if test="annexPath != null and annexPath != ''">annex_path = #{annexPath}</if>
|
||||
</set>
|
||||
<where>
|
||||
<if test="caseAppliId != null ">
|
||||
AND case_appli_id = #{caseAppliId}
|
||||
</if>
|
||||
<if test="annexType != null ">
|
||||
AND annex_type = #{annexType}
|
||||
</if>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?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>
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
<?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.ColumnValueLogMapper">
|
||||
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.vo.mscase.ColumnValue" >
|
||||
<result column="id" property="id" />
|
||||
<result column="column" property="column" />
|
||||
<result column="name" property="name" />
|
||||
<result column="value" property="value" />
|
||||
<result column="case_appli_log_id" property="caseAppliLogId" />
|
||||
</resultMap>
|
||||
<insert id="batchSave">
|
||||
INSERT INTO ms_column_value_log ( `COLUMN`, `NAME`, `VALUE`, case_appli_log_id,is_default )
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
|
||||
(#{item.column},#{item.name},#{item.value},#{item.caseAppliLogId},#{item.isDefault})
|
||||
</foreach>
|
||||
</insert>
|
||||
<select id="listBycaseAppliLogId" resultMap="BaseResultMap">
|
||||
select * from ms_column_value_log where case_appli_log_id=#{caseAppliLogId}
|
||||
</select>
|
||||
<update id="batchUpdate">
|
||||
<foreach collection="list" item="item" >
|
||||
update ms_column_value_log
|
||||
<set>
|
||||
<if test="item.value != null and item.value != ''">
|
||||
`VALUE` = #{item.value},
|
||||
</if>
|
||||
`id`=#{item.id}
|
||||
</set>
|
||||
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 * from ms_column_value_log c
|
||||
<where>
|
||||
<if test="caseAppliLogId != null">
|
||||
AND c.case_appli_log_id = #{caseAppliLogId}
|
||||
</if>
|
||||
<if test="isDefault != null">
|
||||
AND c.is_default = #{isDefault}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?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.ColumnValueMapper">
|
||||
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.vo.mscase.ColumnValue" >
|
||||
<result column="id" property="id" />
|
||||
<result column="column" property="column" />
|
||||
<result column="name" property="name" />
|
||||
<result column="value" property="value" />
|
||||
<result column="case_id" property="caseId" />
|
||||
<result column="is_default" property="isDefault" />
|
||||
</resultMap>
|
||||
<insert id="batchSave">
|
||||
INSERT INTO ms_column_value ( `COLUMN`, `NAME`, `VALUE`, case_id,is_default )
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
|
||||
(#{item.column},#{item.name},#{item.value},#{item.caseId},#{item.isDefault})
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="batchUpdate">
|
||||
<foreach collection="list" item="item" >
|
||||
update ms_column_value
|
||||
<set>
|
||||
<if test="item.value != null and item.value != ''">
|
||||
`VALUE` = #{item.value},
|
||||
</if>
|
||||
</set>
|
||||
where id=#{item.id};
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="updateColumnValue" parameterType="ColumnValue">
|
||||
update ms_column_value
|
||||
<set>
|
||||
<if test="value != null and value != ''">
|
||||
`VALUE` = #{value},
|
||||
</if>
|
||||
</set>
|
||||
where id=#{id}
|
||||
</update>
|
||||
|
||||
<select id="listByCaseId" resultMap="BaseResultMap">
|
||||
select * from ms_column_value where case_id=#{caseId}
|
||||
</select>
|
||||
|
||||
<select id="queryColumnValueList" parameterType="ColumnValue" resultMap="BaseResultMap">
|
||||
select * from ms_column_value c
|
||||
<where>
|
||||
<if test="caseId != null">
|
||||
AND c.case_id = #{caseId}
|
||||
</if>
|
||||
<if test="isDefault != null">
|
||||
AND c.is_default = #{isDefault}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
<?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.ReservedConferenceMapper">
|
||||
|
||||
<insert id="insert">
|
||||
insert into ms_reserved_conference(
|
||||
case_id,
|
||||
room_id,
|
||||
schedule_start_time,
|
||||
schedule_end_time,
|
||||
user_id
|
||||
)values(
|
||||
#{caseId},
|
||||
#{roomId},
|
||||
#{scheduleStartTime},
|
||||
#{scheduleEndTime},
|
||||
#{userId}
|
||||
)
|
||||
</insert>
|
||||
<delete id="deleteByRoomId">
|
||||
delete from ms_reserved_conference where room_id=#{roomId}
|
||||
</delete>
|
||||
<delete id="batchDeleteByIds">
|
||||
delete from ms_reserved_conference where id in
|
||||
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="selectListByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.ReservedConference">
|
||||
select id, case_id caseId,room_id roomId,schedule_start_time scheduleStartTime,schedule_end_time scheduleEndTime,user_id userId
|
||||
from ms_reserved_conference where case_id=#{caseId}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user