|
@@ -13,6 +13,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="azbcbs" column="azbcbs" />
|
|
|
<result property="azbcf" column="azbcf" />
|
|
|
<result property="bchj" column="bchj" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
</resultMap>
|
|
|
<sql id="selectZtZdBcbzListVo">
|
|
|
select * from "zt_zd_bcbz_list"
|
|
@@ -29,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="azbcf != null "> and azbcf = #{azbcf}</if>
|
|
|
<if test="bchj != null "> and bchj = #{bchj}</if>
|
|
|
</where>
|
|
|
- order by "name" asc
|
|
|
+ order by "create_time" desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectZtZdBcbzListById" parameterType="String" resultMap="ZtZdBcbzListResult">
|
|
@@ -48,6 +53,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="azbcbs != null">azbcbs,</if>
|
|
|
<if test="azbcf != null">azbcf,</if>
|
|
|
<if test="bchj != null">bchj,</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>
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -58,6 +68,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="azbcbs != null">#{azbcbs},</if>
|
|
|
<if test="azbcf != null">#{azbcf},</if>
|
|
|
<if test="bchj != null">#{bchj},</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>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -71,6 +86,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="azbcbs != null">azbcbs = #{azbcbs},</if>
|
|
|
<if test="azbcf != null">azbcf = #{azbcf},</if>
|
|
|
<if test="bchj != null">bchj = #{bchj},</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>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|