|
|
@@ -5,6 +5,7 @@ import java.util.Objects;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
import com.punchsettle.server.atomic.entity.LotteryScratchRecord;
|
|
|
@@ -61,6 +62,9 @@ public class LotteryScratchRecordServiceImpl implements ILotteryScratchRecordSer
|
|
|
if (!Objects.isNull(query.getUserId())) {
|
|
|
criteria.andEqualTo(LotteryScratchRecord::getCreatedBy, query.getUserId());
|
|
|
}
|
|
|
+ if (!CollectionUtils.isEmpty(query.getActionTypeList())) {
|
|
|
+ criteria.andIn(LotteryScratchRecord::getActionType, query.getActionTypeList());
|
|
|
+ }
|
|
|
weekend.orderBy(LotteryScratchRecord::getCreationTime).desc();
|
|
|
return scratchRecordMapper.selectByExample(weekend);
|
|
|
}
|