|
@@ -29,6 +29,7 @@ import com.yonge.cooleshow.common.enums.YesOrNoEnum;
|
|
|
import com.yonge.toolset.base.exception.BizException;
|
|
|
import com.yonge.toolset.thirdparty.message.MessageSenderPluginContext;
|
|
|
import com.yonge.toolset.utils.date.DateUtil;
|
|
|
+import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.joda.time.DateTime;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -393,7 +394,7 @@ public class MemberPriceSettingsServiceImpl extends ServiceImpl<MemberPriceSetti
|
|
|
|
|
|
Student student = studentService.getById(userId);
|
|
|
|
|
|
- Date startTime = student.getDiscountStartTime();
|
|
|
+ Date startTime = student.getDiscountEndTime();
|
|
|
|
|
|
|
|
|
boolean flag = false;
|
|
@@ -431,6 +432,15 @@ public class MemberPriceSettingsServiceImpl extends ServiceImpl<MemberPriceSetti
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<Long, MemberPriceSettings> getMapByIds(List<Long> memberPriceSettingsIds) {
|
|
|
+ if (CollectionUtils.isEmpty(memberPriceSettingsIds)) {
|
|
|
+ return new HashMap<>();
|
|
|
+ }
|
|
|
+ Collection<MemberPriceSettings> memberPriceSettings = listByIds(memberPriceSettingsIds);
|
|
|
+ return memberPriceSettings.stream().collect(Collectors.toMap(MemberPriceSettings::getId, a -> a));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|