wms包材出库查询新增页面修改

master
mengjiao 8 months ago
parent 21ac32c35c
commit 6d280550e7

@ -86,4 +86,6 @@ public interface OdsProcureOutOrderMapper {
String selectMachineCode(@Param("order")OdsProcureOutOrder odsProcureOutOrder); String selectMachineCode(@Param("order")OdsProcureOutOrder odsProcureOutOrder);
List<OdsProcureOutOrder> selectmesPrepareDetailWhite(OdsProcureOutOrder odsProcureOutOrder); List<OdsProcureOutOrder> selectmesPrepareDetailWhite(OdsProcureOutOrder odsProcureOutOrder);
OdsProcureOutOrder selectmesPreparelike(OdsProcureOutOrder odsProcureOrder);
} }

@ -286,7 +286,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
@DS("#header.poolName") @DS("#header.poolName")
public OdsProcureOutOrder PurchaseOrderOutboundPda(OdsProcureOutOrder odsProcureOrder) { public OdsProcureOutOrder PurchaseOrderOutboundPda(OdsProcureOutOrder odsProcureOrder) {
//母单其中list里面是对应的子单 //母单其中list里面是对应的子单
OdsProcureOutOrder odsProcureOutOrder = odsProcureOutOrderMapper.selectmesPrepare(odsProcureOrder); OdsProcureOutOrder odsProcureOutOrder = odsProcureOutOrderMapper.selectmesPreparelike(odsProcureOrder);
String machine= odsProcureOutOrderMapper.selectMachineCode(odsProcureOutOrder); String machine= odsProcureOutOrderMapper.selectMachineCode(odsProcureOutOrder);
if (odsProcureOutOrder != null) { if (odsProcureOutOrder != null) {
List<OdsProcureOutOrder> orderList = odsProcureOutOrderMapper.selectmesPrepareDetail(odsProcureOutOrder); List<OdsProcureOutOrder> orderList = odsProcureOutOrderMapper.selectmesPrepareDetail(odsProcureOutOrder);

@ -431,4 +431,20 @@
WHERE WHERE
mes_prepare_detail.prepare_id= #{ ID} mes_prepare_detail.prepare_id= #{ ID}
</select> </select>
<select id="selectmesPreparelike" parameterType="OdsProcureOutOrder" resultMap="OdsProcureOutOrderResult">
SELECT
prepare_id id,
workorder_name Produce_Code,
workorder_code workorderCode,
product_code Material_Code,
product_name Material_Desc,
unit Unit,
product_date Plan_Date,
prod_type User_Defined1
FROM mes_prepare
WHERE workorder_name LIKE CONCAT('%', #{produceCode}, '%');
</select>
</mapper> </mapper>

Loading…
Cancel
Save