|
@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="id" column="id" /> |
|
|
<result property="id" column="id" /> |
|
|
<result property="title" column="title" /> |
|
|
<result property="title" column="title" /> |
|
|
<result property="image" column="image" /> |
|
|
<result property="image" column="image" /> |
|
|
|
|
|
<result property="imageNo" column="image_no" /> |
|
|
<result property="delFlag" column="del_flag" /> |
|
|
<result property="delFlag" column="del_flag" /> |
|
|
<result property="createBy" column="create_by" /> |
|
|
<result property="createBy" column="create_by" /> |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="createTime" column="create_time" /> |
|
@ -16,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectAppletPetTypeVo"> |
|
|
<sql id="selectAppletPetTypeVo"> |
|
|
select id, title, image, del_flag, create_by, create_time, update_by, update_time from applet_pet_type |
|
|
|
|
|
|
|
|
select id, title, image,image_no, del_flag, create_by, create_time, update_by, update_time from applet_pet_type |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectAppletPetTypeList" parameterType="AppletPetType" resultMap="AppletPetTypeResult"> |
|
|
<select id="selectAppletPetTypeList" parameterType="AppletPetType" resultMap="AppletPetTypeResult"> |
|
@ -37,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<if test="title != null and title != ''">title,</if> |
|
|
<if test="title != null and title != ''">title,</if> |
|
|
<if test="image != null">image,</if> |
|
|
<if test="image != null">image,</if> |
|
|
|
|
|
<if test="imageNo != null">image_no,</if> |
|
|
<if test="delFlag != null">del_flag,</if> |
|
|
<if test="delFlag != null">del_flag,</if> |
|
|
<if test="createBy != null">create_by,</if> |
|
|
<if test="createBy != null">create_by,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
@ -46,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="title != null and title != ''">#{title},</if> |
|
|
<if test="title != null and title != ''">#{title},</if> |
|
|
<if test="image != null">#{image},</if> |
|
|
<if test="image != null">#{image},</if> |
|
|
|
|
|
<if test="imageNo != null">#{imageNo},</if> |
|
|
<if test="delFlag != null">#{delFlag},</if> |
|
|
<if test="delFlag != null">#{delFlag},</if> |
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
<if test="createTime != null">#{createTime},</if> |
|
@ -59,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<if test="title != null and title != ''">title = #{title},</if> |
|
|
<if test="title != null and title != ''">title = #{title},</if> |
|
|
<if test="image != null">image = #{image},</if> |
|
|
<if test="image != null">image = #{image},</if> |
|
|
|
|
|
<if test="imageNo != null">image_no = #{imageNo},</if> |
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if> |
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if> |
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|