更改方法名称
This commit is contained in:
parent
a9f475fcff
commit
468bd0b122
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -149,5 +149,5 @@ public interface IWorkerInfoService extends IService<WorkerInfo> {
|
||||
*/
|
||||
void updateScoreSendAuth(HashMap<String, Object> map);
|
||||
|
||||
void edit(WorkerInfo workerInfo);
|
||||
void updateWorkerById(WorkerInfo workerInfo);
|
||||
}
|
||||
|
||||
@ -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("未找到该记录");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user