feat(oa): 仓库大师新增修改 returnType 和 withdrawLock 功能- 在 ISysOaWarehouseMasterService 接口中添加了 updateReturnType 和 updateWithdrawLock 方法
- 在 SysOaWarehouseMasterController 中添加了对应的控制器方法 - 在 SysOaWarehouseMasterServiceImpl 中实现了这两个新方法
This commit is contained in:
@@ -113,7 +113,16 @@ public class SysOaWarehouseMasterController extends BaseController {
|
||||
public R<Void> updateIsLike(@RequestParam Long masterId, @RequestParam Integer isLike) {
|
||||
return toAjax(iSysOaWarehouseMasterService.updateIsLike(masterId, isLike));
|
||||
}
|
||||
|
||||
// 修改returnType
|
||||
@PutMapping("/returnType")
|
||||
public R<Void> updateReturnType(@RequestParam Long masterId, @RequestParam Integer returnType) {
|
||||
return toAjax(iSysOaWarehouseMasterService.updateReturnType(masterId, returnType));
|
||||
}
|
||||
// 修改withdrawlock
|
||||
@PutMapping("/withdrawlock")
|
||||
public R<Void> updateWithdrawlock(@RequestParam Long masterId, @RequestParam Integer withdrawlock) {
|
||||
return toAjax(iSysOaWarehouseMasterService.updateWithdrawLock(masterId, withdrawlock));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库单管理
|
||||
|
||||
@@ -87,4 +87,7 @@ public interface ISysOaWarehouseMasterService {
|
||||
*/
|
||||
Boolean updateRemark(Long masterId, String remark);
|
||||
|
||||
int updateReturnType(Long masterId, Integer returnType);
|
||||
|
||||
int updateWithdrawLock(Long masterId, Integer withdrawlock);
|
||||
}
|
||||
|
||||
@@ -324,5 +324,19 @@ public class SysOaWarehouseMasterServiceImpl implements ISysOaWarehouseMasterSer
|
||||
update.setRemark(remark);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
// 2. 修改returnType
|
||||
@Override
|
||||
public int updateReturnType(Long masterId, Integer returnType) {
|
||||
SysOaWarehouseMaster update = new SysOaWarehouseMaster();
|
||||
update.setMasterId(masterId);
|
||||
update.setReturnType(returnType);
|
||||
return baseMapper.updateById(update);
|
||||
}
|
||||
@Override
|
||||
public int updateWithdrawLock(Long masterId, Integer withdrawlock) {
|
||||
SysOaWarehouseMaster update = new SysOaWarehouseMaster();
|
||||
update.setMasterId(masterId);
|
||||
update.setReturnType(withdrawlock);
|
||||
return baseMapper.updateById(update);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user