|
|
|
@ -162,7 +162,7 @@ const chunkBy = (use_year, dataList = [], by = []) => {
|
|
|
|
|
const matchRange = (ssSets).find((ss) => quoteItem.group_size_min >= ss[0] && quoteItem.group_size_max <= ss[1]);
|
|
|
|
|
const findEnd = matchRange || ssSets.find((ss) => quoteItem.group_size_max > ss[0] && quoteItem.group_size_max <= ss[1] && ss[1] !== Infinity);
|
|
|
|
|
const findStart = findEnd || ssSets.find((ss) => quoteItem.group_size_min >= ss[0]);
|
|
|
|
|
const finalRange = findStart;
|
|
|
|
|
const finalRange = findStart || ssSets[0];
|
|
|
|
|
// console.log('find mmm', matchRange, findEnd, findStart, finalRange);
|
|
|
|
|
// console.log('matchRange ', 'find', [quoteItem.group_size_min, quoteItem.group_size_max], 'matched', finalRange);
|
|
|
|
|
// console.groupEnd();
|
|
|
|
|