06 2021 档案

摘要:###1、创建索引 在索引下默认会生成一个_doc的类型 PUT /users { "mappings": { "properties": { "id": {"type":"integer"}, "name": {"type":"text"}, "tag": {"type":"keyword"}, 阅读全文
posted @ 2021-06-30 11:23 努力的校长 编辑
摘要:###1、GET查询 1:查询指定id的文档数据 2:_seq_no:序列号 并发控制字段 每次更新都会加1 用来做乐观锁 GET /customer/external/1 响应数据: { "_index" : "customer", "_type" : "external", "_id" : "1 阅读全文
posted @ 2021-06-30 10:57 努力的校长 编辑
摘要:###1、带_update 1:要更新的数据必须存在 2:会对比原数据,如果没有任何更新,就什么都不做,只是响应的result的值会是noop 3:数据必须放在doc中 4:可以单独更新某一个字段 POST /customer/external/1/_update { "doc":{ "name": 阅读全文
posted @ 2021-06-30 10:38 努力的校长 编辑
摘要:###1、PUT请求 1:PUT请求必须要带上指定的id 2:PUT请求 如果不存在则创建,存在(_id存在)则更新 3:如果是更新 响应回来的数据 _version和result会有变化 PUT /customer/external/1 { "name":"张三", "cname":"zhangs 阅读全文
posted @ 2021-06-30 10:29 努力的校长 编辑
摘要:###1、创建一个索引 PUT /infoIndex ###2、查看指定索引 GET /infoIndex/_settings ###3、删除指定索引 DELETE /infoIndex 阅读全文
posted @ 2021-06-30 10:22 努力的校长 编辑
摘要:###1、查看所有的节点信息 GET /_cat/nodes ###2、查看ES健康状况 GET /_cat/health ###3、查看主节点 GET /_cat/master ###4、查看所有的索引 GET /_cat/indices 阅读全文
posted @ 2021-06-30 10:15 努力的校长 编辑
摘要:(1)kibana国内华为镜像:https://mirrors.huaweicloud.com/kibana/ (2)elasticsearch国内华为镜像:https://mirrors.huaweicloud.com/elasticsearch/ (3)ik分词插件下载:https://gith 阅读全文
posted @ 2021-06-30 10:11 努力的校长 编辑
摘要:###1、docker下载elasticsearch镜像 docker pull elasticsearch:7.4.2 ###2、创建elasticsearch容器 创建相关文件夹和文件 #创建挂载的配置文件夹 mkdir -p /mydata/elasticsearch/config #创建挂载 阅读全文
posted @ 2021-06-30 09:56 努力的校长 编辑
摘要:{ "spuName": "华为Mate30EPro\\/Mate30pro", "spuDescription": "华为Mate30EPro\\/Mate30pro", "catalogId": 225, "brandId": 2, "weight": 0.198, "publishStatus 阅读全文
posted @ 2021-06-20 19:10 努力的校长 编辑
摘要:###1、定义响应返回的vo com.applesnt.onlinemall.product.vo.AttrGroupWithAttrsVo package com.applesnt.onlinemall.product.vo; import com.applesnt.onlinemall.prod 阅读全文
posted @ 2021-06-20 16:21 努力的校长 编辑
摘要:###1、定义需要返回的数据vo com.applesnt.onlinemall.product.vo.BrandVo package com.applesnt.onlinemall.product.vo; import lombok.Data; @Data public class BrandVo 阅读全文
posted @ 2021-06-20 12:18 努力的校长 编辑
摘要:###1、会员系统(onlinemall-member)配置文件 #应用服务端口 server: port: 8000 spring: #数据源配置 datasource: username: root password: 123456 url: jdbc:mysql://116.196.121.6 阅读全文
posted @ 2021-06-20 11:13 努力的校长 编辑
摘要:报错信息如下: Error in beforeDestroy hook: "ReferenceError: PubSub is not defined" 解决: 1:在终端运行以下命令,安装pubsub依赖 npm install --save pubsub-js 2:打开src/main.js,引 阅读全文
posted @ 2021-06-20 10:51 努力的校长 编辑
摘要:###1、关联属性查询 查询出当前分类下没有被属性分组关联的规格参数数据 ####1>、定义查询接口 com.applesnt.onlinemall.product.service.AttrService PageUtils getNoRetaionAttr(Map<String, Object> 阅读全文
posted @ 2021-06-19 22:03 努力的校长 编辑
摘要:###1、关联功能列表查询 ####1>定义查询接口 com.applesnt.onlinemall.product.service.AttrService List<AttrEntity> getRetaionAttr(Long attrgroupId); ####2>定义查询接口实现 com.a 阅读全文
posted @ 2021-06-19 16:02 努力的校长 编辑
摘要:1:由于销售属性和规格参数的数据都保存在attr表中,字段attrtype为0表示是销售属性,为1表示是规格参数 2:销售属性和规格参数不同的是销售属性不需要保存与属性分组的关联关系 3:查询请求会根据路径类型type来区分查询的是销售属性和规格参数; 前端发送的base表示规则参数,sale表示时 阅读全文
posted @ 2021-06-19 14:54 努力的校长 编辑
摘要:规格参数修改数据回显请求:/product/attr/info/{attrId} 请求参数: 规格参数ID:attrId 响应数据示例: { "msg": "success", "code": 0, "attr": { "attrId": 7, "attrName": "电源", "searchTy 阅读全文
posted @ 2021-06-17 15:24 努力的校长 编辑
摘要:规格参数删除请求:/product/attr/delete 请求参数: attrIds:[5, 6] 响应数据示例: { "msg": "success", "code": 0 } 操作数据库表: pms_attr(基本属性) pms_attr_attrgroup_relation(规格参数和属性分 阅读全文
posted @ 2021-06-16 18:22 努力的校长 编辑
摘要:查询请求:/product/attr/base/list/{catId} 请求参数: 分类ID: catId { page: 1,//当前页码 limit: 10,//每页记录数 sidx: 'id',//排序字段 order: 'asc/desc',//排序方式 key: '上市'//检索关键字 阅读全文
posted @ 2021-06-16 17:48 努力的校长 编辑
摘要:规则参数保存请求:/product/attr/save 请求参数: { attrGroupId: 7, attrName: "包装清单", attrType: 1, catelogId: 225, enable: 1, icon: "xx", searchType: 1, showDesc: 1, 阅读全文
posted @ 2021-06-16 17:43 努力的校长 编辑
摘要:###1、品牌条件查询 查询数据请求:/product/brand/list 请求参数: { page: 1,//当前页码 limit: 10,//每页记录数 sidx: 'id',//排序字段 order: 'asc/desc',//排序方式 key: '华为'//检索关键字 } 响应数据示例: 阅读全文
posted @ 2021-06-14 14:50 努力的校长 编辑
摘要:###1、解决查询列表上总数为0条的问题 需要引入mybatis plus分页插件 参考:https://mybatis.plus/guide/page.html ####1、创建mybatis分页配置类 com.applesnt.onlinemall.product.config.MybatisC 阅读全文
posted @ 2021-06-14 14:24 努力的校长 编辑
摘要:请求:/product/attrgroup/info/{attrGroupId} 请求参数: 属性分组ID: attrGroupId 响应数据示例: { "msg": "success", "attrGroup": { "attrGroupId": 7, "attrGroupName": "主体", 阅读全文
posted @ 2021-06-12 22:12 努力的校长 编辑
摘要:请求:/product/category/list/tree 响应数据示例: { "code": 0, "msg": "success", "data": [{ "catId": 1, "name": "图书、音像、电子书刊", "parentCid": 0, "catLevel": 1, "sho 阅读全文
posted @ 2021-06-12 16:53 努力的校长 编辑
摘要:品牌查询请求:/product/attrgroup/list/{catelogId} 请求参数: 分类ID: catelogId { page: 1,//当前页码 limit: 10,//每页记录数 sidx: 'id',//排序字段 order: 'asc/desc',//排序方式 key: '华 阅读全文
posted @ 2021-06-12 15:44 努力的校长 编辑
摘要:###1、从自动生成的代码拷贝相关内容到attrgroup.vue页面,显示以下效果 \renren\main\resources\src\views\modules\product\attrgroup.vue ###2、拷贝表格数据 放在<el-col :span="18">标签内 <div cl 阅读全文
posted @ 2021-06-11 21:29 努力的校长 编辑
摘要:###1、创建属性分组页面 src\views\modules\product\attrgroup.vue ###2、页面内容 父组件调用子组件步骤: 1:导入 import Category from "../common/category"; 2:注册 components: { Categor 阅读全文
posted @ 2021-06-11 17:08 努力的校长 编辑
摘要:###1、创建公共包以及品牌tree公共组件页面 在src\views\modules下创建放公共组件的文件夹:common 品牌公共组件:category.vue src\views\modules\common\category.vue ###2、页面内容 要点: 由于这个组件需要在其他(相当于 阅读全文
posted @ 2021-06-11 15:19 努力的校长 编辑
摘要:###1、导入sql语句 目标库:mall_admin DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu` ( `menu_id` bigint(20) NOT NULL AUTO_INCREMENT, `parent_id` bigin 阅读全文
posted @ 2021-06-11 15:17 努力的校长 编辑
摘要:###1、在onlinemall-common项目中创建两个分组(接口类型) 添加数据是校验分组:com.applesnt.common.valid.AddGroup package com.applesnt.common.valid; /** * @author menghaibin * @pro 阅读全文
posted @ 2021-06-10 17:27 努力的校长 编辑
摘要:@ControllerAdvice注解会自动感知指定包下的异常,所有的异常都会自动交由注解了ControllerAdvice的类来处理 ###1、修改保存方法,把异常处理相关代码去掉 com.applesnt.onlinemall.product.controller.BrandController 阅读全文
posted @ 2021-06-10 14:06 努力的校长 编辑
摘要:品牌保存请求:/product/brand/save 请求参数: { "descript": "oppo", "firstLetter": "b", "logo": "https://onlinemall2021.oss-cn-beijing.aliyuncs.com/2021-06-15/ef4c 阅读全文
posted @ 2021-06-08 22:59 努力的校长 编辑
摘要:上传图片获取签名请求:/oss/policy 响应数据示例: { "msg": "success", "code": 0, "data": { "accessid": "LTAI5t7szoumpKM61yjB1uMx", "policy": "eyJleHBpcmF0aW9uIjoiMjAyMS0 阅读全文
posted @ 2021-06-08 15:36 努力的校长 编辑
摘要:###1、新建第三方服务项目onlinemall-third-party 需要调用的第三方服务都放在这个项目里,比如OSS对象存储 ###2、把onlinemall-third-party加入到onlinemall总项目中 <modules> <module>onlinemall-coupon</m 阅读全文
posted @ 2021-06-07 19:04 努力的校长 编辑
摘要:###1、登录阿里云 找到对象存储OSS ###2、开通对象存储服务 ###3、如果未实名认证 需要进行实名认证 ###4、实名认证完成后,开通服务 ###5、开通服务后创建一个Bucket ###6、AccessKey管理设置 ###7、查看AccessKeyID和AccessKey Secret 阅读全文
posted @ 2021-06-07 17:04 努力的校长 编辑
摘要:###1、修改表格的表头文字以及添加页面的label以及显示宽度 在列表页以及添加修改页直接修改显示的文字即可,brand-add-or-update.vue页面的el-form宽度可以调至140px ###2、修改列表页“显示状态”为开关按钮 src\views\modules\product\b 阅读全文
posted @ 2021-06-06 22:29 努力的校长 编辑
摘要:###1、添加品牌管理菜单 人人开发平台--系统管理--菜单管理--新增 ###2、代码生成器生成onlinemall-product项目的代码中拷贝品牌相关的页面 把以下两个页面拷贝至前端项目的src\views\modules\product目录下 ###3、访问项目 表格的标头读取的是数据库表 阅读全文
posted @ 2021-06-06 21:59 努力的校长 编辑
摘要:请求:/product/category/delete 请求参数: catIds:[170,171,172] 响应数据示例: { "code": 0, "msg": "success" } 操作数据库表:pms_category ###批量删除直接调用delete方法即可 <template> <d 阅读全文
posted @ 2021-06-06 18:00 努力的校长 编辑
摘要:查询请求:/product/category/info/{catId} 请求参数:catId路径参数 响应数据示例: { "msg": "success", "code": 0, "data": { "catId": 1, "name": "图书、音像、电子书刊", "parentCid": 0, 阅读全文
posted @ 2021-06-06 16:49 努力的校长 编辑
摘要:请求:/product/category/save 请求参数: { catId: null catLevel: 2 icon: "xx" name: "手机运动" parentCid: 2 productUnit: "个" showStatus: 1 sort: 0 } 响应数据示例: { "cod 阅读全文
posted @ 2021-06-06 13:13 努力的校长 编辑
摘要:请求:/product/category/delete 请求参数: catIds:[170] 响应数据示例: { "code": 0, "msg": "success" } 操作数据库表:pms_category ###1、配置mybatis的逻辑删除 商品的逻辑删除(逻辑删除需要配置mybatis 阅读全文
posted @ 2021-06-05 23:23 努力的校长 编辑
摘要:###1、vue页面 <template> <!-- elemnetUI tree组件 :data="menus":绑定的数据 :props="defaultProps":要渲染的数据项 :expand-on-click-node="false":点击添加和删除时不触发展开事件 show-check 阅读全文
posted @ 2021-06-05 21:54 努力的校长 编辑
摘要:###1、创建网关服务的跨域配置类 com.applesnt.onlinemall.gateway下创建config包 在config包下创建MallCorsConfiguration.javap配置类 package com.applesnt.onlinemall.gateway.config; 阅读全文
posted @ 2021-06-04 20:15 努力的校长 编辑
摘要:###1:把renren-fast注册到nacos注册中心 修改pom.xml,引入公共项目依赖 <dependency> <groupId>com.applesnt.onlinemall</groupId> <artifactId>onlinemall-common</artifactId> <v 阅读全文
posted @ 2021-06-03 20:19 努力的校长 编辑
摘要:启动服务端项目renren-fast 启动客户端项目renren-fast-vue ###1、创建商品系统相关目录和菜单 系统管理--》菜单管理--》添加 创建商品系统目录 系统管理--》菜单管理--》添加 创建分类维护菜单 创建完成 ###2、创建分类维护页面组件 项目规则说明: 1:菜单的路由( 阅读全文
posted @ 2021-06-03 14:59 努力的校长 编辑
摘要:请求:/product/category/list/tree 响应数据示例: { "code": 0, "msg": "success", "data": [{ "catId": 1, "name": "图书、音像、电子书刊", "parentCid": 0, "catLevel": 1, "sho 阅读全文
posted @ 2021-06-03 12:37 努力的校长 编辑
摘要:https://files-cdn.cnblogs.com/files/applesnt/pms_catelog.zip 阅读全文
posted @ 2021-06-02 22:46 努力的校长 编辑
摘要:####1:创建网关服务 onlinemall-geteway ####2:修改pom.xml springboot版本修改为:2.1.8.RELEASE springcloud版本修改为:Greenwich.SR3 引入公共项目的依赖(要注册到nacos中心) <!--引入公共项目依赖 排除myb 阅读全文
posted @ 2021-06-02 22:34 努力的校长 编辑
摘要:###1、创建代码片段 文件--首选项--用户片段--新代码片段--(添加一个名字 回车) ###2、VUE基础模板内容(复制粘贴即可) 该模板内容包含: vue:生成vue页面基础结构 含template script style三部分 httpget:get方法 httppost:post方法 阅读全文
posted @ 2021-06-01 18:18 努力的校长 编辑
摘要:官方:https://element.eleme.cn/#/zh-CN/component/installation ###1、安装elementui依赖 npm i element-ui -S ###2、在main.js中导入ElementUI //导入ElementUI依赖 import Ele 阅读全文
posted @ 2021-06-01 17:25 努力的校长 编辑
摘要:###结构说明 ###1、在components中新建page1页面 1:组件三要素 <template> <script> <style> 2:<template>内编写要显示的内容 3:<script>内编写vue对象,可供模板使用 page1.vue <!-- 组件三要素 模板 js 样式 - 阅读全文
posted @ 2021-06-01 17:02 努力的校长 编辑

点击右上角即可分享
微信分享提示