整排排满不切换下一排

This commit is contained in:
2023-02-01 09:51:44 +08:00
parent 80406c1813
commit 01fa735c4e
3 changed files with 6 additions and 3 deletions

View File

@@ -230,10 +230,10 @@ public class GjxSendMaterialTask extends AbstractAcsTask {
Integer block_num = json1.getInteger("block_num");
Integer col_num = json1.getInteger("col_num");
Integer row_num = json1.getInteger("row_num");
if (col_num != 1) {// 物料位在第一个位置说明已经叠满了
if (col_num != 1) {
// 因为找到的是对应相同的物料点,所以是下一个位置
JSONObject firstRow = pointTab.query("block_num = '" + block_num + "' and row_num = '" + row_num + "' and lock_type = '1' and point_status = '1' and is_used = '1' and is_delete = '0'", "col_num desc").uniqueResult(0); // and col_num ='" + (col_num - 1) + "'
if (ObjectUtil.isEmpty(firstRow)) throw new BadRequestException("数据错误,请校验!");
// if (ObjectUtil.isEmpty(firstRow)) throw new BadRequestException("数据错误,请校验!");
taskObj.put("point_code2", firstRow.getString("point_code"));
taskObj.put("update_time", DateUtil.now());
taskObj.put("task_status", TaskStatusEnum.START_AND_POINT.getCode());

View File

@@ -57,7 +57,7 @@
AND is_delete = '0'
AND lock_type = '1'
AND point_status = '3'
and col_num>=1
AND col_num>1
OPTION 输入.material_id <> ""
p.material_id = 输入.material_id
ENDOPTION
@@ -67,6 +67,7 @@
OPTION 输入.vehicle_type <> ""
p.can_vehicle_type like "%" 输入.vehicle_type "%"
ENDOPTION
AND '3' <> (SELECT p2.point_status FROM SCH_BASE_Point p2 WHERE p2.block_num = p.block_num AND p2.row_num = p.row_num AND p2.col_num = '1')
ORDER BY block_num,row_num,col_num
ENDSELECT
ENDQUERY

View File

@@ -19,6 +19,8 @@ spring:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
enable_lazy_load_no_trans: true
main:
allow-bean-definition-overriding: true
task:
pool:
# 核心线程池大小