参考:https://blog.csdn.net/doubiy/article/details/125364520
使用LambdaUpdateWrapper方法来更新
//结束日期如果没有值,就设置为null
LambdaUpdateWrapper<BaseBaobeiM> luw = new LambdaUpdateWrapper<>();
if (baobeiM.getId() != null && baobeiM.getDate_end() == null) {
luw.clear();
luw.set(BaseBaobeiM::getDate_end, null);
luw.eq(BaseBaobeiM::getId, baobeiM.getId());
baobeiMService.update(luw);
}