| | |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.nacos.common.utils.StringUtils; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.rmi.ServerException; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | //@AllArgsConstructor |
| | | @RequestMapping("/mdmEngineController") |
| | | @Api(value = "编码数据管理", tags = "编码数据管理") |
| | | public class MdmEngineController { |
| | |
| | | ControllerUtil.writeDataToResponse(response,msg.getBytes(StandardCharsets.UTF_8),null); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导入批量编辑数据 |
| | |
| | | * @param baseModelDTO 数据传输对象 |
| | | * @return 执行结果 |
| | | */ |
| | | @PostMapping("changeStatus") |
| | | @PostMapping("/changeStatus") |
| | | public R changeStatus(@RequestBody BaseModelDTO baseModelDTO) { |
| | | engineService.changeStatus(baseModelDTO); |
| | | return R.success("操作成功!"); |
| | |
| | | return engineService.gridTableDataByClassifyOid(codeClassifyOid,templateOid,queryObject.getConditionMap(),queryObject.getPageHelper()); |
| | | } |
| | | |
| | | /*** |
| | | /** |
| | | * 获取分类对象 |
| | | * @param redisOid |
| | | * @return |
| | |
| | | return R.data(codeImportTemplateVOs); |
| | | } |
| | | |
| | | /*** |
| | | /** |
| | | * 从redis缓存里获取到导入正确的数据 |
| | | * @param codeClassifyOid |
| | | * @param redisOid |
| | |
| | | return mdmIOService.gridDatas(codeClassifyOid,redisOid); |
| | | } |
| | | |
| | | /*** |
| | | /** |
| | | * 从redis缓存里获取到导入行相似项的数据 |
| | | * @param dataOid |
| | | * @param redisOid |
| | |
| | | return mdmIOService.gridRowResemble(dataOid,redisOid); |
| | | } |
| | | |
| | | /*** |
| | | /** |
| | | * 从redis缓存里获取到导入具有相似项的数据 |
| | | * @param codeClassifyOid |
| | | * @param redisOid |
| | |
| | | return mdmIOService.gridDatas(codeClassifyOid,redisOid); |
| | | } |
| | | |
| | | /*** |
| | | /** |
| | | * 导入数据 |
| | | * @param codeImprotSaveDatVO//数据对象 |
| | | * @return |
| | |
| | | return mdmIOService.batchImportData(codeImprotSaveDatVO.getCodeImprotSaveDatVOList(),codeImprotSaveDatVO.getClassifyAttr(),codeImprotSaveDatVO.getImprot()); |
| | | } |
| | | |
| | | /*** |
| | | /** |
| | | * 根据数据oid从缓存中移除数据 |
| | | * @param redisOid redisid |
| | | * @param codeClassifyOid 存储规则的oid |
| | |
| | | * @param idPath 编号的路径 |
| | | * @return UI相关的信息(仅包含表单) |
| | | */ |
| | | // @VciUnCheckRight |
| | | // @VciUnCheckRight |
| | | @GetMapping("/getFormDefineByClassifyIdPath") |
| | | public MdmUIInfoVO getFormDefineByClassifyIdPath(String idPath){ |
| | | return engineService.getFormDefineByClassifyIdPath(idPath); |
| | |
| | | * @return UI相关的信息(仅包含表格) |
| | | */ |
| | | @GetMapping("/getFlowdUIInfoByClassifyOid") |
| | | public MdmUIInfoVO getUIInfoByClassifyOid(String codeClassifyOid,String functionId,String templateId,String taskId,String modelKey){ |
| | | public MdmUIInfoVO getFlowUIInfoByClassifyOid(String codeClassifyOid,String functionId,String templateId,String taskId,String modelKey){ |
| | | return engineService.getFlowUIInfoByClassifyOid(codeClassifyOid,functionId,templateId,taskId,modelKey); |
| | | } |
| | | |
| | |
| | | // return R.status(true); |
| | | } |
| | | |
| | | /*** |
| | | /** |
| | | * 集团码导入 |
| | | * @param codeClassifyOid |
| | | * @param file |