|
@@ -1,9 +1,7 @@
|
|
|
package com.zjugis.module.adm.service.staff;
|
|
|
|
|
|
-import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import com.zjugis.framework.common.pojo.PageResult;
|
|
|
import com.zjugis.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
import com.zjugis.framework.web.core.util.WebFrameworkUtils;
|
|
|
import com.zjugis.module.adm.controller.admin.staff.vo.records.RecordsPageReqVO;
|
|
@@ -48,4 +46,11 @@ public class RecordsServiceImpl implements RecordsService {
|
|
|
recordsMapper.update(staffRecordSDO, new LambdaQueryWrapperX<StaffRecordSDO>().eq(StaffRecordSDO::getId, vo.getId()));
|
|
|
return "更新成功";
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String generateNum() {
|
|
|
+ String staff = recordsMapper.selectLoginNum();
|
|
|
+ int intValue = Integer.parseInt(staff) + 1;
|
|
|
+ return String.format("%04d", intValue);
|
|
|
+ }
|
|
|
}
|