领料申请二级库判断
This commit is contained in:
parent
dff24e2c4d
commit
75c83077ba
|
|
@ -188,12 +188,14 @@ public class TmTaskController extends BaseController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 查询改领料单位下面有没有配置二级库
|
// 查询改领料单位下面有没有配置二级库
|
||||||
|
if ("1".equals(task.getLeaseType())){
|
||||||
SecondLotConfig config = new SecondLotConfig();
|
SecondLotConfig config = new SecondLotConfig();
|
||||||
config.setUnitId(task.getUnitId());
|
config.setUnitId(task.getUnitId());
|
||||||
SecondLotConfig secondLotConfig = secondaryWarehouseMapper.selectConfigByLotId(config);
|
SecondLotConfig secondLotConfig = secondaryWarehouseMapper.selectConfigByLotId(config);
|
||||||
if (secondLotConfig == null) {
|
if (secondLotConfig == null) {
|
||||||
return AjaxResult.error("该领料单位未配置二级库,请先配置");
|
return AjaxResult.error("该领料单位未配置二级库,请先配置");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
String code = tmTaskService.genderLeaseCode();
|
String code = tmTaskService.genderLeaseCode();
|
||||||
if (StringUtils.isEmpty(code)) {
|
if (StringUtils.isEmpty(code)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue