|
@@ -23,6 +23,7 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.redis.RedisCache;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.spring.SpringUtils;
|
|
|
+import com.ruoyi.hard.modbus.tcp.AutoDoorClient;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -61,6 +62,8 @@ public class WcsTaskServiceImpl implements IWcsTaskService {
|
|
|
private IInvLotAttService iInvLotAttService;
|
|
|
@Autowired
|
|
|
private IAmsTaskService iAmsTaskService;
|
|
|
+ @Autowired
|
|
|
+ private AutoDoorClient autoDoorClient;
|
|
|
|
|
|
//任务状态翻译
|
|
|
private String codeConvert(int code) {
|
|
@@ -360,6 +363,10 @@ public class WcsTaskServiceImpl implements IWcsTaskService {
|
|
|
log.info("不能重复取货," + taskNo);
|
|
|
return;
|
|
|
}
|
|
|
+ // 如果是接驳位(模具-东)的点位取货完成 反馈关闭靠墙第二层自动门
|
|
|
+ if (wcsTask.getLocationFrom().equals(Constant.LOC_MJ_EAST.toString())) {
|
|
|
+ autoDoorClient.sendClose(AutoDoorClient.AUTO_DOOR_NO.C);
|
|
|
+ }
|
|
|
// 解锁起始库位
|
|
|
baseLocationInfoService.unLockLocationStockStatus(Long.parseLong(wcsTask.getLocationFrom())
|
|
|
, Constant.WAREHOUSE_ID, updateBy);
|