feat:提交标准详情接口
This commit is contained in:
+31
@@ -1,12 +1,23 @@
|
|||||||
package com.adc.da.slrs.sarStandAttrDetails.controller;
|
package com.adc.da.slrs.sarStandAttrDetails.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.adc.da.common.SarTypeEnum;
|
||||||
|
import com.adc.da.http.ResponseMessage;
|
||||||
|
import com.adc.da.http.Result;
|
||||||
|
import com.adc.da.slrs.sarStandAttrDetails.page.SarStandAttrDetailsEOPage;
|
||||||
|
import com.adc.da.utils.util.InitStandAttrUtil;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import com.adc.da.slrs.sarStandAttrDetails.entity.SarStandAttrDetails;
|
import com.adc.da.slrs.sarStandAttrDetails.entity.SarStandAttrDetails;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
import com.adc.da.base.web.BaseController;
|
import com.adc.da.base.web.BaseController;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 前端控制器
|
* 前端控制器
|
||||||
@@ -20,4 +31,24 @@ import com.adc.da.base.web.BaseController;
|
|||||||
@RequestMapping("/sarStandAttrDetails/sar-stand-attr-details")
|
@RequestMapping("/sarStandAttrDetails/sar-stand-attr-details")
|
||||||
public class SarStandAttrDetailsController extends BaseController<SarStandAttrDetails> {
|
public class SarStandAttrDetailsController extends BaseController<SarStandAttrDetails> {
|
||||||
|
|
||||||
|
@ApiOperation(value = "|SarStandAttrDetailsEO|查询")
|
||||||
|
@GetMapping("/list")
|
||||||
|
// @RequiresPermissions("lawss:sarStandAttrDetails:list")
|
||||||
|
public ResponseMessage<Map<String, List<SarStandAttrDetails>>> list(SarStandAttrDetailsEOPage page) throws Exception {
|
||||||
|
Map<String,List<SarStandAttrDetails>> resultMap = new HashMap<>();
|
||||||
|
// 标准属性字段
|
||||||
|
List<SarStandAttrDetails> getInlandStandList = InitStandAttrUtil.standInlandAttrFieldList;
|
||||||
|
resultMap.put(SarTypeEnum.INLAND_STAND.getValue(),getInlandStandList);
|
||||||
|
List<SarStandAttrDetails> getForeignStandList = InitStandAttrUtil.standForeignAttrFieldList;
|
||||||
|
resultMap.put(SarTypeEnum.FOREIGN_STAND.getValue(),getForeignStandList);
|
||||||
|
// 政策属性字段
|
||||||
|
List<SarStandAttrDetails> getInlandLawsList = InitStandAttrUtil.lawsInlandAttrFieldList;
|
||||||
|
resultMap.put(SarTypeEnum.INLAND_LAWS.getValue(),getInlandLawsList);
|
||||||
|
List<SarStandAttrDetails> getForeignLawsList = InitStandAttrUtil.lawsForeignAttrFieldList;
|
||||||
|
resultMap.put(SarTypeEnum.FOREIGN_LAWS.getValue(),getForeignLawsList);
|
||||||
|
// 企标属性字段
|
||||||
|
List<SarStandAttrDetails> getBussList = InitStandAttrUtil.bussAttrFieldList;
|
||||||
|
resultMap.put(SarTypeEnum.BUSS.getValue(),getBussList);
|
||||||
|
return Result.success(resultMap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user