|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.gaotao.modules.customer.controller; |
|
|
|
|
|
|
|
import com.gaotao.common.utils.PageUtils; |
|
|
|
import com.gaotao.common.utils.PartAttributeUtil; |
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
import com.gaotao.modules.api.entity.issueAndReturnVo.ShipmentLineVo; |
|
|
|
import com.gaotao.modules.api.entity.issueAndReturnVo.ShipmentVo; |
|
|
|
@ -28,6 +29,9 @@ public class ShipmentIssueController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ShipmentIssueService shipmentIssueService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private PartAttributeUtil partAttributeUtil; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 获取用户下面未下达领料申请单 |
|
|
|
@ -107,6 +111,17 @@ public class ShipmentIssueController { |
|
|
|
@ResponseBody |
|
|
|
public R searchUnissueNotifyMaterialList(@RequestBody SOIssueNotifyOrderList data){ |
|
|
|
List<SOIssueNotifyOrderMaterialListShipmentVo> rows = shipmentIssueService.searchUnissueNotifyMaterialList(data); |
|
|
|
|
|
|
|
// 填充字段:将componentPartNo赋值给partNo - rqrq |
|
|
|
if (rows != null && rows.size() > 0) { |
|
|
|
for (SOIssueNotifyOrderMaterialListShipmentVo row : rows) { |
|
|
|
row.setPartNo(row.getComponentPartNo()); |
|
|
|
} |
|
|
|
|
|
|
|
// 批量填充isInWh字段 - rqrq |
|
|
|
partAttributeUtil.fillIsInWh(rows); |
|
|
|
} |
|
|
|
|
|
|
|
return R.ok().put("rows", rows); |
|
|
|
} |
|
|
|
|
|
|
|
@ -231,6 +246,15 @@ public class ShipmentIssueController { |
|
|
|
//TODO 调用rifs接口获取列表数据 |
|
|
|
List<ShipmentAndShipmentLineVo> rows = shipmentIssueService.getShipmentAndLineForIssure(data); |
|
|
|
if(rows != null && rows.size() > 0){ |
|
|
|
// 填充字段:将contract赋值给site,将inventoryPartNo赋值给partNo - rqrq |
|
|
|
for (ShipmentAndShipmentLineVo row : rows) { |
|
|
|
row.setSite(row.getContract()); |
|
|
|
row.setPartNo(row.getInventoryPartNo()); |
|
|
|
} |
|
|
|
|
|
|
|
// 批量填充isInWh字段 - rqrq |
|
|
|
partAttributeUtil.fillIsInWh(rows); |
|
|
|
|
|
|
|
return R.ok().put("rows", rows); |
|
|
|
} |
|
|
|
return R.error("未找到对应的SHIPMENT物料信息"); |
|
|
|
|