|
@@ -46,6 +46,7 @@ import javax.annotation.Resource;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
|
+import java.text.MessageFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -747,7 +748,7 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
.eq(MusicSheetPurchaseRecord::getOrderStatus, OrderStatusEnum.PAID)
|
|
|
.list();
|
|
|
if (!CollectionUtils.isEmpty(list)) {
|
|
|
- throw new BizException("已经购买了当前曲目");
|
|
|
+ throw new BizException(MessageFormat.format("已经购买了当前{0}", purchaseType.getMsg()));
|
|
|
}
|
|
|
}
|
|
|
|