Java 中的 String类型 转换为 int类型

public static void main(String[] args) {
        // String 类型 的 数字
        String a ="100";
        // Integer 的 数字
        Integer  num = 99;
        
        // Integer.parseInt() 就是把 String类型 转化为 int类型
        int parseInt = Integer.parseInt(a);
        
        // Integer.valueOf() 是把 String类型 转化为 Integer类型
        Integer valueOf = Integer.valueOf(a);
        
        // toString() 可以把一个 引用类型 转化为 String字符串类型 , 必须是 引用类型, int类型 不可以
        String string = num.toString();        
}

举例:

List list = new ArrayList();
size() 就是 获取到 ArrayList 中 存储的对象的 个数.

 // 查出数据来
System.out.println("----------------------------" + mouldAccountLineList);
int a = mouldAccountLineList.size();
System.out.println("入库数" + a);

Assert 断言

Assert.notNull(temp,"temp的值不能为空");
// 判断 传进来的参数值 是否 不为空值
如果为空 就 抛出异常 throw new IllegalArgumentException(msg) 
// 代码 如果 不捕捉 处理这个异常, 代码不往下执行, 不为空 代码继续向下执行

Mapper 和 Mybatis-plus Wrapper

手写SQL ---> Mapper  或 Wrapper eq.