update 国内标准

This commit is contained in:
liao
2023-10-30 17:45:21 +08:00
parent 1d22aad13f
commit b9895c9e69
2 changed files with 3 additions and 2 deletions
@@ -486,7 +486,7 @@ public class LawsAsmsOpenApiServiceImpl extends ServiceImpl<LawsAsmsOpenApiMappe
lawsDomesticStandard.setCreateTime(getSimpleDate2(lawsAsmsDomestic.getCreateTimeString()));
// 更新时间
lawsDomesticStandard.setUpdateTime(getSimpleDate2(lawsAsmsDomestic.getUpdateTimeString()));
lawsDomesticStandardService.save(lawsDomesticStandard);
lawsDomesticStandardService.saveOrUpdate(lawsDomesticStandard);
});
// 状态设置为已同步
lawsAsmsOpenApi.setStatus("1");
@@ -859,7 +859,8 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
oldValue = (String) oldDataMap.get(key + FieldCommon._DICT_TEXT);
if (StringUtils.isNotBlank(value)) {
LambdaQueryWrapper<SysDictItem> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SysDictItem::getId, value);
queryWrapper.eq(SysDictItem::getDictId, lawsTag.getDictId());
queryWrapper.eq(SysDictItem::getItemValue, value);
SysDictItem dictItem = sysDictItemService.getOne(queryWrapper);
value = dictItem.getItemText();
}