|
@ -21,6 +21,7 @@ import org.nl.wms.sch.tasks.PointUpdateUtil; |
|
|
import org.nl.wms.util.IdUtil; |
|
|
import org.nl.wms.util.IdUtil; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
@ -78,7 +79,8 @@ public class FjCallEmptyVehicleTask extends AbstractAcsTask { |
|
|
* @created 2019年4月17日 下午8:51:50 |
|
|
* @created 2019年4月17日 下午8:51:50 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void updateTaskStatus(JSONObject task, String status) { |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
|
public void updateTaskStatus(JSONObject task, String status) { |
|
|
WQLObject taskTab = WQLObject.getWQLObject("SCH_BASE_Task"); |
|
|
WQLObject taskTab = WQLObject.getWQLObject("SCH_BASE_Task"); |
|
|
WQLObject pointTab = WQLObject.getWQLObject("sch_base_point"); |
|
|
WQLObject pointTab = WQLObject.getWQLObject("sch_base_point"); |
|
|
WQLObject regionIoTab = WQLObject.getWQLObject("st_ivt_regionIO"); |
|
|
WQLObject regionIoTab = WQLObject.getWQLObject("st_ivt_regionIO"); |
|
@ -161,6 +163,7 @@ public class FjCallEmptyVehicleTask extends AbstractAcsTask { |
|
|
* @return 返回任务标识 |
|
|
* @return 返回任务标识 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public String createTask(JSONObject form) { |
|
|
public String createTask(JSONObject form) { |
|
|
WQLObject taskTab = WQLObject.getWQLObject("SCH_BASE_Task"); // 任务表
|
|
|
WQLObject taskTab = WQLObject.getWQLObject("SCH_BASE_Task"); // 任务表
|
|
|
WQLObject workOrderTab = WQLObject.getWQLObject("PDM_BD_WorkOrder"); // 生产工单表
|
|
|
WQLObject workOrderTab = WQLObject.getWQLObject("PDM_BD_WorkOrder"); // 生产工单表
|
|
@ -206,6 +209,7 @@ public class FjCallEmptyVehicleTask extends AbstractAcsTask { |
|
|
* @created 2020年6月12日 下午6:01:30 |
|
|
* @created 2020年6月12日 下午6:01:30 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void findStartPoint() { |
|
|
public void findStartPoint() { |
|
|
// 先找包装暂存区是否有半满托的,没有就呼叫空的木托盘
|
|
|
// 先找包装暂存区是否有半满托的,没有就呼叫空的木托盘
|
|
|
WQLObject taskTab = WQLObject.getWQLObject("SCH_BASE_Task"); // 任务表
|
|
|
WQLObject taskTab = WQLObject.getWQLObject("SCH_BASE_Task"); // 任务表
|
|
|