refactor(oa): 修正更新提货锁方法参数命名
- 将 ISysOaWarehouseMasterService 接口中的 updateWithdrawLock 方法参数名从 withdrawlock 改为 withdrawLock - 更新 SysOaWarehouseMasterController 中的 updateWithdrawlock 方法参数名 - 修改 SysOaWarehouseMasterServiceImpl 中的 updateWithdrawLock 方法实现
This commit is contained in:
@@ -120,8 +120,8 @@ public class SysOaWarehouseMasterController extends BaseController {
|
|||||||
}
|
}
|
||||||
// 修改withdrawlock
|
// 修改withdrawlock
|
||||||
@PutMapping("/withdrawlock")
|
@PutMapping("/withdrawlock")
|
||||||
public R<Void> updateWithdrawlock(@RequestParam Long masterId, @RequestParam Integer withdrawlock) {
|
public R<Void> updateWithdrawlock(@RequestParam Long masterId, @RequestParam Integer withdrawLock) {
|
||||||
return toAjax(iSysOaWarehouseMasterService.updateWithdrawLock(masterId, withdrawlock));
|
return toAjax(iSysOaWarehouseMasterService.updateWithdrawLock(masterId, withdrawLock));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -89,5 +89,5 @@ public interface ISysOaWarehouseMasterService {
|
|||||||
|
|
||||||
int updateReturnType(Long masterId, Integer returnType);
|
int updateReturnType(Long masterId, Integer returnType);
|
||||||
|
|
||||||
int updateWithdrawLock(Long masterId, Integer withdrawlock);
|
int updateWithdrawLock(Long masterId, Integer withdrawLock);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -333,10 +333,10 @@ public class SysOaWarehouseMasterServiceImpl implements ISysOaWarehouseMasterSer
|
|||||||
return baseMapper.updateById(update);
|
return baseMapper.updateById(update);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public int updateWithdrawLock(Long masterId, Integer withdrawlock) {
|
public int updateWithdrawLock(Long masterId, Integer withdrawLock) {
|
||||||
SysOaWarehouseMaster update = new SysOaWarehouseMaster();
|
SysOaWarehouseMaster update = new SysOaWarehouseMaster();
|
||||||
update.setMasterId(masterId);
|
update.setMasterId(masterId);
|
||||||
update.setReturnType(withdrawlock);
|
update.setWithdrawLock(withdrawLock);
|
||||||
return baseMapper.updateById(update);
|
return baseMapper.updateById(update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user