|
@@ -5,6 +5,8 @@ import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.jeecg.modules.RegionRule.entity.RegionRule;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
@@ -17,6 +19,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
import org.jeecg.modules.RegionRule.service.IRegionRuleService;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
@@ -25,14 +28,15 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
/**
|
|
|
* @Description: 国别基准
|
|
|
* @Author: jeecg-boot
|
|
|
- * @Date: 2025-05-22
|
|
|
+ * @Date: 2025-05-28
|
|
|
* @Version: V1.0
|
|
|
*/
|
|
|
+@Api(tags="国别基准")
|
|
|
@RestController
|
|
|
@RequestMapping("/regionRule")
|
|
|
@Slf4j
|
|
|
public class RegionRuleController extends JeecgController<RegionRule, IRegionRuleService> {
|
|
|
- @Resource
|
|
|
+ @Autowired
|
|
|
private IRegionRuleService regionRuleService;
|
|
|
|
|
|
/**
|
|
@@ -45,6 +49,7 @@ public class RegionRuleController extends JeecgController<RegionRule, IRegionRul
|
|
|
* @return
|
|
|
*/
|
|
|
//@AutoLog(value = "国别基准-分页列表查询")
|
|
|
+ @ApiOperation(value="国别基准-分页列表查询", notes="国别基准-分页列表查询")
|
|
|
@GetMapping(value = "/list")
|
|
|
public Result<IPage<RegionRule>> queryPageList(RegionRule regionRule,
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
@@ -65,6 +70,7 @@ public class RegionRuleController extends JeecgController<RegionRule, IRegionRul
|
|
|
* @return
|
|
|
*/
|
|
|
@AutoLog(value = "国别基准-添加")
|
|
|
+ @ApiOperation(value="国别基准-添加", notes="国别基准-添加")
|
|
|
@RequiresPermissions("lg:region_rule:add")
|
|
|
@PostMapping(value = "/add")
|
|
|
public Result<String> add(@RequestBody RegionRule regionRule) {
|
|
@@ -80,6 +86,7 @@ public class RegionRuleController extends JeecgController<RegionRule, IRegionRul
|
|
|
* @return
|
|
|
*/
|
|
|
@AutoLog(value = "国别基准-编辑")
|
|
|
+ @ApiOperation(value="国别基准-编辑", notes="国别基准-编辑")
|
|
|
@RequiresPermissions("lg:region_rule:edit")
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
public Result<String> edit(@RequestBody RegionRule regionRule) {
|
|
@@ -94,6 +101,7 @@ public class RegionRuleController extends JeecgController<RegionRule, IRegionRul
|
|
|
* @return
|
|
|
*/
|
|
|
@AutoLog(value = "国别基准-通过id删除")
|
|
|
+ @ApiOperation(value="国别基准-通过id删除", notes="国别基准-通过id删除")
|
|
|
@RequiresPermissions("lg:region_rule:delete")
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
@@ -108,6 +116,7 @@ public class RegionRuleController extends JeecgController<RegionRule, IRegionRul
|
|
|
* @return
|
|
|
*/
|
|
|
@AutoLog(value = "国别基准-批量删除")
|
|
|
+ @ApiOperation(value="国别基准-批量删除", notes="国别基准-批量删除")
|
|
|
@RequiresPermissions("lg:region_rule:deleteBatch")
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
@@ -122,6 +131,7 @@ public class RegionRuleController extends JeecgController<RegionRule, IRegionRul
|
|
|
* @return
|
|
|
*/
|
|
|
//@AutoLog(value = "国别基准-通过id查询")
|
|
|
+ @ApiOperation(value="国别基准-通过id查询", notes="国别基准-通过id查询")
|
|
|
@GetMapping(value = "/queryById")
|
|
|
public Result<RegionRule> queryById(@RequestParam(name="id",required=true) String id) {
|
|
|
RegionRule regionRule = regionRuleService.getById(id);
|