|
@@ -12,6 +12,8 @@ import cn.kdan.compdf.dto.PlanStatisticsDTO;
|
|
|
import cn.kdan.compdf.entity.BackgroundUserBalance;
|
|
|
import cn.kdan.compdf.entity.BackgroundUserRemain;
|
|
|
import cn.kdan.compdf.enums.DateTImeFormatEnum;
|
|
|
+import cn.kdan.compdf.enums.ResponseEnum;
|
|
|
+import cn.kdan.compdf.exception.BusinessException;
|
|
|
import cn.kdan.compdf.mapper.BackgroundUserBalanceMapper;
|
|
|
import cn.kdan.compdf.service.BackgroundUserBalanceService;
|
|
|
import cn.kdan.compdf.service.BackgroundUserRemainService;
|
|
@@ -311,8 +313,10 @@ public class BackgroundUserBalanceServiceImpl extends ServiceImpl<BackgroundUser
|
|
|
case 1:
|
|
|
billVO.setStartDate(ObjectUtil.isNotEmpty(userRemain.getStartDate()) ? userRemain.getStartDate().toLocalDate() : null);
|
|
|
billVO.setEndDate(ObjectUtil.isNotEmpty(userRemain.getEndDate()) ? userRemain.getEndDate().toLocalDate() : null);
|
|
|
+ billVO.setCycle(userRemain.getCycle());
|
|
|
break;
|
|
|
case 2: break;
|
|
|
+ default: throw new BusinessException(ResponseEnum.ERROR_ASSET_TYPE_IS_NOT_SUPPORTED_YET);
|
|
|
}
|
|
|
return billVO;
|
|
|
}).collect(Collectors.toList());
|