|
@@ -1,575 +1,633 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?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">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.jisco.dynamicweight.dynamicbasescstation.mapper.DynamicBaseScStationMapper">
|
|
<mapper namespace="com.jisco.dynamicweight.dynamicbasescstation.mapper.DynamicBaseScStationMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
- <id column="STATION_NO" jdbcType="VARCHAR" property="stationNo" />
|
|
|
|
|
- <result column="NAME" jdbcType="VARCHAR" property="name" />
|
|
|
|
|
- <result column="STATION_NUM" jdbcType="VARCHAR" property="stationNum" />
|
|
|
|
|
- <result column="MATERIAL_CODE" jdbcType="VARCHAR" property="materialCode" />
|
|
|
|
|
- <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
|
|
|
|
|
- <result column="SENDER_CODE" jdbcType="VARCHAR" property="senderCode" />
|
|
|
|
|
- <result column="SENDER_NAME" jdbcType="VARCHAR" property="senderName" />
|
|
|
|
|
- <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
|
|
|
|
|
- <result column="RECIEVER_CODE" jdbcType="VARCHAR" property="recieverCode" />
|
|
|
|
|
- <result column="RECIEVER_NAME" jdbcType="VARCHAR" property="recieverName" />
|
|
|
|
|
- <result column="RECIEVER_TYPE" jdbcType="VARCHAR" property="recieverType" />
|
|
|
|
|
- <result column="IS_UPLOAD" jdbcType="DECIMAL" property="isUpload" />
|
|
|
|
|
- <result column="IS_INBATCHES" jdbcType="DECIMAL" property="isInbatches" />
|
|
|
|
|
- <result column="MEMO" jdbcType="VARCHAR" property="memo" />
|
|
|
|
|
- <result column="VALID_FLAG" jdbcType="VARCHAR" property="validFlag" />
|
|
|
|
|
- <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
|
|
|
|
|
- <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
|
|
|
|
|
- <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
- <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
|
|
|
|
|
- <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
|
|
|
|
|
- <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
- </resultMap>
|
|
|
|
|
- <sql id="columns">
|
|
|
|
|
- STATION_NO, NAME, STATION_NUM, MATERIAL_CODE, MATERIAL_NAME, SENDER_CODE, SENDER_NAME,
|
|
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
+ <id column="STATION_NO" jdbcType="VARCHAR" property="stationNo"/>
|
|
|
|
|
+ <result column="NAME" jdbcType="VARCHAR" property="name"/>
|
|
|
|
|
+ <result column="STATION_NUM" jdbcType="VARCHAR" property="stationNum"/>
|
|
|
|
|
+ <result column="MATERIAL_CODE" jdbcType="VARCHAR" property="materialCode"/>
|
|
|
|
|
+ <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName"/>
|
|
|
|
|
+ <result column="SENDER_CODE" jdbcType="VARCHAR" property="senderCode"/>
|
|
|
|
|
+ <result column="SENDER_NAME" jdbcType="VARCHAR" property="senderName"/>
|
|
|
|
|
+ <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType"/>
|
|
|
|
|
+ <result column="RECIEVER_CODE" jdbcType="VARCHAR" property="recieverCode"/>
|
|
|
|
|
+ <result column="RECIEVER_NAME" jdbcType="VARCHAR" property="recieverName"/>
|
|
|
|
|
+ <result column="RECIEVER_TYPE" jdbcType="VARCHAR" property="recieverType"/>
|
|
|
|
|
+ <result column="IS_UPLOAD" jdbcType="DECIMAL" property="isUpload"/>
|
|
|
|
|
+ <result column="IS_INBATCHES" jdbcType="DECIMAL" property="isInbatches"/>
|
|
|
|
|
+ <result column="MEMO" jdbcType="VARCHAR" property="memo"/>
|
|
|
|
|
+ <result column="VALID_FLAG" jdbcType="VARCHAR" property="validFlag"/>
|
|
|
|
|
+ <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo"/>
|
|
|
|
|
+ <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName"/>
|
|
|
|
|
+ <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
|
|
+ <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo"/>
|
|
|
|
|
+ <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName"/>
|
|
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+ <sql id="columns">
|
|
|
|
|
+ STATION_NO
|
|
|
|
|
+ , NAME, STATION_NUM, MATERIAL_CODE, MATERIAL_NAME, SENDER_CODE, SENDER_NAME,
|
|
|
SENDER_TYPE, RECIEVER_CODE, RECIEVER_NAME, RECIEVER_TYPE, MEMO, VALID_FLAG, CREATE_MAN_NO,
|
|
SENDER_TYPE, RECIEVER_CODE, RECIEVER_NAME, RECIEVER_TYPE, MEMO, VALID_FLAG, CREATE_MAN_NO,
|
|
|
- CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME
|
|
|
|
|
- </sql>
|
|
|
|
|
- <sql id="columns_alias">
|
|
|
|
|
- t.STATION_NO, t.NAME, t.STATION_NUM, t.MATERIAL_CODE, t.MATERIAL_NAME, t.SENDER_CODE,
|
|
|
|
|
|
|
+ CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,IS_UPLOAD,IS_INBATCHES
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="columns_alias">
|
|
|
|
|
+ t.STATION_NO, t.NAME, t.STATION_NUM, t.MATERIAL_CODE, t.MATERIAL_NAME, t.SENDER_CODE,
|
|
|
t.SENDER_NAME, t.SENDER_TYPE, t.RECIEVER_CODE, t.RECIEVER_NAME, t.RECIEVER_TYPE,
|
|
t.SENDER_NAME, t.SENDER_TYPE, t.RECIEVER_CODE, t.RECIEVER_NAME, t.RECIEVER_TYPE,
|
|
|
t.MEMO, t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO,
|
|
t.MEMO, t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO,
|
|
|
- t.UPDATE_MAN_NAME, t.UPDATE_TIME
|
|
|
|
|
- </sql>
|
|
|
|
|
- <sql id="select">
|
|
|
|
|
- SELECT <include refid="columns"/> FROM DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- </sql>
|
|
|
|
|
- <sql id="select_alias">
|
|
|
|
|
- SELECT <include refid="columns_alias"/> FROM DYNAMIC_BASE_SC_STATION t
|
|
|
|
|
- </sql>
|
|
|
|
|
- <sql id="where">
|
|
|
|
|
- <where>
|
|
|
|
|
- <if test="stationNo != null and stationNo != ''">
|
|
|
|
|
- and STATION_NO = #{stationNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="name != null and name != ''">
|
|
|
|
|
- and NAME = #{name}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="stationNum != null and stationNum != ''">
|
|
|
|
|
- and STATION_NUM = #{stationNum}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialCode != null and materialCode != ''">
|
|
|
|
|
- and MATERIAL_CODE = #{materialCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialName != null and materialName != ''">
|
|
|
|
|
- and MATERIAL_NAME = #{materialName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderCode != null and senderCode != ''">
|
|
|
|
|
- and SENDER_CODE = #{senderCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderName != null and senderName != ''">
|
|
|
|
|
- and SENDER_NAME = #{senderName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderType != null and senderType != ''">
|
|
|
|
|
- and SENDER_TYPE = #{senderType}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverCode != null and recieverCode != ''">
|
|
|
|
|
- and RECIEVER_CODE = #{recieverCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverName != null and recieverName != ''">
|
|
|
|
|
- and RECIEVER_NAME = #{recieverName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverType != null and recieverType != ''">
|
|
|
|
|
- and RECIEVER_TYPE = #{recieverType}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="memo != null and memo != ''">
|
|
|
|
|
- and MEMO = #{memo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
- and VALID_FLAG = #{validFlag}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManNo != null and createManNo != ''">
|
|
|
|
|
- and CREATE_MAN_NO = #{createManNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManName != null and createManName != ''">
|
|
|
|
|
- and CREATE_MAN_NAME = #{createManName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
- and UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
- and UPDATE_MAN_NAME = #{updateManName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- </where>
|
|
|
|
|
- </sql>
|
|
|
|
|
- <sql id="whereLike">
|
|
|
|
|
- <where>
|
|
|
|
|
- <if test="stationNo != null and stationNo != ''">
|
|
|
|
|
- and STATION_NO LIKE '%${stationNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="name != null and name != ''">
|
|
|
|
|
- and NAME LIKE '%${name}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="stationNum != null and stationNum != ''">
|
|
|
|
|
- and STATION_NUM LIKE '%${stationNum}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialCode != null and materialCode != ''">
|
|
|
|
|
- and MATERIAL_CODE LIKE '%${materialCode}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialName != null and materialName != ''">
|
|
|
|
|
- and MATERIAL_NAME LIKE '%${materialName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderCode != null and senderCode != ''">
|
|
|
|
|
- and SENDER_CODE LIKE '%${senderCode}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderName != null and senderName != ''">
|
|
|
|
|
- and SENDER_NAME LIKE '%${senderName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderType != null and senderType != ''">
|
|
|
|
|
- and SENDER_TYPE LIKE '%${senderType}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverCode != null and recieverCode != ''">
|
|
|
|
|
- and RECIEVER_CODE LIKE '%${recieverCode}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverName != null and recieverName != ''">
|
|
|
|
|
- and RECIEVER_NAME LIKE '%${recieverName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverType != null and recieverType != ''">
|
|
|
|
|
- and RECIEVER_TYPE LIKE '%${recieverType}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="memo != null and memo != ''">
|
|
|
|
|
- and MEMO LIKE '%${memo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
- and VALID_FLAG LIKE '%${validFlag}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManNo != null and createManNo != ''">
|
|
|
|
|
- and CREATE_MAN_NO LIKE '%${createManNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManName != null and createManName != ''">
|
|
|
|
|
- and CREATE_MAN_NAME LIKE '%${createManName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
- and UPDATE_MAN_NO LIKE '%${updateManNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
- and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- </where>
|
|
|
|
|
- </sql>
|
|
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
- delete from DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- where STATION_NO = #{stationNo,jdbcType=VARCHAR}
|
|
|
|
|
- </delete>
|
|
|
|
|
- <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
|
|
- delete from DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- where 1!=1
|
|
|
|
|
- <if test="name != null and name != ''">
|
|
|
|
|
- or NAME = #{name}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="stationNum != null and stationNum != ''">
|
|
|
|
|
- or STATION_NUM = #{stationNum}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialCode != null and materialCode != ''">
|
|
|
|
|
- or MATERIAL_CODE = #{materialCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialName != null and materialName != ''">
|
|
|
|
|
- or MATERIAL_NAME = #{materialName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderCode != null and senderCode != ''">
|
|
|
|
|
- or SENDER_CODE = #{senderCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderName != null and senderName != ''">
|
|
|
|
|
- or SENDER_NAME = #{senderName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderType != null and senderType != ''">
|
|
|
|
|
- or SENDER_TYPE = #{senderType}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverCode != null and recieverCode != ''">
|
|
|
|
|
- or RECIEVER_CODE = #{recieverCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverName != null and recieverName != ''">
|
|
|
|
|
- or RECIEVER_NAME = #{recieverName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverType != null and recieverType != ''">
|
|
|
|
|
- or RECIEVER_TYPE = #{recieverType}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="memo != null and memo != ''">
|
|
|
|
|
- or MEMO = #{memo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
- or VALID_FLAG = #{validFlag}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManNo != null and createManNo != ''">
|
|
|
|
|
- or CREATE_MAN_NO = #{createManNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManName != null and createManName != ''">
|
|
|
|
|
- or CREATE_MAN_NAME = #{createManName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
- or UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
- or UPDATE_MAN_NAME = #{updateManName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
|
|
- </if>
|
|
|
|
|
- </delete>
|
|
|
|
|
- <insert id="insert" parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
- insert into DYNAMIC_BASE_SC_STATION (STATION_NO, NAME, STATION_NUM,
|
|
|
|
|
- MATERIAL_CODE, MATERIAL_NAME, SENDER_CODE,
|
|
|
|
|
- SENDER_NAME, SENDER_TYPE, RECIEVER_CODE,
|
|
|
|
|
- RECIEVER_NAME, RECIEVER_TYPE, MEMO,
|
|
|
|
|
- VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME,
|
|
|
|
|
- CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
|
|
|
|
|
- UPDATE_TIME)
|
|
|
|
|
- values (#{stationNo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{stationNum,jdbcType=VARCHAR},
|
|
|
|
|
- #{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{senderCode,jdbcType=VARCHAR},
|
|
|
|
|
- #{senderName,jdbcType=VARCHAR}, #{senderType,jdbcType=VARCHAR}, #{recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
- #{recieverName,jdbcType=VARCHAR}, #{recieverType,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
|
|
|
|
- #{validFlag,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
|
|
- </insert>
|
|
|
|
|
- <insert id="insertSelective" parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
- insert into DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
- <if test="stationNo != null">
|
|
|
|
|
- STATION_NO,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="name != null">
|
|
|
|
|
- NAME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="stationNum != null">
|
|
|
|
|
- STATION_NUM,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialCode != null">
|
|
|
|
|
- MATERIAL_CODE,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialName != null">
|
|
|
|
|
- MATERIAL_NAME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderCode != null">
|
|
|
|
|
- SENDER_CODE,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderName != null">
|
|
|
|
|
- SENDER_NAME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderType != null">
|
|
|
|
|
- SENDER_TYPE,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverCode != null">
|
|
|
|
|
- RECIEVER_CODE,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverName != null">
|
|
|
|
|
- RECIEVER_NAME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverType != null">
|
|
|
|
|
- RECIEVER_TYPE,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="memo != null">
|
|
|
|
|
- MEMO,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="validFlag != null">
|
|
|
|
|
- VALID_FLAG,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManNo != null">
|
|
|
|
|
- CREATE_MAN_NO,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManName != null">
|
|
|
|
|
- CREATE_MAN_NAME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- CREATE_TIME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManNo != null">
|
|
|
|
|
- UPDATE_MAN_NO,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManName != null">
|
|
|
|
|
- UPDATE_MAN_NAME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- UPDATE_TIME,
|
|
|
|
|
- </if>
|
|
|
|
|
- </trim>
|
|
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
- <if test="stationNo != null">
|
|
|
|
|
- #{stationNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="name != null">
|
|
|
|
|
- #{name,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="stationNum != null">
|
|
|
|
|
- #{stationNum,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialCode != null">
|
|
|
|
|
- #{materialCode,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialName != null">
|
|
|
|
|
- #{materialName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderCode != null">
|
|
|
|
|
- #{senderCode,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderName != null">
|
|
|
|
|
- #{senderName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderType != null">
|
|
|
|
|
- #{senderType,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverCode != null">
|
|
|
|
|
- #{recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverName != null">
|
|
|
|
|
- #{recieverName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverType != null">
|
|
|
|
|
- #{recieverType,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="memo != null">
|
|
|
|
|
- #{memo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="validFlag != null">
|
|
|
|
|
- #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManNo != null">
|
|
|
|
|
- #{createManNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManName != null">
|
|
|
|
|
- #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManNo != null">
|
|
|
|
|
- #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManName != null">
|
|
|
|
|
- #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- </trim>
|
|
|
|
|
- </insert>
|
|
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
- update DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- set NAME = #{name,jdbcType=VARCHAR},
|
|
|
|
|
- STATION_NUM = #{stationNum,jdbcType=VARCHAR},
|
|
|
|
|
- MATERIAL_CODE = #{materialCode,jdbcType=VARCHAR},
|
|
|
|
|
- MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
|
|
|
|
|
- SENDER_CODE = #{senderCode,jdbcType=VARCHAR},
|
|
|
|
|
- SENDER_NAME = #{senderName,jdbcType=VARCHAR},
|
|
|
|
|
- SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
|
|
|
|
|
- RECIEVER_CODE = #{recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
- RECIEVER_NAME = #{recieverName,jdbcType=VARCHAR},
|
|
|
|
|
- RECIEVER_TYPE = #{recieverType,jdbcType=VARCHAR},
|
|
|
|
|
- MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
|
|
- VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
- CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
|
|
- CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
- CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
- UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- where STATION_NO = #{stationNo,jdbcType=VARCHAR}
|
|
|
|
|
- </update>
|
|
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
- update DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- <set>
|
|
|
|
|
- <if test="name != null">
|
|
|
|
|
- NAME = #{name,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="stationNum != null">
|
|
|
|
|
- STATION_NUM = #{stationNum,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialCode != null">
|
|
|
|
|
- MATERIAL_CODE = #{materialCode,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialName != null">
|
|
|
|
|
- MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderCode != null">
|
|
|
|
|
- SENDER_CODE = #{senderCode,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderName != null">
|
|
|
|
|
- SENDER_NAME = #{senderName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="senderType != null">
|
|
|
|
|
- SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverCode != null">
|
|
|
|
|
- RECIEVER_CODE = #{recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverName != null">
|
|
|
|
|
- RECIEVER_NAME = #{recieverName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="recieverType != null">
|
|
|
|
|
- RECIEVER_TYPE = #{recieverType,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="memo != null">
|
|
|
|
|
- MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="validFlag != null">
|
|
|
|
|
- VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManNo != null">
|
|
|
|
|
- CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createManName != null">
|
|
|
|
|
- CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManNo != null">
|
|
|
|
|
- UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateManName != null">
|
|
|
|
|
- UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- </set>
|
|
|
|
|
- where STATION_NO = #{stationNo,jdbcType=VARCHAR}
|
|
|
|
|
- </update>
|
|
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
- <include refid="select"/>
|
|
|
|
|
- where STATION_NO = #{stationNo,jdbcType=VARCHAR}
|
|
|
|
|
- </select>
|
|
|
|
|
- <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
- <include refid="select"/>
|
|
|
|
|
- <include refid="where"/>
|
|
|
|
|
- </select>
|
|
|
|
|
- <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
- <include refid="select"/>
|
|
|
|
|
- <include refid="whereLike"/>
|
|
|
|
|
- </select>
|
|
|
|
|
- <insert id="batchInsert" parameterType="java.util.List">
|
|
|
|
|
- insert into DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- (STATION_NO,
|
|
|
|
|
- NAME, STATION_NUM, MATERIAL_CODE,
|
|
|
|
|
- MATERIAL_NAME, SENDER_CODE, SENDER_NAME,
|
|
|
|
|
- SENDER_TYPE, RECIEVER_CODE, RECIEVER_NAME,
|
|
|
|
|
- RECIEVER_TYPE, MEMO, VALID_FLAG,
|
|
|
|
|
- CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
- UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME
|
|
|
|
|
- )
|
|
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
|
- select
|
|
|
|
|
- #{item.stationNo,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.name,jdbcType=VARCHAR}, #{item.stationNum,jdbcType=VARCHAR}, #{item.materialCode,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.materialName,jdbcType=VARCHAR}, #{item.senderCode,jdbcType=VARCHAR}, #{item.senderName,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.senderType,jdbcType=VARCHAR}, #{item.recieverCode,jdbcType=VARCHAR}, #{item.recieverName,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.recieverType,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- from dual
|
|
|
|
|
- </foreach> )
|
|
|
|
|
- </insert>
|
|
|
|
|
- <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
|
- update DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- set
|
|
|
|
|
- STATION_NO=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.stationNo,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,NAME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.name,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,STATION_NUM=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.stationNum,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,MATERIAL_CODE=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.materialCode,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,MATERIAL_NAME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,SENDER_CODE=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.senderCode,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,SENDER_NAME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.senderName,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,SENDER_TYPE=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,RECIEVER_CODE=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.recieverCode,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,RECIEVER_NAME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.recieverName,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,RECIEVER_TYPE=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.recieverType,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,MEMO=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,VALID_FLAG=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,CREATE_MAN_NO=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,CREATE_MAN_NAME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,CREATE_TIME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,UPDATE_MAN_NO=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,UPDATE_MAN_NAME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,UPDATE_TIME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
- when #{item.stationNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- where STATION_NO in
|
|
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
- #{item.stationNo,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </update>
|
|
|
|
|
- <delete id="batchDelete" parameterType="java.util.List">
|
|
|
|
|
- delete from DYNAMIC_BASE_SC_STATION
|
|
|
|
|
- where STATION_NO in
|
|
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
- #{id}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </delete>
|
|
|
|
|
- <!-- 友情提示!!!-->
|
|
|
|
|
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
|
-
|
|
|
|
|
|
|
+ t.UPDATE_MAN_NAME, t.UPDATE_TIME,t.IS_UPLOAD,t.IS_INBATCHES
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="select">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ <include refid="columns"/>
|
|
|
|
|
+ FROM DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="select_alias">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ <include refid="columns_alias"/>
|
|
|
|
|
+ FROM DYNAMIC_BASE_SC_STATION t
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="where">
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="stationNo != null and stationNo != ''">
|
|
|
|
|
+ and STATION_NO = #{stationNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ and NAME = #{name}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="stationNum != null and stationNum != ''">
|
|
|
|
|
+ and STATION_NUM = #{stationNum}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialCode != null and materialCode != ''">
|
|
|
|
|
+ and MATERIAL_CODE = #{materialCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialName != null and materialName != ''">
|
|
|
|
|
+ and MATERIAL_NAME = #{materialName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderCode != null and senderCode != ''">
|
|
|
|
|
+ and SENDER_CODE = #{senderCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderName != null and senderName != ''">
|
|
|
|
|
+ and SENDER_NAME = #{senderName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
|
|
+ and SENDER_TYPE = #{senderType}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverCode != null and recieverCode != ''">
|
|
|
|
|
+ and RECIEVER_CODE = #{recieverCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverName != null and recieverName != ''">
|
|
|
|
|
+ and RECIEVER_NAME = #{recieverName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverType != null and recieverType != ''">
|
|
|
|
|
+ and RECIEVER_TYPE = #{recieverType}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="memo != null and memo != ''">
|
|
|
|
|
+ and MEMO = #{memo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
+ and VALID_FLAG = #{validFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
|
|
+ and CREATE_MAN_NO = #{createManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
|
|
+ and CREATE_MAN_NAME = #{createManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ and UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ and UPDATE_MAN_NAME = #{updateManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="whereLike">
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="stationNo != null and stationNo != ''">
|
|
|
|
|
+ and STATION_NO LIKE '%${stationNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ and NAME LIKE '%${name}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="stationNum != null and stationNum != ''">
|
|
|
|
|
+ and STATION_NUM LIKE '%${stationNum}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialCode != null and materialCode != ''">
|
|
|
|
|
+ and MATERIAL_CODE LIKE '%${materialCode}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialName != null and materialName != ''">
|
|
|
|
|
+ and MATERIAL_NAME LIKE '%${materialName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderCode != null and senderCode != ''">
|
|
|
|
|
+ and SENDER_CODE LIKE '%${senderCode}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderName != null and senderName != ''">
|
|
|
|
|
+ and SENDER_NAME LIKE '%${senderName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
|
|
+ and SENDER_TYPE LIKE '%${senderType}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverCode != null and recieverCode != ''">
|
|
|
|
|
+ and RECIEVER_CODE LIKE '%${recieverCode}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverName != null and recieverName != ''">
|
|
|
|
|
+ and RECIEVER_NAME LIKE '%${recieverName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverType != null and recieverType != ''">
|
|
|
|
|
+ and RECIEVER_TYPE LIKE '%${recieverType}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="memo != null and memo != ''">
|
|
|
|
|
+ and MEMO LIKE '%${memo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
+ and VALID_FLAG LIKE '%${validFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
|
|
+ and CREATE_MAN_NO LIKE '%${createManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
|
|
+ and CREATE_MAN_NAME LIKE '%${createManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ and UPDATE_MAN_NO LIKE '%${updateManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
+ delete
|
|
|
|
|
+ from DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ where STATION_NO = #{stationNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
|
|
+ delete from DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ where 1!=1
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ or NAME = #{name}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="stationNum != null and stationNum != ''">
|
|
|
|
|
+ or STATION_NUM = #{stationNum}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialCode != null and materialCode != ''">
|
|
|
|
|
+ or MATERIAL_CODE = #{materialCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialName != null and materialName != ''">
|
|
|
|
|
+ or MATERIAL_NAME = #{materialName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderCode != null and senderCode != ''">
|
|
|
|
|
+ or SENDER_CODE = #{senderCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderName != null and senderName != ''">
|
|
|
|
|
+ or SENDER_NAME = #{senderName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
|
|
+ or SENDER_TYPE = #{senderType}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverCode != null and recieverCode != ''">
|
|
|
|
|
+ or RECIEVER_CODE = #{recieverCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverName != null and recieverName != ''">
|
|
|
|
|
+ or RECIEVER_NAME = #{recieverName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverType != null and recieverType != ''">
|
|
|
|
|
+ or RECIEVER_TYPE = #{recieverType}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="memo != null and memo != ''">
|
|
|
|
|
+ or MEMO = #{memo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
+ or VALID_FLAG = #{validFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
|
|
+ or CREATE_MAN_NO = #{createManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
|
|
+ or CREATE_MAN_NAME = #{createManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ or UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ or UPDATE_MAN_NAME = #{updateManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <insert id="insert" parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
+ insert into DYNAMIC_BASE_SC_STATION (STATION_NO, NAME, STATION_NUM,
|
|
|
|
|
+ MATERIAL_CODE, MATERIAL_NAME, SENDER_CODE,
|
|
|
|
|
+ SENDER_NAME, SENDER_TYPE, RECIEVER_CODE,
|
|
|
|
|
+ RECIEVER_NAME, RECIEVER_TYPE, MEMO,
|
|
|
|
|
+ VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME,
|
|
|
|
|
+ CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
|
|
|
|
|
+ UPDATE_TIME, IS_UPLOAD, IS_INBATCHES)
|
|
|
|
|
+ values (#{stationNo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{stationNum,jdbcType=VARCHAR},
|
|
|
|
|
+ #{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{senderCode,jdbcType=VARCHAR},
|
|
|
|
|
+ #{senderName,jdbcType=VARCHAR}, #{senderType,jdbcType=VARCHAR}, #{recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
+ #{recieverName,jdbcType=VARCHAR}, #{recieverType,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{validFlag,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{isUpload,jdbcType=VARCHAR}, #{isInbatches,jdbcType=VARCHAR})
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <insert id="insertSelective"
|
|
|
|
|
+ parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
+ insert into DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="stationNo != null">
|
|
|
|
|
+ STATION_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="name != null">
|
|
|
|
|
+ NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="stationNum != null">
|
|
|
|
|
+ STATION_NUM,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialCode != null">
|
|
|
|
|
+ MATERIAL_CODE,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialName != null">
|
|
|
|
|
+ MATERIAL_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderCode != null">
|
|
|
|
|
+ SENDER_CODE,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderName != null">
|
|
|
|
|
+ SENDER_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderType != null">
|
|
|
|
|
+ SENDER_TYPE,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverCode != null">
|
|
|
|
|
+ RECIEVER_CODE,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverName != null">
|
|
|
|
|
+ RECIEVER_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverType != null">
|
|
|
|
|
+ RECIEVER_TYPE,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="memo != null">
|
|
|
|
|
+ MEMO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
|
+ VALID_FLAG,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null">
|
|
|
|
|
+ CREATE_MAN_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null">
|
|
|
|
|
+ CREATE_MAN_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ CREATE_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ UPDATE_MAN_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ UPDATE_MAN_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ UPDATE_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ UPDATE_MAN_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ UPDATE_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="stationNo != null">
|
|
|
|
|
+ #{stationNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="name != null">
|
|
|
|
|
+ #{name,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="stationNum != null">
|
|
|
|
|
+ #{stationNum,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialCode != null">
|
|
|
|
|
+ #{materialCode,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialName != null">
|
|
|
|
|
+ #{materialName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderCode != null">
|
|
|
|
|
+ #{senderCode,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderName != null">
|
|
|
|
|
+ #{senderName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderType != null">
|
|
|
|
|
+ #{senderType,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverCode != null">
|
|
|
|
|
+ #{recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverName != null">
|
|
|
|
|
+ #{recieverName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverType != null">
|
|
|
|
|
+ #{recieverType,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="memo != null">
|
|
|
|
|
+ #{memo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
|
+ #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null">
|
|
|
|
|
+ #{createManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null">
|
|
|
|
|
+ #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isUpload != null">
|
|
|
|
|
+ IS_UPLOAD,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isInbatches != null">
|
|
|
|
|
+ IS_INBATCHES,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <update id="updateByPrimaryKey"
|
|
|
|
|
+ parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
+ update DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ set NAME = #{name,jdbcType=VARCHAR},
|
|
|
|
|
+ STATION_NUM = #{stationNum,jdbcType=VARCHAR},
|
|
|
|
|
+ MATERIAL_CODE = #{materialCode,jdbcType=VARCHAR},
|
|
|
|
|
+ MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
|
|
|
|
|
+ SENDER_CODE = #{senderCode,jdbcType=VARCHAR},
|
|
|
|
|
+ SENDER_NAME = #{senderName,jdbcType=VARCHAR},
|
|
|
|
|
+ SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
|
|
|
|
|
+ RECIEVER_CODE = #{recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
+ RECIEVER_NAME = #{recieverName,jdbcType=VARCHAR},
|
|
|
|
|
+ RECIEVER_TYPE = #{recieverType,jdbcType=VARCHAR},
|
|
|
|
|
+ MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
|
|
+ VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ IS_UPLOAD = #{isUpload,jdbcType=VARCHAR},
|
|
|
|
|
+ IS_INBATCHES = #{isInbatches,jdbcType=VARCHAR},
|
|
|
|
|
+ where STATION_NO = #{stationNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <update id="updateByPrimaryKeySelective"
|
|
|
|
|
+ parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
+ update DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ <set>
|
|
|
|
|
+ <if test="name != null">
|
|
|
|
|
+ NAME = #{name,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="stationNum != null">
|
|
|
|
|
+ STATION_NUM = #{stationNum,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialCode != null">
|
|
|
|
|
+ MATERIAL_CODE = #{materialCode,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialName != null">
|
|
|
|
|
+ MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderCode != null">
|
|
|
|
|
+ SENDER_CODE = #{senderCode,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderName != null">
|
|
|
|
|
+ SENDER_NAME = #{senderName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="senderType != null">
|
|
|
|
|
+ SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverCode != null">
|
|
|
|
|
+ RECIEVER_CODE = #{recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverName != null">
|
|
|
|
|
+ RECIEVER_NAME = #{recieverName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="recieverType != null">
|
|
|
|
|
+ RECIEVER_TYPE = #{recieverType,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="memo != null">
|
|
|
|
|
+ MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
|
+ VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null">
|
|
|
|
|
+ CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null">
|
|
|
|
|
+ CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isUpload != null">
|
|
|
|
|
+ IS_UPLOAD = #{isUpload,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isInbatches != null">
|
|
|
|
|
+ IS_INBATCHES = #{isInbatches,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </set>
|
|
|
|
|
+ where STATION_NO = #{stationNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ where STATION_NO = #{stationNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ <include refid="where"/>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ <include refid="whereLike"/>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <insert id="batchInsert" parameterType="java.util.List">
|
|
|
|
|
+ insert into DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ (STATION_NO,
|
|
|
|
|
+ NAME, STATION_NUM, MATERIAL_CODE,
|
|
|
|
|
+ MATERIAL_NAME, SENDER_CODE, SENDER_NAME,
|
|
|
|
|
+ SENDER_TYPE, RECIEVER_CODE, RECIEVER_NAME,
|
|
|
|
|
+ RECIEVER_TYPE, MEMO, VALID_FLAG,
|
|
|
|
|
+ CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, IS_UPLOAD,IS_INBATCHES
|
|
|
|
|
+ )
|
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
|
+ select
|
|
|
|
|
+ #{item.stationNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.name,jdbcType=VARCHAR}, #{item.stationNum,jdbcType=VARCHAR}, #{item.materialCode,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.materialName,jdbcType=VARCHAR}, #{item.senderCode,jdbcType=VARCHAR}, #{item.senderName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.senderType,jdbcType=VARCHAR}, #{item.recieverCode,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.recieverName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.recieverType,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.updateTime,jdbcType=TIMESTAMP}, #{isUpload,jdbcType=VARCHAR}, #{isInbatches,jdbcType=VARCHAR}
|
|
|
|
|
+ from dual
|
|
|
|
|
+ </foreach> )
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
|
+ update DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ set
|
|
|
|
|
+ STATION_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.stationNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.name,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,STATION_NUM=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.stationNum,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MATERIAL_CODE=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.materialCode,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MATERIAL_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,SENDER_CODE=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.senderCode,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,SENDER_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.senderName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,SENDER_TYPE=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RECIEVER_CODE=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.recieverCode,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RECIEVER_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.recieverName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RECIEVER_TYPE=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.recieverType,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MEMO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,VALID_FLAG=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,IS_UPLOAD=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.isUpload,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,IS_INBATCHES=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case STATION_NO" close="end">
|
|
|
|
|
+ when #{item.stationNo,jdbcType=VARCHAR} then #{item.isInbatches,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ where STATION_NO in
|
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
+ #{item.stationNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
|
|
+ delete from DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ where STATION_NO in
|
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
+ #{id}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
|
+ <!--启用-->
|
|
|
|
|
+ <update id="enable" parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
+ update DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ set valid_flag = '1',
|
|
|
|
|
+ update_man_no = #{updateManNo},
|
|
|
|
|
+ update_man_name = #{updateManName},
|
|
|
|
|
+ update_time = #{updateTime}
|
|
|
|
|
+ where station_no = #{id}
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <!--禁用-->
|
|
|
|
|
+ <update id="disable"
|
|
|
|
|
+ parameterType="com.jisco.dynamicweight.dynamicbasescstation.model.DynamicBaseScStation">
|
|
|
|
|
+ update DYNAMIC_BASE_SC_STATION
|
|
|
|
|
+ set valid_flag = '0',
|
|
|
|
|
+ update_man_no = #{updateManNo},
|
|
|
|
|
+ update_man_name = #{updateManName},
|
|
|
|
|
+ update_time = #{updateTime}
|
|
|
|
|
+ where station_no = #{id}
|
|
|
|
|
+ </update>
|
|
|
</mapper>
|
|
</mapper>
|