Compare commits

...

2 Commits

Author SHA1 Message Date
liang.chao 99f09396e8 Merge remote-tracking branch 'origin/master' 2025-01-16 18:11:30 +08:00
liang.chao 75c83077ba 领料申请二级库判断 2025-01-16 18:11:24 +08:00
1 changed files with 7 additions and 5 deletions

View File

@ -188,11 +188,13 @@ public class TmTaskController extends BaseController {
}
}
// 查询改领料单位下面有没有配置二级库
SecondLotConfig config = new SecondLotConfig();
config.setUnitId(task.getUnitId());
SecondLotConfig secondLotConfig = secondaryWarehouseMapper.selectConfigByLotId(config);
if (secondLotConfig == null) {
return AjaxResult.error("该领料单位未配置二级库,请先配置");
if ("1".equals(task.getLeaseType())){
SecondLotConfig config = new SecondLotConfig();
config.setUnitId(task.getUnitId());
SecondLotConfig secondLotConfig = secondaryWarehouseMapper.selectConfigByLotId(config);
if (secondLotConfig == null) {
return AjaxResult.error("该领料单位未配置二级库,请先配置");
}
}
try {
String code = tmTaskService.genderLeaseCode();