update 更改演示案例多数据源注解
This commit is contained in:
parent
877a9d510b
commit
a2d49f9981
@ -36,7 +36,7 @@ public class TestBatchController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@ApiOperation(value = "新增批量方法")
|
@ApiOperation(value = "新增批量方法")
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
// @DataSource(DataSourceType.SLAVE)
|
// @DS("slave")
|
||||||
public AjaxResult<Void> add() {
|
public AjaxResult<Void> add() {
|
||||||
List<TestDemo> list = new ArrayList<>();
|
List<TestDemo> list = new ArrayList<>();
|
||||||
for (int i = 0; i < 1000; i++) {
|
for (int i = 0; i < 1000; i++) {
|
||||||
@ -50,7 +50,7 @@ public class TestBatchController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@ApiOperation(value = "新增或更新批量方法")
|
@ApiOperation(value = "新增或更新批量方法")
|
||||||
@PostMapping("/addOrUpdate")
|
@PostMapping("/addOrUpdate")
|
||||||
// @DataSource(DataSourceType.SLAVE)
|
// @DS("slave")
|
||||||
public AjaxResult<Void> addOrUpdate() {
|
public AjaxResult<Void> addOrUpdate() {
|
||||||
List<TestDemo> list = new ArrayList<>();
|
List<TestDemo> list = new ArrayList<>();
|
||||||
for (int i = 0; i < 1000; i++) {
|
for (int i = 0; i < 1000; i++) {
|
||||||
@ -72,7 +72,7 @@ public class TestBatchController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@ApiOperation(value = "删除批量方法")
|
@ApiOperation(value = "删除批量方法")
|
||||||
@DeleteMapping()
|
@DeleteMapping()
|
||||||
// @DataSource(DataSourceType.SLAVE)
|
// @DS("slave")
|
||||||
public AjaxResult<Void> remove() {
|
public AjaxResult<Void> remove() {
|
||||||
return toAjax(iTestDemoService.remove(new LambdaQueryWrapper<TestDemo>()
|
return toAjax(iTestDemoService.remove(new LambdaQueryWrapper<TestDemo>()
|
||||||
.eq(TestDemo::getOrderNum, -1L)) ? 1 : 0);
|
.eq(TestDemo::getOrderNum, -1L)) ? 1 : 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user