|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<?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">
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.da.dangan.mapper.DaPicturesRecardMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="DaPicturesRecard" id="DaPicturesRecardResult">
|
|
|
|
|
@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="wlsjPath" column="wlsj_path" />
|
|
|
|
|
<result property="muId" column="mu_id" />
|
|
|
|
|
<result property="muPath" column="mu_path" />
|
|
|
|
|
<result property="ywType" column="yw_type" />
|
|
|
|
|
<result property="recognize" column="recognize" />
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
@ -21,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectDaPicturesRecardVo">
|
|
|
|
|
select id, pic_name, pic_url, wlsj_id, wlsj_path, mu_id, mu_path, recognize, remark, create_by, create_time, update_by, update_time from da_pictures_recard
|
|
|
|
|
select id, pic_name, pic_url, wlsj_id, wlsj_path, mu_id, mu_path, yw_type, recognize, remark, create_by, create_time, update_by, update_time from da_pictures_recard
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectDaPicturesRecardList" parameterType="DaPicturesRecard" resultMap="DaPicturesRecardResult">
|
|
|
|
|
@ -33,8 +34,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="wlsjPath != null and wlsjPath != ''"> and wlsj_path = #{wlsjPath}</if>
|
|
|
|
|
<if test="muId != null "> and mu_id = #{muId}</if>
|
|
|
|
|
<if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if>
|
|
|
|
|
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
|
|
|
|
|
<if test="recognize != null and recognize != ''"> and recognize = #{recognize}</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by create_time DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectDaPicturesRecardById" parameterType="Long" resultMap="DaPicturesRecardResult">
|
|
|
|
|
@ -51,13 +54,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="wlsjPath != null">wlsj_path,</if>
|
|
|
|
|
<if test="muId != null">mu_id,</if>
|
|
|
|
|
<if test="muPath != null">mu_path,</if>
|
|
|
|
|
<if test="ywType != null">yw_type,</if>
|
|
|
|
|
<if test="recognize != null">recognize,</if>
|
|
|
|
|
<if test="remark != null">remark,</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>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="picName != null and picName != ''">#{picName},</if>
|
|
|
|
|
<if test="picUrl != null and picUrl != ''">#{picUrl},</if>
|
|
|
|
|
@ -65,13 +69,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="wlsjPath != null">#{wlsjPath},</if>
|
|
|
|
|
<if test="muId != null">#{muId},</if>
|
|
|
|
|
<if test="muPath != null">#{muPath},</if>
|
|
|
|
|
<if test="ywType != null">#{ywType},</if>
|
|
|
|
|
<if test="recognize != null">#{recognize},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</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>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateDaPicturesRecard" parameterType="DaPicturesRecard">
|
|
|
|
|
@ -83,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="wlsjPath != null">wlsj_path = #{wlsjPath},</if>
|
|
|
|
|
<if test="muId != null">mu_id = #{muId},</if>
|
|
|
|
|
<if test="muPath != null">mu_path = #{muPath},</if>
|
|
|
|
|
<if test="ywType != null">yw_type = #{ywType},</if>
|
|
|
|
|
<if test="recognize != null">recognize = #{recognize},</if>
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
|