fix:入烘箱时间校验

This commit is contained in:
zhouz
2025-10-15 09:36:58 +08:00
parent 515a182f89
commit 33f905dab1
3 changed files with 11 additions and 3 deletions

View File

@@ -81,6 +81,13 @@ public class VehicleTwoController {
return new ResponseEntity<>(bstIvtPackageInfoIvtService.update(whereJson), HttpStatus.OK);
}
@PostMapping("/getPointInfo")
@Log("获取装箱区点位子卷信息")
@SaIgnore
public ResponseEntity<Object> getPointInfo(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(bstIvtPackageInfoIvtService.getOne(new LambdaQueryWrapper<BstIvtPackageinfoivt>().eq(BstIvtPackageinfoivt::getPoint_code, whereJson.getString("point_code"))), HttpStatus.OK);
}
@PostMapping("/toEndSub")
@Log("二期子卷包装解绑")
@SaIgnore

View File

@@ -1053,7 +1053,8 @@ public class BstIvtPackageinfoivtServiceImpl extends ServiceImpl<BstIvtPackagein
}
if (dtoList.size() > 1) {
result.put("status", org.springframework.http.HttpStatus.BAD_REQUEST.value());
result.put("message", "存在多个相同子卷号或点位信息有误,请核对是否存在!");
String collect = dtoList.stream().map(a -> a.getPoint_code()).collect(Collectors.joining(","));
result.put("message", "存在多个相同子卷号或点位信息有误,请核对是否存在!重复点位信息【"+collect+"");
return result;
}
BstIvtPackageinfoivt packageinfoivt = dtoList.get(0);

View File

@@ -79,10 +79,10 @@ public class BakingServiceImpl implements BakingService {
String temperature = whereJson.getString("temperature"); // 温度
String hours = whereJson.getString("hours"); // 时间
String point_code1 = whereJson.getString("point_code"); // 点位
if (SlitterTaskUtil.isNumeric(hours)) {
if (!SlitterTaskUtil.isNumeric(hours)) {
throw new BadRequestException("请输入合法的时间!");
}
if (SlitterTaskUtil.isNumeric(temperature)) {
if (!SlitterTaskUtil.isNumeric(temperature)) {
throw new BadRequestException("请输入合法的温度!");
}
//查询该点位是否存在未完成的任务