Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop
This commit is contained in:
commit
d185de27dd
71
README.md
71
README.md
@ -26,7 +26,7 @@ Lilishop 是一款Java开发,基于SpringBoot研发的B2B2C多用户商城,
|
|||||||
### 文档
|
### 文档
|
||||||
|
|
||||||
**产品文档**(需求、架构、使用、部署、开发):https://docs.pickmall.cn
|
**产品文档**(需求、架构、使用、部署、开发):https://docs.pickmall.cn
|
||||||
|
**功能清单** 功能列表:https://docs.qq.com/sheet/DQ1Z2dWJKUnBRZEt5
|
||||||
|
|
||||||
### 项目链接(gitee)
|
### 项目链接(gitee)
|
||||||
|
|
||||||
@ -194,42 +194,23 @@ PS:单独部署的话,数据库文件访问这里:https://gitee.com/beijing_
|
|||||||
|
|
||||||
#### 计划每个月发布一个版本,具体时间可能有出入
|
#### 计划每个月发布一个版本,具体时间可能有出入
|
||||||
|
|
||||||
时间:2021年6月15日
|
|
||||||
|
|
||||||
```
|
|
||||||
新增功能:
|
|
||||||
1.微信小程序直播
|
|
||||||
2.优惠券活动
|
|
||||||
3.新人赠券
|
|
||||||
4.准确发券
|
|
||||||
5.用户等级
|
|
||||||
6.数据导出
|
|
||||||
7.订单批量
|
|
||||||
8.APP版本升级检测
|
|
||||||
9.积分商城
|
|
||||||
|
|
||||||
功能优化:
|
|
||||||
1.优惠券有效期增加类型:设置领取后*内有效。
|
|
||||||
2.秒杀活动设置为每天开启,需设置秒杀活动开启时间。
|
|
||||||
3.店铺配送模板,配送地区如果选择省份则下方的市级地址不展示。
|
|
||||||
4.店铺配送模板支持,店铺包邮。
|
|
||||||
5.普通商品设置去除卖家承担运费。
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
时间:2021年7月15日
|
时间:2021年7月15日
|
||||||
|
|
||||||
```
|
```
|
||||||
新增功能:
|
新增功能:
|
||||||
1.会员权益
|
1.积分商城
|
||||||
2.支持用户升级会员
|
2.店铺移动端
|
||||||
3.供求单
|
3.店铺支持发货单
|
||||||
4.IM:腾讯云智服
|
4.供求单
|
||||||
5.服务商品
|
5.店铺自提点
|
||||||
6.店铺支持订单核销
|
6.移动端展示附近店铺
|
||||||
7.店铺自提点
|
7.开屏广告
|
||||||
|
8.会员站内消息
|
||||||
|
9.移动端店铺入驻
|
||||||
功能优化:
|
功能优化:
|
||||||
1.用户分享商城、关注店铺、邀请新用户可获取积分、经验值。
|
1.用户分享商城、关注店铺、邀请新用户可获取积分、经验值。
|
||||||
|
2.隐私管理功能
|
||||||
|
2.移动端店铺首页优化
|
||||||
```
|
```
|
||||||
|
|
||||||
时间:2021年8月16日
|
时间:2021年8月16日
|
||||||
@ -237,15 +218,37 @@ PS:单独部署的话,数据库文件访问这里:https://gitee.com/beijing_
|
|||||||
```
|
```
|
||||||
新增功能:
|
新增功能:
|
||||||
1.微淘功能
|
1.微淘功能
|
||||||
2.店铺移动端
|
2.相册管理功能
|
||||||
3.店铺发货单
|
3.店铺申请品牌
|
||||||
|
4.第三方商品导入(淘宝、99api)
|
||||||
|
5.用户等级
|
||||||
|
6.用户升级会员
|
||||||
|
7.会员权益
|
||||||
|
8.促销活动:第二件*折
|
||||||
|
9.促销活动:商品打包价
|
||||||
|
10.促销活动:商品组合购
|
||||||
|
11.促销活动:进店赠券
|
||||||
|
12.代客退单
|
||||||
|
功能优化:
|
||||||
|
1.批量上传商品分类
|
||||||
|
2.店铺维护开票项目
|
||||||
|
3.店铺展示营销中心
|
||||||
```
|
```
|
||||||
|
|
||||||
时间:2021年9月15日
|
时间:2021年9月15日
|
||||||
|
|
||||||
```
|
```
|
||||||
新增功能:
|
新增功能:
|
||||||
增加供应商功能
|
1.增加供应商功能
|
||||||
|
2.商品预售
|
||||||
|
3.商品预约
|
||||||
|
4.电子券码
|
||||||
|
5.企业会员
|
||||||
|
6.企业会员购
|
||||||
|
7.商品批发价
|
||||||
|
功能优化:
|
||||||
|
1.店铺运费模板支持按照体积计算
|
||||||
|
2.店铺支持自定义移动端首页
|
||||||
```
|
```
|
||||||
|
|
||||||
### 版本升级
|
### 版本升级
|
||||||
|
@ -23,6 +23,21 @@ public interface GoodsParamsService extends IService<GoodsParams> {
|
|||||||
*/
|
*/
|
||||||
void addParams(List<GoodsParams> paramList, String goodsId);
|
void addParams(List<GoodsParams> paramList, String goodsId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新商品参数是否索引
|
||||||
|
*
|
||||||
|
* @param paramId 参数id
|
||||||
|
* @param isIndex 是否索引
|
||||||
|
*/
|
||||||
|
void updateParametersIsIndex(String paramId, Integer isIndex);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据参数id删除已经设置的商品参数
|
||||||
|
*
|
||||||
|
* @param paramId 参数id
|
||||||
|
*/
|
||||||
|
void deleteByParamId(String paramId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取商品关联参数
|
* 获取商品关联参数
|
||||||
*
|
*
|
||||||
|
@ -69,7 +69,7 @@ public class DraftGoodsServiceImpl extends ServiceImpl<DraftGoodsMapper, DraftGo
|
|||||||
draftGoods.setGoodsGalleryListJson(JSONUtil.toJsonStr(draftGoods.getGoodsGalleryList()));
|
draftGoods.setGoodsGalleryListJson(JSONUtil.toJsonStr(draftGoods.getGoodsGalleryList()));
|
||||||
draftGoods.setSkuListJson(JSONUtil.toJsonStr(this.getGoodsSkuList(draftGoods.getSkuList())));
|
draftGoods.setSkuListJson(JSONUtil.toJsonStr(this.getGoodsSkuList(draftGoods.getSkuList())));
|
||||||
draftGoods.setGoodsParamsListJson(JSONUtil.toJsonStr(draftGoods.getGoodsParamsList()));
|
draftGoods.setGoodsParamsListJson(JSONUtil.toJsonStr(draftGoods.getGoodsParamsList()));
|
||||||
this.save(draftGoods);
|
this.saveOrUpdate(draftGoods);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -9,6 +9,8 @@ import cn.lili.modules.goods.service.CategoryParameterGroupService;
|
|||||||
import cn.lili.modules.goods.service.GoodsParamsService;
|
import cn.lili.modules.goods.service.GoodsParamsService;
|
||||||
import cn.lili.modules.goods.service.ParametersService;
|
import cn.lili.modules.goods.service.ParametersService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -55,6 +57,30 @@ public class GoodsParamsServiceImpl extends ServiceImpl<GoodsParamsMapper, Goods
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新商品参数是否索引
|
||||||
|
*
|
||||||
|
* @param paramId 参数id
|
||||||
|
* @param isIndex 是否索引
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void updateParametersIsIndex(String paramId, Integer isIndex) {
|
||||||
|
LambdaUpdateWrapper<GoodsParams> updateWrapper = new LambdaUpdateWrapper<>();
|
||||||
|
updateWrapper.eq(GoodsParams::getParamId, paramId);
|
||||||
|
updateWrapper.set(GoodsParams::getIsIndex, isIndex);
|
||||||
|
this.update(updateWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据参数id删除已经设置的商品参数
|
||||||
|
*
|
||||||
|
* @param paramId 参数id
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void deleteByParamId(String paramId) {
|
||||||
|
this.remove(new QueryWrapper<GoodsParams>().eq("param_id", paramId));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<GoodsParams> getGoodsParamsByGoodsId(String goodsId) {
|
public List<GoodsParams> getGoodsParamsByGoodsId(String goodsId) {
|
||||||
return this.list(new LambdaQueryWrapper<GoodsParams>().eq(GoodsParams::getGoodsId, goodsId));
|
return this.list(new LambdaQueryWrapper<GoodsParams>().eq(GoodsParams::getGoodsId, goodsId));
|
||||||
|
@ -20,7 +20,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface StoreDetailMapper extends BaseMapper<StoreDetail> {
|
public interface StoreDetailMapper extends BaseMapper<StoreDetail> {
|
||||||
|
|
||||||
@Select("select s.store_logo,s.member_name,s.store_name,s.store_disable,s.self_operated,s.store_address_detail,s.store_address_path,s.store_address_id_path,s.store_center,s.store_desc,s.yzf_sign," +
|
@Select("select s.store_logo,s.member_name,s.store_name,s.store_disable,s.self_operated,s.store_address_detail,s.store_address_path,s.store_address_id_path,s.store_center,s.store_desc,s.yzf_sign,s.yzf_mp_sign," +
|
||||||
"d.* from li_store s inner join li_store_detail d on s.id=d.store_id where s.id=#{storeId}")
|
"d.* from li_store s inner join li_store_detail d on s.id=d.store_id where s.id=#{storeId}")
|
||||||
StoreDetailVO getStoreDetail(String storeId);
|
StoreDetailVO getStoreDetail(String storeId);
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
package cn.lili.controller.goods;
|
package cn.lili.controller.goods;
|
||||||
|
|
||||||
import cn.lili.common.enums.ResultCode;
|
import cn.lili.common.enums.ResultCode;
|
||||||
import cn.lili.common.exception.ServiceException;
|
|
||||||
import cn.lili.common.enums.ResultUtil;
|
import cn.lili.common.enums.ResultUtil;
|
||||||
|
import cn.lili.common.exception.ServiceException;
|
||||||
import cn.lili.common.vo.ResultMessage;
|
import cn.lili.common.vo.ResultMessage;
|
||||||
import cn.lili.modules.goods.entity.dos.Parameters;
|
import cn.lili.modules.goods.entity.dos.Parameters;
|
||||||
|
import cn.lili.modules.goods.service.GoodsParamsService;
|
||||||
import cn.lili.modules.goods.service.ParametersService;
|
import cn.lili.modules.goods.service.ParametersService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
@ -28,6 +29,9 @@ public class ParameterManagerController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ParametersService parametersService;
|
private ParametersService parametersService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private GoodsParamsService goodsParamsService;
|
||||||
|
|
||||||
@ApiOperation(value = "添加参数")
|
@ApiOperation(value = "添加参数")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public ResultMessage<Parameters> save(@Valid Parameters parameters) {
|
public ResultMessage<Parameters> save(@Valid Parameters parameters) {
|
||||||
@ -44,6 +48,9 @@ public class ParameterManagerController {
|
|||||||
public ResultMessage<Parameters> update(@Valid Parameters parameters) {
|
public ResultMessage<Parameters> update(@Valid Parameters parameters) {
|
||||||
|
|
||||||
if (parametersService.updateById(parameters)) {
|
if (parametersService.updateById(parameters)) {
|
||||||
|
if (parameters.getIsIndex() != null) {
|
||||||
|
goodsParamsService.updateParametersIsIndex(parameters.getId(), parameters.getIsIndex());
|
||||||
|
}
|
||||||
return ResultUtil.data(parameters);
|
return ResultUtil.data(parameters);
|
||||||
}
|
}
|
||||||
throw new ServiceException(ResultCode.PARAMETER_UPDATE_ERROR);
|
throw new ServiceException(ResultCode.PARAMETER_UPDATE_ERROR);
|
||||||
@ -54,6 +61,7 @@ public class ParameterManagerController {
|
|||||||
@DeleteMapping(value = "/{id}")
|
@DeleteMapping(value = "/{id}")
|
||||||
public ResultMessage<Object> delById(@PathVariable String id) {
|
public ResultMessage<Object> delById(@PathVariable String id) {
|
||||||
parametersService.removeById(id);
|
parametersService.removeById(id);
|
||||||
|
goodsParamsService.deleteByParamId(id);
|
||||||
return ResultUtil.success();
|
return ResultUtil.success();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -114,4 +114,6 @@ CREATE TABLE `li_coupon_activity_item` (
|
|||||||
`coupon_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '优惠券ID',
|
`coupon_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '优惠券ID',
|
||||||
`num` int DEFAULT NULL COMMENT '优惠券数量',
|
`num` int DEFAULT NULL COMMENT '优惠券数量',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
/** 修改商品模板详情字段类型**/
|
||||||
|
ALTER TABLE `li_draft_goods` MODIFY COLUMN `intro` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL;
|
Loading…
x
Reference in New Issue
Block a user