feat(oa): 添加退库单相关功能

- 在 ISysOaWarehouseMasterService 接口中添加 updateWithdrawlock 方法
- 在 SysOaWarehouseMaster 模型中添加 withdrawlock 字段
- 在 SysOaWarehouseMasterBo 和 SysOaWarehouseMasterVo 中添加 withdrawlock 属性
- 在 SysOaWarehouseMasterController 中添加更新 withdrawlock 的接口
- 在 SysOaWarehouseMasterServiceImpl 中实现 updateWithdrawlock 方法和新的查询方法
This commit is contained in:
2025-08-19 16:37:54 +08:00
parent 9093400922
commit 5148225c16
6 changed files with 36 additions and 1 deletions

View File

@@ -87,4 +87,6 @@ public interface ISysOaWarehouseMasterService {
* 单独修改remark
*/
Boolean updateRemark(Long masterId, String remark);
int updateWithdrawlock(Long masterId, Integer withdrawlock);
}

View File

@@ -78,11 +78,23 @@ public class SysOaWarehouseMasterServiceImpl implements ISysOaWarehouseMasterSer
@Override
public TableDataInfo<SysOaWarehouseMasterVo> queryPageReturnList(SysOaWarehouseMasterBo bo, PageQuery pageQuery) {
QueryWrapper<SysOaWarehouseMaster> lqw = buildQueryWrapper(bo);
QueryWrapper<SysOaWarehouseMaster> lqw = buildQueryWrapperPlusWithLogCoun(bo);
Page<SysOaWarehouseMasterVo> result = baseMapper.selectVoPagePlusWithLogCount(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
private QueryWrapper<SysOaWarehouseMaster> buildQueryWrapperPlusWithLogCoun(SysOaWarehouseMasterBo bo) {
QueryWrapper<SysOaWarehouseMaster> lqw = Wrappers.query();
lqw.eq(bo.getType()!= null, "sowm.type",bo.getType())
.eq(bo.getProjectId()!= null, "sowm.project_id", bo.getProjectId())
.eq(bo.getReturnType() != null, "sowm.return_type", bo.getReturnType())
.eq(bo.getWithdrawlock()!= null, "sowm.withdrawlock", bo.getWithdrawlock())
// 其他过滤……
.eq("sowm.del_flag",0)
.orderByDesc("sowm.update_time");
return lqw;
}
/**
* 查询出库单管理列表
*/
@@ -318,4 +330,12 @@ public class SysOaWarehouseMasterServiceImpl implements ISysOaWarehouseMasterSer
update.setRemark(remark);
return baseMapper.updateById(update) > 0;
}
@Override
public int updateWithdrawlock(Long masterId, Integer withdrawlock) {
SysOaWarehouseMaster update = new SysOaWarehouseMaster();
update.setMasterId(masterId);
update.setReturnType(withdrawlock);
return baseMapper.updateById(update);
}
}