一 常用的接口文档地址:
http://localhost:8081/doc.html#/home
二 对象.get 要首先判断这个对象get的值是否为null
三 判断Integer类型是否为空或者大于0
gradePeriodEntity.getPeriodDays() == null || gradePeriodEntity.getPeriodDays() < 0
四 ![](https://img-blog.csdnimg.cn/c1cee3250c674b5dae366b4e96a1d09d.png)
数据库tinyint类型可以映射成boolean值
五 实体类中使用Boolean值,
六使用stream流来取出单个字段
List<Long> gradeIdList = gradeBuyPeriodMappingMapper.selectList(wrapper).stream().map(GradeBuyPeriodMappingEntity::getGradeId).collect(Collectors.toList());
七 判断BigDecimal类型的为空或者小于0
if (memberRechargeRecordDTO.getMoney() == null || memberRechargeRecordDTO.getMoney().compareTo(BigDecimal.ZERO )==-1) {