后台
MySql 函数
select YEAR(CURRENT_TIMESTAMP());
SELECT CURRENT_TIMESTAMP();
SELECT NOW()
判断为空
Boolean validateNull(Object object){
if (ObjUtil.isNull(object)) return true;
if (StrUtil.isBlank(String.valueOf(object))) return true;
return false;
}
Wrapper in写法
String[] billBusyState = {"已入库", "已出库", "已移库", "已盘点"};
queryWrapper.in("b.bill_busy_state", billBusyState);
取guid
IdUtil.simpleUUID()
R回接
private final CustomSqlService customSqlService;
@Autowired
private CustomerInfoUserService customerInfoUserService;
CustomerInfo customerInfo = (CustomerInfo) customerInfoUserService.getByUserId(sysUser.getId().toString()).getData();
择善人而交,择善书而读,择善言而听,择善行而从。