konbai
2022-01-16 404cb4c7a6c8ef6c8ad53893e92b623e4e5e6ed3
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)));