| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.feign.ICodeClassifyClient; |
| | | import com.vci.ubcs.code.webservice.service.*; |
| | | import com.vci.ubcs.code.webservice.vo.*; |
| | | import com.vci.ubcs.code.webservice.vo.collection.DockingPreAttrMappingVOList; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreApplyFormWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.validation.Valid; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | private final IDockingPreApplyFormService dockingPreApplyFormService; |
| | | |
| | | /*** |
| | | * 属性枚举范围服务 |
| | | */ |
| | | |
| | | private final IDockingPreViewModelService dockingPreViewModelService; |
| | | |
| | | |
| | | /*** |
| | | * 属性枚举范围服务 |
| | | */ |
| | | |
| | | private final ICodeClassifyClient codeClassifyClient; |
| | | |
| | | /** |
| | | * 根据主数据编码oid获取集团属性映射信息 |
| | |
| | | @PostMapping( "/batchAddSave") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "保存属性映射配置", notes = "dockingPreAttrMappingVOList") |
| | | public R batchSave(@Valid @RequestBody List<DockingPreAttrMappingVO> dockingPreAttrMappingVOList){ |
| | | public R batchSave(@RequestBody DockingPreAttrMappingVOList dockingPreAttrMappingVOList){ |
| | | List<DockingPreAttrMappingVO> dockingPreAttrMappingVOs = dockingPreAttrMappingVOList.getDockingPreAttrMappingVOList(); |
| | | List<DockingPreAttrMappingVO> dockingPreAttrRangeVOS=new ArrayList<>(); |
| | | try { |
| | | dockingPreAttrRangeVOS = dockingPreAttrMappingService.batchAddSave(dockingPreAttrMappingVOList); |
| | | dockingPreAttrRangeVOS = dockingPreAttrMappingService.batchAddSave(dockingPreAttrMappingVOs); |
| | | }catch (Exception e){ |
| | | return R.fail("集团集成属性映射配置保存失败:"+e.getMessage()); |
| | | } |
| | |
| | | /** |
| | | * 参照树 集团分类(是否包含属性) |
| | | * @param treeQueryObject 树形查询对象 conditionMap 存上 codeclsfid=主数据的分类oid |
| | | * @return 主题库分类显示树 |
| | | * @return 集团分类显示树 |
| | | */ |
| | | @GetMapping("/referTree") |
| | | public List<Tree> referTree(TreeQueryObject treeQueryObject) { |
| | | return dockingPreClassifyService.treeCompanyGroupClassify(treeQueryObject); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 参照树 主数据模板属性信息 |
| | | * @param classifyId 主数据分类主键 |
| | | * @return 主题库分类模板属性 |
| | | */ |
| | | @GetMapping("/listViewModelAttributeByClassId") |
| | | public R listViewModelAttributeByClassId(String classifyId) { |
| | | return R.data(dockingPreViewModelService.selectDockingPreViewModelByClassId(classifyId,true)); |
| | | } |
| | | |
| | | /** |
| | | * 参照树 主数据分类 |
| | | * @param treeQueryObject 树形查询对象 conditionMap 存上 codeclsfid=主数据的分类oid |
| | | * @return 主题库分类显示树 |
| | | */ |
| | | @GetMapping("/referCodeClassifyTree") |
| | | public List<Tree> referCodeClassifyTree(TreeQueryObject treeQueryObject) { |
| | | return codeClassifyClient.referCodeClassifyTree(treeQueryObject); |
| | | } |
| | | |
| | | /** |
| | | * 参照树 主数据模板属性信息 |
| | | * @param codeClassifyId 主数据分类主键 |
| | | * @return 主题库分类模板属性 |
| | | */ |
| | | @GetMapping("/listCodeAttributeByClassId") |
| | | public R listCodeAttributeByClassId(String codeClassifyId) { |
| | | return R.data(codeClassifyClient.listCodeAttributeByClassId(codeClassifyId)); |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * 申请集团编码 |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * 同步集团模型视图 |
| | | * @return 返回执行结果信息 |