适配kingbase

kingbase
20918 10 months ago
parent a03e1884a8
commit bcd9280ee6

@ -1,4 +1,3 @@
1.系统工具——————代码生成 1.系统工具——————代码生成
2.涉密人员统计——————打印 2.涉密人员统计——————打印
3.检查结果管理——————报告人单位
4.文件管理若干问题 4.文件管理若干问题

@ -92,7 +92,9 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">培训状态:</label> <label class="col-sm-3 control-label">培训状态:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="trainState" disabled th:field="*{trainState}" class="form-control" type="text"> <select name="trainState" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_examine_state')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{trainState}"></option>
</select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

@ -28,6 +28,10 @@ public class TdCheck extends BaseEntity
@Excel(name = "单位") @Excel(name = "单位")
private String depart; private String depart;
public void setDepart(String depart) {
this.depart = depart;
}
/** 检查开始时间 */ /** 检查开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "检查开始时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "检查开始时间", width = 30, dateFormat = "yyyy-MM-dd")

@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectPostVo"> <sql id="selectPostVo">
select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark
from sys_post from zhky."public".sys_post
</sql> </sql>
<select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult"> <select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
@ -43,9 +43,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectPostsByUserId" parameterType="Long" resultMap="SysPostResult"> <select id="selectPostsByUserId" parameterType="Long" resultMap="SysPostResult">
SELECT p.post_id, p.post_name, p.post_code SELECT p.post_id, p.post_name, p.post_code
FROM sys_user u FROM zhky."public".sys_user u
LEFT JOIN sys_user_post up ON u.user_id = up.user_id LEFT JOIN zhky."public".sys_user_post up ON u.user_id = up.user_id
LEFT JOIN sys_post p ON up.post_id = p.post_id LEFT JOIN zhky."public".sys_post p ON up.post_id = p.post_id
WHERE up.user_id = #{userId} WHERE up.user_id = #{userId}
</select> </select>
@ -65,14 +65,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<delete id="deletePostByIds" parameterType="Long"> <delete id="deletePostByIds" parameterType="Long">
delete from sys_post where post_id in delete from zhky."public".sys_post where post_id in
<foreach collection="array" item="postId" open="(" separator="," close=")"> <foreach collection="array" item="postId" open="(" separator="," close=")">
#{postId} #{postId}
</foreach> </foreach>
</delete> </delete>
<update id="updatePost" parameterType="SysPost"> <update id="updatePost" parameterType="SysPost">
update sys_post update zhky."public".sys_post
<set> <set>
<if test="postCode != null and postCode != ''">post_code = #{postCode},</if> <if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
<if test="postName != null and postName != ''">post_name = #{postName},</if> <if test="postName != null and postName != ''">post_name = #{postName},</if>
@ -86,7 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update> </update>
<insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId"> <insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId">
insert into sys_post( insert into zhky."public".sys_post(
<if test="postId != null and postId != 0">post_id,</if> <if test="postId != null and postId != 0">post_id,</if>
<if test="postCode != null and postCode != ''">post_code,</if> <if test="postCode != null and postCode != ''">post_code,</if>
<if test="postName != null and postName != ''">post_name,</if> <if test="postName != null and postName != ''">post_name,</if>

@ -10,22 +10,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<delete id="deleteUserPostByUserId" parameterType="Long"> <delete id="deleteUserPostByUserId" parameterType="Long">
delete from sys_user_post where user_id=#{userId} delete from zhky."public".sys_user_post where user_id=#{userId}
</delete> </delete>
<select id="countUserPostById" resultType="Integer"> <select id="countUserPostById" resultType="Integer">
select count(1) from sys_user_post where post_id=#{postId} select count(1) from zhky."public".sys_user_post where post_id=#{postId}
</select> </select>
<delete id="deleteUserPost" parameterType="Long"> <delete id="deleteUserPost" parameterType="Long">
delete from sys_user_post where user_id in delete from zhky."public".sys_user_post where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")"> <foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId} #{userId}
</foreach> </foreach>
</delete> </delete>
<insert id="batchUserPost"> <insert id="batchUserPost">
insert into sys_user_post(user_id, post_id) values insert into zhky."public".sys_user_post(user_id, post_id) values
<foreach item="item" index="index" collection="list" separator=","> <foreach item="item" index="index" collection="list" separator=",">
(#{item.userId},#{item.postId}) (#{item.userId},#{item.postId})
</foreach> </foreach>

@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectTdFileReceiveVo"> <sql id="selectTdFileReceiveVo">
select receive_id, file_id, file_name, provide_depart, provide_date, receive_departid, receive_state, receive_userid, receive_date, extract_state, extract_departid, extract_userid, extract_date, destory_state,destory_address, destory_depart, destory_username, destory_style, destory_count, destory_date, remark from td_file_receive select receive_id, file_id, file_name, provide_depart, provide_date, receive_departid, receive_state, receive_userid, receive_date, extract_state, extract_departid, extract_userid, extract_date, destory_state,destory_address, destory_depart, destory_username, destory_style, destory_count, destory_date, remark from zhky."public".td_file_receive
</sql> </sql>
<select id="selectTdFileReceiveList" parameterType="TdFileReceive" resultMap="TdFileReceiveResult"> <select id="selectTdFileReceiveList" parameterType="TdFileReceive" resultMap="TdFileReceiveResult">
@ -75,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<insert id="insertTdFileReceive" parameterType="TdFileReceive" useGeneratedKeys="true" keyProperty="receiveId"> <insert id="insertTdFileReceive" parameterType="TdFileReceive" useGeneratedKeys="true" keyProperty="receiveId">
insert into td_file_receive insert into zhky."public".td_file_receive
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="fileId != null">file_id,</if> <if test="fileId != null">file_id,</if>
<if test="fileName != null">file_name,</if> <if test="fileName != null">file_name,</if>
@ -123,7 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert> </insert>
<update id="updateTdFileReceive" parameterType="TdFileReceive"> <update id="updateTdFileReceive" parameterType="TdFileReceive">
update td_file_receive update zhky."public".td_file_receive
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="fileId != null">file_id = #{fileId},</if> <if test="fileId != null">file_id = #{fileId},</if>
<if test="fileName != null">file_name = #{fileName},</if> <if test="fileName != null">file_name = #{fileName},</if>
@ -150,11 +150,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update> </update>
<delete id="deleteTdFileReceiveByReceiveId" parameterType="Long"> <delete id="deleteTdFileReceiveByReceiveId" parameterType="Long">
delete from td_file_receive where receive_id = #{receiveId} delete from zhky."public".td_file_receive where receive_id = #{receiveId}
</delete> </delete>
<delete id="deleteTdFileReceiveByReceiveIds" parameterType="String"> <delete id="deleteTdFileReceiveByReceiveIds" parameterType="String">
delete from td_file_receive where receive_id in delete from zhky."public".td_file_receive where receive_id in
<foreach item="receiveId" collection="array" open="(" separator="," close=")"> <foreach item="receiveId" collection="array" open="(" separator="," close=")">
#{receiveId} #{receiveId}
</foreach> </foreach>

Loading…
Cancel
Save