|
|
|
@ -259,9 +259,12 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
if (StrUtil.isNotBlank(json)) { |
|
|
|
|
return JSONUtil.toBean(json, FactoryAuthVO.class); |
|
|
|
|
} else { |
|
|
|
|
FactoryAuthVO factoryAuth = baseMapper.findFactoryAuth(companyCode); |
|
|
|
|
bladeRedis.setEx(key, JSONUtil.toJsonStr(factoryAuth), Duration.ofDays(1)); |
|
|
|
|
return factoryAuth; |
|
|
|
|
List<FactoryAuthVO> factoryAuth = baseMapper.findFactoryAuth(companyCode); |
|
|
|
|
if(CollUtil.isNotEmpty(factoryAuth)){ |
|
|
|
|
FactoryAuthVO authVO = factoryAuth.get(0); |
|
|
|
|
bladeRedis.setEx(key, JSONUtil.toJsonStr(authVO), Duration.ofDays(1)); |
|
|
|
|
return authVO; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|