|
|
|
@ -34,7 +34,7 @@
|
|
|
|
|
receiveStatus, erpFk, stockCheckFk, thirdBillNo, supId,
|
|
|
|
|
exportFilePath, locStorageCode, supplementNo, ullageSupNo, createUser, reviewUser,
|
|
|
|
|
outChangeEnable, originUllageSupNo, preCheck, updateTime, replicateNo, invWarehouseCode,
|
|
|
|
|
fromSubInvCode, createTime, originFromType)
|
|
|
|
|
fromSubInvCode, createTime, originFromType,deptCode)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{action},
|
|
|
|
|
#{corpOrderId},
|
|
|
|
@ -54,7 +54,7 @@
|
|
|
|
|
#{stockCheckFk},
|
|
|
|
|
#{thirdBillNo}, #{supId}, #{exportFilePath}, #{locStorageCode}, #{supplementNo},
|
|
|
|
|
#{ullageSupNo}, #{createUser}, #{reviewUser}, #{outChangeEnable}, #{originUllageSupNo}, #{preCheck},
|
|
|
|
|
#{updateTime}, #{replicateNo}, #{invWarehouseCode}, #{fromSubInvCode}, #{createTime}, #{originFromType})
|
|
|
|
|
#{updateTime}, #{replicateNo}, #{invWarehouseCode}, #{fromSubInvCode}, #{createTime}, #{originFromType},#{deptCode})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="importOrder" keyProperty="id" parameterType="com.glxp.api.admin.entity.inout.OrderEntity">
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
fromCorp, status, remark, exportStatus, fromType, contrastStatus, signStatus,
|
|
|
|
|
receiveStatus, erpFk, stockCheckFk, thirdBillNo, supId,
|
|
|
|
|
exportFilePath, locStorageCode, supplementNo, ullageSupNo, createUser, reviewUser,
|
|
|
|
|
outChangeEnable, originUllageSupNo, preCheck,updateTime,replicateNo,invWarehouseCode,fromSubInvCode,createTime,originFromType)
|
|
|
|
|
outChangeEnable, originUllageSupNo, preCheck,updateTime,replicateNo,invWarehouseCode,fromSubInvCode,createTime,originFromType,deptCode)
|
|
|
|
|
values (
|
|
|
|
|
#{id},
|
|
|
|
|
#{action},
|
|
|
|
@ -99,7 +99,7 @@
|
|
|
|
|
#{invWarehouseCode},
|
|
|
|
|
#{fromSubInvCode},
|
|
|
|
|
#{createTime},
|
|
|
|
|
#{originFromType}
|
|
|
|
|
#{originFromType},#{deptCode}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -142,6 +142,7 @@
|
|
|
|
|
<if test="fromSubInvCode != null and fromSubInvCode != ''">fromSubInvCode=#{fromSubInvCode},</if>
|
|
|
|
|
<if test="createTime != null and createTime != ''">createTime=#{createTime},</if>
|
|
|
|
|
<if test="originFromType != null and originFromType != ''">originFromType=#{originFromType},</if>
|
|
|
|
|
<if test="deptCode != null and deptCode != ''">deptCode=#{deptCode},</if>
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
@ -194,13 +195,15 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterListOr" parameterType="com.glxp.api.admin.req.inout.OrderFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.inout.OrderEntity">
|
|
|
|
|
SELECT io_order.* ,inv_warehouse.name invName, iws.name subInvName ,basic_bussiness_type.name billTypeName FROM
|
|
|
|
|
SELECT io_order.* ,inv_warehouse.name invName, iws.name subInvName ,basic_bussiness_type.name
|
|
|
|
|
billTypeName,auth_dept.name deptName FROM
|
|
|
|
|
io_order
|
|
|
|
|
left join basic_bussiness_type on io_order.action = basic_bussiness_type.action
|
|
|
|
|
LEFT JOIN inv_warehouse ON io_order.locStorageCode = inv_warehouse.`code`
|
|
|
|
|
LEFT JOIN inv_warehouse_sub iws ON io_order.invWarehouseCode = iws.`code`
|
|
|
|
|
LEFT JOIN inv_warehouse_sub ON inv_warehouse_sub.parentId = inv_warehouse.`code`
|
|
|
|
|
LEFT JOIN inv_warehouse_user on inv_warehouse_sub.code = inv_warehouse_user.`code`
|
|
|
|
|
left join auth_dept on io_order.deptCode =auth_dept.code
|
|
|
|
|
<where>
|
|
|
|
|
<if test="id != '' and id!=null">
|
|
|
|
|
and io_order.id =#{id}
|
|
|
|
|