|
|
@ -44,17 +44,18 @@
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insert" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
|
|
|
|
<insert id="insert" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder"
|
|
|
|
insert into inv_count_order (id, orderId, invStorageCode,
|
|
|
|
keyColumn="id" keyProperty="id" useGeneratedKeys="true">
|
|
|
|
|
|
|
|
insert into inv_count_order (orderId, invStorageCode,
|
|
|
|
invWarehouseCode, invSpaceCode, `createUser`,
|
|
|
|
invWarehouseCode, invSpaceCode, `createUser`,
|
|
|
|
createTime, updateTime, auditUser,
|
|
|
|
createTime, updateTime, auditUser,
|
|
|
|
auditTime, `status`, remark)
|
|
|
|
auditTime, `status`, remark)
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderId,jdbcType=VARCHAR}, #{invStorageCode,jdbcType=VARCHAR},
|
|
|
|
values (#{orderId,jdbcType=VARCHAR}, #{invStorageCode,jdbcType=VARCHAR},
|
|
|
|
#{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
|
#{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{auditUser,jdbcType=VARCHAR},
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{auditUser,jdbcType=VARCHAR},
|
|
|
|
#{auditTime,jdbcType=TIMESTAMP}, #{status,jdbcType=BOOLEAN}, #{remark,jdbcType=VARCHAR})
|
|
|
|
#{auditTime,jdbcType=TIMESTAMP}, #{status,jdbcType=BOOLEAN}, #{remark,jdbcType=VARCHAR})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
|
|
|
|
<insert id="insertSelective" parameterType="com.glxp.api.admin.entity.inventory.InvCountOrder">
|
|
|
|
insert into inv_count_order
|
|
|
|
insert into inv_count_order
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@ -285,10 +286,12 @@
|
|
|
|
co.status,
|
|
|
|
co.status,
|
|
|
|
co.remark,
|
|
|
|
co.remark,
|
|
|
|
w.name as invStorageName,
|
|
|
|
w.name as invStorageName,
|
|
|
|
ws.name as invSubStorageName
|
|
|
|
ws.name as invSubStorageName,
|
|
|
|
|
|
|
|
sp.name as invSpaceName
|
|
|
|
from inv_count_order co
|
|
|
|
from inv_count_order co
|
|
|
|
left join inv_warehouse w on co.invStorageCode = w.code
|
|
|
|
left join inv_warehouse w on co.invStorageCode = w.code
|
|
|
|
left join inv_warehouse_sub ws on co.invWarehouseCode = ws.code
|
|
|
|
left join inv_warehouse_sub ws on co.invWarehouseCode = ws.code
|
|
|
|
|
|
|
|
left join inv_space sp on co.invSpaceCode = sp.code
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="invStorageCode != null and invStorageCode != ''">
|
|
|
|
<if test="invStorageCode != null and invStorageCode != ''">
|
|
|
|
AND co.invStorageCode = #{invStorageCode}
|
|
|
|
AND co.invStorageCode = #{invStorageCode}
|
|
|
@ -299,6 +302,9 @@
|
|
|
|
<if test="invSpaceCode != null and invSpaceCode != ''">
|
|
|
|
<if test="invSpaceCode != null and invSpaceCode != ''">
|
|
|
|
AND co.invSpaceCode = #{invSpaceCode}
|
|
|
|
AND co.invSpaceCode = #{invSpaceCode}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
|
|
|
AND co.status = #{status}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|