空字符串的sql处理
充值流水id填充
This commit is contained in:
@@ -25,6 +25,12 @@ public class ShopUserMoneyEditDTO {
|
||||
*/
|
||||
@NotNull
|
||||
private Integer type;
|
||||
/**
|
||||
* 关联id,
|
||||
* 霸王餐时 订单id
|
||||
* 支付/退款 tb_order_payment.id
|
||||
*/
|
||||
private Long relationId;
|
||||
/**
|
||||
* 浮动金额
|
||||
*/
|
||||
|
||||
@@ -55,9 +55,11 @@ public class ShopUserFlow implements Serializable {
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 关联订单编号,支付单号,退款单号
|
||||
* 关联id,
|
||||
* 霸王餐时 订单id
|
||||
* 支付/退款 tb_order_payment.id
|
||||
*/
|
||||
private String relationOrderNo;
|
||||
private Long relationId;
|
||||
|
||||
@Column(onInsertValue = "now()")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.czg.utils;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* @author ww
|
||||
* @description
|
||||
*/
|
||||
public class CzgStrUtils {
|
||||
|
||||
/**
|
||||
* 如果str为空,返回null,否则返回str
|
||||
* flex sql查询时 自动忽略null 不忽略''
|
||||
*/
|
||||
public static String getStrOrNull(String str) {
|
||||
return StrUtil.isNotBlank(str) ? str : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user