feat: 修复新增订单品论时,无法新增的bug

This commit is contained in:
wst 2024-11-22 19:49:12 +08:00
parent 67bdc2e49f
commit c8c3bb253a

View file

@ -481,7 +481,7 @@ public class OrderServiceImpl extends SkyeyeBusinessServiceImpl<OrderDao, Order>
@Override
public void updateCommonState(String id, Integer state) {
UpdateWrapper<Order> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq(MybatisPlusUtil.toColumns(Order::getId), id);
updateWrapper.eq(CommonConstants.ID, id);
updateWrapper.set(MybatisPlusUtil.toColumns(Order::getCommentState), state);
update(updateWrapper);
}