ci: 所有接口swagger注释
This commit is contained in:
+3
-2
@@ -10,6 +10,7 @@ import com.jero.modules.laws.enterprise.entity.vo.EnterpriseStandardDeclareVo;
|
||||
import com.jero.modules.laws.enterprise.service.EnterpriseStandardDeclareService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -43,8 +44,8 @@ public class EnterpriseStandardDeclareController extends JeroController<Enterpri
|
||||
@ApiOperation(value="企标宣贯-分页列表查询", notes="企标宣贯-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
public Result<?> queryPageList(ESQueryCommonDTO esDeclare,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
@RequestParam(name="pageNo", defaultValue="1") @ApiParam("页码") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") @ApiParam("页面显示数量") Integer pageSize) {
|
||||
IPage<EnterpriseStandardDeclareVo> pageList= esDeclareService.queryPageList(esDeclare, pageNo, pageSize);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
+10
-9
@@ -16,6 +16,7 @@ import com.jero.modules.laws.enterprise.service.EnterpriseStandardInspectReportS
|
||||
import com.jero.modules.laws.enterprise.service.EnterpriseStandardInspectService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -62,8 +63,8 @@ public class EnterpriseStandardInspectController extends JeroController<Enterpri
|
||||
@ApiOperation(value="企标稽查-分页列表查询", notes="企标稽查-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
public Result<?> queryPageList(ESQueryCommonDTO esInspect,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
@RequestParam(name="pageNo", defaultValue="1") @ApiParam("页码") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") @ApiParam("页面显示数量") Integer pageSize) {
|
||||
IPage<EnterpriseStandardInspectVo> pageList = esInspectService.queryPageList(esInspect, pageNo, pageSize);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
@@ -77,7 +78,7 @@ public class EnterpriseStandardInspectController extends JeroController<Enterpri
|
||||
@AutoLog(value = "企标稽查-延期稽查")
|
||||
@ApiOperation(value="企标稽查-延期稽查", notes="企标稽查-延期稽查")
|
||||
@GetMapping(value = "/delayInspect")
|
||||
public Result<?> delayInspect(@RequestParam("id") String inspectId) {
|
||||
public Result<?> delayInspect(@RequestParam("id") @ApiParam("稽查数据Id") String inspectId) {
|
||||
EnterpriseStandardInspectDelay esInspectDelay = esInspectDelayService.getLastDelayInspect(inspectId);
|
||||
return Result.OK(esInspectDelay);
|
||||
}
|
||||
@@ -91,9 +92,9 @@ public class EnterpriseStandardInspectController extends JeroController<Enterpri
|
||||
@AutoLog(value = "企标稽查-稽查报告")
|
||||
@ApiOperation(value="企标稽查-稽查报告", notes="企标稽查-稽查报告")
|
||||
@GetMapping(value = "/inspectReport")
|
||||
public Result<?> inspectReport(@RequestParam("id") String inspectId,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
public Result<?> inspectReport(@RequestParam("id") @ApiParam("稽查数据Id") String inspectId,
|
||||
@RequestParam(name="pageNo", defaultValue="1") @ApiParam("页码") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") @ApiParam("页面显示数量") Integer pageSize) {
|
||||
IPage<EnterpriseStandardInspectReport> pageList = esInspectReportService.getInspectReport(inspectId, pageNo, pageSize);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
@@ -107,9 +108,9 @@ public class EnterpriseStandardInspectController extends JeroController<Enterpri
|
||||
@AutoLog(value = "企标稽查-整改计划")
|
||||
@ApiOperation(value="企标稽查-整改计划", notes="企标稽查-整改计划")
|
||||
@GetMapping(value = "/rectifyPlan")
|
||||
public Result<?> rectifyPlan(@RequestParam("id") String inspectId,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
public Result<?> rectifyPlan(@RequestParam("id") @ApiParam("稽查数据Id") String inspectId,
|
||||
@RequestParam(name="pageNo", defaultValue="1") @ApiParam("页码") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") @ApiParam("页面显示数量") Integer pageSize) {
|
||||
IPage<EnterpriseStandardInspectRectifyPlan> pageList = esInspectRectifyPlanService.getRectifyPlan(inspectId, pageNo, pageSize);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
+8
-6
@@ -14,8 +14,10 @@ import com.jero.modules.laws.enterprise.entity.EnterpriseStandardPlan;
|
||||
import com.jero.modules.laws.enterprise.entity.dto.ESPlanQueryDTO;
|
||||
import com.jero.modules.laws.enterprise.entity.vo.EnterpriseStandardPlanVo;
|
||||
import com.jero.modules.laws.enterprise.service.EnterpriseStandardPlanService;
|
||||
import com.jero.modules.system.vo.IdMapBody;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
@@ -52,8 +54,8 @@ public class EnterpriseStandardPlanController extends JeroController<EnterpriseS
|
||||
@GetMapping(value = "/page")
|
||||
@ApiOperationSupport(order = 1)
|
||||
public Result<?> queryPageList(ESPlanQueryDTO esPlanQueryDTO,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
@RequestParam(name="pageNo", defaultValue="1") @ApiParam("页码") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") @ApiParam("页面显示数量") Integer pageSize) {
|
||||
IPage<EnterpriseStandardPlanVo> pageList= esPlanService.queryPageList(esPlanQueryDTO, pageNo, pageSize);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
@@ -69,7 +71,7 @@ public class EnterpriseStandardPlanController extends JeroController<EnterpriseS
|
||||
@ApiOperation(value="企标计划-企标详情", notes="企标计划-企标详情")
|
||||
@GetMapping(value = "/detail")
|
||||
@Translation
|
||||
public Result<?> getDetailById(@RequestParam("id") String planId) {
|
||||
public Result<?> getDetailById(@RequestParam("id") @ApiParam("企标计划ID") String planId) {
|
||||
EnterpriseStandardPlan detail = esPlanService.getDetailById(planId);
|
||||
return Result.OK(detail);
|
||||
}
|
||||
@@ -85,11 +87,11 @@ public class EnterpriseStandardPlanController extends JeroController<EnterpriseS
|
||||
@ApiOperationSupport(order = 3)
|
||||
@ApiOperation(value = "企标计划-通过id删除", notes = "企标计划-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<T> deleteEN(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("id") || org.apache.commons.lang.StringUtils.isEmpty(map.get("id"))){
|
||||
public Result<T> deleteEN(@RequestBody IdMapBody map) {
|
||||
if(map.getId() == null || org.apache.commons.lang.StringUtils.isEmpty(map.getId())){
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.PARAMETERS_CANNOT_BE_NULL));
|
||||
}
|
||||
String id = map.get("id");
|
||||
String id = map.getId();
|
||||
EnterpriseStandardPlan esPlan = esPlanService.getById(id);
|
||||
if (esPlan == null) {
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.NO_CORRESPONDING_RECORD_FOUND));
|
||||
|
||||
+3
-2
@@ -10,6 +10,7 @@ import com.jero.modules.laws.enterprise.entity.dto.ESQueryCommonDTO;
|
||||
import com.jero.modules.laws.enterprise.service.EnterpriseStandardRecheckPlanService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -47,8 +48,8 @@ public class EnterpriseStandardRecheckPlanController extends JeroController<Ente
|
||||
@ApiOperation(value="企标复审计划-分页列表查询", notes="企标复审计划-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
public Result<?> queryPageList(ESQueryCommonDTO esDeclare,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
@RequestParam(name="pageNo", defaultValue="1") @ApiParam("页码") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") @ApiParam("页面显示数量") Integer pageSize) {
|
||||
return Result.OK(recheckPlanService.queryPageList(esDeclare, pageNo, pageSize));
|
||||
}
|
||||
}
|
||||
+5
-4
@@ -14,6 +14,7 @@ import com.jero.modules.laws.enterprise.entity.vo.EnterpriseStandardReviewMeetin
|
||||
import com.jero.modules.laws.enterprise.service.EnterpriseStandardReviewMeetingRecordService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -49,8 +50,8 @@ public class EnterpriseStandardReviewMeetingController extends JeroController<En
|
||||
@ApiOperation(value = "企标评审会-分页列表查询", notes = "企标评审会-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
public Result<?> queryPageList(ESQueryCommonDTO esReviewMeeting,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") @ApiParam("页码") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") @ApiParam("页面显示数量") Integer pageSize) {
|
||||
IPage<EnterpriseStandardReviewMeetingVo> pageList = esReviewMeetingService.queryPageList(esReviewMeeting, pageNo, pageSize);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
@@ -64,7 +65,7 @@ public class EnterpriseStandardReviewMeetingController extends JeroController<En
|
||||
@AutoLog(value = "企标评审会-评分详情")
|
||||
@ApiOperation(value = "企标评审会-评分详情", notes = "企标评审会-评分详情")
|
||||
@GetMapping(value = "/evaluateDetail/{id}")
|
||||
public Result<?> evaluateDetail(@PathVariable("id") String id) {
|
||||
public Result<?> evaluateDetail(@PathVariable("id") @ApiParam("企标评审Id") String id) {
|
||||
Map<String, List<EnterpriseStandardRmrEvaluateDetail>> resultMap = esReviewMeetingService.evaluateDetail(id);
|
||||
return Result.OK(resultMap);
|
||||
}
|
||||
@@ -78,7 +79,7 @@ public class EnterpriseStandardReviewMeetingController extends JeroController<En
|
||||
@AutoLog(value = "企标评审会-设置优质标准")
|
||||
@ApiOperation(value = "企标评审会-设置优质标准", notes = "企标评审会-设置优质标准")
|
||||
@GetMapping(value = "/setQualityStandards")
|
||||
public Result<?> setQualityStandards(@RequestParam String standardNos) {
|
||||
public Result<?> setQualityStandards(@RequestParam @ApiParam("标准编号") String standardNos) {
|
||||
List<String> standardNoList = Arrays.asList(standardNos.split(","));
|
||||
if (standardNoList.size() > 10) {
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.RMR_SET_QUALITY_OVER_TEN));
|
||||
|
||||
+19
-19
@@ -92,7 +92,7 @@ public class LawsEnterpriseController {
|
||||
@PostMapping(value = "/commonAdd")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@RequiresPermissions("enterpriseStandard:add")
|
||||
public Result<String> commonAdd(@RequestBody Map<String,Object> parameterMap) {
|
||||
public Result<String> commonAdd(@RequestBody @ApiParam("标签管理") Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.commonAdd(parameterMap));
|
||||
}
|
||||
@@ -102,7 +102,7 @@ public class LawsEnterpriseController {
|
||||
@PostMapping(value = "/commonEdit")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@RequiresPermissions("enterpriseStandard:edit")
|
||||
public Result<String> commonEdit(@RequestBody Map<String,Object> parameterMap) {
|
||||
public Result<String> commonEdit(@RequestBody @ApiParam("标签管理") Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.commonEdit(parameterMap));
|
||||
}
|
||||
@@ -121,7 +121,7 @@ public class LawsEnterpriseController {
|
||||
@GetMapping(value = "getFormModel")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@RequiresPermissions("enterpriseStandard:search")
|
||||
public Result<Map<String,Object>> getFormModel(@RequestParam(name="type") String type) {
|
||||
public Result<Map<String,Object>> getFormModel(@RequestParam(name="type") @ApiParam("类型(1详情,2新增编辑)") String type) {
|
||||
return Result.OK(lawsCommonService.getFormModel(MODULE_VALUE, type));
|
||||
}
|
||||
|
||||
@@ -130,9 +130,9 @@ public class LawsEnterpriseController {
|
||||
@GetMapping(value = "getByIdAndModule")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@RequiresPermissions("enterpriseStandard:search")
|
||||
public Result<Map<String,Object>> getByIdAndModule(@RequestParam(name="id", required = false) String id,
|
||||
@RequestParam(name="type") String type,
|
||||
@RequestParam(name="standardNumber", required = false) String standardNumber) {
|
||||
public Result<Map<String,Object>> getByIdAndModule(@RequestParam(name="id", required = false) @ApiParam("主键") String id,
|
||||
@RequestParam(name="type") @ApiParam("类型(1详情,2新增编辑)") String type,
|
||||
@RequestParam(name="standardNumber", required = false) @ApiParam("标准编号") String standardNumber) {
|
||||
lawsCommonService.addLookHistory(id, type, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.getByIdAndModule(id, MODULE_VALUE, type, standardNumber));
|
||||
}
|
||||
@@ -154,7 +154,7 @@ public class LawsEnterpriseController {
|
||||
@PostMapping(value = "singleDelete")
|
||||
@ApiOperationSupport(order = 9)
|
||||
@RequiresPermissions("enterpriseStandard:delete")
|
||||
public Result<String> singleDelete(@RequestBody Map<String,Object> parameterMap) {
|
||||
public Result<String> singleDelete(@RequestBody @ApiParam(name = "ids", value = "主键(多个用逗号分隔)") Map<String,Object> parameterMap) {
|
||||
//删除标准时同步删除这个标准的收藏数据
|
||||
lawsStandardCollectionService.deleteByStandardId((String) parameterMap.get("ids"));
|
||||
lawsStandardSharingService.deleteByStandardId((String) parameterMap.get("ids"));
|
||||
@@ -166,8 +166,8 @@ public class LawsEnterpriseController {
|
||||
@GetMapping(value = "relatedStandard")
|
||||
@ApiOperationSupport(order = 10)
|
||||
@RequiresPermissions("enterpriseStandard:configStandard")
|
||||
public Result<String> relatedStandard(@RequestParam(name="nodeCode") String nodeCode,
|
||||
@RequestParam("ids") String ids) {
|
||||
public Result<String> relatedStandard(@RequestParam(name="nodeCode") @ApiParam("体系编码") String nodeCode,
|
||||
@RequestParam("ids") @ApiParam("主键(多个用逗号分隔)") String ids) {
|
||||
lawsNodeRelationService.relatedStandard(nodeCode, ids);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
}
|
||||
@@ -177,8 +177,8 @@ public class LawsEnterpriseController {
|
||||
@GetMapping(value = "removeStandard")
|
||||
@ApiOperationSupport(order = 11)
|
||||
@RequiresPermissions("enterpriseStandard:removeStandard")
|
||||
public Result<String> removeStandard(@RequestParam(name="nodeCode") String nodeCode,
|
||||
@RequestParam("ids") String ids) {
|
||||
public Result<String> removeStandard(@RequestParam(name="nodeCode") @ApiParam("体系编码") String nodeCode,
|
||||
@RequestParam("ids") @ApiParam("主键(多个用逗号分隔)") String ids) {
|
||||
lawsNodeRelationService.removeStandard(nodeCode, ids);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
}
|
||||
@@ -188,7 +188,7 @@ public class LawsEnterpriseController {
|
||||
@GetMapping(value = "/getUpdateRecordList")
|
||||
@ApiOperationSupport(order = 12)
|
||||
@RequiresPermissions("enterpriseStandard:updateRecord")
|
||||
public Result<List<LawsUpdateRecord>> getUpdateRecordList(@RequestParam("standardNumber") String standardNumber) {
|
||||
public Result<List<LawsUpdateRecord>> getUpdateRecordList(@RequestParam("standardNumber") @ApiParam("标准编号") String standardNumber) {
|
||||
LambdaQueryWrapper<LawsUpdateRecord> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(LawsUpdateRecord::getUniqueRelationFlag, standardNumber);
|
||||
queryWrapper.orderByDesc(LawsUpdateRecord::getCreateTime);
|
||||
@@ -222,7 +222,7 @@ public class LawsEnterpriseController {
|
||||
@ApiOperation(value = "企业法规标准-企标评价", notes = "企业法规标准-企标评价")
|
||||
@GetMapping(value = "/evaluateDetail/{standardNumber}")
|
||||
@ApiOperationSupport(order = 14)
|
||||
public Result<?> evaluateDetail(@PathVariable("standardNumber") String standardNumber) {
|
||||
public Result<?> evaluateDetail(@PathVariable("standardNumber") @ApiParam("标准编号") String standardNumber) {
|
||||
Map<String, List<EnterpriseStandardRmrEvaluateDetail>> resultMap = esReviewMeetingService.evaluateDetailByStandardNo(standardNumber);
|
||||
return Result.OK(resultMap);
|
||||
}
|
||||
@@ -232,7 +232,7 @@ public class LawsEnterpriseController {
|
||||
@PostMapping("/exportData")
|
||||
@ApiOperationSupport(order = 15)
|
||||
@RequiresPermissions("enterpriseStandard:export")
|
||||
public void exportData(HttpServletResponse response, @RequestBody(required = false) Map<String,Object> parameterMap) {
|
||||
public void exportData(HttpServletResponse response, @RequestBody(required = false) @ApiParam("标签管理") Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, TableNameEnum.ENTERPRISE_STANDARDS.getValue());
|
||||
lawsCommonService.commonExport(response, parameterMap, "企业标准", "企业标准");
|
||||
}
|
||||
@@ -242,7 +242,7 @@ public class LawsEnterpriseController {
|
||||
@PostMapping("/exportDataWithFile")
|
||||
@ApiOperationSupport(order = 16)
|
||||
@RequiresPermissions("enterpriseStandard:fileExport")
|
||||
public void exportDataWithFile(HttpServletResponse response, @RequestBody(required = false) Map<String,Object> parameterMap) {
|
||||
public void exportDataWithFile(HttpServletResponse response, @RequestBody(required = false) @ApiParam("标签管理") Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, TableNameEnum.ENTERPRISE_STANDARDS.getValue());
|
||||
lawsCommonService.exportDataWithFile(response, parameterMap, "企业标准", "企业标准");
|
||||
}
|
||||
@@ -265,7 +265,7 @@ public class LawsEnterpriseController {
|
||||
@PostMapping("/importExcelWithData")
|
||||
@ApiOperationSupport(order = 18)
|
||||
@RequiresPermissions("enterpriseStandard:upload")
|
||||
public Result<?> importExcelWithData(@RequestParam("file") MultipartFile file) {
|
||||
public Result<?> importExcelWithData(@RequestParam("file") @ApiParam("上传的文件") MultipartFile file) {
|
||||
List<String> errorMessages = lawsCommonService.importExcelWithData(file, TableNameEnum.ENTERPRISE_STANDARDS.getValue());
|
||||
if (errorMessages.size() > 0) {
|
||||
return Result.error(MessageUtils.getMessage(ResultCommon.IMPORT_ERROR), errorMessages);
|
||||
@@ -282,7 +282,7 @@ public class LawsEnterpriseController {
|
||||
@ApiOperation(value = "企业法规标准-评分详情", notes = "企业法规标准-评分详情")
|
||||
@GetMapping(value = "/evaluateDetailForESInfo/{standardId}")
|
||||
@ApiOperationSupport(order = 19)
|
||||
public Result<?> evaluateDetailForESInfo(@PathVariable("standardId") String standardId) {
|
||||
public Result<?> evaluateDetailForESInfo(@PathVariable("standardId") @ApiParam("标准Id") String standardId) {
|
||||
Map<String, List<EnterpriseStandardRmrEvaluateDetail>> resultMap = esReviewMeetingService.evaluateDetailForESInfo(standardId);
|
||||
return Result.OK(resultMap);
|
||||
}
|
||||
@@ -296,8 +296,8 @@ public class LawsEnterpriseController {
|
||||
@ApiOperation(value = "企业法规标准-获取是否有查看详情权限", notes = "企业法规标准-获取是否有查看详情权限")
|
||||
@GetMapping(value = "/detailPermission")
|
||||
@ApiOperationSupport(order = 20)
|
||||
public Result<?> detailPermission(@RequestParam(name="id", required = false) String id,
|
||||
@RequestParam(name="standardNumber", required = false) String standardNumber) {
|
||||
public Result<?> detailPermission(@RequestParam(name="id", required = false) @ApiParam("标准Id") String id,
|
||||
@RequestParam(name="standardNumber", required = false) @ApiParam("标准编号") String standardNumber) {
|
||||
return Result.OK(esAuthUserService.detailPermissionByUser(id, standardNumber, UserUtils.getUserId()));
|
||||
}
|
||||
}
|
||||
|
||||
+13
-12
@@ -1,7 +1,6 @@
|
||||
package com.jero.modules.laws.standard.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
@@ -12,7 +11,9 @@ import com.jero.common.api.vo.ResultCommon;
|
||||
import com.jero.modules.laws.enterprise.entity.vo.LawsTreeNodeModel;
|
||||
import com.jero.modules.laws.standard.entity.LawsTreeNode;
|
||||
import com.jero.modules.laws.standard.service.ILawsTreeNodeService;
|
||||
import com.jero.modules.system.vo.IdMapBody;
|
||||
import com.jero.modules.tag.enums.TableNameEnum;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
@@ -46,8 +47,8 @@ public class LawsTreeNodeController extends JeroController<LawsTreeNode, ILawsTr
|
||||
@AutoLog(value = "企业标准-体系树")
|
||||
@ApiOperation(value = "企业标准-体系树", notes = "企业标准-体系树")
|
||||
@GetMapping("/enterprise")
|
||||
public Result<List<LawsTreeNodeModel>> queryENTreeList(@RequestParam(required = false, defaultValue = "") String nodeName,
|
||||
@RequestParam(required = false) String option) {
|
||||
public Result<List<LawsTreeNodeModel>> queryENTreeList(@RequestParam(required = false, defaultValue = "") @ApiParam("节点名称") String nodeName,
|
||||
@RequestParam(required = false) @ApiParam("为空:显示我的收藏 1:不显示我的收藏") String option) {
|
||||
String moduleCode = TableNameEnum.ENTERPRISE_STANDARDS.getValue();
|
||||
List<LawsTreeNodeModel> list = lawsTreeNodeService.queryTreeNodeList(moduleCode, nodeName, option);
|
||||
return Result.OK(list);
|
||||
@@ -57,8 +58,8 @@ public class LawsTreeNodeController extends JeroController<LawsTreeNode, ILawsTr
|
||||
@AutoLog(value = "国内标准-体系树")
|
||||
@ApiOperation(value = "国内标准-体系树", notes = "国内标准-体系树")
|
||||
@GetMapping("/domestic")
|
||||
public Result<List<LawsTreeNodeModel>> queryGBTreeList(@RequestParam(required = false) String nodeName,
|
||||
@RequestParam(required = false) String option) {
|
||||
public Result<List<LawsTreeNodeModel>> queryGBTreeList(@RequestParam(required = false) @ApiParam("节点名称") String nodeName,
|
||||
@RequestParam(required = false) @ApiParam("为空:显示我的收藏 1:不显示我的收藏") String option) {
|
||||
String moduleCode = TableNameEnum.DOMESTIC_REGULATIONS.getValue();
|
||||
List<LawsTreeNodeModel> list = lawsTreeNodeService.queryTreeNodeList(moduleCode, nodeName, option);
|
||||
return Result.OK(list);
|
||||
@@ -68,8 +69,8 @@ public class LawsTreeNodeController extends JeroController<LawsTreeNode, ILawsTr
|
||||
@AutoLog(value = "海外标准-体系树")
|
||||
@ApiOperation(value = "海外标准-体系树", notes = "海外标准-体系树")
|
||||
@GetMapping("/overseas")
|
||||
public Result<List<LawsTreeNodeModel>> queryFBTreeList(@RequestParam(required = false) String nodeName,
|
||||
@RequestParam(required = false) String option) {
|
||||
public Result<List<LawsTreeNodeModel>> queryFBTreeList(@RequestParam(required = false) @ApiParam("节点名称") String nodeName,
|
||||
@RequestParam(required = false) @ApiParam("为空:显示我的收藏 1:不显示我的收藏") String option) {
|
||||
String moduleCode = TableNameEnum.FOREIGN_REGULATIONS.getValue();
|
||||
List<LawsTreeNodeModel> list = lawsTreeNodeService.queryTreeNodeList(moduleCode, nodeName, option);
|
||||
return Result.OK(list);
|
||||
@@ -159,8 +160,8 @@ public class LawsTreeNodeController extends JeroController<LawsTreeNode, ILawsTr
|
||||
* @param moduleCode 所属模块
|
||||
* @return 结果
|
||||
*/
|
||||
private Result<T> commonDelete(Map<String, String> map, String moduleCode) {
|
||||
String id = map.get("id");
|
||||
private Result<T> commonDelete(IdMapBody map, String moduleCode) {
|
||||
String id = map.getId();
|
||||
if (StringUtils.isBlank(id)) {
|
||||
throw new JeroBootException(ResultCommon.PARAMETERS_CANNOT_BE_NULL);
|
||||
}
|
||||
@@ -184,7 +185,7 @@ public class LawsTreeNodeController extends JeroController<LawsTreeNode, ILawsTr
|
||||
@AutoLog(value = "企业标准-通过id删除")
|
||||
@ApiOperation(value = "企业标准-通过id删除", notes = "企业标准-通过id删除")
|
||||
@PostMapping(value = "/enterprise/delete")
|
||||
public Result<T> deleteEN(@RequestBody Map<String, String> map) {
|
||||
public Result<T> deleteEN(@RequestBody IdMapBody map) {
|
||||
return this.commonDelete(map, TableNameEnum.ENTERPRISE_STANDARDS.getValue());
|
||||
}
|
||||
|
||||
@@ -192,7 +193,7 @@ public class LawsTreeNodeController extends JeroController<LawsTreeNode, ILawsTr
|
||||
@AutoLog(value = "国内标准-通过id删除")
|
||||
@ApiOperation(value = "国内标准-通过id删除", notes = "国内标准-通过id删除")
|
||||
@PostMapping(value = "/domestic/delete")
|
||||
public Result<T> deleteGB(@RequestBody Map<String, String> map) {
|
||||
public Result<T> deleteGB(@RequestBody IdMapBody map) {
|
||||
return this.commonDelete(map, TableNameEnum.DOMESTIC_REGULATIONS.getValue());
|
||||
}
|
||||
|
||||
@@ -200,7 +201,7 @@ public class LawsTreeNodeController extends JeroController<LawsTreeNode, ILawsTr
|
||||
@AutoLog(value = "海外标准-通过id删除")
|
||||
@ApiOperation(value = "海外标准-通过id删除", notes = "海外标准-通过id删除")
|
||||
@PostMapping(value = "/overseas/delete")
|
||||
public Result<T> deleteFB(@RequestBody Map<String, String> map) {
|
||||
public Result<T> deleteFB(@RequestBody IdMapBody map) {
|
||||
return this.commonDelete(map, TableNameEnum.FOREIGN_REGULATIONS.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
-9
@@ -41,15 +41,6 @@ public class LawsTreeNodeServiceImpl extends ServiceImpl<LawsTreeNodeMapper, Law
|
||||
@Resource
|
||||
private ILawsNodeRelationService lawsNodeRelationService;
|
||||
|
||||
@Resource
|
||||
private ILawsEnterpriseStandardService enterpriseStandardService;
|
||||
|
||||
@Resource
|
||||
private ILawsDomesticStandardService domesticStandardService;
|
||||
|
||||
@Resource
|
||||
private ILawsOverseasStandardService overseasStandardService;
|
||||
|
||||
@Override
|
||||
public List<LawsTreeNodeModel> queryTreeNodeList(String moduleCode, String nodeName, String option) {
|
||||
LambdaQueryWrapper<LawsTreeNode> query = new LambdaQueryWrapper<>();
|
||||
|
||||
Reference in New Issue
Block a user