优化基地区级审核
This commit is contained in:
@ -0,0 +1,96 @@
|
||||
<?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.jxzxkhgl.mapper.TsbzJxzxkhfaMapper">
|
||||
|
||||
<resultMap type="TsbzJxzxkhfa" id="TsbzJxzxkhfaResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="status" column="status" />
|
||||
<result property="starttime" column="starttime" />
|
||||
<result property="endtime" column="endtime" />
|
||||
<result property="filename" column="filename" />
|
||||
<result property="filepath" column="filepath" />
|
||||
<result property="khnf" column="khnf" />
|
||||
<result property="createuserid" column="createuserid" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsbzJxzxkhfaVo">
|
||||
select id, name, status, starttime, endtime, filename, filepath, khnf, createuserid, create_time from tsbz_jxzxkhfa
|
||||
</sql>
|
||||
|
||||
<select id="selectTsbzJxzxkhfaList" parameterType="TsbzJxzxkhfa" resultMap="TsbzJxzxkhfaResult">
|
||||
<include refid="selectTsbzJxzxkhfaVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="starttime != null "> and starttime = #{starttime}</if>
|
||||
<if test="endtime != null "> and endtime = #{endtime}</if>
|
||||
<if test="filename != null and filename != ''"> and filename like concat('%', #{filename}, '%')</if>
|
||||
<if test="filepath != null and filepath != ''"> and filepath = #{filepath}</if>
|
||||
<if test="khnf != null "> and khnf = #{khnf}</if>
|
||||
<if test="createuserid != null "> and createuserid = #{createuserid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTsbzJxzxkhfaById" parameterType="Long" resultMap="TsbzJxzxkhfaResult">
|
||||
<include refid="selectTsbzJxzxkhfaVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTsbzJxzxkhfa" parameterType="TsbzJxzxkhfa" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into tsbz_jxzxkhfa
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">name,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="starttime != null">starttime,</if>
|
||||
<if test="endtime != null">endtime,</if>
|
||||
<if test="filename != null">filename,</if>
|
||||
<if test="filepath != null">filepath,</if>
|
||||
<if test="khnf != null">khnf,</if>
|
||||
<if test="createuserid != null">createuserid,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="starttime != null">#{starttime},</if>
|
||||
<if test="endtime != null">#{endtime},</if>
|
||||
<if test="filename != null">#{filename},</if>
|
||||
<if test="filepath != null">#{filepath},</if>
|
||||
<if test="khnf != null">#{khnf},</if>
|
||||
<if test="createuserid != null">#{createuserid},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTsbzJxzxkhfa" parameterType="TsbzJxzxkhfa">
|
||||
update tsbz_jxzxkhfa
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="starttime != null">starttime = #{starttime},</if>
|
||||
<if test="endtime != null">endtime = #{endtime},</if>
|
||||
<if test="filename != null">filename = #{filename},</if>
|
||||
<if test="filepath != null">filepath = #{filepath},</if>
|
||||
<if test="khnf != null">khnf = #{khnf},</if>
|
||||
<if test="createuserid != null">createuserid = #{createuserid},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTsbzJxzxkhfaById" parameterType="Long">
|
||||
delete from tsbz_jxzxkhfa where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTsbzJxzxkhfaByIds" parameterType="String">
|
||||
delete from tsbz_jxzxkhfa where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,121 @@
|
||||
<?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.jxzxkhgl.mapper.TsbzJxzxkhzbxMapper">
|
||||
|
||||
<resultMap type="TsbzJxzxkhzbx" id="TsbzJxzxkhzbxResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="faid" column="faid" />
|
||||
<result property="khmk" column="khmk" />
|
||||
<result property="khnr" column="khnr" />
|
||||
<result property="tjsl" column="tjsl" />
|
||||
<result property="gjzd" column="gjzd" />
|
||||
<result property="tbly" column="tbly" />
|
||||
<result property="jkbj" column="jkbj" />
|
||||
<result property="starttime" column="starttime" />
|
||||
<result property="endtime" column="endtime" />
|
||||
<result property="zxrw" column="zxrw" />
|
||||
<result property="createuserid" column="createuserid" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="yly" column="yly" />
|
||||
<result property="yle" column="yle" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsbzJxzxkhzbxVo">
|
||||
select id, faid, khmk, khnr, tjsl, gjzd, tbly, jkbj, starttime, endtime, zxrw, createuserid, create_time, yly, yle from tsbz_jxzxkhzbx
|
||||
</sql>
|
||||
|
||||
<select id="selectTsbzJxzxkhzbxList" parameterType="TsbzJxzxkhzbx" resultMap="TsbzJxzxkhzbxResult">
|
||||
<include refid="selectTsbzJxzxkhzbxVo"/>
|
||||
<where>
|
||||
<if test="faid != null "> and faid = #{faid}</if>
|
||||
<if test="khmk != null and khmk != ''"> and khmk = #{khmk}</if>
|
||||
<if test="khnr != null and khnr != ''"> and khnr = #{khnr}</if>
|
||||
<if test="tjsl != null "> and tjsl = #{tjsl}</if>
|
||||
<if test="gjzd != null and gjzd != ''"> and gjzd = #{gjzd}</if>
|
||||
<if test="tbly != null and tbly != ''"> and tbly = #{tbly}</if>
|
||||
<if test="jkbj != null and jkbj != ''"> and jkbj = #{jkbj}</if>
|
||||
<if test="starttime != null "> and starttime = #{starttime}</if>
|
||||
<if test="endtime != null "> and endtime = #{endtime}</if>
|
||||
<if test="zxrw != null and zxrw != ''"> and zxrw = #{zxrw}</if>
|
||||
<if test="createuserid != null "> and createuserid = #{createuserid}</if>
|
||||
<if test="yly != null and yly != ''"> and yly = #{yly}</if>
|
||||
<if test="yle != null and yle != ''"> and yle = #{yle}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTsbzJxzxkhzbxById" parameterType="Long" resultMap="TsbzJxzxkhzbxResult">
|
||||
<include refid="selectTsbzJxzxkhzbxVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTsbzJxzxkhzbx" parameterType="TsbzJxzxkhzbx" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into tsbz_jxzxkhzbx
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="faid != null">faid,</if>
|
||||
<if test="khmk != null">khmk,</if>
|
||||
<if test="khnr != null">khnr,</if>
|
||||
<if test="tjsl != null">tjsl,</if>
|
||||
<if test="gjzd != null">gjzd,</if>
|
||||
<if test="tbly != null">tbly,</if>
|
||||
<if test="jkbj != null">jkbj,</if>
|
||||
<if test="starttime != null">starttime,</if>
|
||||
<if test="endtime != null">endtime,</if>
|
||||
<if test="zxrw != null">zxrw,</if>
|
||||
<if test="createuserid != null">createuserid,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="yly != null">yly,</if>
|
||||
<if test="yle != null">yle,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="faid != null">#{faid},</if>
|
||||
<if test="khmk != null">#{khmk},</if>
|
||||
<if test="khnr != null">#{khnr},</if>
|
||||
<if test="tjsl != null">#{tjsl},</if>
|
||||
<if test="gjzd != null">#{gjzd},</if>
|
||||
<if test="tbly != null">#{tbly},</if>
|
||||
<if test="jkbj != null">#{jkbj},</if>
|
||||
<if test="starttime != null">#{starttime},</if>
|
||||
<if test="endtime != null">#{endtime},</if>
|
||||
<if test="zxrw != null">#{zxrw},</if>
|
||||
<if test="createuserid != null">#{createuserid},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="yly != null">#{yly},</if>
|
||||
<if test="yle != null">#{yle},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTsbzJxzxkhzbx" parameterType="TsbzJxzxkhzbx">
|
||||
update tsbz_jxzxkhzbx
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="faid != null">faid = #{faid},</if>
|
||||
<if test="khmk != null">khmk = #{khmk},</if>
|
||||
<if test="khnr != null">khnr = #{khnr},</if>
|
||||
<if test="tjsl != null">tjsl = #{tjsl},</if>
|
||||
<if test="gjzd != null">gjzd = #{gjzd},</if>
|
||||
<if test="tbly != null">tbly = #{tbly},</if>
|
||||
<if test="jkbj != null">jkbj = #{jkbj},</if>
|
||||
<if test="starttime != null">starttime = #{starttime},</if>
|
||||
<if test="endtime != null">endtime = #{endtime},</if>
|
||||
<if test="zxrw != null">zxrw = #{zxrw},</if>
|
||||
<if test="createuserid != null">createuserid = #{createuserid},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="yly != null">yly = #{yly},</if>
|
||||
<if test="yle != null">yle = #{yle},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTsbzJxzxkhzbxById" parameterType="Long">
|
||||
delete from tsbz_jxzxkhzbx where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTsbzJxzxkhzbxByIds" parameterType="String">
|
||||
delete from tsbz_jxzxkhzbx where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user