无关风月
2024-07-30 6149443e383fe700aec231bbdea6460230e75d9f
ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/SlStoreManagementController.java
@@ -8,6 +8,7 @@
import com.ruoyi.management.domain.dto.StoreManagementDTO;
import com.ruoyi.management.domain.dto.StoreManagementQuery;
import com.ruoyi.management.service.SlStoreManagementService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;
@@ -25,6 +26,7 @@
 */
@RestController
@RequestMapping("/sl-store-management")
@Api(value = "仓库管理接口", tags = "仓库管理接口", description = "仓库管理接口")
public class SlStoreManagementController {
    @Resource
    private SlStoreManagementService slStoreManagementService;
@@ -45,14 +47,16 @@
    @ApiOperation("删除仓库管理")
    @DeleteMapping("/{id}")
    public R<?> delStoreManagement(
            @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Integer id) {
        slStoreManagementService.removeById(id);
            @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Long id) {
        SlStoreManagement byId = slStoreManagementService.getById(id);
        byId.setDelFlag("1");
        slStoreManagementService.updateById(byId);
        return R.ok();
    }
    @PostMapping("/getStoreManagementOne")
    @GetMapping("/getStoreManagementOne/{id}")
    @ApiOperation(value = "仓库管理詳情")
    public R<SlStoreManagement> getStoreManagementOne( @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Integer id) {
    public R<SlStoreManagement> getStoreManagementOne( @ApiParam(name = "id", value = "仓库管理id", required = true) @PathVariable("id") Long id) {
        return R.ok(slStoreManagementService.getById(id));
    }