liujie
2025-12-25 9fd9369a2c386f3cbab4ba02e8be42995dcf30dc
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TBigGiftPackageController.java
@@ -7,6 +7,7 @@
import cn.afterturn.easypoi.excel.entity.ImportParams;
import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.basic.PageInfo;
@@ -116,10 +117,7 @@
    @DeleteMapping(value = "/delete/{id}")
    @Log(title = "大礼包-删除", businessType = BusinessType.DELETE)
    public R<String> delete(@PathVariable Integer id ) {
        TBigGiftPackage bigGiftPackage = tBigGiftPackageService.getById(id);
        bigGiftPackage.setStatus(0);
        bigGiftPackage.setUpdateUserId(tokenService.getLoginUser().getUserId());
        boolean remove = tBigGiftPackageService.updateById(bigGiftPackage);
        boolean remove = tBigGiftPackageService.update(new LambdaUpdateWrapper<TBigGiftPackage>().eq(TBigGiftPackage::getId, id).set(TBigGiftPackage::getStatus, 1).set(TBigGiftPackage::getUpdateUserId,tokenService.getLoginUser().getUserId()));
        if (remove) {
            return R.ok("删除成功");
        }