From 062e185e77183e194135e426b60173c231e79a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E4=B8=89=E7=82=AE?= <15856818120@163.com> Date: Thu, 16 Oct 2025 14:27:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E4=B8=AA=E7=BB=9F=E8=AE=A1=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bonus/bmw/domain/vo/ProMonthTableRosterVo.java | 2 +- .../com/bonus/bmw/mapper/PmAttDeviceMapper.java | 3 +++ .../com/bonus/bmw/service/PmAttDeviceService.java | 13 +++++++++++++ .../bmw/service/impl/PmAttDeviceServiceImpl.java | 12 ++++++++++++ .../main/resources/mapper/bmw/PmAttDeviceMapper.xml | 2 ++ 5 files changed, 31 insertions(+), 1 deletion(-) diff --git a/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/domain/vo/ProMonthTableRosterVo.java b/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/domain/vo/ProMonthTableRosterVo.java index c74a52a..2c3a9fd 100644 --- a/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/domain/vo/ProMonthTableRosterVo.java +++ b/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/domain/vo/ProMonthTableRosterVo.java @@ -126,7 +126,7 @@ public class ProMonthTableRosterVo { /** *在岗情况 */ - @Excel(name = "在岗情况",sort = 13) + @Excel(name = "在岗情况",sort = 13,readConverterExp = "0=离岗,1=在岗") private String onDuty; /** diff --git a/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/mapper/PmAttDeviceMapper.java b/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/mapper/PmAttDeviceMapper.java index 434c928..4858dc0 100644 --- a/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/mapper/PmAttDeviceMapper.java +++ b/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/mapper/PmAttDeviceMapper.java @@ -14,6 +14,9 @@ public interface PmAttDeviceMapper { int updatePmAttDevice(PmAttDevice pmAttDevice); + /** + * 删除考勤机 + */ int delPmAttDevice(PmAttDevice pmAttDevice); void addPmAttDeviceHis(PmAttDevice pmAttDeviceOld); diff --git a/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/service/PmAttDeviceService.java b/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/service/PmAttDeviceService.java index 80b05c3..af7a3b0 100644 --- a/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/service/PmAttDeviceService.java +++ b/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/service/PmAttDeviceService.java @@ -6,11 +6,24 @@ import com.bonus.bmw.domain.vo.PmAttDeviceVo; import java.util.List; public interface PmAttDeviceService { + + /** + * 考勤机列表 + */ List selectPmAttDeviceList(PmAttDevice pmAttDevice); + /** + * 新增考勤机 + */ int addPmAttDevice(PmAttDevice pmAttDevice) throws Exception; + /** + * 解绑 + */ int updatePmAttDevice(PmAttDevice pmAttDevice) throws Exception; + /** + * 删除考勤机 + */ int delPmAttDevice(PmAttDevice pmAttDevice) throws Exception; } diff --git a/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/service/impl/PmAttDeviceServiceImpl.java b/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/service/impl/PmAttDeviceServiceImpl.java index 8664313..6a17188 100644 --- a/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/service/impl/PmAttDeviceServiceImpl.java +++ b/bonus-modules/bonus-bmw/src/main/java/com/bonus/bmw/service/impl/PmAttDeviceServiceImpl.java @@ -35,6 +35,9 @@ public class PmAttDeviceServiceImpl implements PmAttDeviceService { @Resource private RedisService redisService; + /** + * 考勤机列表 + */ @Override public List selectPmAttDeviceList(PmAttDevice pmAttDevice) { List pmAttDeviceVoList = pmAttDeviceMapper.selectPmAttDeviceList(pmAttDevice); @@ -48,6 +51,9 @@ public class PmAttDeviceServiceImpl implements PmAttDeviceService { return pmAttDeviceVoList; } + /** + * 新增考勤机 + */ @Override @Transactional public int addPmAttDevice(PmAttDevice pmAttDevice) throws Exception { @@ -77,6 +83,9 @@ public class PmAttDeviceServiceImpl implements PmAttDeviceService { return pmAttDeviceMapper.addPmAttDevice(pmAttDevice); } + /** + * 解绑 + */ @Override @Transactional public int updatePmAttDevice(PmAttDevice pmAttDevice) throws Exception { @@ -111,6 +120,9 @@ public class PmAttDeviceServiceImpl implements PmAttDeviceService { return pmAttDeviceMapper.updatePmAttDevice(pmAttDevice); } + /** + * 删除考勤机 + */ @Override public int delPmAttDevice(PmAttDevice pmAttDevice) throws Exception { return pmAttDeviceMapper.delPmAttDevice(pmAttDevice); diff --git a/bonus-modules/bonus-bmw/src/main/resources/mapper/bmw/PmAttDeviceMapper.xml b/bonus-modules/bonus-bmw/src/main/resources/mapper/bmw/PmAttDeviceMapper.xml index c89df3d..3cc4066 100644 --- a/bonus-modules/bonus-bmw/src/main/resources/mapper/bmw/PmAttDeviceMapper.xml +++ b/bonus-modules/bonus-bmw/src/main/resources/mapper/bmw/PmAttDeviceMapper.xml @@ -19,6 +19,8 @@ pro_id = #{proId}, update_time = #{updateTime}, update_user = #{updateUser}, + sub_id = #{subId}, + team_id = #{teamId}, serial_number = #{serialNumber},