update 对通用操作做拆分
This commit is contained in:
-87
@@ -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<IPage<Map<String,Object>>> getCommonPage(@RequestBody Map<String,Object> parameterMap) {
|
||||
return Result.OK(lawsCommonService.getCommonPage(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "通用操作-获取列表表头")
|
||||
@ApiOperation(value="通用操作-获取列表表头", notes="通用操作-获取列表表头")
|
||||
@GetMapping(value = "getCommonHeader")
|
||||
public Result<List<LawsTag>> getCommonHeader(@RequestParam(name="module") String module) {
|
||||
return Result.OK(lawsCommonService.getCommonHeader(module));
|
||||
}
|
||||
|
||||
@AutoLog(value = "通用操作-新增数据")
|
||||
@ApiOperation(value="通用操作-新增数据", notes="通用操作-新增数据")
|
||||
@PostMapping(value = "/commonAdd")
|
||||
public Result<String> commonAdd(@RequestBody Map<String,Object> parameterMap) {
|
||||
return Result.OK(lawsCommonService.commonAdd(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "通用操作-编辑数据")
|
||||
@ApiOperation(value="通用操作-编辑数据", notes="通用操作-编辑数据")
|
||||
@PostMapping(value = "/commonEdit")
|
||||
public Result<String> commonEdit(@RequestBody Map<String,Object> parameterMap) {
|
||||
return Result.OK(lawsCommonService.commonEdit(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "通用操作-获取查询条件")
|
||||
@ApiOperation(value="通用操作-获取查询条件", notes="通用操作-获取查询条件")
|
||||
@GetMapping(value = "getQueryCondition")
|
||||
public Result<List<LawsTag>> getQueryCondition(@RequestParam(name="module") String module) {
|
||||
return Result.OK(lawsCommonService.getQueryCondition(module));
|
||||
}
|
||||
|
||||
@AutoLog(value = "通用操作-获取表单模型")
|
||||
@ApiOperation(value="通用操作-获取表单模型", notes="通用操作-获取表单模型")
|
||||
@GetMapping(value = "getFormModel")
|
||||
public Result<Map<String,Object>> 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<Map<String,Object>> 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<String> deleteByIdsAndModule(@RequestParam(name="ids") String ids,
|
||||
@RequestParam(name="module") String module) {
|
||||
return Result.OK(lawsCommonService.deleteByIdsAndModule(ids, module));
|
||||
}
|
||||
|
||||
}
|
||||
+92
@@ -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<IPage<Map<String,Object>>> getCommonPage(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.getCommonPage(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内法规标准-获取列表表头")
|
||||
@ApiOperation(value="国内法规标准-获取列表表头", notes="国内法规标准-获取列表表头")
|
||||
@GetMapping(value = "getCommonHeader")
|
||||
public Result<List<LawsTag>> getCommonHeader() {
|
||||
return Result.OK(lawsCommonService.getCommonHeader(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内法规标准-新增数据")
|
||||
@ApiOperation(value="国内法规标准-新增数据", notes="国内法规标准-新增数据")
|
||||
@PostMapping(value = "/commonAdd")
|
||||
public Result<String> commonAdd(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.commonAdd(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内法规标准-编辑数据")
|
||||
@ApiOperation(value="国内法规标准-编辑数据", notes="国内法规标准-编辑数据")
|
||||
@PostMapping(value = "/commonEdit")
|
||||
public Result<String> commonEdit(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.commonEdit(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内法规标准-获取查询条件")
|
||||
@ApiOperation(value="国内法规标准-获取查询条件", notes="国内法规标准-获取查询条件")
|
||||
@GetMapping(value = "getQueryCondition")
|
||||
public Result<List<LawsTag>> getQueryCondition() {
|
||||
return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内法规标准-获取表单模型")
|
||||
@ApiOperation(value="国内法规标准-获取表单模型", notes="国内法规标准-获取表单模型")
|
||||
@GetMapping(value = "getFormModel")
|
||||
public Result<Map<String,Object>> getFormModel() {
|
||||
return Result.OK(lawsCommonService.getFormModel(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内法规标准-根据id和模块标识获取信息")
|
||||
@ApiOperation(value="国内法规标准-根据id和模块标识获取信息", notes="国内法规标准-根据id和模块标识获取信息")
|
||||
@GetMapping(value = "getByIdAndModule")
|
||||
public Result<Map<String,Object>> 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<String> deleteByIdsAndModule(@RequestParam(name="ids") String ids) {
|
||||
return Result.OK(lawsCommonService.deleteByIdsAndModule(ids, MODULE_VALUE));
|
||||
}
|
||||
|
||||
}
|
||||
+92
@@ -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<IPage<Map<String,Object>>> getCommonPage(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.getCommonPage(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业法规标准-获取列表表头")
|
||||
@ApiOperation(value="企业法规标准-获取列表表头", notes="企业法规标准-获取列表表头")
|
||||
@GetMapping(value = "getCommonHeader")
|
||||
public Result<List<LawsTag>> getCommonHeader() {
|
||||
return Result.OK(lawsCommonService.getCommonHeader(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业法规标准-新增数据")
|
||||
@ApiOperation(value="企业法规标准-新增数据", notes="企业法规标准-新增数据")
|
||||
@PostMapping(value = "/commonAdd")
|
||||
public Result<String> commonAdd(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.commonAdd(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业法规标准-编辑数据")
|
||||
@ApiOperation(value="企业法规标准-编辑数据", notes="企业法规标准-编辑数据")
|
||||
@PostMapping(value = "/commonEdit")
|
||||
public Result<String> commonEdit(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.commonEdit(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业法规标准-获取查询条件")
|
||||
@ApiOperation(value="企业法规标准-获取查询条件", notes="企业法规标准-获取查询条件")
|
||||
@GetMapping(value = "getQueryCondition")
|
||||
public Result<List<LawsTag>> getQueryCondition() {
|
||||
return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业法规标准-获取表单模型")
|
||||
@ApiOperation(value="企业法规标准-获取表单模型", notes="企业法规标准-获取表单模型")
|
||||
@GetMapping(value = "getFormModel")
|
||||
public Result<Map<String,Object>> getFormModel() {
|
||||
return Result.OK(lawsCommonService.getFormModel(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业法规标准-根据id和模块标识获取信息")
|
||||
@ApiOperation(value="企业法规标准-根据id和模块标识获取信息", notes="企业法规标准-根据id和模块标识获取信息")
|
||||
@GetMapping(value = "getByIdAndModule")
|
||||
public Result<Map<String,Object>> 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<String> deleteByIdsAndModule(@RequestParam(name="ids") String ids) {
|
||||
return Result.OK(lawsCommonService.deleteByIdsAndModule(ids, MODULE_VALUE));
|
||||
}
|
||||
|
||||
}
|
||||
+92
@@ -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<IPage<Map<String,Object>>> getCommonPage(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.getCommonPage(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外法规标准-获取列表表头")
|
||||
@ApiOperation(value="海外法规标准-获取列表表头", notes="海外法规标准-获取列表表头")
|
||||
@GetMapping(value = "getCommonHeader")
|
||||
public Result<List<LawsTag>> getCommonHeader() {
|
||||
return Result.OK(lawsCommonService.getCommonHeader(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外法规标准-新增数据")
|
||||
@ApiOperation(value="海外法规标准-新增数据", notes="海外法规标准-新增数据")
|
||||
@PostMapping(value = "/commonAdd")
|
||||
public Result<String> commonAdd(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.commonAdd(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外法规标准-编辑数据")
|
||||
@ApiOperation(value="海外法规标准-编辑数据", notes="海外法规标准-编辑数据")
|
||||
@PostMapping(value = "/commonEdit")
|
||||
public Result<String> commonEdit(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
return Result.OK(lawsCommonService.commonEdit(parameterMap));
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外法规标准-获取查询条件")
|
||||
@ApiOperation(value="海外法规标准-获取查询条件", notes="海外法规标准-获取查询条件")
|
||||
@GetMapping(value = "getQueryCondition")
|
||||
public Result<List<LawsTag>> getQueryCondition() {
|
||||
return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外法规标准-获取表单模型")
|
||||
@ApiOperation(value="海外法规标准-获取表单模型", notes="海外法规标准-获取表单模型")
|
||||
@GetMapping(value = "getFormModel")
|
||||
public Result<Map<String,Object>> getFormModel() {
|
||||
return Result.OK(lawsCommonService.getFormModel(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外法规标准-根据id和模块标识获取信息")
|
||||
@ApiOperation(value="海外法规标准-根据id和模块标识获取信息", notes="海外法规标准-根据id和模块标识获取信息")
|
||||
@GetMapping(value = "getByIdAndModule")
|
||||
public Result<Map<String,Object>> 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<String> deleteByIdsAndModule(@RequestParam(name="ids") String ids) {
|
||||
return Result.OK(lawsCommonService.deleteByIdsAndModule(ids, MODULE_VALUE));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user