You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
496 lines
24 KiB
XML
496 lines
24 KiB
XML
<?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">
|
|
<mapper namespace="com.foreverwin.mesnac.anomaly.mapper.UploadPicturesMapper">
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<resultMap id="BaseResultMap" type="com.foreverwin.mesnac.anomaly.model.UploadPictures">
|
|
<id column="HANDLE" property="handle"/>
|
|
<result column="SITE" property="site"/>
|
|
<result column="PICTURE_PATH" property="picturePath"/>
|
|
<result column="PICTURE_ADDRESS" property="pictureAddress"/>
|
|
<result column="OBJECT_BO" property="objectBo"/>
|
|
<result column="NUM" property="num"/>
|
|
<result column="TYPE" property="type"/>
|
|
<result column="CREATED_USER" property="createdUser"/>
|
|
<result column="CREATED_DATE_TIME" property="createdDateTime"/>
|
|
<result column="MODIFIED_USER" property="modifiedUser"/>
|
|
<result column="MODIFIED_DATE_TIME" property="modifiedDateTime"/>
|
|
<result column="STATUS" property="status"/>
|
|
</resultMap>
|
|
|
|
<!-- 通用查询结果列 -->
|
|
<sql id="Base_Column_List">
|
|
HANDLE, SITE, PICTURE_PATH, PICTURE_ADDRESS, OBJECT_BO, NUM, TYPE, CREATED_USER, CREATED_DATE_TIME,
|
|
MODIFIED_USER, MODIFIED_DATE_TIME, STATUS
|
|
</sql>
|
|
|
|
<!-- BaseMapper标准查询/修改/删除 -->
|
|
<select id="selectById" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List"></include> FROM Z_UPLOAD_PICTURES WHERE HANDLE=#{handle}
|
|
</select>
|
|
|
|
<select id="selectByMap" resultMap="BaseResultMap">
|
|
SELECT
|
|
<include refid="Base_Column_List"></include>
|
|
FROM Z_UPLOAD_PICTURES
|
|
<if test="cm!=null and !cm.isEmpty">
|
|
<where>
|
|
<foreach collection="cm.keys" item="k" separator="AND">
|
|
<if test="cm[k] != null">
|
|
${k} = #{cm[${k}]}
|
|
</if>
|
|
</foreach>
|
|
</where>
|
|
</if>
|
|
</select>
|
|
|
|
<select id="selectBatchIds" resultMap="BaseResultMap">
|
|
SELECT
|
|
<include refid="Base_Column_List"></include>
|
|
FROM Z_UPLOAD_PICTURES WHERE HANDLE IN (
|
|
<foreach item="item" index="index" collection="coll" separator=",">#{item}
|
|
</foreach>)
|
|
</select>
|
|
|
|
<select id="selectOne" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List"></include> FROM Z_UPLOAD_PICTURES
|
|
<where>
|
|
<if test="ew.entity.handle!=null">
|
|
HANDLE=#{ew.handle}
|
|
</if>
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectCount" resultType="Integer">
|
|
SELECT COUNT(1) FROM Z_UPLOAD_PICTURES
|
|
<where>
|
|
<if test="ew!=null">
|
|
<if test="ew.entity!=null">
|
|
<if test="ew.entity.handle!=null">
|
|
HANDLE=#{ew.entity.handle}
|
|
</if>
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
|
|
</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</if>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</select>
|
|
|
|
<select id="selectList" resultMap="BaseResultMap">
|
|
SELECT
|
|
<choose>
|
|
<when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when>
|
|
<otherwise>
|
|
<include refid="Base_Column_List"></include>
|
|
</otherwise>
|
|
</choose>
|
|
FROM Z_UPLOAD_PICTURES
|
|
<where>
|
|
<if test="ew!=null">
|
|
<if test="ew.entity!=null">
|
|
<if test="ew.entity.handle!=null">
|
|
HANDLE=#{ew.entity.handle}
|
|
</if>
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
|
|
</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</if>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</select>
|
|
|
|
<select id="selectMaps" resultType="HashMap">
|
|
SELECT
|
|
<choose>
|
|
<when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when>
|
|
<otherwise>
|
|
<include refid="Base_Column_List"></include>
|
|
</otherwise>
|
|
</choose>
|
|
FROM Z_UPLOAD_PICTURES
|
|
<where>
|
|
<if test="ew!=null">
|
|
<if test="ew.entity!=null">
|
|
<if test="ew.entity.handle!=null">
|
|
HANDLE=#{ew.entity.handle}
|
|
</if>
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
|
|
</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</if>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</select>
|
|
|
|
<select id="selectObjs" resultType="Object">
|
|
SELECT
|
|
<choose>
|
|
<when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when>
|
|
<otherwise>
|
|
<include refid="Base_Column_List"></include>
|
|
</otherwise>
|
|
</choose>
|
|
FROM Z_UPLOAD_PICTURES
|
|
<where>
|
|
<if test="ew!=null">
|
|
<if test="ew.entity!=null">
|
|
<if test="ew.entity.handle!=null">
|
|
HANDLE=#{ew.entity.handle}
|
|
</if>
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
|
|
</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</if>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</select>
|
|
|
|
<select id="selectPage" resultMap="BaseResultMap">
|
|
SELECT
|
|
<choose>
|
|
<when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when>
|
|
<otherwise>
|
|
<include refid="Base_Column_List"></include>
|
|
</otherwise>
|
|
</choose>
|
|
FROM Z_UPLOAD_PICTURES
|
|
<where>
|
|
<if test="ew!=null">
|
|
<if test="ew.entity!=null">
|
|
<if test="ew.entity.handle!=null">
|
|
HANDLE=#{ew.entity.handle}
|
|
</if>
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
|
|
</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</if>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</select>
|
|
|
|
<select id="selectMapsPage" resultType="HashMap">
|
|
SELECT
|
|
<choose>
|
|
<when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when>
|
|
<otherwise>
|
|
<include refid="Base_Column_List"></include>
|
|
</otherwise>
|
|
</choose>
|
|
FROM Z_UPLOAD_PICTURES
|
|
<where>
|
|
<if test="ew!=null">
|
|
<if test="ew.entity!=null">
|
|
<if test="ew.entity.handle!=null">
|
|
HANDLE=#{ew.entity.handle}
|
|
</if>
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
|
|
</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</if>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</select>
|
|
|
|
<insert id="insert" parameterType="com.foreverwin.mesnac.anomaly.model.UploadPictures">
|
|
INSERT INTO Z_UPLOAD_PICTURES
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
HANDLE,
|
|
<if test="site!=null">SITE,</if>
|
|
<if test="picturePath!=null">PICTURE_PATH,</if>
|
|
<if test="pictureAddress!=null">PICTURE_ADDRESS,</if>
|
|
<if test="objectBo!=null">OBJECT_BO,</if>
|
|
<if test="num!=null">NUM,</if>
|
|
<if test="type!=null">TYPE,</if>
|
|
<if test="createdUser!=null">CREATED_USER,</if>
|
|
<if test="createdDateTime!=null">CREATED_DATE_TIME,</if>
|
|
<if test="modifiedUser!=null">MODIFIED_USER,</if>
|
|
<if test="modifiedDateTime!=null">MODIFIED_DATE_TIME,</if>
|
|
<if test="status!=null">STATUS,</if>
|
|
</trim>
|
|
VALUES
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
#{handle},
|
|
<if test="site!=null">#{site},</if>
|
|
<if test="picturePath!=null">#{picturePath},</if>
|
|
<if test="pictureAddress!=null">#{pictureAddress},</if>
|
|
<if test="objectBo!=null">#{objectBo},</if>
|
|
<if test="num!=null">#{num},</if>
|
|
<if test="type!=null">#{type},</if>
|
|
<if test="createdUser!=null">#{createdUser},</if>
|
|
<if test="createdDateTime!=null">#{createdDateTime},</if>
|
|
<if test="modifiedUser!=null">#{modifiedUser},</if>
|
|
<if test="modifiedDateTime!=null">#{modifiedDateTime},</if>
|
|
<if test="status!=null">#{status},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<insert id="insertAllColumn" parameterType="com.foreverwin.mesnac.anomaly.model.UploadPictures">
|
|
INSERT INTO Z_UPLOAD_PICTURES
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<include refid="Base_Column_List"></include>
|
|
</trim>
|
|
VALUES
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
#{handle},
|
|
#{site},
|
|
#{picturePath},
|
|
#{pictureAddress},
|
|
#{objectBo},
|
|
#{num},
|
|
#{type},
|
|
#{createdUser},
|
|
#{createdDateTime},
|
|
#{modifiedUser},
|
|
#{modifiedDateTime},
|
|
#{status},
|
|
</trim>
|
|
</insert>
|
|
|
|
|
|
<update id="updateById">
|
|
UPDATE Z_UPLOAD_PICTURES
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="et.site!=null">SITE=#{et.site},</if>
|
|
<if test="et.picturePath!=null">PICTURE_PATH=#{et.picturePath},</if>
|
|
<if test="et.pictureAddress!=null">PICTURE_ADDRESS=#{et.pictureAddress},</if>
|
|
<if test="et.objectBo!=null">OBJECT_BO=#{et.objectBo},</if>
|
|
<if test="et.num!=null">NUM=#{et.num},</if>
|
|
<if test="et.type!=null">TYPE=#{et.type},</if>
|
|
<if test="et.createdUser!=null">CREATED_USER=#{et.createdUser},</if>
|
|
<if test="et.createdDateTime!=null">CREATED_DATE_TIME=#{et.createdDateTime},</if>
|
|
<if test="et.modifiedUser!=null">MODIFIED_USER=#{et.modifiedUser},</if>
|
|
<if test="et.modifiedDateTime!=null">MODIFIED_DATE_TIME=#{et.modifiedDateTime},</if>
|
|
<if test="et.status!=null">STATUS=#{et.status},</if>
|
|
</trim>
|
|
WHERE HANDLE=#{et.handle}
|
|
<if test="et instanceof java.util.Map">
|
|
<if test="et.MP_OPTLOCK_VERSION_ORIGINAL!=null">and
|
|
${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
|
|
</if>
|
|
</if>
|
|
</update>
|
|
|
|
|
|
<update id="updateAllColumnById">
|
|
UPDATE Z_UPLOAD_PICTURES <trim prefix="SET" suffixOverrides=",">
|
|
SITE=#{et.site},
|
|
PICTURE_PATH=#{et.picturePath},
|
|
PICTURE_ADDRESS=#{et.pictureAddress},
|
|
OBJECT_BO=#{et.objectBo},
|
|
NUM=#{et.num},
|
|
TYPE=#{et.type},
|
|
CREATED_USER=#{et.createdUser},
|
|
CREATED_DATE_TIME=#{et.createdDateTime},
|
|
MODIFIED_USER=#{et.modifiedUser},
|
|
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
|
|
STATUS=#{et.status},
|
|
</trim> WHERE HANDLE=#{et.handle}
|
|
<if test="et instanceof java.util.Map">
|
|
<if test="et.MP_OPTLOCK_VERSION_ORIGINAL!=null">and
|
|
${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
|
|
</if>
|
|
</if>
|
|
</update>
|
|
|
|
|
|
<update id="update">
|
|
UPDATE Z_UPLOAD_PICTURES
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="et.site!=null">SITE=#{et.site},</if>
|
|
<if test="et.picturePath!=null">PICTURE_PATH=#{et.picturePath},</if>
|
|
<if test="et.pictureAddress!=null">PICTURE_ADDRESS=#{et.pictureAddress},</if>
|
|
<if test="et.objectBo!=null">OBJECT_BO=#{et.objectBo},</if>
|
|
<if test="et.num!=null">NUM=#{et.num},</if>
|
|
<if test="et.type!=null">TYPE=#{et.type},</if>
|
|
<if test="et.createdUser!=null">CREATED_USER=#{et.createdUser},</if>
|
|
<if test="et.createdDateTime!=null">CREATED_DATE_TIME=#{et.createdDateTime},</if>
|
|
<if test="et.modifiedUser!=null">MODIFIED_USER=#{et.modifiedUser},</if>
|
|
<if test="et.modifiedDateTime!=null">MODIFIED_DATE_TIME=#{et.modifiedDateTime},</if>
|
|
<if test="et.status!=null">STATUS=#{et.status},</if>
|
|
</trim>
|
|
<where>
|
|
<if test="ew!=null">
|
|
<if test="ew.entity!=null">
|
|
HANDLE=#{ew.entity.handle}
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
|
|
</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</if>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</update>
|
|
|
|
<delete id="deleteById">
|
|
DELETE FROM Z_UPLOAD_PICTURES WHERE HANDLE=#{handle}
|
|
</delete>
|
|
|
|
<delete id="deleteByMap">
|
|
DELETE FROM Z_UPLOAD_PICTURES
|
|
<if test="cm!=null and !cm.isEmpty">
|
|
<where>
|
|
<foreach collection="cm.keys" item="k" separator="AND">
|
|
<if test="cm[k] != null">
|
|
${k} = #{cm[${k}]}
|
|
</if>
|
|
</foreach>
|
|
</where>
|
|
</if>
|
|
</delete>
|
|
|
|
<delete id="delete">
|
|
DELETE FROM Z_UPLOAD_PICTURES
|
|
<where>
|
|
<if test="ew!=null">
|
|
<if test="ew.entity!=null">
|
|
<if test="ew.entity.handle!=null">
|
|
HANDLE=#{ew.entity.handle}
|
|
</if>
|
|
<if test="ew.entity.site!=null">AND SITE=#{ew.entity.site}</if>
|
|
<if test="ew.entity.picturePath!=null">AND PICTURE_PATH=#{ew.entity.picturePath}</if>
|
|
<if test="ew.entity.pictureAddress!=null">AND PICTURE_ADDRESS=#{ew.entity.pictureAddress}</if>
|
|
<if test="ew.entity.objectBo!=null">AND OBJECT_BO=#{ew.entity.objectBo}</if>
|
|
<if test="ew.entity.num!=null">AND NUM=#{ew.entity.num}</if>
|
|
<if test="ew.entity.type!=null">AND TYPE=#{ew.entity.type}</if>
|
|
<if test="ew.entity.createdUser!=null">AND CREATED_USER=#{ew.entity.createdUser}</if>
|
|
<if test="ew.entity.createdDateTime!=null">AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
<if test="ew.entity.modifiedUser!=null">AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
|
|
<if test="ew.entity.modifiedDateTime!=null">AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
|
|
</if>
|
|
<if test="ew.entity.status!=null">AND STATUS=#{ew.entity.status}</if>
|
|
</if>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
|
${ew.sqlSegment}
|
|
</if>
|
|
</delete>
|
|
|
|
<delete id="deleteBatchIds">
|
|
DELETE FROM Z_UPLOAD_PICTURES WHERE HANDLE IN (
|
|
<foreach item="item" index="index" collection="coll" separator=",">#{item}
|
|
</foreach>)
|
|
</delete>
|
|
<!-- BaseMapper标准查询/修改/删除 -->
|
|
|
|
</mapper>
|