代码更新
This commit is contained in:
@@ -68,10 +68,10 @@ public class PointDto implements Serializable {
|
||||
private BigDecimal block_num;
|
||||
|
||||
/** 排 */
|
||||
private BigDecimal row_num;
|
||||
private BigDecimal col_num;
|
||||
|
||||
/** 列 */
|
||||
private BigDecimal col_num;
|
||||
private BigDecimal row_num;
|
||||
|
||||
/** 层 */
|
||||
private BigDecimal layer_num;
|
||||
@@ -111,4 +111,4 @@ public class PointDto implements Serializable {
|
||||
|
||||
/** 修改时间 */
|
||||
private String update_time;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,12 +63,12 @@ public class GjxCallEmpVehicleTask extends AbstractAcsTask {
|
||||
if (StrUtil.equals(jsonEnd.getString("region_id"), RegionTypeEnum.DPJQB.getId())) {
|
||||
JSONObject jsonStart = pointTab.query("point_code = '" + point_code1 + "'").uniqueResult(0);
|
||||
// 判断此起点是否是等待点
|
||||
if (!StrUtil.equals(jsonStart.getString("row_num"), "9")) {
|
||||
if (!StrUtil.equals(jsonStart.getString("col_num"), "9")) {
|
||||
// 如果不是等待点更新等待点状态
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + jsonStart.getString("region_id") +
|
||||
"' and block_num = '" + jsonStart.getString("block_num") +
|
||||
"' and col_num = '" + jsonStart.getString("col_num") +
|
||||
"' and row_num = '9'").uniqueResult(0);
|
||||
"' and row_num = '" + jsonStart.getString("row_num") +
|
||||
"' and col_num = '9'").uniqueResult(0);
|
||||
|
||||
jsonEmpWait.put("lock_type", "1");
|
||||
pointTab.update(jsonEmpWait);
|
||||
@@ -122,12 +122,12 @@ public class GjxCallEmpVehicleTask extends AbstractAcsTask {
|
||||
// 判断起点是不是养生A区空载具
|
||||
if (StrUtil.equals(jsonStart.getString("region_id"), RegionTypeEnum.YSAQKTPQ01.getId())) {
|
||||
// 判断此起点是否是等待点
|
||||
if (!StrUtil.equals(jsonStart.getString("row_num"), "9")) {
|
||||
if (!StrUtil.equals(jsonStart.getString("col_num"), "9")) {
|
||||
// 如果不是等待点更新等待点状态
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + jsonStart.getString("region_id") +
|
||||
"' and block_num = '" + jsonStart.getString("block_num") +
|
||||
"' and col_num = '" + jsonStart.getString("col_num") +
|
||||
"' and row_num = '9'").uniqueResult(0);
|
||||
"' and row_num = '" + jsonStart.getString("row_num") +
|
||||
"' and col_num = '9'").uniqueResult(0);
|
||||
|
||||
jsonEmpWait.put("lock_type", "1");
|
||||
pointTab.update(jsonEmpWait);
|
||||
@@ -233,13 +233,13 @@ public class GjxCallEmpVehicleTask extends AbstractAcsTask {
|
||||
} else {
|
||||
// 空托盘暂存区没有就到养生A区找: 先找到出库等待点
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() +
|
||||
"' and row_num = '9' and can_vehicle_type = '" + vehicle_type +
|
||||
"' and col_num = '9' and can_vehicle_type = '" + vehicle_type +
|
||||
"' and is_used = '1' and is_delete = '0'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonEmpWait)) continue;
|
||||
|
||||
JSONObject jsonStartPoint = pointTab.query("region_id = '" + jsonEmpWait.getString("region_id") +
|
||||
"' and block_num = '" + jsonEmpWait.getString("block_num") +
|
||||
"' and col_num = '" + jsonEmpWait.getString("col_num") +
|
||||
"' and row_num = '" + jsonEmpWait.getString("row_num") +
|
||||
"' and point_status = '2' and lock_type = '1' order by out_empty_seq DESC").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonStartPoint)) continue;
|
||||
|
||||
|
||||
@@ -59,12 +59,12 @@ public class YqxCallEmpVehicleTask extends AbstractAcsTask {
|
||||
if (StrUtil.equals(jsonEnd.getString("region_id"), RegionTypeEnum.DPJQB.getId())) {
|
||||
JSONObject jsonStart = pointTab.query("point_code = '" + point_code1 + "'").uniqueResult(0);
|
||||
// 判断此起点是否是等待点
|
||||
if (!StrUtil.equals(jsonStart.getString("row_num"), "9")) {
|
||||
if (!StrUtil.equals(jsonStart.getString("col_num"), "9")) {
|
||||
// 如果不是等待点更新等待点状态
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + jsonStart.getString("region_id") +
|
||||
"' and block_num = '" + jsonStart.getString("block_num") +
|
||||
"' and col_num = '" + jsonStart.getString("col_num") +
|
||||
"' and row_num = '9'").uniqueResult(0);
|
||||
"' and row_num = '" + jsonStart.getString("row_num") +
|
||||
"' and col_num = '9'").uniqueResult(0);
|
||||
|
||||
jsonEmpWait.put("lock_type", "1");
|
||||
pointTab.update(jsonEmpWait);
|
||||
@@ -118,12 +118,12 @@ public class YqxCallEmpVehicleTask extends AbstractAcsTask {
|
||||
// 判断起点是不是养生A区空载具
|
||||
if (StrUtil.equals(jsonStart.getString("region_id"), RegionTypeEnum.YSAQKTPQ01.getId())) {
|
||||
// 判断此起点是否是等待点
|
||||
if (!StrUtil.equals(jsonStart.getString("row_num"), "9")) {
|
||||
if (!StrUtil.equals(jsonStart.getString("col_num"), "9")) {
|
||||
// 如果不是等待点更新等待点状态
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + jsonStart.getString("region_id") +
|
||||
"' and block_num = '" + jsonStart.getString("block_num") +
|
||||
"' and col_num = '" + jsonStart.getString("col_num") +
|
||||
"' and row_num = '9'").uniqueResult(0);
|
||||
"' and row_num = '" + jsonStart.getString("row_num") +
|
||||
"' and col_num = '9'").uniqueResult(0);
|
||||
|
||||
jsonEmpWait.put("lock_type", "1");
|
||||
pointTab.update(jsonEmpWait);
|
||||
@@ -241,13 +241,13 @@ public class YqxCallEmpVehicleTask extends AbstractAcsTask {
|
||||
} else {
|
||||
// 空托盘暂存区没有就到养生A区找: 先找到出库等待点
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() +
|
||||
"' and row_num = '9' and can_vehicle_type = '" + vehicle_type +
|
||||
"' and col_num = '9' and can_vehicle_type = '" + vehicle_type +
|
||||
"' and is_used = '1' and is_delete = '0'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonEmpWait)) continue;
|
||||
|
||||
JSONObject jsonStartPoint = pointTab.query("region_id = '" + jsonEmpWait.getString("region_id") +
|
||||
"' and block_num = '" + jsonEmpWait.getString("block_num") +
|
||||
"' and col_num = '" + jsonEmpWait.getString("col_num") +
|
||||
"' and row_num = '" + jsonEmpWait.getString("row_num") +
|
||||
"' and point_status = '2' and lock_type = '1' order by out_empty_seq DESC").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonStartPoint)) continue;
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
p.point_code,
|
||||
p.point_name,
|
||||
p.block_num,
|
||||
p.row_num,
|
||||
p.col_num
|
||||
p.col_num,
|
||||
p.row_num
|
||||
FROM
|
||||
ST_IVT_StructIvt ivt
|
||||
LEFT JOIN SCH_BASE_Point p on ivt.point_id = p.point_id
|
||||
@@ -65,7 +65,7 @@
|
||||
OPTION 输入.vehicle_type <> ""
|
||||
p.can_vehicle_type like 输入.vehicle_type
|
||||
ENDOPTION
|
||||
ORDER BY block_num,row_num desc,col_num
|
||||
ORDER BY block_num,col_num desc,row_num
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
@@ -276,13 +276,13 @@ public class HtSendEmpVehicleTask extends AbstractAcsTask {
|
||||
end_code = jsonZcwEnd.getString("point_code");
|
||||
} else {
|
||||
// 为空就去养生A区的等待位
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and row_num = '1' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").uniqueResult(0);
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and col_num = '1' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").uniqueResult(0);
|
||||
|
||||
if (ObjectUtil.isNotEmpty(jsonEmpWait)) {
|
||||
// 判断是否有任务
|
||||
boolean is_point = this.isTask(jsonEmpWait.getString("point_code"));
|
||||
if (is_point) {
|
||||
JSONArray jsonEmpArr = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and col_num = '" + jsonEmpWait.getString("col_num") + "' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").getResultJSONArray(0);
|
||||
JSONArray jsonEmpArr = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and row_num = '" + jsonEmpWait.getString("row_num") + "' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonEmpArr)) end_code = jsonEmpWait.getString("point_code");
|
||||
}
|
||||
}
|
||||
@@ -295,13 +295,13 @@ public class HtSendEmpVehicleTask extends AbstractAcsTask {
|
||||
end_code = jsonZcwEnd.getString("point_code");
|
||||
} else {
|
||||
// 为空就去养生A区的等待位
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and row_num = '1' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").uniqueResult(0);
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and col_num = '1' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").uniqueResult(0);
|
||||
|
||||
if (ObjectUtil.isNotEmpty(jsonEmpWait)) {
|
||||
// 判断是否有任务
|
||||
boolean is_point = this.isTask(jsonEmpWait.getString("point_code"));
|
||||
if (is_point) {
|
||||
JSONArray jsonEmpArr = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and col_num = '" + jsonEmpWait.getString("col_num") + "' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").getResultJSONArray(0);
|
||||
JSONArray jsonEmpArr = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and row_num = '" + jsonEmpWait.getString("row_num") + "' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonEmpArr)) end_code = jsonEmpWait.getString("point_code");
|
||||
}
|
||||
}
|
||||
@@ -353,7 +353,7 @@ public class HtSendEmpVehicleTask extends AbstractAcsTask {
|
||||
// 根据 区域、块、列找到第一个有物料的货位
|
||||
JSONObject jsonOnePoint = pointTab.query("region_id = '" + jsonPoint2.getString("region_id") +
|
||||
"' and block_num = '" + jsonPoint2.getString("block_num") +
|
||||
"' and col_num = '" + jsonPoint2.getString("col_num") +
|
||||
"' and row_num = '" + jsonPoint2.getString("row_num") +
|
||||
"' and point_code <> '" + jsonPoint2.getString("point_code") +
|
||||
"' and point_status = '2' and lock_type = '1' order by in_empty_seq ASC").uniqueResult(0);
|
||||
|
||||
@@ -361,7 +361,7 @@ public class HtSendEmpVehicleTask extends AbstractAcsTask {
|
||||
if (ObjectUtil.isEmpty(jsonOnePoint)) {
|
||||
JSONObject jsonEmpPoint = pointTab.query("region_id = '" + jsonPoint2.getString("region_id") +
|
||||
"' and block_num = '" + jsonPoint2.getString("block_num") +
|
||||
"' and col_num = '" + jsonPoint2.getString("col_num") +
|
||||
"' and row_num = '" + jsonPoint2.getString("row_num") +
|
||||
"' and point_code <> '" + jsonPoint2.getString("point_code") +
|
||||
"' and point_status = '1' and lock_type = '1' order by in_empty_seq DESC").uniqueResult(0);
|
||||
|
||||
@@ -376,7 +376,7 @@ public class HtSendEmpVehicleTask extends AbstractAcsTask {
|
||||
|
||||
JSONObject jsonEmpPoint = pointTab.query("region_id = '" + jsonPoint2.getString("region_id") +
|
||||
"' and block_num = '" + jsonPoint2.getString("block_num") +
|
||||
"' and col_num = '" + jsonPoint2.getString("col_num") +
|
||||
"' and row_num = '" + jsonPoint2.getString("row_num") +
|
||||
"' and point_code <> '" + jsonPoint2.getString("point_code") +
|
||||
"' and in_empty_seq = '" + in_empty_seq +
|
||||
"' and point_status = '1' and lock_type = '1'").uniqueResult(0);
|
||||
|
||||
@@ -228,13 +228,13 @@ public class YqxSendEmpVehicleTask extends AbstractAcsTask {
|
||||
end_code = jsonZcwEnd.getString("point_code");
|
||||
} else {
|
||||
// 为空就去养生A区的等待位
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and row_num = '1' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").uniqueResult(0);
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and col_num = '1' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").uniqueResult(0);
|
||||
|
||||
if (ObjectUtil.isNotEmpty(jsonEmpWait)) {
|
||||
// 判断是否有任务
|
||||
boolean is_point = this.isTask(jsonEmpWait.getString("point_code"));
|
||||
if (is_point) {
|
||||
JSONArray jsonEmpArr = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and col_num = '" + jsonEmpWait.getString("col_num") + "' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").getResultJSONArray(0);
|
||||
JSONArray jsonEmpArr = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and row_num = '" + jsonEmpWait.getString("row_num") + "' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonEmpArr)) end_code = jsonEmpWait.getString("point_code");
|
||||
}
|
||||
}
|
||||
@@ -247,13 +247,13 @@ public class YqxSendEmpVehicleTask extends AbstractAcsTask {
|
||||
end_code = jsonZcwEnd.getString("point_code");
|
||||
} else {
|
||||
// 为空就去养生A区的等待位
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and row_num = '1' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").uniqueResult(0);
|
||||
JSONObject jsonEmpWait = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and col_num = '1' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").uniqueResult(0);
|
||||
|
||||
if (ObjectUtil.isNotEmpty(jsonEmpWait)) {
|
||||
// 判断是否有任务
|
||||
boolean is_point = this.isTask(jsonEmpWait.getString("point_code"));
|
||||
if (is_point) {
|
||||
JSONArray jsonEmpArr = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and col_num = '" + jsonEmpWait.getString("col_num") + "' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").getResultJSONArray(0);
|
||||
JSONArray jsonEmpArr = pointTab.query("region_id = '" + RegionTypeEnum.YSAQKTPQ01.getId() + "' and row_num = '" + jsonEmpWait.getString("row_num") + "' and can_vehicle_type = '" + vehicle_type + "' and lock_type = '1' and is_used = '1' and is_delete = '0' and point_status = '1'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonEmpArr)) end_code = jsonEmpWait.getString("point_code");
|
||||
}
|
||||
}
|
||||
@@ -305,7 +305,7 @@ public class YqxSendEmpVehicleTask extends AbstractAcsTask {
|
||||
// 根据 区域、块、列找到第一个有物料的货位
|
||||
JSONObject jsonOnePoint = pointTab.query("region_id = '" + jsonPoint2.getString("region_id") +
|
||||
"' and block_num = '" + jsonPoint2.getString("block_num") +
|
||||
"' and col_num = '" + jsonPoint2.getString("col_num") +
|
||||
"' and row_num = '" + jsonPoint2.getString("row_num") +
|
||||
"' and point_code <> '" + jsonPoint2.getString("point_code") +
|
||||
"' and point_status = '2' and lock_type = '1' order by in_empty_seq ASC").uniqueResult(0);
|
||||
|
||||
@@ -313,7 +313,7 @@ public class YqxSendEmpVehicleTask extends AbstractAcsTask {
|
||||
if (ObjectUtil.isEmpty(jsonOnePoint)) {
|
||||
JSONObject jsonEmpPoint = pointTab.query("region_id = '" + jsonPoint2.getString("region_id") +
|
||||
"' and block_num = '" + jsonPoint2.getString("block_num") +
|
||||
"' and col_num = '" + jsonPoint2.getString("col_num") +
|
||||
"' and row_num = '" + jsonPoint2.getString("row_num") +
|
||||
"' and point_code <> '" + jsonPoint2.getString("point_code") +
|
||||
"' and point_status = '1' and lock_type = '1' order by in_empty_seq DESC").uniqueResult(0);
|
||||
|
||||
@@ -328,7 +328,7 @@ public class YqxSendEmpVehicleTask extends AbstractAcsTask {
|
||||
|
||||
JSONObject jsonEmpPoint = pointTab.query("region_id = '" + jsonPoint2.getString("region_id") +
|
||||
"' and block_num = '" + jsonPoint2.getString("block_num") +
|
||||
"' and col_num = '" + jsonPoint2.getString("col_num") +
|
||||
"' and row_num = '" + jsonPoint2.getString("row_num") +
|
||||
"' and point_code <> '" + jsonPoint2.getString("point_code") +
|
||||
"' and in_empty_seq = '" + in_empty_seq +
|
||||
"' and point_status = '1' and lock_type = '1'").uniqueResult(0);
|
||||
|
||||
@@ -183,7 +183,7 @@ public class GjxSendMaterialTask extends AbstractAcsTask {
|
||||
if (ObjectUtil.isNotEmpty(taskIng) && ObjectUtil.isNotEmpty(json1)) {
|
||||
JSONObject point2 = pointTab.query("point_code = '" + taskIng.getString("point_code2") + "'").uniqueResult(0);
|
||||
if (StrUtil.equals(point2.getString("block_num"), json1.getString("block_num"))
|
||||
&& StrUtil.equals(point2.getString("col_num"), json1.getString("col_num"))) {
|
||||
&& StrUtil.equals(point2.getString("row_num"), json1.getString("row_num"))) {
|
||||
taskObj.put("remark", "相应列有AGV在工作,等待执行!");
|
||||
taskObj.put("update_time", DateUtil.now());
|
||||
taskTab.update(taskObj);
|
||||
@@ -194,10 +194,10 @@ public class GjxSendMaterialTask extends AbstractAcsTask {
|
||||
|
||||
if (ObjectUtil.isNotEmpty(json1)) {
|
||||
Integer block_num = json1.getInteger("block_num");
|
||||
Integer row_num = json1.getInteger("row_num");
|
||||
Integer col_num = json1.getInteger("col_num");
|
||||
Integer row_num = json1.getInteger("row_num");
|
||||
|
||||
JSONObject firstRow = pointTab.query("block_num = '" + block_num + "' and col_num = '" + col_num + "' and row_num ='" + (row_num - 1) + "'").uniqueResult(0);
|
||||
JSONObject firstRow = pointTab.query("block_num = '" + block_num + "' and row_num = '" + row_num + "' and col_num ='" + (col_num - 1) + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(firstRow)) throw new BadRequestException("数据错误,请校验!");
|
||||
taskObj.put("point_code2", firstRow.getString("point_code"));
|
||||
taskObj.put("update_time", DateUtil.now());
|
||||
@@ -208,7 +208,7 @@ public class GjxSendMaterialTask extends AbstractAcsTask {
|
||||
JSONObject point = new JSONObject();
|
||||
point.put("lock_type", "2");
|
||||
point.put("task_id", taskObj.getString("task_id"));
|
||||
pointTab.update(point, "block_num = '" + block_num + "' and col_num = '" + col_num + "' and row_num <= '" + (row_num - 1) + "'");
|
||||
pointTab.update(point, "block_num = '" + block_num + "' and row_num = '" + row_num + "' and col_num <= '" + (col_num - 1) + "'");
|
||||
|
||||
} else {//找空位入
|
||||
if (ObjectUtil.isNotEmpty(taskIngs) && taskIngs.size() > 1) {
|
||||
@@ -230,8 +230,8 @@ public class GjxSendMaterialTask extends AbstractAcsTask {
|
||||
taskTab.update(taskObj);
|
||||
} else {
|
||||
Integer block_num = json2.getInteger("block_num");
|
||||
Integer col_num = json2.getInteger("col_num");
|
||||
JSONObject firstRow = pointTab.query("block_num = '" + block_num + "' and col_num = '" + col_num + "' and row_num ='9'").uniqueResult(0);
|
||||
Integer row_num = json2.getInteger("row_num");
|
||||
JSONObject firstRow = pointTab.query("block_num = '" + block_num + "' and row_num = '" + row_num + "' and col_num ='9'").uniqueResult(0);
|
||||
taskObj.put("point_code2", firstRow.getString("point_code"));
|
||||
//二楼普通任务
|
||||
taskObj.put("task_status", TaskStatusEnum.START_AND_POINT.getCode());
|
||||
@@ -241,7 +241,7 @@ public class GjxSendMaterialTask extends AbstractAcsTask {
|
||||
JSONObject point = new JSONObject();
|
||||
point.put("lock_type", "2");
|
||||
point.put("task_id", taskObj.getString("task_id"));
|
||||
pointTab.update(point, "block_num = '" + block_num + "' and col_num = '" + col_num + "' and row_num <= '" + 9 + "'");
|
||||
pointTab.update(point, "block_num = '" + block_num + "' and row_num = '" + row_num + "' and col_num <= '" + 9 + "'");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
p.point_code,
|
||||
p.point_name,
|
||||
p.block_num,
|
||||
p.row_num,
|
||||
p.col_num
|
||||
p.col_num,
|
||||
p.row_num
|
||||
FROM
|
||||
SCH_BASE_Point p
|
||||
where
|
||||
@@ -57,7 +57,7 @@
|
||||
AND is_delete = '0'
|
||||
AND lock_type = '1'
|
||||
AND point_status = '3'
|
||||
and row_num>1
|
||||
and col_num>1
|
||||
OPTION 输入.material_id <> ""
|
||||
p.material_id = 输入.material_id
|
||||
ENDOPTION
|
||||
@@ -67,7 +67,7 @@
|
||||
OPTION 输入.vehicle_type <> ""
|
||||
p.can_vehicle_type like 输入.vehicle_type
|
||||
ENDOPTION
|
||||
ORDER BY block_num,col_num,row_num
|
||||
ORDER BY block_num,row_num,col_num
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
@@ -76,7 +76,7 @@
|
||||
QUERY
|
||||
SELECT
|
||||
block_num,
|
||||
col_num,
|
||||
row_num,
|
||||
COUNT(*) AS sum
|
||||
FROM
|
||||
SCH_BASE_Point p
|
||||
@@ -86,13 +86,12 @@
|
||||
AND region_code = 'YSQA01'
|
||||
AND point_status = '1'
|
||||
AND lock_type = '1'
|
||||
AND ( row_num = 1 OR row_num )
|
||||
OPTION 输入.vehicle_type <> ""
|
||||
p.can_vehicle_type like 输入.vehicle_type
|
||||
ENDOPTION
|
||||
GROUP BY block_num,col_num
|
||||
GROUP BY block_num,row_num
|
||||
HAVING sum = 9
|
||||
ORDER BY block_num,col_num
|
||||
ORDER BY block_num,row_num
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
OPTION 输入.region_code <> ""
|
||||
p.region_code = 输入.region_code
|
||||
ENDOPTION
|
||||
ORDER BY row_num,col_num,layer_num
|
||||
ORDER BY col_num,row_num,layer_num
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -53,8 +53,8 @@ public class StructivtServiceImpl implements StructivtService {
|
||||
map.put("material_code", "%" + whereJson.get("material_code") + "%");
|
||||
}
|
||||
map.put("layer_num", whereJson.get("layer_num"));
|
||||
map.put("row_num", whereJson.get("row_num"));
|
||||
map.put("col_num", whereJson.get("col_num"));
|
||||
map.put("row_num", whereJson.get("row_num"));
|
||||
map.put("is_used", whereJson.get("is_used"));
|
||||
map.put("lock_type", whereJson.get("lock_type"));
|
||||
map.put("point_status", whereJson.get("point_status"));
|
||||
|
||||
@@ -81,12 +81,12 @@
|
||||
OPTION 输入.layer_num <> ""
|
||||
point.layer_num = 输入.layer_num
|
||||
ENDOPTION
|
||||
OPTION 输入.row_num <> ""
|
||||
point.row_num = 输入.row_num
|
||||
ENDOPTION
|
||||
OPTION 输入.col_num <> ""
|
||||
point.col_num = 输入.col_num
|
||||
ENDOPTION
|
||||
OPTION 输入.row_num <> ""
|
||||
point.row_num = 输入.row_num
|
||||
ENDOPTION
|
||||
OPTION 输入.lock_type <> ""
|
||||
point.lock_type = 输入.lock_type
|
||||
ENDOPTION
|
||||
@@ -101,4 +101,4 @@
|
||||
ENDOPTION
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
Reference in New Issue
Block a user