From 7c7c26161435045bf3449a4e4436084eb2ee9d33 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期四, 13 七月 2023 14:49:25 +0800 Subject: [PATCH] #提升机数据更新 --- src/main/java/com/zy/asrs/service/impl/WrkChargeServiceImpl.java | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/WrkChargeServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkChargeServiceImpl.java index fd56583..6019518 100644 --- a/src/main/java/com/zy/asrs/service/impl/WrkChargeServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/WrkChargeServiceImpl.java @@ -4,20 +4,18 @@ import com.zy.asrs.entity.WrkCharge; import com.zy.asrs.mapper.WrkChargeMapper; import com.zy.asrs.service.WrkChargeService; -import com.zy.common.model.enums.WrkChargeType; import org.springframework.stereotype.Service; @Service("wrkChargeService") public class WrkChargeServiceImpl extends ServiceImpl<WrkChargeMapper, WrkCharge> implements WrkChargeService { @Override - public WrkCharge selectWorking(Integer steNo, WrkChargeType type) { - switch (type) { - case charge: - return this.baseMapper.selectWorkingOfCharge(steNo); - case reset: - return this.baseMapper.selectWorkingOfReset(steNo); - } - return null; + public WrkCharge selectWorking(Integer shuttleNo) { + return this.baseMapper.selectWorkingOfCharge(shuttleNo); + } + + @Override + public WrkCharge selectWorkingOfCharge(Integer charge) { + return this.baseMapper.selectWorkingOfCharge(charge); } } -- Gitblit v1.9.1