feat(attendance): 添加考勤检查数据更新功能

- 在 IWmsAttendanceCheckService 中新增 updateByBo 方法
- 扩展 WmsAttendanceCheckBo 类继承 BaseEntity 并添加多个考勤字段
- 添加考勤状态、迟到早退分钟数、扣款金额等相关属性
- 在控制器中实现 PUT 请求的编辑接口
- 添加 EditGroup 验证组支持
- 实现服务层 updateByBo 方法进行数据库更新操作
This commit is contained in:
2026-05-15 13:13:34 +08:00
parent 0e7048f043
commit c5c478b1e9
4 changed files with 40 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import com.klp.common.core.controller.BaseController;
import com.klp.common.core.domain.PageQuery;
import com.klp.common.core.domain.R;
import com.klp.common.core.page.TableDataInfo;
import com.klp.common.core.validate.EditGroup;
import com.klp.common.enums.BusinessType;
import com.klp.domain.bo.AttendanceCheckBo;
import com.klp.domain.bo.WmsAttendanceCheckBo;
@@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -55,4 +57,10 @@ public class WmsAttendanceCheckController extends BaseController {
iWmsAttendanceCheckService.checkAttendance(bo);
return R.ok();
}
@Log(title = "考勤比对", businessType = BusinessType.UPDATE)
@PutMapping
public R<Void> edit(@Validated(EditGroup.class) @RequestBody WmsAttendanceCheckBo bo) {
return toAjax(iWmsAttendanceCheckService.updateByBo(bo));
}
}