|
@@ -7,18 +7,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="SysRotograph" id="SysRotographResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="path" column="path" />
|
|
|
+ <result property="type" column="type" />
|
|
|
<result property="sort" column="sort" />
|
|
|
<result property="remark" column="remark" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysRotographVo">
|
|
|
- select id, path, sort, remark from sys_rotograph
|
|
|
+ select id, path,type, sort, remark from sys_rotograph
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysRotographList" parameterType="SysRotograph" resultMap="SysRotographResult">
|
|
|
<include refid="selectSysRotographVo"/>
|
|
|
<where>
|
|
|
<if test="path != null and path != ''"> and path = #{path}</if>
|
|
|
+ <if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
|
</where>
|
|
|
order by sort
|
|
@@ -34,11 +36,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="path != null">path,</if>
|
|
|
<if test="sort != null">sort,</if>
|
|
|
+ <if test="type != null">type,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="path != null">#{path},</if>
|
|
|
<if test="sort != null">#{sort},</if>
|
|
|
+ <if test="type != null">#{type},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -48,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="path != null">path = #{path},</if>
|
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
|
+ <if test="type != null">type = #{type},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|