wms退货单手持修改-提交按钮入参取消库区和仓库,后端进行处理

master
mengjiao 3 weeks ago
parent 22ab670cf2
commit 7009ae7bea

@ -123,4 +123,6 @@ public interface OdsProcureOrderMapper {
public void updateodsProcureOrderCardTemNumber(OdsProcureOrder order); public void updateodsProcureOrderCardTemNumber(OdsProcureOrder order);
public void updateodsProcureOrderCardByu1(OdsProcureOrder order1); public void updateodsProcureOrderCardByu1(OdsProcureOrder order1);
String selectBaseProductAttached(@Param("order1MaterialCode")String order1MaterialCode);
} }

@ -2852,6 +2852,17 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
String createBy= odsProcureOutOrder.getCreateBy();//操作人 String createBy= odsProcureOutOrder.getCreateBy();//操作人
produceCode= order1.getProcureCode(); produceCode= order1.getProcureCode();
String userDefined6= odsProcureOutOrder.getUserDefined6();//标识卡 String userDefined6= odsProcureOutOrder.getUserDefined6();//标识卡
//-这个地方的库区和仓库
String order1MaterialCode= order1.getMaterialCode();
String wcode= odsProcureOrderMapper.selectBaseProductAttached(order1MaterialCode);
if(wcode!=null&&wcode!=""){
odsProcureOutOrder.setWaCode(wcode);
String whCode= baseProductAttachedMapper.selectBaseAreaListnew(wcode);
odsProcureOutOrder.setWhCode(whCode);
}else {
odsProcureOutOrder.setWaCode("0000");
odsProcureOutOrder.setWhCode("WH02");
}
String waCode= odsProcureOutOrder.getWaCode(); String waCode= odsProcureOutOrder.getWaCode();
String whCode= odsProcureOutOrder.getWhCode(); String whCode= odsProcureOutOrder.getWhCode();
String wlCode= odsProcureOutOrder.getWlCode(); String wlCode= odsProcureOutOrder.getWlCode();

@ -943,5 +943,14 @@
WHERE WHERE
ods_procure_order_card.User_Defined1= #{userDefined1} ods_procure_order_card.User_Defined1= #{userDefined1}
</select> </select>
<select id="selectBaseProductAttached" resultType="java.lang.String">
SELECT DISTINCT
wa_code
FROM
base_product_attached
WHERE
CONCAT('0000000', product_code) = #{order1MaterialCode}
AND wa_code IS NOT NULL;
</select>
</mapper> </mapper>

Loading…
Cancel
Save