wms
parent
e0a5330e98
commit
aec89ada0c
@ -0,0 +1,107 @@
|
||||
package com.op.wms.controller;
|
||||
|
||||
import com.op.common.core.utils.StringUtils;
|
||||
import com.op.wms.domain.WmsToWCSDTO;
|
||||
import com.op.wms.service.IWmsToWCSInterfaceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/WmsToWCSInterface")
|
||||
public class WmsToWCSInterfaceContorller {
|
||||
|
||||
@Autowired
|
||||
private IWmsToWCSInterfaceService wmsToWCSInterfaceService;
|
||||
/**
|
||||
* 白坯请求入库
|
||||
* @param wcsdto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/blankRequestForStorage")
|
||||
public WmsToWCSDTO blankRequestForStorage(@RequestBody WmsToWCSDTO wcsdto) {
|
||||
if(StringUtils.isBlank(wcsdto.getFactory())){
|
||||
wcsdto.setCode("1");
|
||||
wcsdto.setMessage("factory is not null");
|
||||
return wcsdto;
|
||||
}
|
||||
return wmsToWCSInterfaceService.requestMaterialLoadNo(wcsdto);
|
||||
}
|
||||
/**
|
||||
* 白坯入库或移库完成
|
||||
* @param wcsdto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/blankStorageOrTransferCompleted")
|
||||
public WmsToWCSDTO blankStorageOrTransferCompleted(@RequestBody WmsToWCSDTO wcsdto) {
|
||||
if(StringUtils.isBlank(wcsdto.getFactory())){
|
||||
wcsdto.setCode("1");
|
||||
wcsdto.setMessage("factory is not null");
|
||||
return wcsdto;
|
||||
}
|
||||
return wmsToWCSInterfaceService.blankStorageOrTransferCompleted(wcsdto);
|
||||
}
|
||||
/**
|
||||
* 白坯库存状态更新
|
||||
* @param wcsdto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/blankInventoryStatusUpdate")
|
||||
public WmsToWCSDTO blankInventoryStatusUpdate(@RequestBody WmsToWCSDTO wcsdto) {
|
||||
if(StringUtils.isBlank(wcsdto.getFactory())){
|
||||
wcsdto.setCode("1");
|
||||
wcsdto.setMessage("factory is not null");
|
||||
return wcsdto;
|
||||
}
|
||||
return wmsToWCSInterfaceService.blankInventoryStatusUpdate(wcsdto);
|
||||
}
|
||||
/**
|
||||
* 白坯出库需求下发
|
||||
* @param wcsdto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/issuanceOfBlankOutboundDemand")
|
||||
public WmsToWCSDTO issuanceOfBlankOutboundDemand(@RequestBody WmsToWCSDTO wcsdto) {
|
||||
if(StringUtils.isBlank(wcsdto.getFactory())){
|
||||
wcsdto.setCode("1");
|
||||
wcsdto.setMessage("factory is not null");
|
||||
return wcsdto;
|
||||
}
|
||||
return wmsToWCSInterfaceService.issuanceOfBlankOutboundDemand(wcsdto);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 白坯指定托盘出库----WMS 指定托盘号出库,
|
||||
// * @param wcsdto
|
||||
// * @return
|
||||
// */
|
||||
// @PostMapping("/blankDesignatedPalletOutbound")
|
||||
// public WmsToWCSDTO blankDesignatedPalletOutbound(@RequestBody WmsToWCSDTO wcsdto) {
|
||||
// if(StringUtils.isBlank(wcsdto.getFactory())){
|
||||
// wcsdto.setCode("1");
|
||||
// wcsdto.setMessage("factory is not null");
|
||||
// return wcsdto;
|
||||
// }
|
||||
// return wmsToWCSInterfaceService.blankDesignatedPalletOutbound(wcsdto);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 白坯出库完成
|
||||
* @param wcsdto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/blankOutboundCompleted")
|
||||
public WmsToWCSDTO blankOutboundCompleted(@RequestBody WmsToWCSDTO wcsdto) {
|
||||
if(StringUtils.isBlank(wcsdto.getFactory())){
|
||||
wcsdto.setCode("1");
|
||||
wcsdto.setMessage("factory is not null");
|
||||
return wcsdto;
|
||||
}
|
||||
return wmsToWCSInterfaceService.blankDesignatedPalletOutbound(wcsdto);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package com.op.wms.mapper;
|
||||
|
||||
import com.op.wms.domain.WmsToWCSDTO;
|
||||
|
||||
public interface WmsToWCSInterfaceMapper {
|
||||
WmsToWCSDTO selectWmsToWCSDTO(WmsToWCSDTO wcsdto);
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.op.wms.service;
|
||||
|
||||
import com.op.wms.domain.WmsToWCSDTO;
|
||||
|
||||
public interface IWmsToWCSInterfaceService {
|
||||
WmsToWCSDTO requestMaterialLoadNo(WmsToWCSDTO wcsdto);
|
||||
|
||||
WmsToWCSDTO blankStorageOrTransferCompleted(WmsToWCSDTO wcsdto);
|
||||
|
||||
WmsToWCSDTO blankInventoryStatusUpdate(WmsToWCSDTO wcsdto);
|
||||
|
||||
WmsToWCSDTO issuanceOfBlankOutboundDemand(WmsToWCSDTO wcsdto);
|
||||
|
||||
WmsToWCSDTO blankDesignatedPalletOutbound(WmsToWCSDTO wcsdto);
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.op.wms.service;
|
||||
|
||||
import com.op.wms.domain.WmsToWCSDTO;
|
||||
|
||||
public interface IWmsToWCSmissionService {
|
||||
WmsToWCSDTO packagingStorage(WmsToWCSDTO wcsdto);
|
||||
|
||||
WmsToWCSDTO packingMaterialsInboundCompleted(WmsToWCSDTO wcsdto);
|
||||
|
||||
WmsToWCSDTO packingMaterialsOutBoundCompleted(WmsToWCSDTO wcsdto);
|
||||
}
|
Loading…
Reference in New Issue