|
@@ -23,20 +23,22 @@
|
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
<result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark"/>
|
|
|
<result column="DELETED" jdbcType="DECIMAL" property="deleted"/>
|
|
|
+ <result column="REQUIREMENT_UNLOAD_UNIT_ID" jdbcType="DECIMAL" property="requirementUnloadUnitId"/>
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
REQUIREMENT_ID, PURCHASE_ORDER_ID, REQUIREMENT_NUMBER, REQUIREMENT_TYPE, CAPACITY_TYPE_ID,
|
|
|
REQUIREMENT_TRUCK_TIME, REQUIREMENT_SHIPPER_ID, REQUIREMENT_WORK_TYPE, REQUIREMENT_WORK_CONTENT,
|
|
|
LINE_ID, REQUIREMENT_WORK_ENVIRONMENT, REQUIREMENT_ESTIMATED_DURATION, REQUIREMENT_OVERLIMIT,
|
|
|
REQUIREMNT_UNIT_ID, REQUIREMENT_STATUS, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
- UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, REQUIREMENT_UNLOAD_UNIT_ID
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
t.REQUIREMENT_ID, t.PURCHASE_ORDER_ID, t.REQUIREMENT_NUMBER, t.REQUIREMENT_TYPE,
|
|
|
t.CAPACITY_TYPE_ID, t.REQUIREMENT_TRUCK_TIME, t.REQUIREMENT_SHIPPER_ID, t.REQUIREMENT_WORK_TYPE,
|
|
|
t.REQUIREMENT_WORK_CONTENT, t.LINE_ID, t.REQUIREMENT_WORK_ENVIRONMENT, t.REQUIREMENT_ESTIMATED_DURATION,
|
|
|
t.REQUIREMENT_OVERLIMIT, t.REQUIREMNT_UNIT_ID, t.REQUIREMENT_STATUS, 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.REQUIREMENT_UNLOAD_UNIT_ID
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
SELECT
|
|
@@ -113,6 +115,9 @@
|
|
|
<if test="deleted != null">
|
|
|
and DELETED = #{deleted}
|
|
|
</if>
|
|
|
+ <if test="requirementUnloadUnitId != null">
|
|
|
+ and REQUIREMENT_UNLOAD_UNIT_ID = #{requirementUnloadUnitId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
@@ -180,6 +185,9 @@
|
|
|
<if test="deleted != null">
|
|
|
and DELETED = #{deleted}
|
|
|
</if>
|
|
|
+ <if test="requirementUnloadUnitId != null">
|
|
|
+ and REQUIREMENT_UNLOAD_UNIT_ID = #{requirementUnloadUnitId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
@@ -250,6 +258,9 @@
|
|
|
<if test="deleted != null">
|
|
|
or DELETED = #{deleted}
|
|
|
</if>
|
|
|
+ <if test="requirementUnloadUnitId != null">
|
|
|
+ or REQUIREMENT_UNLOAD_UNIT_ID = #{requirementUnloadUnitId}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmstruckInwardRequirement">
|
|
|
insert into AMSTRUCK_INWARD_REQUIREMENT (REQUIREMENT_ID, PURCHASE_ORDER_ID, REQUIREMENT_NUMBER,
|
|
@@ -259,7 +270,7 @@
|
|
|
REQUIREMENT_ESTIMATED_DURATION, REQUIREMENT_OVERLIMIT,
|
|
|
REQUIREMNT_UNIT_ID, REQUIREMENT_STATUS, INSERT_USERNAME,
|
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
- INSERT_UPDATE_REMARK, DELETED)
|
|
|
+ INSERT_UPDATE_REMARK, DELETED, REQUIREMENT_UNLOAD_UNIT_ID)
|
|
|
values (#{requirementId,jdbcType=DECIMAL}, #{purchaseOrderId,jdbcType=DECIMAL},
|
|
|
#{requirementNumber,jdbcType=VARCHAR},
|
|
|
#{requirementType,jdbcType=VARCHAR}, #{capacityTypeId,jdbcType=DECIMAL},
|
|
@@ -271,7 +282,8 @@
|
|
|
#{requiremntUnitId,jdbcType=DECIMAL}, #{requirementStatus,jdbcType=DECIMAL},
|
|
|
#{insertUsername,jdbcType=VARCHAR},
|
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL})
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL},
|
|
|
+ #{requirementUnloadUnitId,jdbcType=DECIMAL})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmstruckInwardRequirement">
|
|
|
insert into AMSTRUCK_INWARD_REQUIREMENT
|
|
@@ -339,6 +351,9 @@
|
|
|
<if test="deleted != null">
|
|
|
DELETED,
|
|
|
</if>
|
|
|
+ <if test="requirementUnloadUnitId != null">
|
|
|
+ REQUIREMENT_UNLOAD_UNIT_ID,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="requirementId != null">
|
|
@@ -404,6 +419,9 @@
|
|
|
<if test="deleted != null">
|
|
|
#{deleted,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="requirementUnloadUnitId != null">
|
|
|
+ #{requirementUnloadUnitId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmstruckInwardRequirement">
|
|
@@ -427,7 +445,8 @@
|
|
|
UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
- DELETED = #{deleted,jdbcType=DECIMAL}
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
+ REQUIREMENT_UNLOAD_UNIT_ID = #{requirementUnloadUnitId,jdbcType=DECIMAL}
|
|
|
where REQUIREMENT_ID = #{requirementId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmstruckInwardRequirement">
|
|
@@ -493,6 +512,9 @@
|
|
|
<if test="deleted != null">
|
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="requirementUnloadUnitId != null">
|
|
|
+ REQUIREMENT_UNLOAD_UNIT_ID = #{requirementUnloadUnitId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where REQUIREMENT_ID = #{requirementId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
@@ -520,7 +542,8 @@
|
|
|
REQUIREMNT_UNIT_ID, REQUIREMENT_STATUS,
|
|
|
INSERT_USERNAME, INSERT_TIME,
|
|
|
UPDATE_USERNAME, UPDATE_TIME,
|
|
|
- INSERT_UPDATE_REMARK, DELETED)
|
|
|
+ INSERT_UPDATE_REMARK, DELETED,
|
|
|
+ REQUIREMENT_UNLOAD_UNIT_ID)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
|
#{item.requirementId,jdbcType=DECIMAL},
|
|
@@ -533,7 +556,8 @@
|
|
|
#{item.requiremntUnitId,jdbcType=DECIMAL}, #{item.requirementStatus,jdbcType=DECIMAL},
|
|
|
#{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
#{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL} from dual
|
|
|
+ #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
|
|
|
+ #{item.requirementUnloadUnitId,jdbcType=DECIMAL} from dual
|
|
|
</foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -623,6 +647,10 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case REQUIREMENT_ID" close="end">
|
|
|
when #{item.requirementId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
+ ,REQUIREMENT_UNLOAD_UNIT_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case REQUIREMENT_ID" close="end">
|
|
|
+ when #{item.requirementId,jdbcType=DECIMAL} then #{item.requirementUnloadUnitId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
where REQUIREMENT_ID in
|
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
#{item.requirementId,jdbcType=DECIMAL}
|
|
@@ -637,6 +665,7 @@
|
|
|
</delete>
|
|
|
<!-- 友情提示!!!-->
|
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
+
|
|
|
<!-- 展示用车需求 -->
|
|
|
<select id="getTruckRequirementList" resultType="java.util.Map" parameterType="java.util.Map">
|
|
|
SELECT * FROM
|
|
@@ -969,6 +998,7 @@
|
|
|
DB.RESULT_FOREIGN_SHIP_NAME AS "resultForeignShipName",
|
|
|
RW.WAREHOUSE_NAME AS "wareHouseName",
|
|
|
AIR.REQUIREMNT_UNIT_ID AS "requiremntUnitId",
|
|
|
+ AIR.REQUIREMENT_UNLOAD_UNIT_ID AS "requirementUnloadUnitId",
|
|
|
AIR.REQUIREMENT_TYPE AS "requirementType",
|
|
|
AIR.CAPACITY_TYPE_ID AS "capacityTypeId",
|
|
|
AIR.REQUIREMENT_TRUCK_TIME AS "requirementTruckTime",
|