| | |
| | | <mapper namespace="com.ltkj.system.mapper.TjDjdDyjlMapper"> |
| | | |
| | | <resultMap type="TjDjdDyjl" id="TjDjdDyjlResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="tjNum" column="tj_num"/> |
| | | <result property="cardId" column="card_id"/> |
| | | <result property="dycs" column="dycs"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="dysj" column="dysj"/> |
| | | <result property="hzxm" column="hzxm"/> |
| | | <result property="dylx" column="dylx"/> |
| | | <result property="id" column="id"/> |
| | | <result property="tjNum" column="tj_num"/> |
| | | <result property="cardId" column="card_id"/> |
| | | <result property="dycs" column="dycs"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="dysj" column="dysj"/> |
| | | <result property="hzxm" column="hzxm"/> |
| | | <result property="dylx" column="dylx"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTjDjdDyjlVo"> |
| | | select id, tj_num, card_id, dycs, create_time, create_by, update_time, update_by, deleted,dylx,dysj,hzxm |
| | | select id, |
| | | tj_num, |
| | | card_id, |
| | | dycs, |
| | | create_time, |
| | | create_by, |
| | | update_time, |
| | | update_by, |
| | | deleted, |
| | | dylx, |
| | | dysj, |
| | | hzxm |
| | | from tj_djd_dyjl |
| | | </sql> |
| | | |
| | | <select id="selectTjDjdDyjlList" parameterType="TjDjdDyjl" resultMap="TjDjdDyjlResult"> |
| | | <include refid="selectTjDjdDyjlVo"/> |
| | | <where> |
| | | <if test="tjNum != null and tjNum != ''"> |
| | | and tj_num = #{tjNum} |
| | | </if> |
| | | <if test="cardId != null and cardId != ''"> |
| | | and card_id = #{cardId} |
| | | </if> |
| | | <if test="dycs != null "> |
| | | and dycs = #{dycs} |
| | | </if> |
| | | <if test="deleted != null "> |
| | | and deleted = #{deleted} |
| | | </if> |
| | | <if test="tjNum != null and tjNum != ''"> |
| | | and tj_num = #{tjNum} |
| | | </if> |
| | | <if test="cardId != null and cardId != ''"> |
| | | and card_id = #{cardId} |
| | | </if> |
| | | <if test="dycs != null "> |
| | | and dycs = #{dycs} |
| | | </if> |
| | | <if test="beginTime != null and endTime != null"> |
| | | and dysj between #{beginTime} and #{endTime} |
| | | </if> |
| | | and deleted =0 |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectTjDjdDyjlById" parameterType="Long" |
| | | resultMap="TjDjdDyjlResult"> |
| | | <include refid="selectTjDjdDyjlVo"/> |
| | | where id = #{id} |
| | | <include refid="selectTjDjdDyjlVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertTjDjdDyjl" parameterType="TjDjdDyjl" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into tj_djd_dyjl |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="tjNum != null">tj_num, |
| | | </if> |
| | | <if test="cardId != null">card_id, |
| | | </if> |
| | | <if test="dycs != null">dycs, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="deleted != null">deleted, |
| | | </if> |
| | | <if test="tjNum != null">tj_num, |
| | | </if> |
| | | <if test="cardId != null">card_id, |
| | | </if> |
| | | <if test="dycs != null">dycs, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="deleted != null">deleted, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="tjNum != null">#{tjNum}, |
| | | </if> |
| | | <if test="cardId != null">#{cardId}, |
| | | </if> |
| | | <if test="dycs != null">#{dycs}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="deleted != null">#{deleted}, |
| | | </if> |
| | | <if test="tjNum != null">#{tjNum}, |
| | | </if> |
| | | <if test="cardId != null">#{cardId}, |
| | | </if> |
| | | <if test="dycs != null">#{dycs}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="deleted != null">#{deleted}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateTjDjdDyjl" parameterType="TjDjdDyjl"> |
| | | update tj_djd_dyjl |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="tjNum != null">tj_num = |
| | | #{tjNum}, |
| | | </if> |
| | | <if test="cardId != null">card_id = |
| | | #{cardId}, |
| | | </if> |
| | | <if test="dycs != null">dycs = |
| | | #{dycs}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="deleted != null">deleted = |
| | | #{deleted}, |
| | | </if> |
| | | <if test="tjNum != null">tj_num = |
| | | #{tjNum}, |
| | | </if> |
| | | <if test="cardId != null">card_id = |
| | | #{cardId}, |
| | | </if> |
| | | <if test="dycs != null">dycs = |
| | | #{dycs}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="deleted != null">deleted = |
| | | #{deleted}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteTjDjdDyjlById" parameterType="Long"> |
| | | delete |
| | | from tj_djd_dyjl where id = #{id} |
| | | from tj_djd_dyjl |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteTjDjdDyjlByIds" parameterType="String"> |