1.清空盘点

2。增加手动盘点类型
3。保证球机时间修改,减少报错
bozhou-古井贡酒
LAPTOP-S9HJSOEB\昊天 2 years ago
parent 90b4e8c74d
commit 417ab581d2

@ -162,7 +162,15 @@ public class StockController {
validatorUtil.validate(checkByMan);
return Result.success(stockService.checkByMan(checkByMan));
}
//
@ApiOperation(value = "清空盘点")
@RequestMapping(value = "/allStockClear", method = RequestMethod.POST)
public Result<Stock> allStockClear() {
//validatorUtil.validate(checkByMan);
stockService.allStockClear();
return Result.success();
}
public static void main(String[] args) {
Integer i = 0;
String str=new String("");

@ -96,10 +96,12 @@ public class CronTab {
List<Camera> cameras = cameraMapper.selectList(new QueryWrapper<>());
for (Camera camera : cameras){
Boolean ok = false;
if(configProperties.getCameraConfig().getCameraType() == ConfigProperties.HIK_CAMERA){
ok = HikLoginModuleImpl.connectStatus(CameraConnMap.getConnId(camera.getId()).intValue());
}else {
ok = JoywareLoginModuleImpl.connectStatus(CameraConnMap.getConnId(camera.getId()));
if (CameraConnMap.getConnId(camera.getId() )!=null) {
if (configProperties.getCameraConfig().getCameraType() == ConfigProperties.HIK_CAMERA) {
ok = HikLoginModuleImpl.connectStatus(CameraConnMap.getConnId(camera.getId()).intValue());
} else {
ok = JoywareLoginModuleImpl.connectStatus(CameraConnMap.getConnId(camera.getId()));
}
}
if(ok){

@ -725,11 +725,11 @@ public class PlcService {
});
thread.start();
//核对异常
Integer status = 1;
Integer status = 4;
//托盘和货物都正确
if (algorithmPojo != null && algorithmPojo.getResult() != null && algorithmPojo.getResult() == 1) {
status = 2;
}
// if (algorithmPojo != null && algorithmPojo.getResult() != null && algorithmPojo.getResult() == 1) {
// status = 2;
// }
if (stock == null) {
stock = Stock.builder()
.checkNum(plcCmdInfo.getOrderNum())

@ -511,4 +511,7 @@ public class StockService {
}
public void allStockClear() {
stockMapper.truncate();
}
}

@ -113,7 +113,7 @@ orderTest: 1
productDoc: "C:/Users/昊天/Desktop/新建文本文档 (3).txt"
smokeBoxType:
- type: 1
- type: 125425
name: 古20
code: "125425"
#用于视觉的一层个数

Loading…
Cancel
Save