ludc
2023-12-19 529738fcb3e08b40e6065dd8f2eb679d08e402a3
254,完善,编码回收记录业务数据到codeallcode表总
已修改4个文件
13 ■■■■■ 文件已修改
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/datapush/BaseModelDTO.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeAllCode.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/datapush/BaseModelDTO.java
@@ -19,6 +19,7 @@
     * 数据
     */
    private Map<String,String> data = new HashMap<>();
    /**
     * 子表的业务类型
     */
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeAllCode.java
@@ -41,6 +41,7 @@
     * 序列化
     */
    private static final long serialVersionUID = 5020487634341415429L;
    /**
     * 分类的主键
     */
@@ -92,5 +93,9 @@
     */
    private String codeDelimit;
    /**
     * 记录已回收的业务数据:JSON格式的
     */
    private String businessData;
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java
@@ -456,8 +456,13 @@
                    throw new VciBaseException("更新数据出错,重试!"+r.getMsg());
                }
            }
            int i = -1;
            for (CodeAllCode codeCbo : codeCbos) {
                codeCbo.setLcStatus(baseModelDTO.getLcStatus());
                // 如果是回收,就需要将业务数据存储到码值表中
                if(baseModelDTO.getLcStatus().equals(FrameWorkDefaultValueConstant.FRAMEWORK_RELEASE_TAKEBACK)){
                    codeCbo.setBusinessData(JSON.toJSONString(baseModels.get(++i)));
                }
            }
            codeAllCodeService.updateBatchById(codeCbos);
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java
@@ -4335,7 +4335,7 @@
                        } else {
                            Map<String, String> classifyDataMap = VciBaseUtil.objectToMapString(classifyVO);
                            String value = classifyDataMap.getOrDefault(attrVO.getClassifyInvokeAttr(), "");
                            log.error("================================当前分类注入的value值为:==========================",value);
//                            log.error("================================当前分类注入的value值为:==========================",value);
                            cbo.setAttributeValue(attrId, value);
                        }
                    } catch (Throwable e) {