From 881957adc051ee63bcdc98ebcb0b04a5e1cf802a Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期一, 21 八月 2023 15:17:47 +0800 Subject: [PATCH] okhttp 连接后close --- src/main/java/com/zy/asrs/service/impl/WrkChargeServiceImpl.java | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 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 5ce66bd..6019518 100644 --- a/src/main/java/com/zy/asrs/service/impl/WrkChargeServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/WrkChargeServiceImpl.java @@ -10,13 +10,12 @@ public class WrkChargeServiceImpl extends ServiceImpl<WrkChargeMapper, WrkCharge> implements WrkChargeService { @Override - public WrkCharge selectWorking(Integer steNo, String memo) { - switch (memo) { - 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