From 25c69020ee46b88cda22f56631c4fdb149d211cd Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期二, 16 四月 2024 09:32:07 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java index efef568..56a428b 100644 --- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java +++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java @@ -5,12 +5,12 @@ import com.zy.asrs.framework.exception.CoolException; import com.zy.asrs.wcs.core.model.enums.DeviceCtgType; import com.zy.asrs.wcs.core.model.enums.MotionStsType; -import com.zy.asrs.wcs.core.service.DeviceCtgService; import com.zy.asrs.wcs.core.mapper.MotionMapper; import com.zy.asrs.wcs.core.entity.Motion; import com.zy.asrs.wcs.core.service.MotionService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.zy.asrs.wcs.core.service.MotionStsService; +import com.zy.asrs.wcs.rcs.service.DeviceTypeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -21,7 +21,7 @@ public class MotionServiceImpl extends ServiceImpl<MotionMapper, Motion> implements MotionService { @Autowired - private DeviceCtgService deviceCtgService; + private DeviceTypeService deviceTypeService; @Autowired private MotionStsService motionStsService; @@ -29,7 +29,7 @@ public List<Motion> selectUnCompleteByUuidAndDeviceCtg(String uuid, DeviceCtgType deviceCtgType) { return this.list(new LambdaQueryWrapper<Motion>() .eq(Motion::getUuid, uuid) - .eq(Motion::getDeviceCtg, deviceCtgService.selectByFlag(deviceCtgType.toString()).getId()) + .eq(Motion::getDeviceCtg, deviceTypeService.selectByFlag(deviceCtgType.toString()).getId()) .lt(Motion::getMotionSts, motionStsService.selectByFlag(MotionStsType.COMPLETE.toString()).getId()) .orderByDesc(Motion::getPriority) ); @@ -81,7 +81,7 @@ int i = motionList.size(); for (Motion motion : motionList) { motion.setPriority(i); - motion.setWrkNo(taskNo); + motion.setTaskNo(taskNo); motion.setUuid(uuid); if (!this.save(motion)) { throw new CoolException(JSON.toJSONString(motion) + "鍔ㄤ綔淇濆瓨澶辫触"); -- Gitblit v1.9.1