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