feat(wms/attendance): 新增排班批量修改功能
- 新增BatchUpdateScheduleBo类,用于接收批量修改排班的请求参数 - 在IWmsAttendanceScheduleService接口中定义batchUpdateSchedule方法 - 在WmsAttendanceScheduleController中新增批量修改排班的API接口 - 在WmsAttendanceScheduleServiceImpl中实现批量修改排班逻辑,支持更新已有记录和插入新记录
This commit is contained in:
@@ -20,6 +20,7 @@ import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.domain.vo.WmsAttendanceScheduleVo;
|
||||
import com.klp.domain.bo.WmsAttendanceScheduleBo;
|
||||
import com.klp.domain.bo.GenerateScheduleBo;
|
||||
import com.klp.domain.bo.BatchUpdateScheduleBo;
|
||||
import com.klp.service.IWmsAttendanceScheduleService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
@@ -107,4 +108,15 @@ public class WmsAttendanceScheduleController extends BaseController {
|
||||
iWmsAttendanceScheduleService.generateSchedule(boList);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改指定日期多个员工的班次
|
||||
*/
|
||||
@Log(title = "排班批量修改", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping("/batchUpdate")
|
||||
public R<Void> batchUpdateSchedule(@Validated @RequestBody BatchUpdateScheduleBo bo) {
|
||||
iWmsAttendanceScheduleService.batchUpdateSchedule(bo);
|
||||
return R.ok();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user