随笔分类 - 分布式项目(基础篇)
摘要:###1、编写controller控制层 com.applesnt.onlinemall.product.controller.SkuInfoController @RequestMapping("/list") public R list(@RequestParam Map<String, Obj
阅读全文
摘要:###1、保存spu的产品介绍图片异常 解决: 修改SpuInfoDescEntity实体类的spuId为非自增长 com.applesnt.onlinemall.product.entity.SpuInfoDescEntity /** * 商品id * type= IdType.INPUT:不是自
阅读全文
摘要:##一、保存spu基本信息 ###1、保存业务 com.applesnt.onlinemall.product.service.impl.SpuInfoServiceImpl /*注入spu操作service*/ @Autowired SpuInfoService spuInfoService; @
阅读全文
摘要:{ "spuName": "华为Mate30EPro\\/Mate30pro", "spuDescription": "华为Mate30EPro\\/Mate30pro", "catalogId": 225, "brandId": 2, "weight": 0.198, "publishStatus
阅读全文
摘要:###1、定义响应返回的vo com.applesnt.onlinemall.product.vo.AttrGroupWithAttrsVo package com.applesnt.onlinemall.product.vo; import com.applesnt.onlinemall.prod
阅读全文
摘要:###1、定义需要返回的数据vo com.applesnt.onlinemall.product.vo.BrandVo package com.applesnt.onlinemall.product.vo; import lombok.Data; @Data public class BrandVo
阅读全文
摘要:###1、会员系统(onlinemall-member)配置文件 #应用服务端口 server: port: 8000 spring: #数据源配置 datasource: username: root password: 123456 url: jdbc:mysql://116.196.121.6
阅读全文
摘要:报错信息如下: Error in beforeDestroy hook: "ReferenceError: PubSub is not defined" 解决: 1:在终端运行以下命令,安装pubsub依赖 npm install --save pubsub-js 2:打开src/main.js,引
阅读全文
摘要:###1、关联属性查询 查询出当前分类下没有被属性分组关联的规格参数数据 ####1>、定义查询接口 com.applesnt.onlinemall.product.service.AttrService PageUtils getNoRetaionAttr(Map<String, Object>
阅读全文
摘要:###1、关联功能列表查询 ####1>定义查询接口 com.applesnt.onlinemall.product.service.AttrService List<AttrEntity> getRetaionAttr(Long attrgroupId); ####2>定义查询接口实现 com.a
阅读全文
摘要:1:由于销售属性和规格参数的数据都保存在attr表中,字段attrtype为0表示是销售属性,为1表示是规格参数 2:销售属性和规格参数不同的是销售属性不需要保存与属性分组的关联关系 3:查询请求会根据路径类型type来区分查询的是销售属性和规格参数; 前端发送的base表示规则参数,sale表示时
阅读全文
摘要:规格参数修改数据回显请求:/product/attr/info/{attrId} 请求参数: 规格参数ID:attrId 响应数据示例: { "msg": "success", "code": 0, "attr": { "attrId": 7, "attrName": "电源", "searchTy
阅读全文
摘要:规格参数删除请求:/product/attr/delete 请求参数: attrIds:[5, 6] 响应数据示例: { "msg": "success", "code": 0 } 操作数据库表: pms_attr(基本属性) pms_attr_attrgroup_relation(规格参数和属性分
阅读全文
摘要:查询请求:/product/attr/base/list/{catId} 请求参数: 分类ID: catId { page: 1,//当前页码 limit: 10,//每页记录数 sidx: 'id',//排序字段 order: 'asc/desc',//排序方式 key: '上市'//检索关键字
阅读全文
摘要:规则参数保存请求:/product/attr/save 请求参数: { attrGroupId: 7, attrName: "包装清单", attrType: 1, catelogId: 225, enable: 1, icon: "xx", searchType: 1, showDesc: 1,
阅读全文
摘要:###1、品牌条件查询 查询数据请求:/product/brand/list 请求参数: { page: 1,//当前页码 limit: 10,//每页记录数 sidx: 'id',//排序字段 order: 'asc/desc',//排序方式 key: '华为'//检索关键字 } 响应数据示例:
阅读全文
摘要:###1、解决查询列表上总数为0条的问题 需要引入mybatis plus分页插件 参考:https://mybatis.plus/guide/page.html ####1、创建mybatis分页配置类 com.applesnt.onlinemall.product.config.MybatisC
阅读全文
摘要:请求:/product/attrgroup/info/{attrGroupId} 请求参数: 属性分组ID: attrGroupId 响应数据示例: { "msg": "success", "attrGroup": { "attrGroupId": 7, "attrGroupName": "主体",
阅读全文
摘要:请求:/product/category/list/tree 响应数据示例: { "code": 0, "msg": "success", "data": [{ "catId": 1, "name": "图书、音像、电子书刊", "parentCid": 0, "catLevel": 1, "sho
阅读全文
摘要:品牌查询请求:/product/attrgroup/list/{catelogId} 请求参数: 分类ID: catelogId { page: 1,//当前页码 limit: 10,//每页记录数 sidx: 'id',//排序字段 order: 'asc/desc',//排序方式 key: '华
阅读全文