ludc
2023-12-03 25da36be2318c1247592dce7d499d0b985c80fe0
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/MdmEngineController.java
@@ -16,6 +16,7 @@
import com.vci.ubcs.starter.revision.model.BaseModel;
import com.vci.ubcs.starter.revision.model.TreeQueryObject;
import com.vci.ubcs.starter.util.LocalFileUtil;
import com.vci.ubcs.starter.util.SaveLogUtil;
import com.vci.ubcs.starter.web.pagemodel.*;
import com.vci.ubcs.starter.web.util.ControllerUtil;
import com.vci.ubcs.starter.web.util.LangBaseUtil;
@@ -55,7 +56,11 @@
    */
   @Autowired
   private MdmIOService mdmIOService;
   /**
    * 日志保存工具类
    */
   @Autowired
   private SaveLogUtil saveLogUtil;
   /**
    * 下载批量申请的导入模板
@@ -144,7 +149,7 @@
   }
   /**
    * 批量申请编码的信息
    * 批量申请编码的信息(当前分类上批量申请)
    * @param secDTOList 申请编码的信息,必须包含码段和分类主键的信息
    * @param file 文件的内容
    */
@@ -237,7 +242,7 @@
   }
   /**
    * 导入历史数据
    * 导入历史数据(从顶层分类导的)
    * @param codeClassifyOid 分类的主键
    * @param classifyAttr 分类路径使用的属性
    * @param file 文件的内容
@@ -302,7 +307,15 @@
   @PostMapping("/addSaveCode")
   @VciBusinessLog(operateName = "申请单个编码")
   public R addSaveCode(@RequestBody CodeOrderDTO orderDTO) throws Exception {
      return R.success(engineService.addSaveCode(orderDTO));
      String s = null;
      try {
         s = engineService.addSaveCode(orderDTO);
         saveLogUtil.operateLog("编码申请",false,orderDTO.toString());
      }catch (Exception e){
         saveLogUtil.operateLog("编码申请",true,e.toString());
         throw e;
      }
      return R.success(s);
   }
   /**
@@ -429,6 +442,7 @@
   public DataGrid<Map<String,String>> gridResemble(String codeClassifyOid,String redisOid){
      return mdmIOService.gridDatas(codeClassifyOid,redisOid);
   }
   /***
    * 导入数据
    * @param codeImprotSaveDatVO//数据对象
@@ -436,11 +450,11 @@
    */
   @PostMapping("/batchImportData")
   public R batchImportData(@RequestBody CodeImprotParmaDatVO codeImprotSaveDatVO){
      return  mdmIOService.batchImportData(codeImprotSaveDatVO.getCodeImprotSaveDatVOList(),codeImprotSaveDatVO.getClassifyAttr(),codeImprotSaveDatVO.getImprot());
      return mdmIOService.batchImportData(codeImprotSaveDatVO.getCodeImprotSaveDatVOList(),codeImprotSaveDatVO.getClassifyAttr(),codeImprotSaveDatVO.getImprot());
   }
   /***
    *根据数据oid从缓存中移除数据
    * 根据数据oid从缓存中移除数据
    * @param redisOid redisid
    * @param codeClassifyOid 存储规则的oid
    * @param dataOids  所需删除的数据
@@ -450,6 +464,7 @@
   public  R deleteDatas(String redisOid,String codeClassifyOid,String dataOids){
      return mdmIOService.deleteDatas(redisOid,codeClassifyOid,dataOids);
   }
   /**
    * 批量保存流程执行页面修改的内容
    * @param orderDTOList 编码相关的信息,不需要码段的信息
@@ -514,7 +529,7 @@
   @PostMapping("/upSaveCode")
   public R upSaveCode(@RequestBody CodeOrderDTO orderDTO){
      engineService.upSaveCode(orderDTO);
      return  R.success("操作成功!");
      return R.success("操作成功!");
   }
   /**