فهرست منبع

代碼格式化

zhuangdezheng 1 سال پیش
والد
کامیت
5b3660dc80
1فایلهای تغییر یافته به همراه10 افزوده شده و 18 حذف شده
  1. 10 18
      src/main/java/cn/ezhizao/project/business/shaftCategory/controller/BizShaftCategoryController.java

+ 10 - 18
src/main/java/cn/ezhizao/project/business/shaftCategory/controller/BizShaftCategoryController.java

@@ -30,8 +30,7 @@ import cn.ezhizao.project.business.shaftCategory.service.IBizShaftCategoryServic
  */
 @RestController
 @RequestMapping("/base/shaftCategory")
-public class BizShaftCategoryController extends BaseController
-{
+public class BizShaftCategoryController extends BaseController {
     @Resource
     private IBizShaftCategoryService bizShaftCategoryService;
 
@@ -40,8 +39,7 @@ public class BizShaftCategoryController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('base:shaftCategory:list')")
     @GetMapping("/list")
-    public TableDataInfo list(BizShaftCategory bizShaftCategory) throws NoSuchFieldException, IllegalAccessException
-    {
+    public TableDataInfo list(BizShaftCategory bizShaftCategory) throws NoSuchFieldException, IllegalAccessException {
         setTenantId(bizShaftCategory);
         startPage();
         List<BizShaftCategory> list = bizShaftCategoryService.getList(bizShaftCategory);
@@ -54,8 +52,7 @@ public class BizShaftCategoryController extends BaseController
     @PreAuthorize("@ss.hasPermi('base:shaftCategory:export')")
     @Log(title = "盘点同步", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
-    public void export(HttpServletResponse response, BizShaftCategory bizShaftCategory) throws NoSuchFieldException, IllegalAccessException
-    {
+    public void export(HttpServletResponse response, BizShaftCategory bizShaftCategory) throws NoSuchFieldException, IllegalAccessException {
         setTenantId(bizShaftCategory);
         List<BizShaftCategory> list = bizShaftCategoryService.getList(bizShaftCategory);
         ExcelUtil<BizShaftCategory> util = new ExcelUtil<BizShaftCategory>(BizShaftCategory.class);
@@ -67,8 +64,7 @@ public class BizShaftCategoryController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('base:shaftCategory:query')")
     @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
         return success(bizShaftCategoryService.getById(id));
     }
 
@@ -78,8 +74,7 @@ public class BizShaftCategoryController extends BaseController
     @PreAuthorize("@ss.hasPermi('base:shaftCategory:add')")
     @Log(title = "盘点同步", businessType = BusinessType.INSERT)
     @PostMapping
-    public AjaxResult add(@RequestBody BizShaftCategory bizShaftCategory) throws NoSuchFieldException, IllegalAccessException
-    {
+    public AjaxResult add(@RequestBody BizShaftCategory bizShaftCategory) throws NoSuchFieldException, IllegalAccessException {
         setTenantId(bizShaftCategory);
         return toAjax(bizShaftCategoryService.save(bizShaftCategory));
     }
@@ -90,8 +85,7 @@ public class BizShaftCategoryController extends BaseController
     @PreAuthorize("@ss.hasPermi('base:shaftCategory:edit')")
     @Log(title = "盘点同步", businessType = BusinessType.UPDATE)
     @PutMapping
-    public AjaxResult edit(@RequestBody BizShaftCategory bizShaftCategory) throws NoSuchFieldException, IllegalAccessException
-    {
+    public AjaxResult edit(@RequestBody BizShaftCategory bizShaftCategory) throws NoSuchFieldException, IllegalAccessException {
         setTenantId(bizShaftCategory);
         return toAjax(bizShaftCategoryService.updateById(bizShaftCategory));
     }
@@ -101,9 +95,8 @@ public class BizShaftCategoryController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('base:shaftCategory:remove')")
     @Log(title = "盘点同步", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable List<Long> ids)
-    {
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable List<Long> ids) {
         return toAjax(bizShaftCategoryService.removeBatchByIds(ids));
     }
 
@@ -111,9 +104,8 @@ public class BizShaftCategoryController extends BaseController
      * 获取轴类型Id
      */
     @GetMapping(value = "/getShaftCode")
-    public BizShaftCategory getShaftCode(@PathVariable("id") String code)
-    {
-        return bizShaftCategoryService.query().eq("sub_category_code",code).one();
+    public BizShaftCategory getShaftCode(@PathVariable("id") String code) {
+        return bizShaftCategoryService.query().eq("sub_category_code", code).one();
     }
 
 }