装配线叫料
parent
023be453bf
commit
575050abff
|
|
@ -0,0 +1,22 @@
|
|||
package com.youchain.appupdate.inputJson;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 装配线叫料入参
|
||||
*/
|
||||
@Data
|
||||
public class AssemblyLineCall {
|
||||
@ApiModelProperty(value = "工单号")
|
||||
String orderNo;
|
||||
|
||||
@ApiModelProperty(value = "物料编号")
|
||||
String itemCode;
|
||||
|
||||
@ApiModelProperty(value = "需求工位")
|
||||
String workStation;
|
||||
|
||||
@ApiModelProperty(value = "需求点位")
|
||||
String pointCode;
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@ package com.youchain.appupdate.rest;
|
|||
|
||||
import com.youchain.annotation.AnonymousAccess;
|
||||
import com.youchain.annotation.Log;
|
||||
import com.youchain.appupdate.inputJson.AssemblyLineCall;
|
||||
import com.youchain.appupdate.inputJson.CallStock;
|
||||
import com.youchain.appupdate.inputJson.ContainerIn;
|
||||
import com.youchain.appupdate.inputJson.BindStock;
|
||||
|
|
@ -59,11 +60,11 @@ public class BydAppController {
|
|||
return successRequest("出场成功!");
|
||||
}
|
||||
|
||||
@PostMapping("/bindStock")
|
||||
@PostMapping("/materialIn")
|
||||
@Log("原材料入库")
|
||||
@ApiOperation("原材料入库")
|
||||
@AnonymousAccess
|
||||
public ResponseEntity<Object> bindStock(@RequestBody BindStock bindStock) {
|
||||
public ResponseEntity<Object> materialIn(@RequestBody BindStock bindStock) {
|
||||
try {
|
||||
//二维码格式:P:A17A;V:148795;M:DP_001/PCS;B:240512JFET;Lot:20240427;S:124051200181131;PO:5913490946/00020;Q:36/20/32;D:2024-04-27;SN:;YX:2025-04-26;DN:D12405120005031AS
|
||||
String QRCode = bindStock.getItemCode();//Mo票二维码
|
||||
|
|
@ -76,6 +77,23 @@ public class BydAppController {
|
|||
return successRequest("入库成功!");
|
||||
}
|
||||
|
||||
@PostMapping("/assemblyLineCall")
|
||||
@Log("装配线叫料")
|
||||
@ApiOperation("装配线叫料")
|
||||
@AnonymousAccess
|
||||
public ResponseEntity<Object> assemblyLineCall(@RequestBody AssemblyLineCall assemblyLineCall) {
|
||||
try {
|
||||
String orderNo = assemblyLineCall.getOrderNo();//工单号
|
||||
String itemCode = assemblyLineCall.getItemCode();//物料编号
|
||||
String workStation = assemblyLineCall.getWorkStation();//需求工位
|
||||
String pointCode = assemblyLineCall.getPointCode();//需求点位;
|
||||
|
||||
} catch (Exception e) {
|
||||
return badRequest(e.getMessage());
|
||||
}
|
||||
return successRequest("入库成功!");
|
||||
}
|
||||
|
||||
@PostMapping("/callStock")
|
||||
@Log("呼叫容器")
|
||||
@ApiOperation("呼叫容器")
|
||||
|
|
|
|||
Loading…
Reference in New Issue