|
|
|
@ -21,6 +21,7 @@ import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springblade.common.constant.CommonConstant; |
|
|
|
import org.springblade.common.constant.CommonConstant; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.excel.util.ExcelUtil; |
|
|
|
import org.springblade.core.excel.util.ExcelUtil; |
|
|
|
|
|
|
|
import org.springblade.core.log.annotation.ApiLog; |
|
|
|
import org.springblade.core.mp.base.BaseEntity; |
|
|
|
import org.springblade.core.mp.base.BaseEntity; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
@ -184,6 +185,7 @@ public class BasicClazzController extends BladeController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PostMapping("/save") |
|
|
|
@PostMapping("/save") |
|
|
|
@ApiOperationSupport(order = 30) |
|
|
|
@ApiOperationSupport(order = 30) |
|
|
|
|
|
|
|
@ApiLog("新增基础分类") |
|
|
|
@Operation(summary = "新增一条", description = "传入BasicClazz Obj") |
|
|
|
@Operation(summary = "新增一条", description = "传入BasicClazz Obj") |
|
|
|
public R save(@Valid @RequestBody BasicClazz addOne) { |
|
|
|
public R save(@Valid @RequestBody BasicClazz addOne) { |
|
|
|
addOne.setId(null); |
|
|
|
addOne.setId(null); |
|
|
|
@ -195,6 +197,7 @@ public class BasicClazzController extends BladeController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PostMapping("/saveBat") |
|
|
|
@PostMapping("/saveBat") |
|
|
|
@ApiOperationSupport(order = 31) |
|
|
|
@ApiOperationSupport(order = 31) |
|
|
|
|
|
|
|
@ApiLog("新增基础分类") |
|
|
|
@Operation(summary = "新增批量", description = "传入BasicClazz List") |
|
|
|
@Operation(summary = "新增批量", description = "传入BasicClazz List") |
|
|
|
public R saveBat(@Valid @RequestBody List<BasicClazz> addList) { |
|
|
|
public R saveBat(@Valid @RequestBody List<BasicClazz> addList) { |
|
|
|
addList.forEach(one -> { |
|
|
|
addList.forEach(one -> { |
|
|
|
@ -208,6 +211,7 @@ public class BasicClazzController extends BladeController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PostMapping("/update") |
|
|
|
@PostMapping("/update") |
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
|
|
|
|
@ApiLog("修改基础分类") |
|
|
|
@Operation(summary = "修改一条", description = "传入BasicClazz Obj") |
|
|
|
@Operation(summary = "修改一条", description = "传入BasicClazz Obj") |
|
|
|
public R update(@Valid @RequestBody BasicClazz updateOne) { |
|
|
|
public R update(@Valid @RequestBody BasicClazz updateOne) { |
|
|
|
return R.status(service.updateById(updateOne)); |
|
|
|
return R.status(service.updateById(updateOne)); |
|
|
|
@ -218,6 +222,7 @@ public class BasicClazzController extends BladeController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PostMapping("/updateBat") |
|
|
|
@PostMapping("/updateBat") |
|
|
|
@ApiOperationSupport(order = 41) |
|
|
|
@ApiOperationSupport(order = 41) |
|
|
|
|
|
|
|
@ApiLog("修改基础分类") |
|
|
|
@Operation(summary = "修改批量", description = "传入BasicClazz List") |
|
|
|
@Operation(summary = "修改批量", description = "传入BasicClazz List") |
|
|
|
public R updateBat(@Valid @RequestBody List<BasicClazz> updateList) { |
|
|
|
public R updateBat(@Valid @RequestBody List<BasicClazz> updateList) { |
|
|
|
return R.status(service.updateBatchById(updateList)); |
|
|
|
return R.status(service.updateBatchById(updateList)); |
|
|
|
@ -248,6 +253,7 @@ public class BasicClazzController extends BladeController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PostMapping("/remove") |
|
|
|
@PostMapping("/remove") |
|
|
|
@ApiOperationSupport(order = 61) |
|
|
|
@ApiOperationSupport(order = 61) |
|
|
|
|
|
|
|
@ApiLog("删除基础分类") |
|
|
|
@Operation(summary = "逻辑删除", description = "传入ids") |
|
|
|
@Operation(summary = "逻辑删除", description = "传入ids") |
|
|
|
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
|
|
|
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
|
|
|
return R.status(service.deleteLogic(Func.toLongList(ids))); |
|
|
|
return R.status(service.deleteLogic(Func.toLongList(ids))); |
|
|
|
|