摘要:
例1: class Program { static void Main(string[] args) { List<string> list=new List<string>(); list.Add("a"); list.Add("b"); list.Add("c"); Console.Write 阅读全文
摘要:
QueryWrapper<AttrEntity> wrapper = new QueryWrapper<AttrEntity>().eq("catelog_id", catelogId);if(attrIds != null && attrIds.size() > 0) { wrapper.notI 阅读全文
摘要:
转自:https://blog.csdn.net/h470789634/article/details/124573252 学习目标:mybatis plus 的删除操作学习内容:delete使用学习产出:1、deleteById@Test void deleteTest(){ //返回一个int类 阅读全文
摘要:
Stream的 :: 用来取出实体类中的属性值: 小例子: @Overridepublic List<AttrEntity> getRelationAttr(Long attrgroupId) { List<AttrAttrgroupRelationEntity> entities = relati 阅读全文
摘要:
转自:https://blog.csdn.net/sc179/article/details/126283897 Java Stream类常见用法 目录 1 基本过滤:返回学生列表中90分以上的 2 基本转换:根据学生列表返回名称列表 3 基本过滤和基本转换组合:返回90分以上的学生名称列表 4 中 阅读全文
摘要:
/** * Copyright (c) 2016-2019 人人开源 All rights reserved. * * https://www.renren.io * * 版权所有,侵权必究! */package com.atguigu.common.utils;import org.apache. 阅读全文
摘要:
1、创建枚举类: package com.atguigu.common.constant;public class ProductConstant { public enum AttrEnum { ATTR_TYPE_BASE(1, "基本属性"), ATTR_TYPE_SALE(0, "销售属性" 阅读全文
摘要:
转自:https://blog.csdn.net/mikelv01/article/details/123920873//源码/** * 根据 whereEntity 条件,更新记录 * * @param entity 实体对象 (set 条件值,可以为 null) * @param updateW 阅读全文
摘要:
例1:@Overridepublic PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId) { QueryWrapper<AttrEntity> queryWrapper = new QueryWrapper< 阅读全文
摘要:
//1、使用更新对象的非空值去覆盖待更新对象StringUtils.copyPropertiesIgnoreNull(device, dev); //用device对象去覆盖dev对象复制属性:将attr实体中的属性一一拷贝给attrEntity 实体,名字要一致。eg: @Overridepubl 阅读全文
