ORDER_ID, ORDER_NO, ORDER_WAGON_NO, ORDER_WAGON_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, ENSTATION_TIME, OUTSTATION_TIME, BILLING_WEIGHT, "IS_ACCEPT", WAREHOUSE_ID, STRAWMATS t.ORDER_ID, t.ORDER_NO, t.ORDER_WAGON_NO, t.ORDER_WAGON_WEIGHT, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.ENSTATION_TIME, t.OUTSTATION_TIME, t.BILLING_WEIGHT, t."IS_ACCEPT", t.WAREHOUSE_ID, t.STRAWMATS SELECT FROM OMSTRAIN_ORDER SELECT FROM OMSTRAIN_ORDER t and ORDER_ID = #{orderId} and ORDER_NO = #{orderNo} and ORDER_WAGON_NO = #{orderWagonNo} and ORDER_WAGON_WEIGHT = #{orderWagonWeight} and INSERT_USERNAME = #{insertUsername} and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime} and UPDATE_USERNAME = #{updateUsername} and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime} and INSERT_UPDATE_REMARK = #{insertUpdateRemark} and TO_CHAR(ENSTATION_TIME,'yyyy-MM-dd') = #{enstationTime} and TO_CHAR(OUTSTATION_TIME,'yyyy-MM-dd') = #{outstationTime} and BILLING_WEIGHT = #{billingWeight} and IS_ACCEPT = #{isAccept} and WAREHOUSE_ID = #{warehouseId} and STRAWMATS = #{strawmats} and ORDER_ID = #{orderId} and ORDER_NO LIKE '%${orderNo}%' and ORDER_WAGON_NO LIKE '%${orderWagonNo}%' and ORDER_WAGON_WEIGHT = #{orderWagonWeight} and INSERT_USERNAME LIKE '%${insertUsername}%' and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime} and UPDATE_USERNAME LIKE '%${updateUsername}%' and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime} and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%' and TO_CHAR(ENSTATION_TIME,'yyyy-MM-dd') = #{enstationTime} and TO_CHAR(OUTSTATION_TIME,'yyyy-MM-dd') = #{outstationTime} and BILLING_WEIGHT = #{billingWeight} and IS_ACCEPT = #{isAccept} and WAREHOUSE_ID = #{warehouseId} and STRAWMATS = #{strawmats} delete from OMSTRAIN_ORDER where ORDER_ID = #{orderId,jdbcType=DECIMAL} delete from OMSTRAIN_ORDER where 1!=1 or ORDER_NO = #{orderNo} or ORDER_WAGON_NO = #{orderWagonNo} or ORDER_WAGON_WEIGHT = #{orderWagonWeight} or INSERT_USERNAME = #{insertUsername} or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}' or UPDATE_USERNAME = #{updateUsername} or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}' or INSERT_UPDATE_REMARK = #{insertUpdateRemark} or TO_CHAR(ENSTATION_TIME,'yyyy-MM-dd') = '#{enstationTime}' or TO_CHAR(OUTSTATION_TIME,'yyyy-MM-dd') = '#{outstationTime}' or BILLING_WEIGHT = #{billingWeight} or IS_ACCEPT = #{isAccept} or WAREHOUSE_ID = #{warehouseId} or STRAWMATS = #{strawmats} insert into OMSTRAIN_ORDER (ORDER_ID, ORDER_NO, ORDER_WAGON_NO, ORDER_WAGON_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, ENSTATION_TIME, OUTSTATION_TIME, BILLING_WEIGHT, "IS_ACCEPT", WAREHOUSE_ID, STRAWMATS ) values (#{orderId,jdbcType=DECIMAL}, #{orderNo,jdbcType=VARCHAR}, #{orderWagonNo,jdbcType=VARCHAR}, #{orderWagonWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{enstationTime,jdbcType=TIMESTAMP}, #{outstationTime,jdbcType=TIMESTAMP}, #{billingWeight,jdbcType=DECIMAL}, #{isAccept,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, #{strawmats,jdbcType=DECIMAL} ) insert into OMSTRAIN_ORDER ORDER_ID, ORDER_NO, ORDER_WAGON_NO, ORDER_WAGON_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, ENSTATION_TIME, OUTSTATION_TIME, BILLING_WEIGHT, "IS_ACCEPT", WAREHOUSE_ID, STRAWMATS, #{orderId,jdbcType=DECIMAL}, #{orderNo,jdbcType=VARCHAR}, #{orderWagonNo,jdbcType=VARCHAR}, #{orderWagonWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{enstationTime,jdbcType=TIMESTAMP}, #{outstationTime,jdbcType=TIMESTAMP}, #{billingWeight,jdbcType=DECIMAL}, #{isAccept,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, #{strawmats,jdbcType=DECIMAL}, update OMSTRAIN_ORDER set ORDER_NO = #{orderNo,jdbcType=VARCHAR}, ORDER_WAGON_NO = #{orderWagonNo,jdbcType=VARCHAR}, ORDER_WAGON_WEIGHT = #{orderWagonWeight,jdbcType=DECIMAL}, 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}, ENSTATION_TIME = #{enstationTime,jdbcType=TIMESTAMP}, OUTSTATION_TIME = #{outstationTime,jdbcType=TIMESTAMP}, BILLING_WEIGHT = #{billingWeight,jdbcType=DECIMAL}, "IS_ACCEPT" = #{isAccept,jdbcType=DECIMAL}, WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL}, STRAWMATS = #{strawmats,jdbcType=DECIMAL} where ORDER_ID = #{orderId,jdbcType=DECIMAL} update OMSTRAIN_ORDER ORDER_NO = #{orderNo,jdbcType=VARCHAR}, ORDER_WAGON_NO = #{orderWagonNo,jdbcType=VARCHAR}, ORDER_WAGON_WEIGHT = #{orderWagonWeight,jdbcType=DECIMAL}, 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}, ENSTATION_TIME = #{enstationTime,jdbcType=TIMESTAMP}, OUTSTATION_TIME = #{outstationTime,jdbcType=TIMESTAMP}, BILLING_WEIGHT = #{billingWeight,jdbcType=DECIMAL}, "IS_ACCEPT" = #{isAccept,jdbcType=DECIMAL}, WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL}, STRAWMATS = #{strawmats,jdbcType=DECIMAL}, where ORDER_ID = #{orderId,jdbcType=DECIMAL} insert into OMSTRAIN_ORDER (ORDER_ID, ORDER_NO, ORDER_WAGON_NO, ORDER_WAGON_WEIGHT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, ENSTATION_TIME, OUTSTATION_TIME, BILLING_WEIGHT, "IS_ACCEPT", WAREHOUSE_ID, STRAWMATS ) ( select #{item.orderId,jdbcType=DECIMAL}, #{item.orderNo,jdbcType=VARCHAR}, #{item.orderWagonNo,jdbcType=VARCHAR}, #{item.orderWagonWeight,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.enstationTime,jdbcType=TIMESTAMP}, #{item.outstationTime,jdbcType=TIMESTAMP}, #{item.billingWeight,jdbcType=DECIMAL}, #{item.isAccept,jdbcType=DECIMAL}, #{item.warehouseId,jdbcType=DECIMAL}, #{item.strawmats,jdbcType=DECIMAL} from dual ) update OMSTRAIN_ORDER set ORDER_ID= when #{item.orderId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL} ,ORDER_NO= when #{item.orderId,jdbcType=DECIMAL} then #{item.orderNo,jdbcType=VARCHAR} ,ORDER_WAGON_NO= when #{item.orderId,jdbcType=DECIMAL} then #{item.orderWagonNo,jdbcType=VARCHAR} ,ORDER_WAGON_WEIGHT= when #{item.orderId,jdbcType=DECIMAL} then #{item.orderWagonWeight,jdbcType=DECIMAL} ,INSERT_USERNAME= when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} ,INSERT_TIME= when #{item.orderId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} ,UPDATE_USERNAME= when #{item.orderId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} ,UPDATE_TIME= when #{item.orderId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} ,INSERT_UPDATE_REMARK= when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} ,ENSTATION_TIME= when #{item.orderId,jdbcType=DECIMAL} then #{item.enstationTime,jdbcType=TIMESTAMP} ,OUTSTATION_TIME= when #{item.orderId,jdbcType=DECIMAL} then #{item.outstationTime,jdbcType=TIMESTAMP} ,BILLING_WEIGHT= when #{item.orderId,jdbcType=DECIMAL} then #{item.billingWeight,jdbcType=DECIMAL} ,"IS_ACCEPT"= when #{item.orderId,jdbcType=DECIMAL} then #{item.isAccept,jdbcType=DECIMAL} ,WAREHOUSE_ID= when #{item.orderId,jdbcType=DECIMAL} then #{item.warehouseId,jdbcType=DECIMAL} ,STRAWMATS= when #{item.orderId,jdbcType=DECIMAL} then #{item.strawmats,jdbcType=DECIMAL} where ORDER_ID in #{item.orderId,jdbcType=DECIMAL} delete from OMSTRAIN_ORDER where ORDER_ID in #{id}