fix:套轴逻辑SQL优化
This commit is contained in:
@@ -553,7 +553,10 @@ public class FeedingServiceImpl implements FeedingService {
|
|||||||
//查询对应的分切点位是否存在
|
//查询对应的分切点位是否存在
|
||||||
JSONObject cut_jo = WQLObject.getWQLObject("st_ivt_cutpointivt").query("empty_point_code = '" + point_code + "'").uniqueResult(0);
|
JSONObject cut_jo = WQLObject.getWQLObject("st_ivt_cutpointivt").query("empty_point_code = '" + point_code + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(cut_jo)) {
|
if (ObjectUtil.isEmpty(cut_jo)) {
|
||||||
throw new BadRequestException("请输入或者扫码分切区域的空轴点位!");
|
cut_jo = WQLObject.getWQLObject("st_ivt_coolpointivt").query("empty_point_code = '" + point_code + "'").uniqueResult(0);
|
||||||
|
if (ObjectUtil.isEmpty(cut_jo)) {
|
||||||
|
throw new BadRequestException("请输入或者扫码分切区域的空轴点位!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (StrUtil.equals("01", cut_jo.getString("empty_point_status"))) {
|
if (StrUtil.equals("01", cut_jo.getString("empty_point_status"))) {
|
||||||
throw new BadRequestException("该点位库存状态不存在空轴!");
|
throw new BadRequestException("该点位库存状态不存在空轴!");
|
||||||
|
|||||||
Reference in New Issue
Block a user