build:依赖 工具
parent
1f05411e72
commit
1a1803b991
|
@ -3,6 +3,7 @@ import com.mcwl.common.annotation.Anonymous;
|
||||||
import com.mcwl.common.core.controller.BaseController;
|
import com.mcwl.common.core.controller.BaseController;
|
||||||
import com.mcwl.common.core.domain.AjaxResult;
|
import com.mcwl.common.core.domain.AjaxResult;
|
||||||
import com.mcwl.common.core.page.TableDataInfo;
|
import com.mcwl.common.core.page.TableDataInfo;
|
||||||
|
import com.mcwl.common.domain.IdsParam;
|
||||||
import com.mcwl.resource.domain.MallProduct;
|
import com.mcwl.resource.domain.MallProduct;
|
||||||
import com.mcwl.resource.service.MallProductService;
|
import com.mcwl.resource.service.MallProductService;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
@ -75,8 +76,8 @@ public class MallProductController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 删除定
|
* 删除定
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("/{ids}")
|
@PostMapping
|
||||||
public AjaxResult remove(@RequestBody Long[] ids)
|
public AjaxResult remove(@RequestBody IdsParam ids)
|
||||||
{
|
{
|
||||||
mallProductRuleInfoService.deleteMallProductByIds(ids);
|
mallProductRuleInfoService.deleteMallProductByIds(ids);
|
||||||
return success();
|
return success();
|
||||||
|
|
|
@ -167,12 +167,12 @@ xss:
|
||||||
|
|
||||||
|
|
||||||
#aliyun-oss
|
#aliyun-oss
|
||||||
aliyun:
|
# aliyun:
|
||||||
oss:
|
# oss:
|
||||||
file:
|
# file:
|
||||||
endPoint: "http://oss-cn-beijing.aliyuncs.com" // 一般不用改,选择自己的地址即可
|
# endPoint: "http://oss-cn-beijing.aliyuncs.com" // 一般不用改,选择自己的地址即可
|
||||||
keyid: "保存的key"
|
# keyid: "保存的key"
|
||||||
keyecrets: "保存的secret"
|
# keyecrets: "保存的secret"
|
||||||
#bucket可以在控制台创建,也可以使用java代码创建
|
# #bucket可以在控制台创建,也可以使用java代码创建
|
||||||
bucketname: "实例名称"
|
# bucketname: "实例名称"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,9 @@ package com.mcwl.common.domain;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class IdsParam {
|
public class IdsParam {
|
||||||
private Long[] ids;
|
private List<Long> ids;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,11 @@ public class MallProduct extends BaseEntity {
|
||||||
* 金额
|
* 金额
|
||||||
*/
|
*/
|
||||||
private BigDecimal amount;
|
private BigDecimal amount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态(0未审核 1公开 2隐私 3未通过)
|
||||||
|
*/
|
||||||
|
private String status;
|
||||||
/**
|
/**
|
||||||
* 图片名称
|
* 图片名称
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.mcwl.resource.service;
|
package com.mcwl.resource.service;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.mcwl.common.domain.IdsParam;
|
||||||
import com.mcwl.resource.domain.MallProduct;
|
import com.mcwl.resource.domain.MallProduct;
|
||||||
import kotlin.Result;
|
import kotlin.Result;
|
||||||
|
|
||||||
|
@ -26,6 +27,6 @@ public interface MallProductService extends IService<MallProduct> {
|
||||||
int updateMallProduct(MallProduct mallProduct);
|
int updateMallProduct(MallProduct mallProduct);
|
||||||
|
|
||||||
|
|
||||||
void deleteMallProductByIds(Long[] ids);
|
void deleteMallProductByIds(IdsParam ids);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.mcwl.resource.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.mcwl.common.domain.IdsParam;
|
||||||
import com.mcwl.resource.domain.MallProduct;
|
import com.mcwl.resource.domain.MallProduct;
|
||||||
import com.mcwl.resource.mapper.MallProductMapper;
|
import com.mcwl.resource.mapper.MallProductMapper;
|
||||||
import com.mcwl.resource.service.MallProductService;
|
import com.mcwl.resource.service.MallProductService;
|
||||||
|
@ -54,8 +55,8 @@ public class MallProductServiceImpl extends ServiceImpl<MallProductMapper,MallPr
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteMallProductByIds(Long[] ids) {
|
public void deleteMallProductByIds(IdsParam ids) {
|
||||||
postMapper.deleteBatchIds(ids);
|
postMapper.deleteBatchIds(ids.getIds());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
model,
|
model,
|
||||||
amount,
|
amount,
|
||||||
name,
|
name,
|
||||||
|
status,
|
||||||
zip_url,
|
zip_url,
|
||||||
url,
|
url,
|
||||||
create_by,
|
create_by,
|
||||||
|
|
Loading…
Reference in New Issue