mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 13:42:07 +08:00
自定义板编号生成前配置获取空指针异常控制
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ public class CustomPlateNoGenerateServiceImpl implements CustomPlateNoGenerateSe
|
|||||||
customPlateNoRuleVOS = Optional.ofNullable(orgCustomPlateNoConfig)
|
customPlateNoRuleVOS = Optional.ofNullable(orgCustomPlateNoConfig)
|
||||||
.map(config -> JSON.parseArray(config.getSetting(), CustomPlateNoRuleVO.class))
|
.map(config -> JSON.parseArray(config.getSetting(), CustomPlateNoRuleVO.class))
|
||||||
.orElse(List.of());
|
.orElse(List.of());
|
||||||
customPlateNoGenerateConfigVO.setOrgCustomPlateNoConfigId(orgCustomPlateNoConfig.getId());
|
customPlateNoGenerateConfigVO.setOrgCustomPlateNoConfigId(Optional.ofNullable(orgCustomPlateNoConfig.getId()).orElse(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
OrderDO order = orderService.getOrder(orderId);
|
OrderDO order = orderService.getOrder(orderId);
|
||||||
|
|||||||
Reference in New Issue
Block a user