|
@@ -10,6 +10,7 @@ import com.liangjian11.ymall.model.video.VideoComment;
|
|
|
import com.liangjian11.ymall.service.UserAccountService;
|
|
|
import com.liangjian11.ymall.service.video.VideoCommentService;
|
|
|
import com.liangjian11.ymall.utils.FiltersData;
|
|
|
+import com.liangjian11.ymall.utils.FiltersUtils;
|
|
|
import com.liangjian11.ymall.utils.ResultInfo;
|
|
|
import com.liangjian11.ymall.utils.ResultUtil;
|
|
|
import com.liangjian11.ymall.utils.video.DTO.PageResultInfo;
|
|
@@ -42,6 +43,12 @@ public class VideoCommentServiceImpl extends ServiceImpl<VideoCommentMapper, Vid
|
|
|
public ResultInfo listComments(FiltersData filtersData) {
|
|
|
int start = (filtersData.getPageIndex() - 1) * filtersData.getPageSize();
|
|
|
int pageSize = filtersData.getPageSize();
|
|
|
+ for (FiltersUtils filter : filtersData.getFilters()) {
|
|
|
+ if("video_title".equals(filter.getField())){
|
|
|
+ filter.setValue(filter.getValue().replace(" ", "%"));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
String filterSql = "where 1=1 ";
|
|
|
if (!CollectionUtils.isEmpty(filtersData.getFilters())) {
|
|
|
filterSql = filtersData.getFilterSqlCap();
|