|
@@ -0,0 +1,103 @@
|
|
|
|
+<?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.projectV2.ZsyzLdpsMapper">
|
|
|
|
+
|
|
|
|
+ <resultMap type="ZsyzLdps" id="ZsyzLdpsResult">
|
|
|
|
+ <result property="ids" column="ids" />
|
|
|
|
+ <result property="xmId" column="xm_id" />
|
|
|
|
+ <result property="xmbh" column="xmbh" />
|
|
|
|
+ <result property="xmmc" column="xmmc" />
|
|
|
|
+ <result property="sourceId" column="source_id" />
|
|
|
|
+ <result property="psnr" column="psnr" />
|
|
|
|
+ <result property="remark" column="remark" />
|
|
|
|
+ <result property="deptId" column="dept_id" />
|
|
|
|
+ <result property="psr" column="psr" />
|
|
|
|
+ <result property="cjsj" column="cjsj" />
|
|
|
|
+ <result property="xgr" column="xgr" />
|
|
|
|
+ <result property="xgsj" column="xgsj" />
|
|
|
|
+ </resultMap>
|
|
|
|
+
|
|
|
|
+ <sql id="selectZsyzLdpsVo">
|
|
|
|
+ select id, xm_id, xmbh,xmmc, source_id, psnr,zcpsnr, remark, dept_id, psr, cjsj, xgr, xgsj from zsyz_ldps
|
|
|
|
+ </sql>
|
|
|
|
+
|
|
|
|
+ <select id="selectZsyzLdpsList" parameterType="ZsyzLdps" resultMap="ZsyzLdpsResult">
|
|
|
|
+ <include refid="selectZsyzLdpsVo"/>
|
|
|
|
+ <where>
|
|
|
|
+ <if test="xmId != null "> and xm_id = #{xmId}</if>
|
|
|
|
+ <if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
|
|
|
|
+ <if test="sourceId != null "> and source_id = #{sourceId}</if>
|
|
|
|
+ <if test="psnr != null and psnr != ''"> and psnr = #{psnr}</if>
|
|
|
|
+ <if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="selectZsyzLdpsById" parameterType="Long" resultMap="ZsyzLdpsResult">
|
|
|
|
+ <include refid="selectZsyzLdpsVo"/>
|
|
|
|
+ where id = #{id}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <insert id="insertZsyzLdps" parameterType="ZsyzLdps" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
+ insert into zsyz_ldps
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="xmId != null">xm_id,</if>
|
|
|
|
+ <if test="xmbh != null">xmbh,</if>
|
|
|
|
+ <if test="xmmc != null">xmmc,</if>
|
|
|
|
+ <if test="sourceId != null">source_id,</if>
|
|
|
|
+ <if test="psnr != null">psnr,</if>
|
|
|
|
+ <if test="zcpsnr != null">zcpsnr,</if>
|
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
|
+ <if test="deptId != null">dept_id,</if>
|
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="xmId != null">#{xmId},</if>
|
|
|
|
+ <if test="xmbh != null">#{xmbh},</if>
|
|
|
|
+ <if test="xmmc != null">#{xmmc},</if>
|
|
|
|
+ <if test="sourceId != null">#{sourceId},</if>
|
|
|
|
+ <if test="psnr != null">#{psnr},</if>
|
|
|
|
+ <if test="zcpsnr != null">#{zcpsnr},</if>
|
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
|
+ <if test="deptId != null">#{deptId},</if>
|
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+ <update id="updateZsyzLdps" parameterType="ZsyzLdps">
|
|
|
|
+ update zsyz_ldps
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="xmId != null">xm_id = #{xmId},</if>
|
|
|
|
+ <if test="xmbh != null">xmbh = #{xmbh},</if>
|
|
|
|
+ <if test="xmmc != null">xmmc = #{xmmc},</if>
|
|
|
|
+ <if test="sourceId != null">source_id = #{sourceId},</if>
|
|
|
|
+ <if test="psnr != null">psnr = #{psnr},</if>
|
|
|
|
+ <if test="zcpsnr != null">zcpsnr = #{zcpsnr},</if>
|
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
|
+ <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ where id = #{id}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+ <delete id="deleteZsyzLdpsById" parameterType="Long">
|
|
|
|
+ delete from zsyz_ldps where id = #{id}
|
|
|
|
+ </delete>
|
|
|
|
+
|
|
|
|
+ <delete id="deleteZsyzLdpsByIds" parameterType="String">
|
|
|
|
+ delete from zsyz_ldps where id in
|
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </delete>
|
|
|
|
+</mapper>
|