feat:提交标准详情接口

This commit is contained in:
super_liu
2021-06-09 10:14:43 +08:00
parent 2b5164ddd3
commit 712ec4a336
@@ -1,12 +1,23 @@
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 com.adc.da.slrs.sarStandAttrDetails.entity.SarStandAttrDetails;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RestController;
import com.adc.da.base.web.BaseController;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* <p>
* 前端控制器
@@ -20,4 +31,24 @@ import com.adc.da.base.web.BaseController;
@RequestMapping("/sarStandAttrDetails/sar-stand-attr-details")
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);
}
}