build:依赖 工具

feature/comment
ChenYan 2025-01-02 14:52:02 +08:00
parent 1f05411e72
commit 1a1803b991
7 changed files with 25 additions and 14 deletions

View File

@ -3,6 +3,7 @@ import com.mcwl.common.annotation.Anonymous;
import com.mcwl.common.core.controller.BaseController;
import com.mcwl.common.core.domain.AjaxResult;
import com.mcwl.common.core.page.TableDataInfo;
import com.mcwl.common.domain.IdsParam;
import com.mcwl.resource.domain.MallProduct;
import com.mcwl.resource.service.MallProductService;
import org.springframework.web.bind.annotation.*;
@ -75,8 +76,8 @@ public class MallProductController extends BaseController {
/**
*
*/
@DeleteMapping("/{ids}")
public AjaxResult remove(@RequestBody Long[] ids)
@PostMapping
public AjaxResult remove(@RequestBody IdsParam ids)
{
mallProductRuleInfoService.deleteMallProductByIds(ids);
return success();

View File

@ -167,12 +167,12 @@ xss:
#aliyun-oss
aliyun:
oss:
file:
endPoint: "http://oss-cn-beijing.aliyuncs.com" // 一般不用改,选择自己的地址即可
keyid: "保存的key"
keyecrets: "保存的secret"
#bucket可以在控制台创建也可以使用java代码创建
bucketname: "实例名称"
# aliyun:
# oss:
# file:
# endPoint: "http://oss-cn-beijing.aliyuncs.com" // 一般不用改,选择自己的地址即可
# keyid: "保存的key"
# keyecrets: "保存的secret"
# #bucket可以在控制台创建也可以使用java代码创建
# bucketname: "实例名称"

View File

@ -2,7 +2,9 @@ package com.mcwl.common.domain;
import lombok.Data;
import java.util.List;
@Data
public class IdsParam {
private Long[] ids;
private List<Long> ids;
}

View File

@ -53,6 +53,11 @@ public class MallProduct extends BaseEntity {
*
*/
private BigDecimal amount;
/**
* (0 1 2 3)
*/
private String status;
/**
*
*/

View File

@ -1,6 +1,7 @@
package com.mcwl.resource.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mcwl.common.domain.IdsParam;
import com.mcwl.resource.domain.MallProduct;
import kotlin.Result;
@ -26,6 +27,6 @@ public interface MallProductService extends IService<MallProduct> {
int updateMallProduct(MallProduct mallProduct);
void deleteMallProductByIds(Long[] ids);
void deleteMallProductByIds(IdsParam ids);
}

View File

@ -2,6 +2,7 @@ package com.mcwl.resource.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mcwl.common.domain.IdsParam;
import com.mcwl.resource.domain.MallProduct;
import com.mcwl.resource.mapper.MallProductMapper;
import com.mcwl.resource.service.MallProductService;
@ -54,8 +55,8 @@ public class MallProductServiceImpl extends ServiceImpl<MallProductMapper,MallPr
}
@Override
public void deleteMallProductByIds(Long[] ids) {
postMapper.deleteBatchIds(ids);
public void deleteMallProductByIds(IdsParam ids) {
postMapper.deleteBatchIds(ids.getIds());
}

View File

@ -14,6 +14,7 @@
model,
amount,
name,
status,
zip_url,
url,
create_by,