diff --git a/jero-boot-modules/src/main/java/com/jero/modules/laws/common/controller/LawsCommonController.java b/jero-boot-modules/src/main/java/com/jero/modules/laws/common/controller/LawsCommonController.java deleted file mode 100644 index e63daa48..00000000 --- a/jero-boot-modules/src/main/java/com/jero/modules/laws/common/controller/LawsCommonController.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.jero.modules.laws.common.controller; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.jero.common.api.vo.Result; -import com.jero.common.aspect.annotation.AutoLog; -import com.jero.modules.laws.common.service.ILawsCommonService; -import com.jero.modules.tag.entity.LawsTag; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.List; -import java.util.Map; - -/** - * @Author: liao - * @Date: 2023/8/24 10:26 - * @Description: 标准法规库-通用操作 - */ -@Api(tags="通用操作") -@RestController -@RequestMapping("/laws/common") -public class LawsCommonController { - - @Autowired - private ILawsCommonService lawsCommonService; - - @AutoLog(value = "通用操作-分页列表查询") - @ApiOperation(value="通用操作-分页列表查询", notes="通用操作-分页列表查询") - @PostMapping(value = "/getCommonPage") - public Result>> getCommonPage(@RequestBody Map parameterMap) { - return Result.OK(lawsCommonService.getCommonPage(parameterMap)); - } - - @AutoLog(value = "通用操作-获取列表表头") - @ApiOperation(value="通用操作-获取列表表头", notes="通用操作-获取列表表头") - @GetMapping(value = "getCommonHeader") - public Result> getCommonHeader(@RequestParam(name="module") String module) { - return Result.OK(lawsCommonService.getCommonHeader(module)); - } - - @AutoLog(value = "通用操作-新增数据") - @ApiOperation(value="通用操作-新增数据", notes="通用操作-新增数据") - @PostMapping(value = "/commonAdd") - public Result commonAdd(@RequestBody Map parameterMap) { - return Result.OK(lawsCommonService.commonAdd(parameterMap)); - } - - @AutoLog(value = "通用操作-编辑数据") - @ApiOperation(value="通用操作-编辑数据", notes="通用操作-编辑数据") - @PostMapping(value = "/commonEdit") - public Result commonEdit(@RequestBody Map parameterMap) { - return Result.OK(lawsCommonService.commonEdit(parameterMap)); - } - - @AutoLog(value = "通用操作-获取查询条件") - @ApiOperation(value="通用操作-获取查询条件", notes="通用操作-获取查询条件") - @GetMapping(value = "getQueryCondition") - public Result> getQueryCondition(@RequestParam(name="module") String module) { - return Result.OK(lawsCommonService.getQueryCondition(module)); - } - - @AutoLog(value = "通用操作-获取表单模型") - @ApiOperation(value="通用操作-获取表单模型", notes="通用操作-获取表单模型") - @GetMapping(value = "getFormModel") - public Result> getFormModel(@RequestParam(name="module") String module) { - return Result.OK(lawsCommonService.getFormModel(module)); - } - - @AutoLog(value = "通用操作-根据id和模块标识获取信息") - @ApiOperation(value="通用操作-根据id和模块标识获取信息", notes="通用操作-根据id和模块标识获取信息") - @GetMapping(value = "getByIdAndModule") - public Result> getByIdAndModule(@RequestParam(name="id") String id, - @RequestParam(name="module") String module) { - return Result.OK(lawsCommonService.getByIdAndModule(id, module)); - } - - @AutoLog(value = "通用操作-根据ids和模块标识删除信息") - @ApiOperation(value="通用操作-根据ids和模块标识删除信息", notes="通用操作-根据ids和模块标识删除信息") - @GetMapping(value = "deleteByIdsAndModule") - public Result deleteByIdsAndModule(@RequestParam(name="ids") String ids, - @RequestParam(name="module") String module) { - return Result.OK(lawsCommonService.deleteByIdsAndModule(ids, module)); - } - -} diff --git a/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsDomesticController.java b/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsDomesticController.java new file mode 100644 index 00000000..213fe65a --- /dev/null +++ b/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsDomesticController.java @@ -0,0 +1,92 @@ +package com.jero.modules.laws.standard.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.AutoLog; +import com.jero.modules.laws.common.constant.FieldCommon; +import com.jero.modules.laws.common.service.ILawsCommonService; +import com.jero.modules.tag.entity.LawsTag; +import com.jero.modules.tag.enums.TableNameEnum; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.Map; + +/** + * @Author: liao + * @Date: 2023/8/25 16:26 + * @Description: 国内法规标准 + */ +@Api(tags="国内法规标准") +@RestController +@RequestMapping("/laws/standard/domestic") +public class LawsDomesticController { + + @Autowired + private ILawsCommonService lawsCommonService; + + private static final String MODULE_VALUE = TableNameEnum.DOMESTIC_REGULATIONS.getValue(); + + @AutoLog(value = "国内法规标准-分页列表查询") + @ApiOperation(value="国内法规标准-分页列表查询", notes="国内法规标准-分页列表查询") + @PostMapping(value = "/getCommonPage") + public Result>> getCommonPage(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.getCommonPage(parameterMap)); + } + + @AutoLog(value = "国内法规标准-获取列表表头") + @ApiOperation(value="国内法规标准-获取列表表头", notes="国内法规标准-获取列表表头") + @GetMapping(value = "getCommonHeader") + public Result> getCommonHeader() { + return Result.OK(lawsCommonService.getCommonHeader(MODULE_VALUE)); + } + + @AutoLog(value = "国内法规标准-新增数据") + @ApiOperation(value="国内法规标准-新增数据", notes="国内法规标准-新增数据") + @PostMapping(value = "/commonAdd") + public Result commonAdd(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.commonAdd(parameterMap)); + } + + @AutoLog(value = "国内法规标准-编辑数据") + @ApiOperation(value="国内法规标准-编辑数据", notes="国内法规标准-编辑数据") + @PostMapping(value = "/commonEdit") + public Result commonEdit(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.commonEdit(parameterMap)); + } + + @AutoLog(value = "国内法规标准-获取查询条件") + @ApiOperation(value="国内法规标准-获取查询条件", notes="国内法规标准-获取查询条件") + @GetMapping(value = "getQueryCondition") + public Result> getQueryCondition() { + return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE)); + } + + @AutoLog(value = "国内法规标准-获取表单模型") + @ApiOperation(value="国内法规标准-获取表单模型", notes="国内法规标准-获取表单模型") + @GetMapping(value = "getFormModel") + public Result> getFormModel() { + return Result.OK(lawsCommonService.getFormModel(MODULE_VALUE)); + } + + @AutoLog(value = "国内法规标准-根据id和模块标识获取信息") + @ApiOperation(value="国内法规标准-根据id和模块标识获取信息", notes="国内法规标准-根据id和模块标识获取信息") + @GetMapping(value = "getByIdAndModule") + public Result> getByIdAndModule(@RequestParam(name="id") String id) { + return Result.OK(lawsCommonService.getByIdAndModule(id, MODULE_VALUE)); + } + + @AutoLog(value = "国内法规标准-根据ids和模块标识删除信息") + @ApiOperation(value="国内法规标准-根据ids和模块标识删除信息", notes="国内法规标准-根据ids和模块标识删除信息") + @GetMapping(value = "deleteByIdsAndModule") + public Result deleteByIdsAndModule(@RequestParam(name="ids") String ids) { + return Result.OK(lawsCommonService.deleteByIdsAndModule(ids, MODULE_VALUE)); + } + +} diff --git a/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsEnterpriseController.java b/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsEnterpriseController.java new file mode 100644 index 00000000..018f3e1a --- /dev/null +++ b/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsEnterpriseController.java @@ -0,0 +1,92 @@ +package com.jero.modules.laws.standard.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.AutoLog; +import com.jero.modules.laws.common.constant.FieldCommon; +import com.jero.modules.laws.common.service.ILawsCommonService; +import com.jero.modules.tag.entity.LawsTag; +import com.jero.modules.tag.enums.TableNameEnum; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.Map; + +/** + * @Author: liao + * @Date: 2023/8/25 16:26 + * @Description: 企业法规标准 + */ +@Api(tags="企业法规标准") +@RestController +@RequestMapping("/laws/standard/domestic") +public class LawsEnterpriseController { + + @Autowired + private ILawsCommonService lawsCommonService; + + private static final String MODULE_VALUE = TableNameEnum.ENTERPRISE_STANDARDS.getValue(); + + @AutoLog(value = "企业法规标准-分页列表查询") + @ApiOperation(value="企业法规标准-分页列表查询", notes="企业法规标准-分页列表查询") + @PostMapping(value = "/getCommonPage") + public Result>> getCommonPage(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.getCommonPage(parameterMap)); + } + + @AutoLog(value = "企业法规标准-获取列表表头") + @ApiOperation(value="企业法规标准-获取列表表头", notes="企业法规标准-获取列表表头") + @GetMapping(value = "getCommonHeader") + public Result> getCommonHeader() { + return Result.OK(lawsCommonService.getCommonHeader(MODULE_VALUE)); + } + + @AutoLog(value = "企业法规标准-新增数据") + @ApiOperation(value="企业法规标准-新增数据", notes="企业法规标准-新增数据") + @PostMapping(value = "/commonAdd") + public Result commonAdd(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.commonAdd(parameterMap)); + } + + @AutoLog(value = "企业法规标准-编辑数据") + @ApiOperation(value="企业法规标准-编辑数据", notes="企业法规标准-编辑数据") + @PostMapping(value = "/commonEdit") + public Result commonEdit(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.commonEdit(parameterMap)); + } + + @AutoLog(value = "企业法规标准-获取查询条件") + @ApiOperation(value="企业法规标准-获取查询条件", notes="企业法规标准-获取查询条件") + @GetMapping(value = "getQueryCondition") + public Result> getQueryCondition() { + return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE)); + } + + @AutoLog(value = "企业法规标准-获取表单模型") + @ApiOperation(value="企业法规标准-获取表单模型", notes="企业法规标准-获取表单模型") + @GetMapping(value = "getFormModel") + public Result> getFormModel() { + return Result.OK(lawsCommonService.getFormModel(MODULE_VALUE)); + } + + @AutoLog(value = "企业法规标准-根据id和模块标识获取信息") + @ApiOperation(value="企业法规标准-根据id和模块标识获取信息", notes="企业法规标准-根据id和模块标识获取信息") + @GetMapping(value = "getByIdAndModule") + public Result> getByIdAndModule(@RequestParam(name="id") String id) { + return Result.OK(lawsCommonService.getByIdAndModule(id, MODULE_VALUE)); + } + + @AutoLog(value = "企业法规标准-根据ids和模块标识删除信息") + @ApiOperation(value="企业法规标准-根据ids和模块标识删除信息", notes="企业法规标准-根据ids和模块标识删除信息") + @GetMapping(value = "deleteByIdsAndModule") + public Result deleteByIdsAndModule(@RequestParam(name="ids") String ids) { + return Result.OK(lawsCommonService.deleteByIdsAndModule(ids, MODULE_VALUE)); + } + +} diff --git a/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsOverseasController.java b/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsOverseasController.java new file mode 100644 index 00000000..568d8e56 --- /dev/null +++ b/jero-boot-modules/src/main/java/com/jero/modules/laws/standard/controller/LawsOverseasController.java @@ -0,0 +1,92 @@ +package com.jero.modules.laws.standard.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.AutoLog; +import com.jero.modules.laws.common.constant.FieldCommon; +import com.jero.modules.laws.common.service.ILawsCommonService; +import com.jero.modules.tag.entity.LawsTag; +import com.jero.modules.tag.enums.TableNameEnum; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.Map; + +/** + * @Author: liao + * @Date: 2023/8/25 16:26 + * @Description: 海外法规标准 + */ +@Api(tags="海外法规标准") +@RestController +@RequestMapping("/laws/standard/overseas") +public class LawsOverseasController { + + @Autowired + private ILawsCommonService lawsCommonService; + + private static final String MODULE_VALUE = TableNameEnum.FOREIGN_REGULATIONS.getValue(); + + @AutoLog(value = "海外法规标准-分页列表查询") + @ApiOperation(value="海外法规标准-分页列表查询", notes="海外法规标准-分页列表查询") + @PostMapping(value = "/getCommonPage") + public Result>> getCommonPage(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.getCommonPage(parameterMap)); + } + + @AutoLog(value = "海外法规标准-获取列表表头") + @ApiOperation(value="海外法规标准-获取列表表头", notes="海外法规标准-获取列表表头") + @GetMapping(value = "getCommonHeader") + public Result> getCommonHeader() { + return Result.OK(lawsCommonService.getCommonHeader(MODULE_VALUE)); + } + + @AutoLog(value = "海外法规标准-新增数据") + @ApiOperation(value="海外法规标准-新增数据", notes="海外法规标准-新增数据") + @PostMapping(value = "/commonAdd") + public Result commonAdd(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.commonAdd(parameterMap)); + } + + @AutoLog(value = "海外法规标准-编辑数据") + @ApiOperation(value="海外法规标准-编辑数据", notes="海外法规标准-编辑数据") + @PostMapping(value = "/commonEdit") + public Result commonEdit(@RequestBody Map parameterMap) { + parameterMap.put(FieldCommon.MODULE, MODULE_VALUE); + return Result.OK(lawsCommonService.commonEdit(parameterMap)); + } + + @AutoLog(value = "海外法规标准-获取查询条件") + @ApiOperation(value="海外法规标准-获取查询条件", notes="海外法规标准-获取查询条件") + @GetMapping(value = "getQueryCondition") + public Result> getQueryCondition() { + return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE)); + } + + @AutoLog(value = "海外法规标准-获取表单模型") + @ApiOperation(value="海外法规标准-获取表单模型", notes="海外法规标准-获取表单模型") + @GetMapping(value = "getFormModel") + public Result> getFormModel() { + return Result.OK(lawsCommonService.getFormModel(MODULE_VALUE)); + } + + @AutoLog(value = "海外法规标准-根据id和模块标识获取信息") + @ApiOperation(value="海外法规标准-根据id和模块标识获取信息", notes="海外法规标准-根据id和模块标识获取信息") + @GetMapping(value = "getByIdAndModule") + public Result> getByIdAndModule(@RequestParam(name="id") String id) { + return Result.OK(lawsCommonService.getByIdAndModule(id, MODULE_VALUE)); + } + + @AutoLog(value = "海外法规标准-根据ids和模块标识删除信息") + @ApiOperation(value="海外法规标准-根据ids和模块标识删除信息", notes="海外法规标准-根据ids和模块标识删除信息") + @GetMapping(value = "deleteByIdsAndModule") + public Result deleteByIdsAndModule(@RequestParam(name="ids") String ids) { + return Result.OK(lawsCommonService.deleteByIdsAndModule(ids, MODULE_VALUE)); + } + +}