<?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.OutStoreMapper"> <!-- 通用查询映射结果 --> <resultMap id="BaseResultMap" type="com.foreverwin.mesnac.anomaly.model.OutStore"> <id column="HANDLE" property="handle"/> <result column="FACTORY" property="factory"/> <result column="STOCK_LOCATION" property="stockLocation"/> <result column="PROJECT_NO" property="projectNo"/> <result column="ITEM" property="item"/> <result column="ITEM_DESCRIPTION" property="itemDescription"/> <result column="QTY" property="qty"/> <result column="POSTING_DATE_TIME" property="postingDateTime"/> <result column="IMPORT_USER" property="importUser"/> <result column="IMPORT_DATE_TIME" property="importDateTime"/> <result column="OTHER1" property="other1"/> <result column="OTHER2" property="other2"/> <result column="OTHER3" property="other3"/> </resultMap> <!-- 通用查询结果列 --> <sql id="Base_Column_List"> HANDLE, FACTORY, STOCK_LOCATION, PROJECT_NO, ITEM, ITEM_DESCRIPTION, QTY, POSTING_DATE_TIME, IMPORT_USER, IMPORT_DATE_TIME, OTHER1, OTHER2, OTHER3,ROWNUM SEQ </sql> <!-- BaseMapper标准查询/修改/删除 --> <select id="selectById" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List"></include> FROM Z_OUT_STORE WHERE HANDLE=#{handle} </select> <select id="selectByMap" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List"></include> FROM Z_OUT_STORE <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_OUT_STORE 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_OUT_STORE <where> <if test="ew.entity.handle!=null"> HANDLE=#{ew.handle} </if> <if test="ew.entity.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</if> </where> </select> <select id="selectCount" resultType="Integer"> SELECT COUNT(1) FROM Z_OUT_STORE <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.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</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_OUT_STORE <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.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</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_OUT_STORE <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.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</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_OUT_STORE <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.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</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_OUT_STORE <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.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</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_OUT_STORE <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.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</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.OutStore"> INSERT INTO Z_OUT_STORE <trim prefix="(" suffix=")" suffixOverrides=","> HANDLE, <if test="factory!=null">FACTORY,</if> <if test="stockLocation!=null">STOCK_LOCATION,</if> <if test="projectNo!=null">PROJECT_NO,</if> <if test="item!=null">ITEM,</if> <if test="itemDescription!=null">ITEM_DESCRIPTION,</if> <if test="qty!=null">QTY,</if> <if test="postingDateTime!=null">POSTING_DATE_TIME,</if> <if test="importUser!=null">IMPORT_USER,</if> <if test="importDateTime!=null">IMPORT_DATE_TIME,</if> <if test="other1!=null">OTHER1,</if> <if test="other2!=null">OTHER2,</if> <if test="other3!=null">OTHER3,</if> </trim> VALUES <trim prefix="(" suffix=")" suffixOverrides=","> #{handle}, <if test="factory!=null">#{factory},</if> <if test="stockLocation!=null">#{stockLocation},</if> <if test="projectNo!=null">#{projectNo},</if> <if test="item!=null">#{item},</if> <if test="itemDescription!=null">#{itemDescription},</if> <if test="qty!=null">#{qty},</if> <if test="postingDateTime!=null">#{postingDateTime},</if> <if test="importUser!=null">#{importUser},</if> <if test="importDateTime!=null">#{importDateTime},</if> <if test="other1!=null">#{other1},</if> <if test="other2!=null">#{other2},</if> <if test="other3!=null">#{other3},</if> </trim> </insert> <insert id="insertAllColumn" parameterType="com.foreverwin.mesnac.anomaly.model.OutStore"> INSERT INTO Z_OUT_STORE <trim prefix="(" suffix=")" suffixOverrides=","> <include refid="Base_Column_List"></include> </trim> VALUES <trim prefix="(" suffix=")" suffixOverrides=","> #{handle}, #{factory}, #{stockLocation}, #{projectNo}, #{item}, #{itemDescription}, #{qty}, #{postingDateTime}, #{importUser}, #{importDateTime}, #{other1}, #{other2}, #{other3}, </trim> </insert> <update id="updateById"> UPDATE Z_OUT_STORE <trim prefix="SET" suffixOverrides=","> <if test="et.factory!=null">FACTORY=#{et.factory},</if> <if test="et.stockLocation!=null">STOCK_LOCATION=#{et.stockLocation},</if> <if test="et.projectNo!=null">PROJECT_NO=#{et.projectNo},</if> <if test="et.item!=null">ITEM=#{et.item},</if> <if test="et.itemDescription!=null">ITEM_DESCRIPTION=#{et.itemDescription},</if> <if test="et.qty!=null">QTY=#{et.qty},</if> <if test="et.postingDateTime!=null">POSTING_DATE_TIME=#{et.postingDateTime},</if> <if test="et.importUser!=null">IMPORT_USER=#{et.importUser},</if> <if test="et.importDateTime!=null">IMPORT_DATE_TIME=#{et.importDateTime},</if> <if test="et.other1!=null">OTHER1=#{et.other1},</if> <if test="et.other2!=null">OTHER2=#{et.other2},</if> <if test="et.other3!=null">OTHER3=#{et.other3},</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_OUT_STORE <trim prefix="SET" suffixOverrides=","> FACTORY=#{et.factory}, STOCK_LOCATION=#{et.stockLocation}, PROJECT_NO=#{et.projectNo}, ITEM=#{et.item}, ITEM_DESCRIPTION=#{et.itemDescription}, QTY=#{et.qty}, POSTING_DATE_TIME=#{et.postingDateTime}, IMPORT_USER=#{et.importUser}, IMPORT_DATE_TIME=#{et.importDateTime}, OTHER1=#{et.other1}, OTHER2=#{et.other2}, OTHER3=#{et.other3}, </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_OUT_STORE <trim prefix="SET" suffixOverrides=","> <if test="et.factory!=null">FACTORY=#{et.factory},</if> <if test="et.stockLocation!=null">STOCK_LOCATION=#{et.stockLocation},</if> <if test="et.projectNo!=null">PROJECT_NO=#{et.projectNo},</if> <if test="et.item!=null">ITEM=#{et.item},</if> <if test="et.itemDescription!=null">ITEM_DESCRIPTION=#{et.itemDescription},</if> <if test="et.qty!=null">QTY=#{et.qty},</if> <if test="et.postingDateTime!=null">POSTING_DATE_TIME=#{et.postingDateTime},</if> <if test="et.importUser!=null">IMPORT_USER=#{et.importUser},</if> <if test="et.importDateTime!=null">IMPORT_DATE_TIME=#{et.importDateTime},</if> <if test="et.other1!=null">OTHER1=#{et.other1},</if> <if test="et.other2!=null">OTHER2=#{et.other2},</if> <if test="et.other3!=null">OTHER3=#{et.other3},</if> </trim> <where> <if test="ew!=null"> <if test="ew.entity!=null"> HANDLE=#{ew.entity.handle} <if test="ew.entity.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</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_OUT_STORE WHERE HANDLE=#{handle} </delete> <delete id="deleteByMap"> DELETE FROM Z_OUT_STORE <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_OUT_STORE <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.factory!=null">AND FACTORY=#{ew.entity.factory}</if> <if test="ew.entity.stockLocation!=null">AND STOCK_LOCATION=#{ew.entity.stockLocation}</if> <if test="ew.entity.projectNo!=null">AND PROJECT_NO=#{ew.entity.projectNo}</if> <if test="ew.entity.item!=null">AND ITEM=#{ew.entity.item}</if> <if test="ew.entity.itemDescription!=null">AND ITEM_DESCRIPTION=#{ew.entity.itemDescription}</if> <if test="ew.entity.qty!=null">AND QTY=#{ew.entity.qty}</if> <if test="ew.entity.postingDateTime!=null">AND POSTING_DATE_TIME=#{ew.entity.postingDateTime}</if> <if test="ew.entity.importUser!=null">AND IMPORT_USER=#{ew.entity.importUser}</if> <if test="ew.entity.importDateTime!=null">AND IMPORT_DATE_TIME=#{ew.entity.importDateTime}</if> <if test="ew.entity.other1!=null">AND OTHER1=#{ew.entity.other1}</if> <if test="ew.entity.other2!=null">AND OTHER2=#{ew.entity.other2}</if> <if test="ew.entity.other3!=null">AND OTHER3=#{ew.entity.other3}</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_OUT_STORE WHERE HANDLE IN ( <foreach item="item" index="index" collection="coll" separator=",">#{item} </foreach>) </delete> <!-- BaseMapper标准查询/修改/删除 --> </mapper>