摘要:
select dept_id, dept_name as name , parent_id as pid, case when exists( select 1 from sys_dept t2 where a.dept_id = t2.parent_id) then 0 else 1 end as 阅读全文
摘要:
在做项目时,经常用到BigDecimal类型的数据,需要比较大小:声明 BigDecimal: BigDescimal bd = new BigDecimal(str1);Integer a = bd1.compareTo(bd2); a = -1,表示bd1小于bd2; a = 0,表示bd1等于 阅读全文
摘要:
@NotNullThe annotated element must not be {@code null}. 校验参数一定不能为null,但是可以为" "。 @NotEmptyThe annotated element must not be {@code null} nor empty. Sup 阅读全文