| | |
| | | package com.ruoyi.demo.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.demo.domain.TestDemo; |
| | | import com.ruoyi.demo.mapper.TestDemoMapper; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | testDemo.setValue("测试新增"); |
| | | list.add(testDemo); |
| | | } |
| | | return toAjax(testDemoMapper.insertBatch(list) ? 1 : 0); |
| | | return toAjax(testDemoMapper.insertBatch(list)); |
| | | } |
| | | |
| | | /** |
| | |
| | | testDemo.setId(null); |
| | | } |
| | | } |
| | | return toAjax(testDemoMapper.insertOrUpdateBatch(list) ? 1 : 0); |
| | | return toAjax(testDemoMapper.insertOrUpdateBatch(list)); |
| | | } |
| | | |
| | | /** |