田源
2024-04-16 e1feed4fb9f3a7722eb0cd646e73e6573bdfb6e1
Source/UBCS/ubcs-service/ubcs-applyjtcodeservice/src/main/java/com/vci/ubcs/code/applyjtcodeservice/controller/GroupAttrPoolMappingController.java
@@ -1,19 +1,20 @@
package com.vci.ubcs.code.applyjtcodeservice.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vci.ubcs.code.applyjtcodeservice.entity.DockingPreMetaAttr;
import com.vci.ubcs.code.applyjtcodeservice.entity.GroupAttrPoolMapping;
import com.vci.ubcs.code.applyjtcodeservice.service.IGroupAttrPoolMappingService;
import com.vci.ubcs.code.applyjtcodeservice.vo.GroupAttrPoolMappingVO;
import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.sql.rowset.serial.SerialException;
import java.util.List;
import java.util.Map;
/**
 * 集团属性池映射Controller
@@ -30,12 +31,12 @@
   /**
    * 查询集团属性池映射的属性
    * @param groupAttrPoolMappingVO
    * @param bladeQueryObject
    * @return
    */
   @PostMapping("/getGroupAttrPoolALlList")
   public R<List<GroupAttrPoolMappingVO>> getGroupAttrPoolALlList(@RequestBody GroupAttrPoolMappingVO groupAttrPoolMappingVO) throws SerialException {
      return R.data(groupAttrPoolMappingService.getGroupAttrPoolALlList(groupAttrPoolMappingVO));
   @GetMapping("/getGroupAttrPoolALlList")
   public R<IPage<GroupAttrPoolMappingVO>> getGroupAttrPoolALlList(BladeQueryObject bladeQueryObject) throws ServiceException {
      return R.data(groupAttrPoolMappingService.getGroupAttrPoolALlList(bladeQueryObject));
   }
   /**
@@ -44,7 +45,7 @@
    * @return
    */
   @PostMapping("/getByGroupAttrKeyList")
   public R<List<GroupAttrPoolMappingVO>> getByGroupAttrKeyList(@RequestBody GroupAttrPoolMappingVO groupAttrPoolMappingVO) throws SerialException {
   public R<List<GroupAttrPoolMappingVO>> getByGroupAttrKeyList(@RequestBody GroupAttrPoolMappingVO groupAttrPoolMappingVO) throws ServiceException {
      return R.data(groupAttrPoolMappingService.getByGroupAttrKeyList(groupAttrPoolMappingVO));
   }
@@ -54,18 +55,18 @@
    * @return
    */
   @PostMapping("/editGroupAttr")
   public R editGroupAttr(@RequestBody List<GroupAttrPoolMappingVO>groupAttrPoolMappingVO) throws SerialException {
   public R editGroupAttr(@RequestBody List<GroupAttrPoolMappingVO> groupAttrPoolMappingVO) throws ServiceException {
      return R.status(groupAttrPoolMappingService.editGroupAttr(groupAttrPoolMappingVO));
   }
   /**
    * 根据集团属性编号查询集团属性池映射,慎用因为会更新所有用到这个集团属性的记录
    * 根据集团属性编号查询集团属性池映射并同步,慎用因为会更新所有用到这个集团属性的记录
    * @param groupAttrPoolMappingVOS
    * @return
    */
   @PostMapping("/syncGroupAttrMapping")
   public R syncGroupAttrMapping(@RequestBody List<GroupAttrPoolMappingVO> groupAttrPoolMappingVOS) throws SerialException {
      return R.status(groupAttrPoolMappingService.syncGroupAttrMapping(groupAttrPoolMappingVOS));
   public R syncGroupAttrMapping(@RequestBody List<GroupAttrPoolMappingVO> groupAttrPoolMappingVOS) throws ServiceException {
      return groupAttrPoolMappingService.syncGroupAttrMapping(groupAttrPoolMappingVOS);
   }
   /**
@@ -75,7 +76,7 @@
    * @throws SerialException
    */
   @PostMapping("/saveDistinctGroupAttr")
   public R saveDistinctGroupAttr(@RequestBody List<DockingPreMetaAttr> dockingPreMetaAttrList) throws SerialException {
   public R saveDistinctGroupAttr(@RequestBody List<DockingPreMetaAttr> dockingPreMetaAttrList) throws ServiceException {
      return R.status(groupAttrPoolMappingService.saveDistinctGroupAttr(dockingPreMetaAttrList));
   }