wms部分代码修改

master
mengjiao 11 months ago
parent bb6f0cffb9
commit 51d3005749

@ -154,6 +154,15 @@ public class OdsProcureOutOrder extends BaseEntity {
*/ */
@Excel(name = "用户自定义属性2") @Excel(name = "用户自定义属性2")
private String userDefined2; private String userDefined2;
private String workorderCode;
public String getWorkorderCode() {
return workorderCode;
}
public void setWorkorderCode(String workorderCode) {
this.workorderCode = workorderCode;
}
/** /**
* 3 * 3

@ -82,4 +82,6 @@ public interface OdsProcureOutOrderMapper {
List<String> selectOdsProcureOutOrderListZUKEN(OdsProcureOutOrder order); List<String> selectOdsProcureOutOrderListZUKEN(OdsProcureOutOrder order);
List<String> selectOdsProcureOutOrderListZUKENX(OdsProcureOutOrder order); List<String> selectOdsProcureOutOrderListZUKENX(OdsProcureOutOrder order);
String selectMachineCode(@Param("order")OdsProcureOutOrder odsProcureOutOrder);
} }

@ -284,14 +284,15 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
public OdsProcureOutOrder PurchaseOrderOutboundPda(OdsProcureOutOrder odsProcureOrder) { public OdsProcureOutOrder PurchaseOrderOutboundPda(OdsProcureOutOrder odsProcureOrder) {
//母单其中list里面是对应的子单 //母单其中list里面是对应的子单
OdsProcureOutOrder odsProcureOutOrder = odsProcureOutOrderMapper.selectmesPrepare(odsProcureOrder); OdsProcureOutOrder odsProcureOutOrder = odsProcureOutOrderMapper.selectmesPrepare(odsProcureOrder);
String machine= odsProcureOutOrderMapper.selectMachineCode(odsProcureOutOrder);
if (odsProcureOutOrder != null) { if (odsProcureOutOrder != null) {
List<OdsProcureOutOrder> orderList = odsProcureOutOrderMapper.selectmesPrepareDetail(odsProcureOutOrder); List<OdsProcureOutOrder> orderList = odsProcureOutOrderMapper.selectmesPrepareDetail(odsProcureOutOrder);
for (OdsProcureOutOrder order:orderList){
order.setProductionLineCode(machine);
}
odsProcureOutOrder.setList(orderList); odsProcureOutOrder.setList(orderList);
} }
return odsProcureOutOrder; return odsProcureOutOrder;
} }
@Override @Override

@ -39,6 +39,7 @@
<result property="Active" column="Active"/> <result property="Active" column="Active"/>
<result property="enterpriseId" column="Enterprise_Id"/> <result property="enterpriseId" column="Enterprise_Id"/>
<result property="enterpriseCode" column="Enterprise_Code"/> <result property="enterpriseCode" column="Enterprise_Code"/>
<result property="workorderCode" column="workorderCode"/>
</resultMap> </resultMap>
<sql id="pagination_tail"> <sql id="pagination_tail">
limit #{page.pageOffset} , #{page.rows} limit #{page.pageOffset} , #{page.rows}
@ -263,6 +264,7 @@
SELECT SELECT
prepare_id id, prepare_id id,
workorder_name Produce_Code, workorder_name Produce_Code,
workorder_code workorderCode,
product_code Material_Code, product_code Material_Code,
product_name Material_Desc, product_name Material_Desc,
unit Unit, unit Unit,
@ -396,4 +398,10 @@
#{item.userDefined1} #{item.userDefined1}
</foreach> </foreach>
</select> </select>
<select id="selectMachineCode" resultType="java.lang.String">
SELECT
machine_code
FROM mes_report_work
WHERE workorder_code=#{order.workorderCode} AND end_report='1'
</select>
</mapper> </mapper>

Loading…
Cancel
Save