wuww
2025-04-16 392be1d92ced1048942e8f623b91f85ae61badff
修改SimuController
已修改1个文件
8 ■■■■ 文件已修改
src/main/java/com/se/nsl/controller/SimuController.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/se/nsl/controller/SimuController.java
@@ -7,11 +7,11 @@
import com.se.nsl.service.SimuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
@Api(tags = "2-推演模拟")
@Slf4j
@@ -56,7 +56,7 @@
     */
    @ApiOperation(value = "deleteByIds")
    @DeleteMapping("/deleteByIds")
    public R<Object> deleteByIds(java.util.List<Integer> ids) {
    public R<Object> deleteByIds(@RequestParam List<Integer> ids) {
        try {
            return success(simuService.deleteByIds(ids));
        } catch (Exception ex) {
@@ -87,8 +87,8 @@
     * @return 修改成功的记录数
     */
    @ApiOperation(value = "updateById")
    @PutMapping("/updateById")
    public R<Object> updateById(Simu simu) {
    @PutMapping(value = "/updateById", produces = "application/json; charset=UTF-8")
    public R<Object> updateById(@RequestBody Simu simu) {
        try {
            return success(simuService.updateById(simu));
        } catch (Exception ex) {