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},