From 3aacd1efbd3434b3f198750d4c68c15b7eac39f0 Mon Sep 17 00:00:00 2001 From: lifenlong Date: Wed, 23 Jun 2021 17:44:24 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=9A=84=E8=AF=A6=E6=83=85=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lili/modules/goods/serviceimpl/DraftGoodsServiceImpl.java | 2 +- update-sql/version4.0to4.1.sql | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/DraftGoodsServiceImpl.java b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/DraftGoodsServiceImpl.java index 3ff33cd8..ca55c272 100644 --- a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/DraftGoodsServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/DraftGoodsServiceImpl.java @@ -69,7 +69,7 @@ public class DraftGoodsServiceImpl extends ServiceImpl Date: Wed, 23 Jun 2021 18:06:38 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=9A=84=E5=AE=A2=E6=9C=8D=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/lili/modules/store/mapper/StoreDetailMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/main/java/cn/lili/modules/store/mapper/StoreDetailMapper.java b/framework/src/main/java/cn/lili/modules/store/mapper/StoreDetailMapper.java index c6e0a920..0c33996b 100644 --- a/framework/src/main/java/cn/lili/modules/store/mapper/StoreDetailMapper.java +++ b/framework/src/main/java/cn/lili/modules/store/mapper/StoreDetailMapper.java @@ -20,7 +20,7 @@ import java.util.List; */ public interface StoreDetailMapper extends BaseMapper { - @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}") StoreDetailVO getStoreDetail(String storeId); From 155c648186f745fc635121be449c582874f457c4 Mon Sep 17 00:00:00 2001 From: lifenlong Date: Wed, 23 Jun 2021 18:58:20 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 71 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 4c673cbc..986587c1 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Lilishop 是一款Java开发,基于SpringBoot研发的B2B2C多用户商城, ### 文档 **产品文档**(需求、架构、使用、部署、开发):https://docs.pickmall.cn - +**功能清单** 功能列表:https://docs.qq.com/sheet/DQ1Z2dWJKUnBRZEt5 ### 项目链接(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日 ``` 新增功能: -1.会员权益 -2.支持用户升级会员 -3.供求单 -4.IM:腾讯云智服 -5.服务商品 -6.店铺支持订单核销 -7.店铺自提点 +1.积分商城 +2.店铺移动端 +3.店铺支持发货单 +4.供求单 +5.店铺自提点 +6.移动端展示附近店铺 +7.开屏广告 +8.会员站内消息 +9.移动端店铺入驻 功能优化: 1.用户分享商城、关注店铺、邀请新用户可获取积分、经验值。 +2.隐私管理功能 +2.移动端店铺首页优化 ``` 时间:2021年8月16日 @@ -237,15 +218,37 @@ PS:单独部署的话,数据库文件访问这里:https://gitee.com/beijing_ ``` 新增功能: 1.微淘功能 -2.店铺移动端 -3.店铺发货单 +2.相册管理功能 +3.店铺申请品牌 +4.第三方商品导入(淘宝、99api) +5.用户等级 +6.用户升级会员 +7.会员权益 +8.促销活动:第二件*折 +9.促销活动:商品打包价 +10.促销活动:商品组合购 +11.促销活动:进店赠券 +12.代客退单 +功能优化: +1.批量上传商品分类 +2.店铺维护开票项目 +3.店铺展示营销中心 ``` 时间:2021年9月15日 ``` 新增功能: -增加供应商功能 +1.增加供应商功能 +2.商品预售 +3.商品预约 +4.电子券码 +5.企业会员 +6.企业会员购 +7.商品批发价 +功能优化: +1.店铺运费模板支持按照体积计算 +2.店铺支持自定义移动端首页 ``` ### 版本升级 From 0121c546f4521e2eab7e55843d00d347f11804f1 Mon Sep 17 00:00:00 2001 From: paulGao Date: Thu, 24 Jun 2021 09:20:13 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BF=AE=E6=94=B9=E7=B4=A2=E5=BC=95=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=90=8E=E6=B2=A1=E6=9C=89=E5=90=8C=E6=AD=A5=E5=88=B0?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goods/service/GoodsParamsService.java | 15 +++++++++++ .../serviceimpl/GoodsParamsServiceImpl.java | 27 ++++++++++++++++++- .../goods/ParameterManagerController.java | 10 ++++++- 3 files changed, 50 insertions(+), 2 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/goods/service/GoodsParamsService.java b/framework/src/main/java/cn/lili/modules/goods/service/GoodsParamsService.java index c0ea0bd1..bd8195fc 100644 --- a/framework/src/main/java/cn/lili/modules/goods/service/GoodsParamsService.java +++ b/framework/src/main/java/cn/lili/modules/goods/service/GoodsParamsService.java @@ -23,6 +23,21 @@ public interface GoodsParamsService extends IService { */ void addParams(List paramList, String goodsId); + /** + * 更新商品参数是否索引 + * + * @param paramId 参数id + * @param isIndex 是否索引 + */ + void updateParametersIsIndex(String paramId, Integer isIndex); + + /** + * 根据参数id删除已经设置的商品参数 + * + * @param paramId 参数id + */ + void deleteByParamId(String paramId); + /** * 获取商品关联参数 * diff --git a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsParamsServiceImpl.java b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsParamsServiceImpl.java index 4fae7285..fc3d10ca 100644 --- a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsParamsServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsParamsServiceImpl.java @@ -10,9 +10,10 @@ import cn.lili.modules.goods.service.CategoryParameterGroupService; import cn.lili.modules.goods.service.GoodsParamsService; import cn.lili.modules.goods.service.ParametersService; 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.extension.service.impl.ServiceImpl; -import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -60,6 +61,30 @@ public class GoodsParamsServiceImpl extends ServiceImpl 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().eq("param_id", paramId)); + } + @Override public List getGoodsParamsByGoodsId(String goodsId) { return this.list(new LambdaQueryWrapper().eq(GoodsParams::getGoodsId, goodsId)); diff --git a/manager-api/src/main/java/cn/lili/controller/goods/ParameterManagerController.java b/manager-api/src/main/java/cn/lili/controller/goods/ParameterManagerController.java index 2d746b23..8555e5c9 100644 --- a/manager-api/src/main/java/cn/lili/controller/goods/ParameterManagerController.java +++ b/manager-api/src/main/java/cn/lili/controller/goods/ParameterManagerController.java @@ -1,10 +1,11 @@ package cn.lili.controller.goods; import cn.lili.common.enums.ResultCode; -import cn.lili.common.exception.ServiceException; import cn.lili.common.enums.ResultUtil; +import cn.lili.common.exception.ServiceException; import cn.lili.common.vo.ResultMessage; import cn.lili.modules.goods.entity.dos.Parameters; +import cn.lili.modules.goods.service.GoodsParamsService; import cn.lili.modules.goods.service.ParametersService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; @@ -28,6 +29,9 @@ public class ParameterManagerController { @Autowired private ParametersService parametersService; + @Autowired + private GoodsParamsService goodsParamsService; + @ApiOperation(value = "添加参数") @PostMapping public ResultMessage save(@Valid Parameters parameters) { @@ -44,6 +48,9 @@ public class ParameterManagerController { public ResultMessage update(@Valid Parameters parameters) { if (parametersService.updateById(parameters)) { + if (parameters.getIsIndex() != null) { + goodsParamsService.updateParametersIsIndex(parameters.getId(), parameters.getIsIndex()); + } return ResultUtil.data(parameters); } throw new ServiceException(ResultCode.PARAMETER_UPDATE_ERROR); @@ -54,6 +61,7 @@ public class ParameterManagerController { @DeleteMapping(value = "/{id}") public ResultMessage delById(@PathVariable String id) { parametersService.removeById(id); + goodsParamsService.deleteByParamId(id); return ResultUtil.success(); }