|
@@ -875,6 +875,9 @@ public class SellOrderServiceImpl extends BaseServiceImpl<Integer, SellOrder> im
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public List<SellOrder> initSellOrder(StudentPaymentOrder order, String musicGroupId, List<Integer> goodsIds,
|
|
public List<SellOrder> initSellOrder(StudentPaymentOrder order, String musicGroupId, List<Integer> goodsIds,
|
|
KitGroupPurchaseTypeEnum kitGroupPurchaseType,Boolean saveFlag) {
|
|
KitGroupPurchaseTypeEnum kitGroupPurchaseType,Boolean saveFlag) {
|
|
|
|
+ if (CollectionUtils.isEmpty(goodsIds)) {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
BigDecimal totalBalance = order.getBalancePaymentAmount();
|
|
BigDecimal totalBalance = order.getBalancePaymentAmount();
|
|
if (totalBalance == null) {
|
|
if (totalBalance == null) {
|
|
totalBalance = BigDecimal.ZERO;
|
|
totalBalance = BigDecimal.ZERO;
|