摘要: QueryWrapper<AttrEntity> wrapper = new QueryWrapper<AttrEntity>().eq("catelog_id", catelogId);if(attrIds != null && attrIds.size() > 0) { wrapper.notI 阅读全文
posted @ 2022-11-30 15:40 sensen~||^_^|||& 阅读(34) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/h470789634/article/details/124573252 学习目标:mybatis plus 的删除操作学习内容:delete使用学习产出:1、deleteById@Test void deleteTest(){ //返回一个int类 阅读全文
posted @ 2022-11-30 10:38 sensen~||^_^|||& 阅读(197) 评论(0) 推荐(0)
摘要: Stream的 :: 用来取出实体类中的属性值: 小例子: @Overridepublic List<AttrEntity> getRelationAttr(Long attrgroupId) { List<AttrAttrgroupRelationEntity> entities = relati 阅读全文
posted @ 2022-11-30 09:46 sensen~||^_^|||& 阅读(23) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/sc179/article/details/126283897 Java Stream类常见用法 目录 1 基本过滤:返回学生列表中90分以上的 2 基本转换:根据学生列表返回名称列表 3 基本过滤和基本转换组合:返回90分以上的学生名称列表 4 中 阅读全文
posted @ 2022-11-30 09:40 sensen~||^_^|||& 阅读(92) 评论(0) 推荐(0)
摘要: /** * Copyright (c) 2016-2019 人人开源 All rights reserved. * * https://www.renren.io * * 版权所有,侵权必究! */package com.atguigu.common.utils;import org.apache. 阅读全文
posted @ 2022-11-30 09:18 sensen~||^_^|||& 阅读(138) 评论(0) 推荐(0)
摘要: 1、创建枚举类: package com.atguigu.common.constant;public class ProductConstant { public enum AttrEnum { ATTR_TYPE_BASE(1, "基本属性"), ATTR_TYPE_SALE(0, "销售属性" 阅读全文
posted @ 2022-11-30 08:23 sensen~||^_^|||& 阅读(22) 评论(0) 推荐(0)