|
@@ -38,6 +38,8 @@ import com.github.zuihou.common.constant.ParameterKey;
|
|
|
import com.github.zuihou.common.util.StringUtil;
|
|
|
import com.github.zuihou.database.mybatis.conditions.Wraps;
|
|
|
import com.github.zuihou.database.mybatis.conditions.query.QueryWrap;
|
|
|
+import com.github.zuihou.tenant.entity.Productionresource;
|
|
|
+import com.github.zuihou.tenant.service.ProductionresourceService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -110,6 +112,9 @@ public class ToolRobotNodeServiceImpl implements ToolNodeOperationService {
|
|
|
@Autowired
|
|
|
private ProductionresourcePositionMapper productionresourcePositionMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ProductionresourceService productionresourceService;
|
|
|
+
|
|
|
@Override
|
|
|
public void initResource(ToolTaskNode taskNode, ToolTask task, Map dataMap) {
|
|
|
String moduleName = dataMap.get("moduleName") == null ? "" : dataMap.get("moduleName").toString();
|
|
@@ -420,18 +425,18 @@ public class ToolRobotNodeServiceImpl implements ToolNodeOperationService {
|
|
|
|
|
|
|
|
|
// 根据起始点位,获取点位属于的类型
|
|
|
- StorgeType locationStorgeType = null;
|
|
|
- StorgeType ltargetStorgeType = null;
|
|
|
+ Productionresource locationStorgeType = null;
|
|
|
+ Productionresource ltargetStorgeType = null;
|
|
|
if(!startStore.getPointId().isEmpty()){
|
|
|
- locationStorgeType = storgeTypeService.findOneByPointId(startStore.getPointId());
|
|
|
+ locationStorgeType = productionresourceService.findOneByPointId(startStore.getPointId());
|
|
|
}
|
|
|
if(!tartgetToolStorge.getPointId().isEmpty()){
|
|
|
- ltargetStorgeType = storgeTypeService.findOneByPointId(tartgetToolStorge.getPointId());
|
|
|
+ ltargetStorgeType = productionresourceService.findOneByPointId(tartgetToolStorge.getPointId());
|
|
|
}
|
|
|
|
|
|
Map locationMap = new HashMap();
|
|
|
- locationMap.put("locationArea", locationStorgeType==null?"": locationStorgeType.getStorgeType()); //当前区域
|
|
|
- locationMap.put("destLocationArea", ltargetStorgeType ==null?"": ltargetStorgeType.getStorgeType()); //目的区域
|
|
|
+ locationMap.put("locationDevice", locationStorgeType==null?"": locationStorgeType.getCode()); //当前区域
|
|
|
+ locationMap.put("destLocationDevice", ltargetStorgeType ==null?"": ltargetStorgeType.getCode()); //目的区域
|
|
|
locationMap.put("location", startStore.getPointId());
|
|
|
locationMap.put("destLocation", tartgetToolStorge.getPointId());
|
|
|
dataMap.put("data", locationMap);
|