|
@@ -82,9 +82,15 @@ public class MusicGroupPaymentCalenderDetailServiceImpl extends BaseServiceImpl<
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void updateExpectAmount(BigDecimal expectAmount,BigDecimal expectMemberAmount,String ids) {
|
|
|
- if(expectAmount == null || StringUtils.isEmpty(ids)){
|
|
|
+ if((expectAmount == null && expectMemberAmount == null) || StringUtils.isEmpty(ids)){
|
|
|
throw new BizException("参数校验失败");
|
|
|
}
|
|
|
+ if(expectAmount == null){
|
|
|
+ expectAmount = BigDecimal.ZERO;
|
|
|
+ }
|
|
|
+ if(expectMemberAmount == null){
|
|
|
+ expectMemberAmount = BigDecimal.ZERO;
|
|
|
+ }
|
|
|
//获取缴费列表
|
|
|
List<MusicGroupPaymentCalenderDetail> calenderDetails = musicGroupPaymentCalenderDetailDao.queryListByIds(ids);
|
|
|
if(calenderDetails.size() == 0){
|