清空盘点

行列为0不盘点
yashichuangneng-qsl
LAPTOP-S9HJSOEB\昊天 2 years ago
parent d969b83a26
commit 1e31c82e7e

@ -43,6 +43,13 @@ public class StockController {
return Result.success(); return Result.success();
} }
@PostMapping("/trStockTable")
@ApiOperation(value = "清空盘点")
public Result trStockTable() {
stockService.trStockTable();
return Result.success();
}
@GetMapping("/export/model") @GetMapping("/export/model")
@ApiOperation(value = "库存模板下载") @ApiOperation(value = "库存模板下载")
public void download(HttpServletResponse response) throws IOException { public void download(HttpServletResponse response) throws IOException {

@ -422,5 +422,7 @@ public class StockService {
} }
public void trStockTable() {
stockMapper.truncate();
}
} }

@ -169,6 +169,7 @@ public class KsecDecoder extends DelimiterBasedFrameDecoder {
} }
} else if (Cmd.E.name().equals(ksecInfo.getType())) { } else if (Cmd.E.name().equals(ksecInfo.getType())) {
if(!(ksecInfo.getData().getFromColumn()== 0 && ksecInfo.getData().getFromRow() == 0)) {
//盘点 //盘点
//转球机到盘点位 然后拍照 //转球机到盘点位 然后拍照
tcpLogger.info(body); tcpLogger.info(body);
@ -187,6 +188,7 @@ public class KsecDecoder extends DelimiterBasedFrameDecoder {
} else { } else {
ksecInfo.getData().setAckStatus(0); ksecInfo.getData().setAckStatus(0);
} }
}
ctx.channel().writeAndFlush(ksecInfo); ctx.channel().writeAndFlush(ksecInfo);
} }
//找到该货位的最后一张照片与现在的照片比照 //找到该货位的最后一张照片与现在的照片比照

@ -7,14 +7,14 @@ spring:
maxWait: 60000 maxWait: 60000
minEvictableIdleTimeMillis: 300000 minEvictableIdleTimeMillis: 300000
minIdle: 15 minIdle: 15
password: Leaper@123 password: root
poolPreparedStatements: true poolPreparedStatements: true
testOnBorrow: true testOnBorrow: true
testOnReturn: false testOnReturn: false
testWhileIdle: false testWhileIdle: false
timeBetweenEvictionRunsMillis: 60000 timeBetweenEvictionRunsMillis: 60000
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.77.91:3306/lia_duoji?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 url: jdbc:mysql://127.0.0.1:3306/lia_duoji?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
username: root username: root
validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1 FROM DUAL
# --------本服务端口号 # --------本服务端口号

Loading…
Cancel
Save