fix: 更新null值无效

This commit is contained in:
haoxr 2022-12-24 13:26:30 +08:00
parent e15fea455e
commit cfd1f9ef1a

View File

@ -1,5 +1,6 @@
package com.youlai.mall.oms.pojo.entity; package com.youlai.mall.oms.pojo.entity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
@ -82,6 +83,7 @@ public class OmsOrder extends BaseEntity {
/** /**
* 商户订单号 * 商户订单号
*/ */
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String outTradeNo; private String outTradeNo;
/** /**
* 微信支付订单号 * 微信支付订单号