|
@@ -24,26 +24,28 @@
|
|
<result column="SEND_STATION_ID" jdbcType="DECIMAL" property="sendStationId" />
|
|
<result column="SEND_STATION_ID" jdbcType="DECIMAL" property="sendStationId" />
|
|
<result column="ARRIVAL_STATION_ID" jdbcType="DECIMAL" property="arrivalStationId" />
|
|
<result column="ARRIVAL_STATION_ID" jdbcType="DECIMAL" property="arrivalStationId" />
|
|
<result column="RESULT_TYPE" jdbcType="DECIMAL" property="resultType" />
|
|
<result column="RESULT_TYPE" jdbcType="DECIMAL" property="resultType" />
|
|
|
|
+ <result column="TRAIN_CALCULATE_ID" jdbcType="DECIMAL" property="trainCalculateId" />
|
|
|
|
+ <result column="UNLOADING_POINT_ID" jdbcType="DECIMAL" property="unloadingPointId" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
RESULT_ID, PURCHASE_ORDER_RAIL_PLAN_ID, RESULT_WAGON_NO, RESULT_BILLABLE_TONNAGE,
|
|
RESULT_ID, PURCHASE_ORDER_RAIL_PLAN_ID, RESULT_WAGON_NO, RESULT_BILLABLE_TONNAGE,
|
|
RESULT_ISCLEAR, CAPACITY_ID, MATERIAL_ID, RESULT_MATERIAL_NUMBER, RESULT_MATERIAL_THEORYWEIGHT,
|
|
RESULT_ISCLEAR, CAPACITY_ID, MATERIAL_ID, RESULT_MATERIAL_NUMBER, RESULT_MATERIAL_THEORYWEIGHT,
|
|
BATCH_ID, RESULT_CLASS, RESULT_LOADING_DATE, RESULT_REMARKS, INSERT_USERNAME, INSERT_TIME,
|
|
BATCH_ID, RESULT_CLASS, RESULT_LOADING_DATE, RESULT_REMARKS, INSERT_USERNAME, INSERT_TIME,
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, SEND_STATION_ID, ARRIVAL_STATION_ID,
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, SEND_STATION_ID, ARRIVAL_STATION_ID,
|
|
- RESULT_TYPE
|
|
|
|
|
|
+ RESULT_TYPE, TRAIN_CALCULATE_ID, UNLOADING_POINT_ID
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
t.RESULT_ID, t.PURCHASE_ORDER_RAIL_PLAN_ID, t.RESULT_WAGON_NO, t.RESULT_BILLABLE_TONNAGE,
|
|
t.RESULT_ID, t.PURCHASE_ORDER_RAIL_PLAN_ID, t.RESULT_WAGON_NO, t.RESULT_BILLABLE_TONNAGE,
|
|
t.RESULT_ISCLEAR, t.CAPACITY_ID, t.MATERIAL_ID, t.RESULT_MATERIAL_NUMBER, t.RESULT_MATERIAL_THEORYWEIGHT,
|
|
t.RESULT_ISCLEAR, t.CAPACITY_ID, t.MATERIAL_ID, t.RESULT_MATERIAL_NUMBER, t.RESULT_MATERIAL_THEORYWEIGHT,
|
|
t.BATCH_ID, t.RESULT_CLASS, t.RESULT_LOADING_DATE, t.RESULT_REMARKS, t.INSERT_USERNAME,
|
|
t.BATCH_ID, t.RESULT_CLASS, t.RESULT_LOADING_DATE, t.RESULT_REMARKS, t.INSERT_USERNAME,
|
|
t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED,
|
|
t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED,
|
|
- t.SEND_STATION_ID, t.ARRIVAL_STATION_ID, t.RESULT_TYPE
|
|
|
|
|
|
+ t.SEND_STATION_ID, t.ARRIVAL_STATION_ID, t.RESULT_TYPE, t.TRAIN_CALCULATE_ID, t.UNLOADING_POINT_ID
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
- SELECT <include refid="columns"/> FROM TMSTRAIN_LOADING_RESULT
|
|
|
|
|
|
+ SELECT <include refid="columns" /> FROM TMSTRAIN_LOADING_RESULT
|
|
</sql>
|
|
</sql>
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
- SELECT <include refid="columns_alias"/> FROM TMSTRAIN_LOADING_RESULT t
|
|
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM TMSTRAIN_LOADING_RESULT t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
<where>
|
|
<where>
|
|
@@ -113,6 +115,12 @@
|
|
<if test="resultType != null">
|
|
<if test="resultType != null">
|
|
and RESULT_TYPE = #{resultType}
|
|
and RESULT_TYPE = #{resultType}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ and TRAIN_CALCULATE_ID = #{trainCalculateId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ and UNLOADING_POINT_ID = #{unloadingPointId}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -183,6 +191,12 @@
|
|
<if test="resultType != null">
|
|
<if test="resultType != null">
|
|
and RESULT_TYPE = #{resultType}
|
|
and RESULT_TYPE = #{resultType}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ and TRAIN_CALCULATE_ID = #{trainCalculateId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ and UNLOADING_POINT_ID = #{unloadingPointId}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
@@ -255,6 +269,12 @@
|
|
<if test="resultType != null">
|
|
<if test="resultType != null">
|
|
or RESULT_TYPE = #{resultType}
|
|
or RESULT_TYPE = #{resultType}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ or TRAIN_CALCULATE_ID = #{trainCalculateId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ or UNLOADING_POINT_ID = #{unloadingPointId}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.TmstrainLoadingResult">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.TmstrainLoadingResult">
|
|
insert into TMSTRAIN_LOADING_RESULT (RESULT_ID, PURCHASE_ORDER_RAIL_PLAN_ID,
|
|
insert into TMSTRAIN_LOADING_RESULT (RESULT_ID, PURCHASE_ORDER_RAIL_PLAN_ID,
|
|
@@ -264,7 +284,8 @@
|
|
RESULT_LOADING_DATE, RESULT_REMARKS, INSERT_USERNAME,
|
|
RESULT_LOADING_DATE, RESULT_REMARKS, INSERT_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_UPDATE_REMARK, DELETED, SEND_STATION_ID,
|
|
INSERT_UPDATE_REMARK, DELETED, SEND_STATION_ID,
|
|
- ARRIVAL_STATION_ID, RESULT_TYPE)
|
|
|
|
|
|
+ ARRIVAL_STATION_ID, RESULT_TYPE, TRAIN_CALCULATE_ID,
|
|
|
|
+ UNLOADING_POINT_ID)
|
|
values (#{resultId,jdbcType=DECIMAL}, #{purchaseOrderRailPlanId,jdbcType=DECIMAL},
|
|
values (#{resultId,jdbcType=DECIMAL}, #{purchaseOrderRailPlanId,jdbcType=DECIMAL},
|
|
#{resultWagonNo,jdbcType=VARCHAR}, #{resultBillableTonnage,jdbcType=DECIMAL}, #{resultIsclear,jdbcType=VARCHAR},
|
|
#{resultWagonNo,jdbcType=VARCHAR}, #{resultBillableTonnage,jdbcType=DECIMAL}, #{resultIsclear,jdbcType=VARCHAR},
|
|
#{capacityId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{resultMaterialNumber,jdbcType=DECIMAL},
|
|
#{capacityId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{resultMaterialNumber,jdbcType=DECIMAL},
|
|
@@ -272,7 +293,8 @@
|
|
#{resultLoadingDate,jdbcType=TIMESTAMP}, #{resultRemarks,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
#{resultLoadingDate,jdbcType=TIMESTAMP}, #{resultRemarks,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{sendStationId,jdbcType=DECIMAL},
|
|
#{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{sendStationId,jdbcType=DECIMAL},
|
|
- #{arrivalStationId,jdbcType=DECIMAL}, #{resultType,jdbcType=DECIMAL})
|
|
|
|
|
|
+ #{arrivalStationId,jdbcType=DECIMAL}, #{resultType,jdbcType=DECIMAL}, #{trainCalculateId,jdbcType=DECIMAL},
|
|
|
|
+ #{unloadingPointId,jdbcType=DECIMAL})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstrainLoadingResult">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstrainLoadingResult">
|
|
insert into TMSTRAIN_LOADING_RESULT
|
|
insert into TMSTRAIN_LOADING_RESULT
|
|
@@ -343,6 +365,12 @@
|
|
<if test="resultType != null">
|
|
<if test="resultType != null">
|
|
RESULT_TYPE,
|
|
RESULT_TYPE,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ TRAIN_CALCULATE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ UNLOADING_POINT_ID,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="resultId != null">
|
|
<if test="resultId != null">
|
|
@@ -411,6 +439,12 @@
|
|
<if test="resultType != null">
|
|
<if test="resultType != null">
|
|
#{resultType,jdbcType=DECIMAL},
|
|
#{resultType,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ #{trainCalculateId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ #{unloadingPointId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstrainLoadingResult">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstrainLoadingResult">
|
|
@@ -435,7 +469,9 @@
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
SEND_STATION_ID = #{sendStationId,jdbcType=DECIMAL},
|
|
SEND_STATION_ID = #{sendStationId,jdbcType=DECIMAL},
|
|
ARRIVAL_STATION_ID = #{arrivalStationId,jdbcType=DECIMAL},
|
|
ARRIVAL_STATION_ID = #{arrivalStationId,jdbcType=DECIMAL},
|
|
- RESULT_TYPE = #{resultType,jdbcType=DECIMAL}
|
|
|
|
|
|
+ RESULT_TYPE = #{resultType,jdbcType=DECIMAL},
|
|
|
|
+ TRAIN_CALCULATE_ID = #{trainCalculateId,jdbcType=DECIMAL},
|
|
|
|
+ UNLOADING_POINT_ID = #{unloadingPointId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstrainLoadingResult">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstrainLoadingResult">
|
|
@@ -504,20 +540,26 @@
|
|
<if test="resultType != null">
|
|
<if test="resultType != null">
|
|
RESULT_TYPE = #{resultType,jdbcType=DECIMAL},
|
|
RESULT_TYPE = #{resultType,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ TRAIN_CALCULATE_ID = #{trainCalculateId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ UNLOADING_POINT_ID = #{unloadingPointId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
- <include refid="select"/>
|
|
|
|
|
|
+ <include refid="select" />
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
- <include refid="select"/>
|
|
|
|
- <include refid="where"/>
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ <include refid="where" />
|
|
</select>
|
|
</select>
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
- <include refid="select"/>
|
|
|
|
- <include refid="whereLike"/>
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ <include refid="whereLike" />
|
|
</select>
|
|
</select>
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
insert into TMSTRAIN_LOADING_RESULT
|
|
insert into TMSTRAIN_LOADING_RESULT
|
|
@@ -531,7 +573,8 @@
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
DELETED, SEND_STATION_ID, ARRIVAL_STATION_ID,
|
|
DELETED, SEND_STATION_ID, ARRIVAL_STATION_ID,
|
|
- RESULT_TYPE)
|
|
|
|
|
|
+ RESULT_TYPE, TRAIN_CALCULATE_ID,
|
|
|
|
+ UNLOADING_POINT_ID)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.resultId,jdbcType=DECIMAL},
|
|
#{item.resultId,jdbcType=DECIMAL},
|
|
@@ -544,138 +587,147 @@
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.deleted,jdbcType=DECIMAL}, #{item.sendStationId,jdbcType=DECIMAL}, #{item.arrivalStationId,jdbcType=DECIMAL},
|
|
#{item.deleted,jdbcType=DECIMAL}, #{item.sendStationId,jdbcType=DECIMAL}, #{item.arrivalStationId,jdbcType=DECIMAL},
|
|
- #{item.resultType,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.resultType,jdbcType=DECIMAL}, #{item.trainCalculateId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.unloadingPointId,jdbcType=DECIMAL} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
update TMSTRAIN_LOADING_RESULT
|
|
update TMSTRAIN_LOADING_RESULT
|
|
set
|
|
set
|
|
RESULT_ID=
|
|
RESULT_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,PURCHASE_ORDER_RAIL_PLAN_ID=
|
|
,PURCHASE_ORDER_RAIL_PLAN_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.purchaseOrderRailPlanId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.purchaseOrderRailPlanId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_WAGON_NO=
|
|
,RESULT_WAGON_NO=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultWagonNo,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultWagonNo,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_BILLABLE_TONNAGE=
|
|
,RESULT_BILLABLE_TONNAGE=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultBillableTonnage,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultBillableTonnage,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_ISCLEAR=
|
|
,RESULT_ISCLEAR=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultIsclear,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultIsclear,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,CAPACITY_ID=
|
|
,CAPACITY_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.capacityId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.capacityId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,MATERIAL_ID=
|
|
,MATERIAL_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_MATERIAL_NUMBER=
|
|
,RESULT_MATERIAL_NUMBER=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultMaterialNumber,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultMaterialNumber,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_MATERIAL_THEORYWEIGHT=
|
|
,RESULT_MATERIAL_THEORYWEIGHT=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultMaterialTheoryweight,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultMaterialTheoryweight,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,BATCH_ID=
|
|
,BATCH_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_CLASS=
|
|
,RESULT_CLASS=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultClass,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultClass,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_LOADING_DATE=
|
|
,RESULT_LOADING_DATE=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultLoadingDate,jdbcType=TIMESTAMP}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultLoadingDate,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_REMARKS=
|
|
,RESULT_REMARKS=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultRemarks,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultRemarks,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_USERNAME=
|
|
,INSERT_USERNAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_TIME=
|
|
,INSERT_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_USERNAME=
|
|
,UPDATE_USERNAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_TIME=
|
|
,UPDATE_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_UPDATE_REMARK=
|
|
,INSERT_UPDATE_REMARK=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,DELETED=
|
|
,DELETED=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,SEND_STATION_ID=
|
|
,SEND_STATION_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.sendStationId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.sendStationId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,ARRIVAL_STATION_ID=
|
|
,ARRIVAL_STATION_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.arrivalStationId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.arrivalStationId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_TYPE=
|
|
,RESULT_TYPE=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultType,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultType,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,TRAIN_CALCULATE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.trainCalculateId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UNLOADING_POINT_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.unloadingPointId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
where RESULT_ID in
|
|
where RESULT_ID in
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.resultId,jdbcType=DECIMAL}
|
|
#{item.resultId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from TMSTRAIN_LOADING_RESULT
|
|
delete from TMSTRAIN_LOADING_RESULT
|
|
where RESULT_ID in
|
|
where RESULT_ID in
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-
|
|
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
+
|
|
<select id="getTmsWagonLoadInfo" parameterType="java.util.Map" resultType="java.util.LinkedHashMap">
|
|
<select id="getTmsWagonLoadInfo" parameterType="java.util.Map" resultType="java.util.LinkedHashMap">
|
|
select * from(
|
|
select * from(
|
|
select t_load.RESULT_ID "resultId",
|
|
select t_load.RESULT_ID "resultId",
|
|
- a_order.PURCHASE_ORDER_NO "purchaseOrderNo",
|
|
|
|
- t_load.RESULT_WAGON_NO "resultWagonNo",
|
|
|
|
- t_load.RESULT_LOADING_DATE "resultLoadingDate",
|
|
|
|
- t_load.RESULT_CLASS "resultClass",
|
|
|
|
- d_batch.RESULT_FOREIGN_SHIP_NAME "resultForeignShipName",
|
|
|
|
- r_material.MATERIAL_NAME "materialName",
|
|
|
|
- r_s_arrival.ARRIVAL_NAME "sendStationName",
|
|
|
|
- r_a_arrival.ARRIVAL_NAME "arrivalStationName",
|
|
|
|
- t_load.RESULT_BILLABLE_TONNAGE "resultBillableTonnage",
|
|
|
|
- t_load.RESULT_ISCLEAR "resultIsclear",
|
|
|
|
- t_load.RESULT_REMARKS "resultRemarks",
|
|
|
|
- RS.SUPPLIER_NAME "supplierName",
|
|
|
|
- t_load.INSERT_TIME "insertTime"
|
|
|
|
|
|
+ a_order.PURCHASE_ORDER_NO "purchaseOrderNo",
|
|
|
|
+ t_load.RESULT_WAGON_NO "resultWagonNo",
|
|
|
|
+ to_char(t_load.RESULT_LOADING_DATE, 'yyyy-mm-dd') "resultLoadingDate",
|
|
|
|
+ t_load.RESULT_CLASS "resultClass",
|
|
|
|
+ d_batch.RESULT_FOREIGN_SHIP_NAME "resultForeignShipName",
|
|
|
|
+ r_material.MATERIAL_NAME "materialName",
|
|
|
|
+ r_s_arrival.ARRIVAL_NAME "sendStationName",
|
|
|
|
+ r_a_arrival.ARRIVAL_NAME "arrivalStationName",
|
|
|
|
+ t_load.RESULT_BILLABLE_TONNAGE "resultBillableTonnage",
|
|
|
|
+ t_load.RESULT_ISCLEAR "resultIsclear",
|
|
|
|
+ t_load.RESULT_REMARKS "resultRemarks",
|
|
|
|
+ RS.SUPPLIER_NAME "supplierName",
|
|
|
|
+ t_load.INSERT_TIME "insertTime"
|
|
from TMSTRAIN_LOADING_RESULT t_load
|
|
from TMSTRAIN_LOADING_RESULT t_load
|
|
left join AMS_PURCHASE_ORDER a_order
|
|
left join AMS_PURCHASE_ORDER a_order
|
|
on t_load.PURCHASE_ORDER_RAIL_PLAN_ID=a_order.PURCHASE_ORDER_ID
|
|
on t_load.PURCHASE_ORDER_RAIL_PLAN_ID=a_order.PURCHASE_ORDER_ID
|
|
left join RMS_SUPPLIER RS
|
|
left join RMS_SUPPLIER RS
|
|
on RS.SUPPLIER_ID = a_order.SUPPLIER_UNIT_ID
|
|
on RS.SUPPLIER_ID = a_order.SUPPLIER_UNIT_ID
|
|
left join DIL_BATCH d_batch
|
|
left join DIL_BATCH d_batch
|
|
- on t_load.BATCH_ID=d_batch.BATCH_ID
|
|
|
|
|
|
+ on t_load.BATCH_ID=d_batch.BATCH_ID
|
|
left join RMS_MATERIAL r_material
|
|
left join RMS_MATERIAL r_material
|
|
on d_batch.MATERIAL_ID=r_material.MATERIAL_ID
|
|
on d_batch.MATERIAL_ID=r_material.MATERIAL_ID
|
|
left join RMSTRAIN_ARRIVAL_SEND r_s_arrival
|
|
left join RMSTRAIN_ARRIVAL_SEND r_s_arrival
|
|
@@ -683,7 +735,6 @@
|
|
left join RMSTRAIN_ARRIVAL_SEND r_a_arrival
|
|
left join RMSTRAIN_ARRIVAL_SEND r_a_arrival
|
|
on r_a_arrival.ARRIVAL_ID=t_load.ARRIVAL_STATION_ID
|
|
on r_a_arrival.ARRIVAL_ID=t_load.ARRIVAL_STATION_ID
|
|
where t_load.DELETED in (0, 2) and t_load.RESULT_TYPE = #{resultType}
|
|
where t_load.DELETED in (0, 2) and t_load.RESULT_TYPE = #{resultType}
|
|
- order by t_load.RESULT_LOADING_DATE desc
|
|
|
|
)
|
|
)
|
|
<where>
|
|
<where>
|
|
<if test="purchaseOrderNo != null">
|
|
<if test="purchaseOrderNo != null">
|
|
@@ -1070,10 +1121,8 @@
|
|
on TTR.RESULT_TOTAL_ID = TTTR.TMSTRUCK_TOTAL_RESULT_ID
|
|
on TTR.RESULT_TOTAL_ID = TTTR.TMSTRUCK_TOTAL_RESULT_ID
|
|
left join OMSTRUCK_ORDER OO
|
|
left join OMSTRUCK_ORDER OO
|
|
on OO.ORDER_ID = TTR.ORDER_ID
|
|
on OO.ORDER_ID = TTR.ORDER_ID
|
|
- left join RMS_DRIVER_CAPACITY RDC
|
|
|
|
- on RDC.DRIVER_CAPACITY_ID = OO.DRIVER_CAPACITY_ID
|
|
|
|
left join RMS_CAPACITY RC
|
|
left join RMS_CAPACITY RC
|
|
- on RC.CAPACITY_ID = RDC.CAPACITY_ID
|
|
|
|
|
|
+ on RC.CAPACITY_ID = OO.CAPACITY_ID
|
|
left join OMSTRUCK_ORDER_MATERIAL OOM
|
|
left join OMSTRUCK_ORDER_MATERIAL OOM
|
|
on OOM.ORDER_ID = OO.ORDER_ID
|
|
on OOM.ORDER_ID = OO.ORDER_ID
|
|
left join RMS_MATERIAL RM
|
|
left join RMS_MATERIAL RM
|
|
@@ -1106,4 +1155,118 @@
|
|
from TMSTRAIN_TRUCK_TOTAL_RESULT TTTR
|
|
from TMSTRAIN_TRUCK_TOTAL_RESULT TTTR
|
|
where TTTR.TMSTRUCK_TOTAL_RESULT_ID = #{resultTotalId}
|
|
where TTTR.TMSTRUCK_TOTAL_RESULT_ID = #{resultTotalId}
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+<!-- 通过批次Id查询订单ID -->
|
|
|
|
+ <select id="getBatchIdByPurOrderId" parameterType="java.math.BigDecimal" resultType="java.math.BigDecimal">
|
|
|
|
+ select APO.BATCH_ID
|
|
|
|
+ from AMS_PURCHASE_ORDER APO
|
|
|
|
+ where APO.PURCHASE_ORDER_ID = #{purchaseOrderId}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+<!-- 查询还没有采购订单的装车实绩 (补录) -->
|
|
|
|
+ <select id="getNoPurOrderIdLoadResult" parameterType="map" resultType="java.util.Map">
|
|
|
|
+ select * from(
|
|
|
|
+ select t_load.RESULT_ID "resultId",
|
|
|
|
+ a_order.PURCHASE_ORDER_NO "purchaseOrderNo",
|
|
|
|
+ t_load.RESULT_WAGON_NO "resultWagonNo",
|
|
|
|
+ to_char(t_load.RESULT_LOADING_DATE, 'yyyy-mm-dd') "resultLoadingDate",
|
|
|
|
+ t_load.RESULT_CLASS "resultClass",
|
|
|
|
+ d_batch.RESULT_FOREIGN_SHIP_NAME "resultForeignShipName",
|
|
|
|
+ r_material.MATERIAL_NAME "materialName",
|
|
|
|
+ r_s_arrival.ARRIVAL_NAME "sendStationName",
|
|
|
|
+ r_a_arrival.ARRIVAL_NAME "arrivalStationName",
|
|
|
|
+ t_load.RESULT_BILLABLE_TONNAGE "resultBillableTonnage",
|
|
|
|
+ t_load.RESULT_ISCLEAR "resultIsclear",
|
|
|
|
+ t_load.RESULT_REMARKS "resultRemarks",
|
|
|
|
+ RS.SUPPLIER_NAME "supplierName",
|
|
|
|
+ t_load.INSERT_TIME "insertTime"
|
|
|
|
+ from TMSTRAIN_LOADING_RESULT t_load
|
|
|
|
+ left join AMS_PURCHASE_ORDER a_order
|
|
|
|
+ on t_load.PURCHASE_ORDER_RAIL_PLAN_ID=a_order.PURCHASE_ORDER_ID
|
|
|
|
+ left join RMS_SUPPLIER RS
|
|
|
|
+ on RS.SUPPLIER_ID = a_order.SUPPLIER_UNIT_ID
|
|
|
|
+ left join DIL_BATCH d_batch
|
|
|
|
+ on t_load.BATCH_ID=d_batch.BATCH_ID
|
|
|
|
+ left join RMS_MATERIAL r_material
|
|
|
|
+ on d_batch.MATERIAL_ID=r_material.MATERIAL_ID
|
|
|
|
+ left join RMSTRAIN_ARRIVAL_SEND r_s_arrival
|
|
|
|
+ on r_s_arrival.ARRIVAL_ID=t_load.SEND_STATION_ID
|
|
|
|
+ left join RMSTRAIN_ARRIVAL_SEND r_a_arrival
|
|
|
|
+ on r_a_arrival.ARRIVAL_ID=t_load.ARRIVAL_STATION_ID
|
|
|
|
+ where t_load.DELETED = 0
|
|
|
|
+ and t_load.RESULT_TYPE = 3
|
|
|
|
+ and t_load.PURCHASE_ORDER_RAIL_PLAN_ID is null
|
|
|
|
+ )
|
|
|
|
+ <where>
|
|
|
|
+ <if test="purchaseOrderNo != null">
|
|
|
|
+ <foreach collection="purchaseOrderNo" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "purchaseOrderNo" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultWagonNo != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="resultWagonNo" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "resultWagonNo" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultLoadingDate != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="resultLoadingDate" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "resultLoadingDate" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultClass != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="resultClass" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "resultClass" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultForeignShipName != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="resultForeignShipName" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "resultForeignShipName" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="materialName != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="materialName" item="item" open="(" separator="or" close=")">
|
|
|
|
+ materialName like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationName != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="sendStationName" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "sendStationName" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="arrivalStationName != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="arrivalStationName" item="item" open="(" separator="or" close=")">
|
|
|
|
+ arrivalStationName like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultBillableTonnage != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="resultBillableTonnage" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "resultBillableTonnage" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultIsclear != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="resultIsclear" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "resultIsclear" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultRemarks != null">
|
|
|
|
+ and
|
|
|
|
+ <foreach collection="resultRemarks" item="item" open="(" separator="or" close=")">
|
|
|
|
+ "resultRemarks" like '%${item}%'
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ <include refid="orderBy"></include>
|
|
|
|
+ <if test="orderField == null ">
|
|
|
|
+ order by "insertTime" desc
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|