Commit bcb7a214 authored by wanglong's avatar wanglong

添加当区域规则表没有时,更新unitid为区域code

parent c7d2efcd
......@@ -327,8 +327,15 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
String recgionCode = model.getRegionCode().substring(0,6);
SuperviseRule superviseRule = superviseRuleService.getOne(new LambdaQueryWrapper<SuperviseRule>().likeRight(SuperviseRule::getAdminRegionCode,recgionCode));
List<Long> unitIds = new ArrayList<>();
//当区域规则表没有时,更新unitid为区域code
if (ValidationUtil.isEmpty(superviseRule)){
unitIds.add(Long.valueOf(model.getRegionCode()));
unitIds.add(Long.valueOf(model.getRegionCode()));
}else {
unitIds.add(superviseRule.getSuperviseDeptId());
unitIds.add(superviseRule.getInspectionUnitId());
}
//新增企业审核任务信息
taskService.saveOrUpdateTask(null, false, TaskTypeEnum.企业审核.getKey(), new Date(), model.getSequenceNbr(), TaskTypeEnum.企业审核.getKey(), unitIds);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment