diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandAttrDetails/controller/SarStandAttrDetailsController.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandAttrDetails/controller/SarStandAttrDetailsController.java index b1e87e5d..340c368d 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandAttrDetails/controller/SarStandAttrDetailsController.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandAttrDetails/controller/SarStandAttrDetailsController.java @@ -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; + /** *

* 前端控制器 @@ -20,4 +31,24 @@ import com.adc.da.base.web.BaseController; @RequestMapping("/sarStandAttrDetails/sar-stand-attr-details") public class SarStandAttrDetailsController extends BaseController { + @ApiOperation(value = "|SarStandAttrDetailsEO|查询") + @GetMapping("/list") +// @RequiresPermissions("lawss:sarStandAttrDetails:list") + public ResponseMessage>> list(SarStandAttrDetailsEOPage page) throws Exception { + Map> resultMap = new HashMap<>(); + // 标准属性字段 + List getInlandStandList = InitStandAttrUtil.standInlandAttrFieldList; + resultMap.put(SarTypeEnum.INLAND_STAND.getValue(),getInlandStandList); + List getForeignStandList = InitStandAttrUtil.standForeignAttrFieldList; + resultMap.put(SarTypeEnum.FOREIGN_STAND.getValue(),getForeignStandList); + // 政策属性字段 + List getInlandLawsList = InitStandAttrUtil.lawsInlandAttrFieldList; + resultMap.put(SarTypeEnum.INLAND_LAWS.getValue(),getInlandLawsList); + List getForeignLawsList = InitStandAttrUtil.lawsForeignAttrFieldList; + resultMap.put(SarTypeEnum.FOREIGN_LAWS.getValue(),getForeignLawsList); + // 企标属性字段 + List getBussList = InitStandAttrUtil.bussAttrFieldList; + resultMap.put(SarTypeEnum.BUSS.getValue(),getBussList); + return Result.success(resultMap); + } }