客户端协议

nanjing-yancao-wuliuzhongxin
yiming 3 years ago
parent 699ad94a9f
commit 43893b2c41

@ -41,14 +41,23 @@ public class ClientTestController {
return Result.success(); return Result.success();
} }
@ApiOperation("盘点具体货位 第一步 【开始】") @ApiOperation("盘点具体货位 第一步 【发起盘点】")
@GetMapping("/stockCheck/start") @GetMapping("/stockCheck/start")
public Result<Boolean> startStockCheck(@ApiParam("巷道标识") String SRMNumber,@ApiParam("盘点批次ID") String taskId, public Result<Boolean> startStockCheck(@ApiParam("巷道标识") String SRMNumber,@ApiParam("盘点批次ID") String taskId,
@ApiParam("货位号,如L0100010002 ,R/L表示左右,01是浅货位02深,0001是X,0002是Y") String goodsLocation, @ApiParam("货位号,如L0100010002 ,R/L表示左右,01是浅货位02深,0001是X,0002是Y") String goodsLocation,@ApiParam("品规")String code,@ApiParam("数量")Integer count,
@ApiParam("是否是虚拟检测 Y:是 N:不是")String V){ @ApiParam("是否是虚拟检测 Y:是 N:不是")String V){
TMTransmission tmTransmission = new TMTransmission();
ClientChanel.write(ECTransmission.toEmptyCheckEndString(SRMNumber),SRMNumber); TMTransmission tmTransmission = new TMTransmission(SRMNumber,taskId,goodsLocation,code,count,V);
ClientChanel.write(tmTransmission.toString(),SRMNumber);
return Result.success();
}
@ApiOperation("盘点具体货位 第二步 【取货到载货台完成】")
@GetMapping("/stockCheck/goodsMoveOver")
public Result<Boolean> goodsMoveOver(@ApiParam("巷道标识") String SRMNumber,@ApiParam("盘点批次ID") String taskId){
TMTransmission tmTransmission = new TMTransmission(SRMNumber,taskId);
ClientChanel.write(tmTransmission.toSC02String(),SRMNumber);
return Result.success(); return Result.success();
} }

@ -60,6 +60,10 @@ public class TMTransmission {
return sb.toString(); return sb.toString();
} }
public String toSC02String(){
return header+Split+SRMNumber+Split+taskNo;
}
public static String getHeader(){ public static String getHeader(){
return header; return header;
} }
@ -86,4 +90,18 @@ public class TMTransmission {
} }
} }
public TMTransmission(String SRMNumber,String taskId,String goodsLocation,String code,Integer count,String visual){
this.SRMNumber = SRMNumber;
this.taskNo = taskId;
this.goodsLocation = goodsLocation;
this.code = code;
this.count = count;
this.visualTest = visual;
}
public TMTransmission(String SRMNumber,String taskId){
this.SRMNumber = SRMNumber;
this.taskNo = taskId;
}
} }

@ -72,14 +72,14 @@ videoStyleConfig:
# ----------- num:总共多少个光源端口 index:需要控制的是哪个 # ----------- num:总共多少个光源端口 index:需要控制的是哪个
# ------------ 利珀视觉控制器id从1开始光源控制器从0开始 # ------------ 利珀视觉控制器id从1开始光源控制器从0开始
lightSource: lightSource:
type: 2 type: 1
num: 4 num: 4
index: 1 index: 1
# -----tray 托盘 # -----tray 托盘
# -----goods 货物 # -----goods 货物
# 扫码模式 0:此处不盘点 1球机扫码 2sick扫码枪 3:南北达RFID # 扫码模式 0:此处不盘点 1球机扫码 2sick扫码枪 3:南北达RFID
scanCodeMode: scanCodeMode:
tray: 1 tray: 3
goods: 0 goods: 0
goodsCodeTypes: goodsCodeTypes:
- 14 - 14

Loading…
Cancel
Save