Browse Source

委外修改

master
shenzhouyu 7 months ago
parent
commit
ca488d1461
  1. 2
      src/main/java/com/gaotao/modules/api/entity/issueAndReturnVo/PurchaseOrderUnIssueComponentDto.java
  2. 3
      src/main/java/com/gaotao/modules/outsourcing/entity/dto/OutsourcingReturnDto.java
  3. 4
      src/main/java/com/gaotao/modules/outsourcing/service/impl/OutsourcingReturnServiceImpl.java

2
src/main/java/com/gaotao/modules/api/entity/issueAndReturnVo/PurchaseOrderUnIssueComponentDto.java

@ -23,7 +23,7 @@ public class PurchaseOrderUnIssueComponentDto {
private String ifsPartNo;
@JsonProperty("ifsUndoShipQty")
private Integer ifsUndoShipQty;
private BigDecimal ifsUndoShipQty;
@JsonProperty("ifsLocationNo")
private String ifsLocationNo;

3
src/main/java/com/gaotao/modules/outsourcing/entity/dto/OutsourcingReturnDto.java

@ -3,6 +3,7 @@ package com.gaotao.modules.outsourcing.entity.dto;
import com.gaotao.modules.outsourcing.entity.dto.MrIssueMaterialDto;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
@Data
@ -27,5 +28,7 @@ public class OutsourcingReturnDto {
private String releaseNo;
private String lineNo;
private String lineItemNo;
private BigDecimal allQty;
private List<MrIssueMaterialDto> selectedMaterials; // 选中的物料列表
}

4
src/main/java/com/gaotao/modules/outsourcing/service/impl/OutsourcingReturnServiceImpl.java

@ -123,7 +123,7 @@ public class OutsourcingReturnServiceImpl implements OutsourcingReturnService {
reserveComponentDto.setIfsSiteId(dto.getSite());
reserveComponentDto.setIfsQtyReserved(dto.getIfsReversedQty());
reserveComponentDto.setIfsPartNo(issue.getPartNo());
reserveComponentDto.setIfsUndoShipQty(0);
reserveComponentDto.setIfsUndoShipQty(issue.getTransQty());
reserveComponentDto.setIfsLocationNo(issue.getLocationId());
reserveComponentDto.setIfsLotBatchNo(issue.getBatchNo());
reserveComponentDto.setIfsSerialNo("*");
@ -134,7 +134,7 @@ public class OutsourcingReturnServiceImpl implements OutsourcingReturnService {
reserveComponentDto.setIfsLineNo(dto.getLineNo());
reserveComponentDto.setIfsReleaseNo(dto.getReleaseNo());
reserveComponentDto.setIfsLineItemNo(dto.getLineItemNo());
reserveComponentDto.setIfsQty(issue.getTransQty()); // 退料
reserveComponentDto.setIfsQty(dto.getAllQty()); // 退料
String s = ifsApiIssueAndReturnService.addPurchaseOrderUnIssueComponent(reserveComponentDto);
}
}

Loading…
Cancel
Save