1.清空盘点

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

@ -162,7 +162,15 @@ public class StockController {
validatorUtil.validate(checkByMan); validatorUtil.validate(checkByMan);
return Result.success(stockService.checkByMan(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) { public static void main(String[] args) {
Integer i = 0; Integer i = 0;
String str=new String(""); String str=new String("");

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

@ -725,11 +725,11 @@ public class PlcService {
}); });
thread.start(); thread.start();
//核对异常 //核对异常
Integer status = 1; Integer status = 4;
//托盘和货物都正确 //托盘和货物都正确
if (algorithmPojo != null && algorithmPojo.getResult() != null && algorithmPojo.getResult() == 1) { // if (algorithmPojo != null && algorithmPojo.getResult() != null && algorithmPojo.getResult() == 1) {
status = 2; // status = 2;
} // }
if (stock == null) { if (stock == null) {
stock = Stock.builder() stock = Stock.builder()
.checkNum(plcCmdInfo.getOrderNum()) .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" productDoc: "C:/Users/昊天/Desktop/新建文本文档 (3).txt"
smokeBoxType: smokeBoxType:
- type: 1 - type: 125425
name: 古20 name: 古20
code: "125425" code: "125425"
#用于视觉的一层个数 #用于视觉的一层个数

Loading…
Cancel
Save