支付时间为空问题处理

This commit is contained in:
Chopper 2021-12-13 09:32:10 +08:00
parent 036ad6defb
commit ef8615cfe5

View File

@ -192,6 +192,7 @@ public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements Bi
}
LambdaUpdateWrapper<Bill> lambdaUpdateWrapper = Wrappers.lambdaUpdate();
lambdaUpdateWrapper.eq(Bill::getId, id);
lambdaUpdateWrapper.set(Bill::getPayTime, new Date());
lambdaUpdateWrapper.set(Bill::getBillStatus, BillStatusEnum.COMPLETE.name());
return this.update(lambdaUpdateWrapper);
}