opt:优化

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-04-26 09:08:47 +08:00
parent 3b60fb6f3a
commit bbdb26cb43

View File

@@ -297,10 +297,10 @@ public class FeedingServiceImpl implements FeedingService {
if (cool_jo.getString("product_area").equals("B1") && cool_jo.getString("point_type").equals("1")) {
JSONObject cut_jo = WQLObject.getWQLObject("st_ivt_cutpointivt").query("full_point_code = '" + next_point_code + "' and product_area='"+cool_jo.getString("product_area")+"'").uniqueResult(0);
if (ObjectUtil.isEmpty(cut_jo)) {
cut_jo = WQLObject.getWQLObject("st_ivt_coolpointivt").query("full_point_code = '" + next_point_code + "' and product_area='"+cool_jo.getString("product_area")+"'").uniqueResult(0);
cut_jo = WQLObject.getWQLObject("st_ivt_coolpointivt").query("full_point_code = '" + next_point_code + "' and product_area='"+cool_jo.getString("product_area")+"' and point_type in ('1','6')").uniqueResult(0);
}
if (ObjectUtil.isEmpty(cut_jo)) {
throw new BadRequestException("请扫描B1车间分切机满轴点位分切缓存位满轴点位做为终点!");
throw new BadRequestException("请扫描B1车间分切机满轴点位分切缓存位满轴点位、生箔冷却缓存位满轴点位做为终点!");
}
//创建AGV任务
JSONObject jo = new JSONObject();