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.店铺支持自定义移动端首页 ``` ### 版本升级 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/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 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/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); 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(); } diff --git a/update-sql/version4.0to4.1.sql b/update-sql/version4.0to4.1.sql index 9364a88a..3bb510a4 100644 --- a/update-sql/version4.0to4.1.sql +++ b/update-sql/version4.0to4.1.sql @@ -114,4 +114,6 @@ CREATE TABLE `li_coupon_activity_item` ( `coupon_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '优惠券ID', `num` int DEFAULT NULL COMMENT '优惠券数量', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; \ No newline at end of file +) 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; \ No newline at end of file