|
@@ -7,9 +7,9 @@
|
|
|
<!-- 保存仓库调拨信息 add by wuxw 2018-07-03 -->
|
|
<!-- 保存仓库调拨信息 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveBusinessAllocationStorehouseInfo" parameterType="Map">
|
|
<insert id="saveBusinessAllocationStorehouseInfo" parameterType="Map">
|
|
|
insert into business_allocation_storehouse(
|
|
insert into business_allocation_storehouse(
|
|
|
- as_id,store_id,res_id,sh_id_z,res_name,start_user_id,operate,sh_id_a,start_user_name,state,b_id,stock
|
|
|
|
|
|
|
+ as_id,store_id,res_id,sh_id_z,res_name,start_user_id,operate,sh_id_a,start_user_name,state,b_id,stock,remark
|
|
|
) values (
|
|
) values (
|
|
|
- #{asId},#{storeId},#{resId},#{shIdz},#{resName},#{startUserId},#{operate},#{shIda},#{startUserName},#{state},#{bId},#{stock}
|
|
|
|
|
|
|
+ #{asId},#{storeId},#{resId},#{shIdz},#{resName},#{startUserId},#{operate},#{shIda},#{startUserName},#{state},#{bId},#{stock},#{remark}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -18,7 +18,7 @@
|
|
|
<select id="getBusinessAllocationStorehouseInfo" parameterType="Map" resultType="Map">
|
|
<select id="getBusinessAllocationStorehouseInfo" parameterType="Map" resultType="Map">
|
|
|
select t.as_id,t.as_id asId,t.store_id,t.store_id storeId,t.res_id,t.res_id resId,t.sh_id_z,t.sh_id_z
|
|
select t.as_id,t.as_id asId,t.store_id,t.store_id storeId,t.res_id,t.res_id resId,t.sh_id_z,t.sh_id_z
|
|
|
shIdz,t.res_name,t.res_name resName,t.start_user_id,t.start_user_id startUserId,t.operate,t.sh_id_a,t.sh_id_a
|
|
shIdz,t.res_name,t.res_name resName,t.start_user_id,t.start_user_id startUserId,t.operate,t.sh_id_a,t.sh_id_a
|
|
|
- shIda,t.start_user_name,t.start_user_name startUserName,t.state,t.b_id,t.b_id bId,t.stock
|
|
|
|
|
|
|
+ shIda,t.start_user_name,t.start_user_name startUserName,t.state,t.b_id,t.b_id bId,t.stock,t.remark
|
|
|
from business_allocation_storehouse t
|
|
from business_allocation_storehouse t
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="asId !=null and asId != ''">
|
|
<if test="asId !=null and asId != ''">
|
|
@@ -64,9 +64,9 @@
|
|
|
<!-- 保存仓库调拨信息至 instance表中 add by wuxw 2018-07-03 -->
|
|
<!-- 保存仓库调拨信息至 instance表中 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveAllocationStorehouseInfoInstance" parameterType="Map">
|
|
<insert id="saveAllocationStorehouseInfoInstance" parameterType="Map">
|
|
|
insert into allocation_storehouse(
|
|
insert into allocation_storehouse(
|
|
|
- as_id,status_cd,store_id,res_id,sh_id_z,res_name,start_user_id,sh_id_a,start_user_name,state,b_id,stock
|
|
|
|
|
|
|
+ as_id,status_cd,store_id,res_id,sh_id_z,res_name,start_user_id,sh_id_a,start_user_name,state,b_id,stock,remark
|
|
|
) select
|
|
) select
|
|
|
- t.as_id,'0',t.store_id,t.res_id,t.sh_id_z,t.res_name,t.start_user_id,t.sh_id_a,t.start_user_name,t.state,t.b_id,t.stock
|
|
|
|
|
|
|
+ t.as_id,'0',t.store_id,t.res_id,t.sh_id_z,t.res_name,t.start_user_id,t.sh_id_a,t.start_user_name,t.state,t.b_id,t.stock,t.remark
|
|
|
from business_allocation_storehouse t where 1=1
|
|
from business_allocation_storehouse t where 1=1
|
|
|
<if test="asId !=null and asId != ''">
|
|
<if test="asId !=null and asId != ''">
|
|
|
and t.as_id= #{asId}
|
|
and t.as_id= #{asId}
|
|
@@ -111,7 +111,7 @@
|
|
|
select t.as_id,t.as_id asId,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.res_id,t.res_id
|
|
select t.as_id,t.as_id asId,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.res_id,t.res_id
|
|
|
resId,t.sh_id_z,t.sh_id_z shIdz,t.res_name,t.res_name resName,t.start_user_id,t.start_user_id
|
|
resId,t.sh_id_z,t.sh_id_z shIdz,t.res_name,t.res_name resName,t.start_user_id,t.start_user_id
|
|
|
startUserId,t.sh_id_a,t.sh_id_a shIda,t.start_user_name,t.start_user_name startUserName,t.state,t.b_id,t.b_id
|
|
startUserId,t.sh_id_a,t.sh_id_a shIda,t.start_user_name,t.start_user_name startUserName,t.state,t.b_id,t.b_id
|
|
|
- bId,t.stock
|
|
|
|
|
|
|
+ bId,t.stock,t.remark
|
|
|
from allocation_storehouse t
|
|
from allocation_storehouse t
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="asId !=null and asId != ''">
|
|
<if test="asId !=null and asId != ''">
|