| | |
| | | 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; |
| | |
| | | @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("删除成功"); |
| | | } |