123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552 |
- <?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.steerinfo.dil.mapper.AmsNotUploadedEasMapper">
- <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmsNotUploadedEas">
- <id column="ORDER_ID" jdbcType="VARCHAR" property="orderId" />
- <result column="NO" jdbcType="VARCHAR" property="no" />
- <result column="RESULT_POUND_NO" jdbcType="VARCHAR" property="resultPoundNo" />
- <result column="CAPACITY_NUMBER" jdbcType="VARCHAR" property="capacityNumber" />
- <result column="RESULT_CROSS_CALCULATE_NUMBER" jdbcType="VARCHAR" property="resultCrossCalculateNumber" />
- <result column="RESULT_TARE_CALCULATE_NUMBER" jdbcType="VARCHAR" property="resultTareCalculateNumber" />
- <result column="RESULT_CROSS_WEIGHT" jdbcType="VARCHAR" property="resultCrossWeight" />
- <result column="RESULT_TARE_WEIGHT" jdbcType="VARCHAR" property="resultTareWeight" />
- <result column="RESULT_NET_WEIGHT" jdbcType="VARCHAR" property="resultNetWeight" />
- <result column="RESULT_CROSS_WEIGHT_TIME" jdbcType="VARCHAR" property="resultCrossWeightTime" />
- <result column="RESULT_TARE_WEIGHT_TIME" jdbcType="VARCHAR" property="resultTareWeightTime" />
- <result column="EAS_ENTRY_ID" jdbcType="VARCHAR" property="easEntryId" />
- <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
- <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
- <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
- <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
- <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
- </resultMap>
- <sql id="columns">
- ORDER_ID, NO, RESULT_POUND_NO, CAPACITY_NUMBER, RESULT_CROSS_CALCULATE_NUMBER, RESULT_TARE_CALCULATE_NUMBER,
- RESULT_CROSS_WEIGHT, RESULT_TARE_WEIGHT, RESULT_NET_WEIGHT, RESULT_CROSS_WEIGHT_TIME,
- RESULT_TARE_WEIGHT_TIME, EAS_ENTRY_ID, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
- UPDATE_TIME, INSERT_UPDATE_REMARK
- </sql>
- <sql id="columns_alias">
- t.ORDER_ID, t.NO, t.RESULT_POUND_NO, t.CAPACITY_NUMBER, t.RESULT_CROSS_CALCULATE_NUMBER,
- t.RESULT_TARE_CALCULATE_NUMBER, t.RESULT_CROSS_WEIGHT, t.RESULT_TARE_WEIGHT, t.RESULT_NET_WEIGHT,
- t.RESULT_CROSS_WEIGHT_TIME, t.RESULT_TARE_WEIGHT_TIME, t.EAS_ENTRY_ID, t.INSERT_USERNAME,
- t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK
- </sql>
- <sql id="select">
- SELECT <include refid="columns" /> FROM AMS_NOT_UPLOADED_EAS
- </sql>
- <sql id="select_alias">
- SELECT <include refid="columns_alias" /> FROM AMS_NOT_UPLOADED_EAS t
- </sql>
- <sql id="where">
- <where>
- <if test="orderId != null and orderId != ''">
- and ORDER_ID = #{orderId}
- </if>
- <if test="no != null and no != ''">
- and NO = #{no}
- </if>
- <if test="resultPoundNo != null and resultPoundNo != ''">
- and RESULT_POUND_NO = #{resultPoundNo}
- </if>
- <if test="capacityNumber != null and capacityNumber != ''">
- and CAPACITY_NUMBER = #{capacityNumber}
- </if>
- <if test="resultCrossCalculateNumber != null and resultCrossCalculateNumber != ''">
- and RESULT_CROSS_CALCULATE_NUMBER = #{resultCrossCalculateNumber}
- </if>
- <if test="resultTareCalculateNumber != null and resultTareCalculateNumber != ''">
- and RESULT_TARE_CALCULATE_NUMBER = #{resultTareCalculateNumber}
- </if>
- <if test="resultCrossWeight != null and resultCrossWeight != ''">
- and RESULT_CROSS_WEIGHT = #{resultCrossWeight}
- </if>
- <if test="resultTareWeight != null and resultTareWeight != ''">
- and RESULT_TARE_WEIGHT = #{resultTareWeight}
- </if>
- <if test="resultNetWeight != null and resultNetWeight != ''">
- and RESULT_NET_WEIGHT = #{resultNetWeight}
- </if>
- <if test="resultCrossWeightTime != null and resultCrossWeightTime != ''">
- and RESULT_CROSS_WEIGHT_TIME = #{resultCrossWeightTime}
- </if>
- <if test="resultTareWeightTime != null and resultTareWeightTime != ''">
- and RESULT_TARE_WEIGHT_TIME = #{resultTareWeightTime}
- </if>
- <if test="easEntryId != null and easEntryId != ''">
- and EAS_ENTRY_ID = #{easEntryId}
- </if>
- <if test="insertUsername != null and insertUsername != ''">
- and INSERT_USERNAME = #{insertUsername}
- </if>
- <if test="insertTime != null">
- and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
- </if>
- <if test="updateUsername != null and updateUsername != ''">
- and UPDATE_USERNAME = #{updateUsername}
- </if>
- <if test="updateTime != null">
- and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
- </if>
- <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
- and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
- </if>
- </where>
- </sql>
- <sql id="whereLike">
- <where>
- <if test="orderId != null and orderId != ''">
- and ORDER_ID LIKE '%${orderId}%'
- </if>
- <if test="no != null and no != ''">
- and NO LIKE '%${no}%'
- </if>
- <if test="resultPoundNo != null and resultPoundNo != ''">
- and RESULT_POUND_NO LIKE '%${resultPoundNo}%'
- </if>
- <if test="capacityNumber != null and capacityNumber != ''">
- and CAPACITY_NUMBER LIKE '%${capacityNumber}%'
- </if>
- <if test="resultCrossCalculateNumber != null and resultCrossCalculateNumber != ''">
- and RESULT_CROSS_CALCULATE_NUMBER LIKE '%${resultCrossCalculateNumber}%'
- </if>
- <if test="resultTareCalculateNumber != null and resultTareCalculateNumber != ''">
- and RESULT_TARE_CALCULATE_NUMBER LIKE '%${resultTareCalculateNumber}%'
- </if>
- <if test="resultCrossWeight != null and resultCrossWeight != ''">
- and RESULT_CROSS_WEIGHT LIKE '%${resultCrossWeight}%'
- </if>
- <if test="resultTareWeight != null and resultTareWeight != ''">
- and RESULT_TARE_WEIGHT LIKE '%${resultTareWeight}%'
- </if>
- <if test="resultNetWeight != null and resultNetWeight != ''">
- and RESULT_NET_WEIGHT LIKE '%${resultNetWeight}%'
- </if>
- <if test="resultCrossWeightTime != null and resultCrossWeightTime != ''">
- and RESULT_CROSS_WEIGHT_TIME LIKE '%${resultCrossWeightTime}%'
- </if>
- <if test="resultTareWeightTime != null and resultTareWeightTime != ''">
- and RESULT_TARE_WEIGHT_TIME LIKE '%${resultTareWeightTime}%'
- </if>
- <if test="easEntryId != null and easEntryId != ''">
- and EAS_ENTRY_ID LIKE '%${easEntryId}%'
- </if>
- <if test="insertUsername != null and insertUsername != ''">
- and INSERT_USERNAME LIKE '%${insertUsername}%'
- </if>
- <if test="insertTime != null">
- and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
- </if>
- <if test="updateUsername != null and updateUsername != ''">
- and UPDATE_USERNAME LIKE '%${updateUsername}%'
- </if>
- <if test="updateTime != null">
- and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
- </if>
- <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
- and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
- </if>
- </where>
- </sql>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from AMS_NOT_UPLOADED_EAS
- where ORDER_ID = #{orderId,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
- delete from AMS_NOT_UPLOADED_EAS
- where 1!=1
- <if test="no != null and no != ''">
- or NO = #{no}
- </if>
- <if test="resultPoundNo != null and resultPoundNo != ''">
- or RESULT_POUND_NO = #{resultPoundNo}
- </if>
- <if test="capacityNumber != null and capacityNumber != ''">
- or CAPACITY_NUMBER = #{capacityNumber}
- </if>
- <if test="resultCrossCalculateNumber != null and resultCrossCalculateNumber != ''">
- or RESULT_CROSS_CALCULATE_NUMBER = #{resultCrossCalculateNumber}
- </if>
- <if test="resultTareCalculateNumber != null and resultTareCalculateNumber != ''">
- or RESULT_TARE_CALCULATE_NUMBER = #{resultTareCalculateNumber}
- </if>
- <if test="resultCrossWeight != null and resultCrossWeight != ''">
- or RESULT_CROSS_WEIGHT = #{resultCrossWeight}
- </if>
- <if test="resultTareWeight != null and resultTareWeight != ''">
- or RESULT_TARE_WEIGHT = #{resultTareWeight}
- </if>
- <if test="resultNetWeight != null and resultNetWeight != ''">
- or RESULT_NET_WEIGHT = #{resultNetWeight}
- </if>
- <if test="resultCrossWeightTime != null and resultCrossWeightTime != ''">
- or RESULT_CROSS_WEIGHT_TIME = #{resultCrossWeightTime}
- </if>
- <if test="resultTareWeightTime != null and resultTareWeightTime != ''">
- or RESULT_TARE_WEIGHT_TIME = #{resultTareWeightTime}
- </if>
- <if test="easEntryId != null and easEntryId != ''">
- or EAS_ENTRY_ID = #{easEntryId}
- </if>
- <if test="insertUsername != null and insertUsername != ''">
- or INSERT_USERNAME = #{insertUsername}
- </if>
- <if test="insertTime != null">
- or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
- </if>
- <if test="updateUsername != null and updateUsername != ''">
- or UPDATE_USERNAME = #{updateUsername}
- </if>
- <if test="updateTime != null">
- or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
- </if>
- <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
- or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
- </if>
- </delete>
- <insert id="insert" parameterType="com.steerinfo.dil.model.AmsNotUploadedEas">
- insert into AMS_NOT_UPLOADED_EAS (ORDER_ID, NO, RESULT_POUND_NO,
- CAPACITY_NUMBER, RESULT_CROSS_CALCULATE_NUMBER,
- RESULT_TARE_CALCULATE_NUMBER, RESULT_CROSS_WEIGHT,
- RESULT_TARE_WEIGHT, RESULT_NET_WEIGHT, RESULT_CROSS_WEIGHT_TIME,
- RESULT_TARE_WEIGHT_TIME, EAS_ENTRY_ID, INSERT_USERNAME,
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
- INSERT_UPDATE_REMARK)
- values (#{orderId,jdbcType=VARCHAR}, #{no,jdbcType=VARCHAR}, #{resultPoundNo,jdbcType=VARCHAR},
- #{capacityNumber,jdbcType=VARCHAR}, #{resultCrossCalculateNumber,jdbcType=VARCHAR},
- #{resultTareCalculateNumber,jdbcType=VARCHAR}, #{resultCrossWeight,jdbcType=VARCHAR},
- #{resultTareWeight,jdbcType=VARCHAR}, #{resultNetWeight,jdbcType=VARCHAR}, #{resultCrossWeightTime,jdbcType=VARCHAR},
- #{resultTareWeightTime,jdbcType=VARCHAR}, #{easEntryId,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
- #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
- #{insertUpdateRemark,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsNotUploadedEas">
- insert into AMS_NOT_UPLOADED_EAS
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="orderId != null">
- ORDER_ID,
- </if>
- <if test="no != null">
- NO,
- </if>
- <if test="resultPoundNo != null">
- RESULT_POUND_NO,
- </if>
- <if test="capacityNumber != null">
- CAPACITY_NUMBER,
- </if>
- <if test="resultCrossCalculateNumber != null">
- RESULT_CROSS_CALCULATE_NUMBER,
- </if>
- <if test="resultTareCalculateNumber != null">
- RESULT_TARE_CALCULATE_NUMBER,
- </if>
- <if test="resultCrossWeight != null">
- RESULT_CROSS_WEIGHT,
- </if>
- <if test="resultTareWeight != null">
- RESULT_TARE_WEIGHT,
- </if>
- <if test="resultNetWeight != null">
- RESULT_NET_WEIGHT,
- </if>
- <if test="resultCrossWeightTime != null">
- RESULT_CROSS_WEIGHT_TIME,
- </if>
- <if test="resultTareWeightTime != null">
- RESULT_TARE_WEIGHT_TIME,
- </if>
- <if test="easEntryId != null">
- EAS_ENTRY_ID,
- </if>
- <if test="insertUsername != null">
- INSERT_USERNAME,
- </if>
- <if test="insertTime != null">
- INSERT_TIME,
- </if>
- <if test="updateUsername != null">
- UPDATE_USERNAME,
- </if>
- <if test="updateTime != null">
- UPDATE_TIME,
- </if>
- <if test="insertUpdateRemark != null">
- INSERT_UPDATE_REMARK,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="orderId != null">
- #{orderId,jdbcType=VARCHAR},
- </if>
- <if test="no != null">
- #{no,jdbcType=VARCHAR},
- </if>
- <if test="resultPoundNo != null">
- #{resultPoundNo,jdbcType=VARCHAR},
- </if>
- <if test="capacityNumber != null">
- #{capacityNumber,jdbcType=VARCHAR},
- </if>
- <if test="resultCrossCalculateNumber != null">
- #{resultCrossCalculateNumber,jdbcType=VARCHAR},
- </if>
- <if test="resultTareCalculateNumber != null">
- #{resultTareCalculateNumber,jdbcType=VARCHAR},
- </if>
- <if test="resultCrossWeight != null">
- #{resultCrossWeight,jdbcType=VARCHAR},
- </if>
- <if test="resultTareWeight != null">
- #{resultTareWeight,jdbcType=VARCHAR},
- </if>
- <if test="resultNetWeight != null">
- #{resultNetWeight,jdbcType=VARCHAR},
- </if>
- <if test="resultCrossWeightTime != null">
- #{resultCrossWeightTime,jdbcType=VARCHAR},
- </if>
- <if test="resultTareWeightTime != null">
- #{resultTareWeightTime,jdbcType=VARCHAR},
- </if>
- <if test="easEntryId != null">
- #{easEntryId,jdbcType=VARCHAR},
- </if>
- <if test="insertUsername != null">
- #{insertUsername,jdbcType=VARCHAR},
- </if>
- <if test="insertTime != null">
- #{insertTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateUsername != null">
- #{updateUsername,jdbcType=VARCHAR},
- </if>
- <if test="updateTime != null">
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="insertUpdateRemark != null">
- #{insertUpdateRemark,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsNotUploadedEas">
- update AMS_NOT_UPLOADED_EAS
- set NO = #{no,jdbcType=VARCHAR},
- RESULT_POUND_NO = #{resultPoundNo,jdbcType=VARCHAR},
- CAPACITY_NUMBER = #{capacityNumber,jdbcType=VARCHAR},
- RESULT_CROSS_CALCULATE_NUMBER = #{resultCrossCalculateNumber,jdbcType=VARCHAR},
- RESULT_TARE_CALCULATE_NUMBER = #{resultTareCalculateNumber,jdbcType=VARCHAR},
- RESULT_CROSS_WEIGHT = #{resultCrossWeight,jdbcType=VARCHAR},
- RESULT_TARE_WEIGHT = #{resultTareWeight,jdbcType=VARCHAR},
- RESULT_NET_WEIGHT = #{resultNetWeight,jdbcType=VARCHAR},
- RESULT_CROSS_WEIGHT_TIME = #{resultCrossWeightTime,jdbcType=VARCHAR},
- RESULT_TARE_WEIGHT_TIME = #{resultTareWeightTime,jdbcType=VARCHAR},
- EAS_ENTRY_ID = #{easEntryId,jdbcType=VARCHAR},
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
- UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
- INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}
- where ORDER_ID = #{orderId,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsNotUploadedEas">
- update AMS_NOT_UPLOADED_EAS
- <set>
- <if test="no != null">
- NO = #{no,jdbcType=VARCHAR},
- </if>
- <if test="resultPoundNo != null">
- RESULT_POUND_NO = #{resultPoundNo,jdbcType=VARCHAR},
- </if>
- <if test="capacityNumber != null">
- CAPACITY_NUMBER = #{capacityNumber,jdbcType=VARCHAR},
- </if>
- <if test="resultCrossCalculateNumber != null">
- RESULT_CROSS_CALCULATE_NUMBER = #{resultCrossCalculateNumber,jdbcType=VARCHAR},
- </if>
- <if test="resultTareCalculateNumber != null">
- RESULT_TARE_CALCULATE_NUMBER = #{resultTareCalculateNumber,jdbcType=VARCHAR},
- </if>
- <if test="resultCrossWeight != null">
- RESULT_CROSS_WEIGHT = #{resultCrossWeight,jdbcType=VARCHAR},
- </if>
- <if test="resultTareWeight != null">
- RESULT_TARE_WEIGHT = #{resultTareWeight,jdbcType=VARCHAR},
- </if>
- <if test="resultNetWeight != null">
- RESULT_NET_WEIGHT = #{resultNetWeight,jdbcType=VARCHAR},
- </if>
- <if test="resultCrossWeightTime != null">
- RESULT_CROSS_WEIGHT_TIME = #{resultCrossWeightTime,jdbcType=VARCHAR},
- </if>
- <if test="resultTareWeightTime != null">
- RESULT_TARE_WEIGHT_TIME = #{resultTareWeightTime,jdbcType=VARCHAR},
- </if>
- <if test="easEntryId != null">
- EAS_ENTRY_ID = #{easEntryId,jdbcType=VARCHAR},
- </if>
- <if test="insertUsername != null">
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
- </if>
- <if test="insertTime != null">
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateUsername != null">
- UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
- </if>
- <if test="updateTime != null">
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="insertUpdateRemark != null">
- INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
- </if>
- </set>
- where ORDER_ID = #{orderId,jdbcType=VARCHAR}
- </update>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- <include refid="select" />
- where ORDER_ID = #{orderId,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 AMS_NOT_UPLOADED_EAS
- (ORDER_ID,
- NO, RESULT_POUND_NO, CAPACITY_NUMBER,
- RESULT_CROSS_CALCULATE_NUMBER, RESULT_TARE_CALCULATE_NUMBER,
- RESULT_CROSS_WEIGHT, RESULT_TARE_WEIGHT,
- RESULT_NET_WEIGHT, RESULT_CROSS_WEIGHT_TIME,
- RESULT_TARE_WEIGHT_TIME, EAS_ENTRY_ID,
- INSERT_USERNAME, INSERT_TIME,
- UPDATE_USERNAME, UPDATE_TIME,
- INSERT_UPDATE_REMARK)
- ( <foreach collection="list" item="item" separator="union all">
- select
- #{item.orderId,jdbcType=VARCHAR},
- #{item.no,jdbcType=VARCHAR}, #{item.resultPoundNo,jdbcType=VARCHAR}, #{item.capacityNumber,jdbcType=VARCHAR},
- #{item.resultCrossCalculateNumber,jdbcType=VARCHAR}, #{item.resultTareCalculateNumber,jdbcType=VARCHAR},
- #{item.resultCrossWeight,jdbcType=VARCHAR}, #{item.resultTareWeight,jdbcType=VARCHAR},
- #{item.resultNetWeight,jdbcType=VARCHAR}, #{item.resultCrossWeightTime,jdbcType=VARCHAR},
- #{item.resultTareWeightTime,jdbcType=VARCHAR}, #{item.easEntryId,jdbcType=VARCHAR},
- #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
- #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
- #{item.insertUpdateRemark,jdbcType=VARCHAR} from dual
- </foreach> )
- </insert>
- <update id="batchUpdate" parameterType="java.util.List">
- update AMS_NOT_UPLOADED_EAS
- set
- ORDER_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.orderId,jdbcType=VARCHAR}
- </foreach>
- ,NO=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.no,jdbcType=VARCHAR}
- </foreach>
- ,RESULT_POUND_NO=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.resultPoundNo,jdbcType=VARCHAR}
- </foreach>
- ,CAPACITY_NUMBER=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.capacityNumber,jdbcType=VARCHAR}
- </foreach>
- ,RESULT_CROSS_CALCULATE_NUMBER=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.resultCrossCalculateNumber,jdbcType=VARCHAR}
- </foreach>
- ,RESULT_TARE_CALCULATE_NUMBER=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.resultTareCalculateNumber,jdbcType=VARCHAR}
- </foreach>
- ,RESULT_CROSS_WEIGHT=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.resultCrossWeight,jdbcType=VARCHAR}
- </foreach>
- ,RESULT_TARE_WEIGHT=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.resultTareWeight,jdbcType=VARCHAR}
- </foreach>
- ,RESULT_NET_WEIGHT=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.resultNetWeight,jdbcType=VARCHAR}
- </foreach>
- ,RESULT_CROSS_WEIGHT_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.resultCrossWeightTime,jdbcType=VARCHAR}
- </foreach>
- ,RESULT_TARE_WEIGHT_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.resultTareWeightTime,jdbcType=VARCHAR}
- </foreach>
- ,EAS_ENTRY_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.easEntryId,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.insertUsername,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.insertTime,jdbcType=TIMESTAMP}
- </foreach>
- ,UPDATE_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.updateUsername,jdbcType=VARCHAR}
- </foreach>
- ,UPDATE_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
- </foreach>
- ,INSERT_UPDATE_REMARK=
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
- when #{item.orderId,jdbcType=VARCHAR} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
- </foreach>
- where ORDER_ID in
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
- #{item.orderId,jdbcType=VARCHAR}
- </foreach>
- </update>
- <delete id="batchDelete" parameterType="java.util.List">
- delete from AMS_NOT_UPLOADED_EAS
- where ORDER_ID in
- <foreach close=")" collection="list" item="id" open="(" separator=",">
- #{id}
- </foreach>
- </delete>
- <!-- 友情提示!!!-->
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
- <!-- -->
- <select id="getAllNotUploadedEasMes" resultType="java.util.Map">
- select
- t.ORDER_ID "orderId",
- t.NO "no",
- t.RESULT_POUND_NO "resultPoundNo",
- t.CAPACITY_NUMBER "capacityNumber",
- t.RESULT_CROSS_CALCULATE_NUMBER "resultCrossCalculateNumber",
- t.RESULT_TARE_CALCULATE_NUMBER "resultTareCalculateNumber",
- t.RESULT_CROSS_WEIGHT "resultCrossWeight",
- t.RESULT_TARE_WEIGHT "resultTareWeight",
- t.RESULT_NET_WEIGHT "resultNetWeight",
- t.RESULT_CROSS_WEIGHT_TIME "resultCrossWeightTime",
- t.RESULT_TARE_WEIGHT_TIME "resultTareWeightTime",
- t.EAS_ENTRY_ID "easEntryId"
- from AMS_NOT_UPLOADED_EAS t
- </select>
- <select id="getIsExistsOrderId" parameterType="string" resultType="string">
- select a.ORDER_ID from AMS_NOT_UPLOADED_EAS a where a.ORDER_ID = #{orderId}
- </select>
- </mapper>
|