只能根据组进行开票

This commit is contained in:
qjq
2024-12-03 16:48:45 +08:00
parent b14ee43ac5
commit 58eed54945

View File

@ -240,10 +240,10 @@ public class BillingServiceImpl implements BillingService {
// 插入 BillingDO 对象并生成唯一主键
BillingDO billing = BeanUtils.toBean(createReqVO, BillingDO.class);
Set<Long> orderId = createReqVO.getOrderId();
/*if(orderId==null){
if(orderId==null){
createReqVO.setOrderId(new HashSet<>(getMemberListByUserId(billing.getUserId()))) ;
}*/
if(CollUtil.isEmpty(orderId))throw exception(BILLING_NOT_ORDER_USER);
}
if(CollUtil.isEmpty(createReqVO.getOrderId()))throw exception(BILLING_NOT_ORDER_USER);
// MemberGroupDO memberGroupDO = memberGroupDO(billing.getUserId());
billing.setId(IdUtil.getSnowflakeNextId() + "");
// billing.setUserName(memberGroupDO.getName());