rev:修改
This commit is contained in:
@@ -158,6 +158,7 @@ public class RobotArmDeviceDriver extends AbstractOpcDeviceDriver implements Dev
|
||||
*/
|
||||
public void executeTask() {
|
||||
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue();
|
||||
String hasHk = paramService.findByCode(AcsConfig.HAS_HK).getValue();
|
||||
|
||||
JSONObject param = new JSONObject();
|
||||
// 申请叫料任务
|
||||
@@ -168,7 +169,7 @@ public class RobotArmDeviceDriver extends AbstractOpcDeviceDriver implements Dev
|
||||
.eq(Task::getIs_delete, "0")
|
||||
.in(Task::getTask_status, "0", "1")
|
||||
);
|
||||
if (ObjectUtil.isEmpty(list) && "1".equals(hasWms)) {
|
||||
if (ObjectUtil.isEmpty(list) && "1".equals(hasWms) && "1".equals(hasHk)) {
|
||||
// 调用上位接口
|
||||
param.put("device_code", devicecode);
|
||||
param.put("type", "2");
|
||||
@@ -190,7 +191,7 @@ public class RobotArmDeviceDriver extends AbstractOpcDeviceDriver implements Dev
|
||||
.eq(Task::getIs_delete, "0")
|
||||
.in(Task::getTask_status, "0", "1")
|
||||
);
|
||||
if (ObjectUtil.isEmpty(list) && "1".equals(hasWms)) {
|
||||
if (ObjectUtil.isEmpty(list) && "1".equals(hasWms) && "1".equals(hasHk)) {
|
||||
// 调用上位接口
|
||||
param.put("device_code", devicecode);
|
||||
param.put("type", "2");
|
||||
|
||||
Reference in New Issue
Block a user