更改方法名称

This commit is contained in:
guoshengxiong 2024-05-21 15:46:50 +08:00
parent a9f475fcff
commit 468bd0b122
3 changed files with 4 additions and 4 deletions

View File

@ -81,8 +81,8 @@ public class WorkerInfoController {
@OperLog(operModul = "劳务管理", operType = "编辑劳务人员", operDesc = "编辑劳务人员信息")
@ApiOperation(value = "编辑劳务人员信息", notes = "编辑劳务人员信息", httpMethod = "PUT")
@RequestMapping(method = {RequestMethod.POST, RequestMethod.PUT}, value = "/updateById")
public Result edit(@RequestBody WorkerInfo workerInfo) {
workerInfoService.edit(workerInfo);
public Result updateById(@RequestBody WorkerInfo workerInfo) {
workerInfoService.updateWorkerById(workerInfo);
return Result.ok();
}

View File

@ -149,5 +149,5 @@ public interface IWorkerInfoService extends IService<WorkerInfo> {
*/
void updateScoreSendAuth(HashMap<String, Object> map);
void edit(WorkerInfo workerInfo);
void updateWorkerById(WorkerInfo workerInfo);
}

View File

@ -2173,7 +2173,7 @@ public class WorkerInfoServiceImpl extends ServiceImpl<WorkerInfoMapper, WorkerI
}
@Override
public void edit(WorkerInfo workerInfo) {
public void updateWorkerById(WorkerInfo workerInfo) {
WorkerInfo old = baseMapper.selectById(workerInfo.getId());
if (old == null) {
throw new OpenAlertException("未找到该记录");