mybatisPlus进行修改某字段为null时
在相关字段上加上注解
@TableField
(strategy = FieldStrategy.IGNORED)
如:
@TableField(updateStrategy = FieldStrategy.IGNORED)
@ApiModelProperty(value = "检验结果2:1返工/返修、2整改、3报废")
private Integer inspResult2;
在相关字段上加上注解
@TableField
(strategy = FieldStrategy.IGNORED)
如:
@TableField(updateStrategy = FieldStrategy.IGNORED)
@ApiModelProperty(value = "检验结果2:1返工/返修、2整改、3报废")
private Integer inspResult2;