疯狂的狮子li
2022-01-13 ff4a429136ed859d3c121b164ab3dc9a4321c89b
ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestBatchController.java
@@ -41,7 +41,7 @@
     */
    @ApiOperation(value = "新增批量方法")
    @PostMapping("/add")
//   @DS("slave")
//    @DS("slave")
    public AjaxResult<Void> add() {
        List<TestDemo> list = new ArrayList<>();
        for (int i = 0; i < 1000; i++) {
@@ -57,7 +57,7 @@
     */
    @ApiOperation(value = "新增或更新批量方法")
    @PostMapping("/addOrUpdate")
//   @DS("slave")
//    @DS("slave")
    public AjaxResult<Void> addOrUpdate() {
        List<TestDemo> list = new ArrayList<>();
        for (int i = 0; i < 1000; i++) {
@@ -79,7 +79,7 @@
     */
    @ApiOperation(value = "删除批量方法")
    @DeleteMapping()
//   @DS("slave")
//    @DS("slave")
    public AjaxResult<Void> remove() {
        return toAjax(testDemoMapper.delete(new LambdaQueryWrapper<TestDemo>()
            .eq(TestDemo::getOrderNum, -1L)));