diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/OdsProcureOutOrder.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/OdsProcureOutOrder.java index 4be9bf6f..414a31a0 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/domain/OdsProcureOutOrder.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/OdsProcureOutOrder.java @@ -167,8 +167,8 @@ public class OdsProcureOutOrder extends BaseEntity { private String supplierName; /** 创建时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date createDate; /** 最后更新人 */ @@ -191,6 +191,24 @@ public class OdsProcureOutOrder extends BaseEntity { /** 企业编码 */ @Excel(name = "企业编码") private String enterpriseCode; + private String sapMag; + private String sapXMag; + + public String getSapMag() { + return sapMag; + } + + public void setSapMag(String sapMag) { + this.sapMag = sapMag; + } + + public String getSapXMag() { + return sapXMag; + } + + public void setSapXMag(String sapXMag) { + this.sapXMag = sapXMag; + } public void setSiteCode(String siteCode) { this.siteCode = siteCode; diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOutOrderMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOutOrderMapper.java index 9fc7a796..b19c56b3 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOutOrderMapper.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOutOrderMapper.java @@ -78,4 +78,8 @@ public interface OdsProcureOutOrderMapper { List selectOdsProcureOutOrderListByu1(@Param("list")List orderList); void updateOdsProcureOutOrderByids(@Param("order")OdsProcureOutOrder order,@Param("list") List sapMaterialPostingList); + + List selectOdsProcureOutOrderListZUKEN(OdsProcureOutOrder order); + + List selectOdsProcureOutOrderListZUKENX(OdsProcureOutOrder order); } diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOutOrderServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOutOrderServiceImpl.java index b4e2e0ff..9b5d2079 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOutOrderServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOutOrderServiceImpl.java @@ -96,8 +96,26 @@ public class OdsProcureOutOrderServiceImpl implements IOdsProcureOutOrderService @Override @DS("#header.poolName") public List selectOdsProcureOutOrderListZU(OdsProcureOutOrder odsProcureOutOrder) { + List orderList=odsProcureOutOrderMapper.selectOdsProcureOutOrderListZU(odsProcureOutOrder); + for (OdsProcureOutOrder order: + orderList) { + String sapMag=""; + String sapxMag=""; + List sapMags= odsProcureOutOrderMapper.selectOdsProcureOutOrderListZUKEN(order); + for (String mag: + sapMags) { + sapMag=sapMag+mag; + } + List sapxMags= odsProcureOutOrderMapper.selectOdsProcureOutOrderListZUKENX(order); + for (String magx: + sapxMags) { + sapxMag=sapxMag+magx; + } + order.setSapMag(sapMag); + order.setSapXMag(sapxMag); + } - return odsProcureOutOrderMapper.selectOdsProcureOutOrderListZU(odsProcureOutOrder); + return orderList; } @Override diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml index 4ec516ff..794291ac 100644 --- a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml +++ b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml @@ -58,6 +58,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and User_Defined1 = #{userDefined1} GROUP BY Produce_Code,User_Defined1 + +