小么熊🐻 4 年 前
コミット
f5b0d308a2

+ 117 - 0
zzjs-service/src/main/java/com/miaxis/question/controller/QuestionInfoController.java

@@ -0,0 +1,117 @@
+package com.miaxis.question.controller;
+
+import com.miaxis.common.constant.Constants;
+import java.util.List;
+import java.util.Arrays;
+import io.swagger.annotations.*;
+import com.miaxis.common.core.domain.Response;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.ModelAttribute;
+import com.miaxis.common.annotation.Log;
+import com.miaxis.common.core.controller.BaseController;
+import com.miaxis.common.enums.BusinessTypeEnum;
+import com.miaxis.question.domain.QuestionInfo;
+import com.miaxis.question.service.IQuestionInfoService;
+import com.miaxis.common.utils.poi.ExcelUtil;
+import com.miaxis.common.core.page.ResponsePageInfo;
+
+/**
+ * 【题库】Controller
+ *
+ * @author miaxis
+ * @date 2021-03-12
+ */
+@RestController
+@RequestMapping("/question/info")
+@Api(tags={"【app-题库】"})
+public class QuestionInfoController extends BaseController{
+    @Autowired
+    private IQuestionInfoService questionInfoService;
+
+    /**
+     * 查询题库列表
+     */
+    @PreAuthorize("@ss.hasPermi('question:info:list')")
+    @GetMapping("/list")
+    @ApiOperation("查询题库列表")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
+            @ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
+    })
+    public ResponsePageInfo<QuestionInfo> list(@ModelAttribute QuestionInfo questionInfo){
+        startPage();
+        List<QuestionInfo> list = questionInfoService.selectQuestionInfoList(questionInfo);
+        return toResponsePageInfo(list);
+    }
+
+    /**
+     * 导出题库列表
+     */
+    @PreAuthorize("@ss.hasPermi('question:info:export')")
+    @Log(title = "题库", businessType = BusinessTypeEnum.EXPORT)
+    @GetMapping("/export")
+    @ApiOperation("导出题库列表Excel")
+    public Response<String> export(@ModelAttribute QuestionInfo questionInfo){
+        List<QuestionInfo> list = questionInfoService.selectQuestionInfoList(questionInfo);
+        ExcelUtil<QuestionInfo> util = new ExcelUtil<QuestionInfo>(QuestionInfo.class);
+        return util.exportExcel(list, "info");
+    }
+
+    /**
+     * 获取题库详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('question:info:query')")
+    @GetMapping(value = "/{id}")
+    @ApiOperation("获取题库详细信息")
+    public Response<QuestionInfo> getInfo(
+            @ApiParam(name = "id", value = "题库参数", required = true)
+            @PathVariable("id") Long id
+    ){
+        return Response.success(questionInfoService.getById(id));
+    }
+
+    /**
+     * 新增题库
+     */
+    @PreAuthorize("@ss.hasPermi('question:info:add')")
+    @Log(title = "题库", businessType = BusinessTypeEnum.INSERT)
+    @PostMapping
+    @ApiOperation("新增题库")
+    public Response<Integer> add(@RequestBody QuestionInfo questionInfo){
+        return toResponse(questionInfoService.save(questionInfo) ? 1 : 0);
+    }
+
+    /**
+     * 修改题库
+     */
+    @PreAuthorize("@ss.hasPermi('question:info:edit')")
+    @Log(title = "题库", businessType = BusinessTypeEnum.UPDATE)
+    @PutMapping
+    @ApiOperation("修改题库")
+    public Response<Integer> edit(@RequestBody QuestionInfo questionInfo){
+        return toResponse(questionInfoService.updateById(questionInfo) ? 1 : 0);
+    }
+
+    /**
+     * 删除题库
+     */
+    @PreAuthorize("@ss.hasPermi('question:info:remove')")
+    @Log(title = "题库", businessType = BusinessTypeEnum.DELETE)
+	@DeleteMapping("/{ids}")
+    @ApiOperation("删除题库")
+    public  Response<Integer> remove(
+            @ApiParam(name = "ids", value = "题库ids参数", required = true)
+            @PathVariable Long[] ids
+    ){
+        return toResponse(questionInfoService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
+    }
+}

+ 452 - 0
zzjs-service/src/main/java/com/miaxis/question/domain/QuestionInfo.java

@@ -0,0 +1,452 @@
+package com.miaxis.question.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.miaxis.common.annotation.Excel;
+import com.miaxis.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.miaxis.common.core.domain.BaseBusinessEntity;
+import lombok.Data;
+/**
+ * 题库对象 question_info
+ *
+ * @author miaxis
+ * @date 2021-03-12
+ */
+@Data
+@TableName("question_info")
+@ApiModel(value = "QuestionInfo", description = "题库对象 question_info")
+public class QuestionInfo extends BaseBusinessEntity{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    @TableId("id")
+    @ApiModelProperty(value = "主键")
+    private Long id;
+
+    /** 类型 */
+    @Excel(name = "类型")
+    @TableField("type")
+    @ApiModelProperty(value = "类型")
+    private Long type;
+
+    /** 未知字段 */
+    @Excel(name = "未知字段")
+    @TableField("int_number")
+    @ApiModelProperty(value = "未知字段")
+    private String intNumber;
+
+    /** 未知字段 */
+    @Excel(name = "未知字段")
+    @TableField("str_tppe")
+    @ApiModelProperty(value = "未知字段")
+    private String strTppe;
+
+    /** 未知字段 */
+    @Excel(name = "未知字段")
+    @TableField("str_type_l")
+    @ApiModelProperty(value = "未知字段")
+    private String strTypeL;
+
+    /** 许可车型 */
+    @Excel(name = "许可车型")
+    @TableField("license_type")
+    @ApiModelProperty(value = "许可车型")
+    private String licenseType;
+
+    /** 问题 */
+    @Excel(name = "问题")
+    @TableField("question")
+    @ApiModelProperty(value = "问题")
+    private String question;
+
+    /** 答案1 */
+    @Excel(name = "答案1")
+    @TableField("an1")
+    @ApiModelProperty(value = "答案1")
+    private String an1;
+
+    /** 答案2 */
+    @Excel(name = "答案2")
+    @TableField("an2")
+    @ApiModelProperty(value = "答案2")
+    private String an2;
+
+    /** 答案3 */
+    @Excel(name = "答案3")
+    @TableField("an3")
+    @ApiModelProperty(value = "答案3")
+    private String an3;
+
+    /** 答案4 */
+    @Excel(name = "答案4")
+    @TableField("an4")
+    @ApiModelProperty(value = "答案4")
+    private String an4;
+
+    /** 答案5 */
+    @Excel(name = "答案5")
+    @TableField("an5")
+    @ApiModelProperty(value = "答案5")
+    private String an5;
+
+    /** 答案6 */
+    @Excel(name = "答案6")
+    @TableField("an6")
+    @ApiModelProperty(value = "答案6")
+    private String an6;
+
+    /** 答案7 */
+    @Excel(name = "答案7")
+    @TableField("an7")
+    @ApiModelProperty(value = "答案7")
+    private String an7;
+
+    /** 正确答案 */
+    @Excel(name = "正确答案")
+    @TableField("answer_true")
+    @ApiModelProperty(value = "正确答案")
+    private String answerTrue;
+
+    /** 解释 */
+    @Excel(name = "解释")
+    @TableField("explain1")
+    @ApiModelProperty(value = "解释")
+    private String explain1;
+
+    /** 最佳答案 */
+    @Excel(name = "最佳答案")
+    @TableField("best_answer_id")
+    @ApiModelProperty(value = "最佳答案")
+    private String bestAnswerId;
+
+    /** 科目 */
+    @Excel(name = "科目")
+    @TableField("kemu")
+    @ApiModelProperty(value = "科目")
+    private Long kemu;
+
+    /** 解释_from */
+    @Excel(name = "解释_from")
+    @TableField("jieshi_from")
+    @ApiModelProperty(value = "解释_from")
+    private String jieshiFrom;
+
+    /** 更多类型 */
+    @Excel(name = "更多类型")
+    @TableField("moretypes")
+    @ApiModelProperty(value = "更多类型")
+    private String moretypes;
+
+    /** chapterid */
+    @Excel(name = "chapterid")
+    @TableField("chapterid")
+    @ApiModelProperty(value = "chapterid")
+    private Long chapterid;
+
+    /** 图片文件名 */
+    @Excel(name = "图片文件名")
+    @TableField("sinaimg")
+    @ApiModelProperty(value = "图片文件名")
+    private String sinaimg;
+
+    /** 视频文件名 */
+    @Excel(name = "视频文件名")
+    @TableField("video_url")
+    @ApiModelProperty(value = "视频文件名")
+    private String videoUrl;
+
+    /** 未知 */
+    @Excel(name = "未知")
+    @TableField("diff_degree")
+    @ApiModelProperty(value = "未知")
+    private Long diffDegree;
+
+    /** 城市 */
+    @Excel(name = "城市")
+    @TableField("cityid")
+    @ApiModelProperty(value = "城市")
+    private Long cityid;
+
+    /** gs */
+    @Excel(name = "gs")
+    @TableField("gs")
+    @ApiModelProperty(value = "gs")
+    private String gs;
+
+    /** 关键字 */
+    @Excel(name = "关键字")
+    @TableField("keyword")
+    @ApiModelProperty(value = "关键字")
+    private String keyword;
+
+    /** 错误率 */
+    @Excel(name = "错误率")
+    @TableField("error_rate")
+    @ApiModelProperty(value = "错误率")
+    private Long errorRate;
+
+    /** 文件地址 */
+    @Excel(name = "文件地址")
+    @TableField("media_url")
+    @ApiModelProperty(value = "文件地址")
+    private String mediaUrl;
+
+    /** 是否显示 */
+    @Excel(name = "是否显示")
+    @TableField("show_option_type")
+    @ApiModelProperty(value = "是否显示")
+    private Long showOptionType;
+
+    public void setId(Long id){
+        this.id = id;
+    }
+
+    public Long getId(){
+        return id;
+    }
+    public void setType(Long type){
+        this.type = type;
+    }
+
+    public Long getType(){
+        return type;
+    }
+    public void setIntNumber(String intNumber){
+        this.intNumber = intNumber;
+    }
+
+    public String getIntNumber(){
+        return intNumber;
+    }
+    public void setStrTppe(String strTppe){
+        this.strTppe = strTppe;
+    }
+
+    public String getStrTppe(){
+        return strTppe;
+    }
+    public void setStrTypeL(String strTypeL){
+        this.strTypeL = strTypeL;
+    }
+
+    public String getStrTypeL(){
+        return strTypeL;
+    }
+    public void setLicenseType(String licenseType){
+        this.licenseType = licenseType;
+    }
+
+    public String getLicenseType(){
+        return licenseType;
+    }
+    public void setQuestion(String question){
+        this.question = question;
+    }
+
+    public String getQuestion(){
+        return question;
+    }
+    public void setAn1(String an1){
+        this.an1 = an1;
+    }
+
+    public String getAn1(){
+        return an1;
+    }
+    public void setAn2(String an2){
+        this.an2 = an2;
+    }
+
+    public String getAn2(){
+        return an2;
+    }
+    public void setAn3(String an3){
+        this.an3 = an3;
+    }
+
+    public String getAn3(){
+        return an3;
+    }
+    public void setAn4(String an4){
+        this.an4 = an4;
+    }
+
+    public String getAn4(){
+        return an4;
+    }
+    public void setAn5(String an5){
+        this.an5 = an5;
+    }
+
+    public String getAn5(){
+        return an5;
+    }
+    public void setAn6(String an6){
+        this.an6 = an6;
+    }
+
+    public String getAn6(){
+        return an6;
+    }
+    public void setAn7(String an7){
+        this.an7 = an7;
+    }
+
+    public String getAn7(){
+        return an7;
+    }
+    public void setAnswerTrue(String answerTrue){
+        this.answerTrue = answerTrue;
+    }
+
+    public String getAnswerTrue(){
+        return answerTrue;
+    }
+    public void setExplain1(String explain1){
+        this.explain1 = explain1;
+    }
+
+    public String getExplain1(){
+        return explain1;
+    }
+    public void setBestAnswerId(String bestAnswerId){
+        this.bestAnswerId = bestAnswerId;
+    }
+
+    public String getBestAnswerId(){
+        return bestAnswerId;
+    }
+    public void setKemu(Long kemu){
+        this.kemu = kemu;
+    }
+
+    public Long getKemu(){
+        return kemu;
+    }
+    public void setJieshiFrom(String jieshiFrom){
+        this.jieshiFrom = jieshiFrom;
+    }
+
+    public String getJieshiFrom(){
+        return jieshiFrom;
+    }
+    public void setMoretypes(String moretypes){
+        this.moretypes = moretypes;
+    }
+
+    public String getMoretypes(){
+        return moretypes;
+    }
+    public void setChapterid(Long chapterid){
+        this.chapterid = chapterid;
+    }
+
+    public Long getChapterid(){
+        return chapterid;
+    }
+    public void setSinaimg(String sinaimg){
+        this.sinaimg = sinaimg;
+    }
+
+    public String getSinaimg(){
+        return sinaimg;
+    }
+    public void setVideoUrl(String videoUrl){
+        this.videoUrl = videoUrl;
+    }
+
+    public String getVideoUrl(){
+        return videoUrl;
+    }
+    public void setDiffDegree(Long diffDegree){
+        this.diffDegree = diffDegree;
+    }
+
+    public Long getDiffDegree(){
+        return diffDegree;
+    }
+    public void setCityid(Long cityid){
+        this.cityid = cityid;
+    }
+
+    public Long getCityid(){
+        return cityid;
+    }
+    public void setGs(String gs){
+        this.gs = gs;
+    }
+
+    public String getGs(){
+        return gs;
+    }
+    public void setKeyword(String keyword){
+        this.keyword = keyword;
+    }
+
+    public String getKeyword(){
+        return keyword;
+    }
+    public void setErrorRate(Long errorRate){
+        this.errorRate = errorRate;
+    }
+
+    public Long getErrorRate(){
+        return errorRate;
+    }
+    public void setMediaUrl(String mediaUrl){
+        this.mediaUrl = mediaUrl;
+    }
+
+    public String getMediaUrl(){
+        return mediaUrl;
+    }
+    public void setShowOptionType(Long showOptionType){
+        this.showOptionType = showOptionType;
+    }
+
+    public Long getShowOptionType(){
+        return showOptionType;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("type", getType())
+            .append("intNumber", getIntNumber())
+            .append("strTppe", getStrTppe())
+            .append("strTypeL", getStrTypeL())
+            .append("licenseType", getLicenseType())
+            .append("question", getQuestion())
+            .append("an1", getAn1())
+            .append("an2", getAn2())
+            .append("an3", getAn3())
+            .append("an4", getAn4())
+            .append("an5", getAn5())
+            .append("an6", getAn6())
+            .append("an7", getAn7())
+            .append("answerTrue", getAnswerTrue())
+            .append("explain1", getExplain1())
+            .append("bestAnswerId", getBestAnswerId())
+            .append("kemu", getKemu())
+            .append("jieshiFrom", getJieshiFrom())
+            .append("moretypes", getMoretypes())
+            .append("chapterid", getChapterid())
+            .append("sinaimg", getSinaimg())
+            .append("videoUrl", getVideoUrl())
+            .append("diffDegree", getDiffDegree())
+            .append("cityid", getCityid())
+            .append("gs", getGs())
+            .append("keyword", getKeyword())
+            .append("errorRate", getErrorRate())
+            .append("mediaUrl", getMediaUrl())
+            .append("showOptionType", getShowOptionType())
+            .toString();
+    }
+}

+ 22 - 0
zzjs-service/src/main/java/com/miaxis/question/mapper/QuestionInfoMapper.java

@@ -0,0 +1,22 @@
+package com.miaxis.question.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.miaxis.question.domain.QuestionInfo;
+
+/**
+ * 题库Mapper接口
+ *
+ * @author miaxis
+ * @date 2021-03-12
+ */
+public interface QuestionInfoMapper extends BaseMapper<QuestionInfo> {
+    /**
+     * 查询题库列表
+     *
+     * @param questionInfo 题库
+     * @return 题库集合
+     */
+    public List<QuestionInfo> selectQuestionInfoList(QuestionInfo questionInfo);
+
+}

+ 21 - 0
zzjs-service/src/main/java/com/miaxis/question/service/IQuestionInfoService.java

@@ -0,0 +1,21 @@
+package com.miaxis.question.service;
+
+import java.util.List;
+import com.miaxis.question.domain.QuestionInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 题库Service接口
+ *
+ * @author miaxis
+ * @date 2021-03-12
+ */
+public interface IQuestionInfoService extends IService<QuestionInfo>{
+    /**
+     * 查询题库列表
+     *
+     * @param questionInfo 题库
+     * @return 题库集合
+     */
+    public List<QuestionInfo> selectQuestionInfoList(QuestionInfo questionInfo);
+}

+ 35 - 0
zzjs-service/src/main/java/com/miaxis/question/service/impl/QuestionInfoServiceImpl.java

@@ -0,0 +1,35 @@
+package com.miaxis.question.service.impl;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.apache.commons.lang3.StringUtils;
+import com.miaxis.question.mapper.QuestionInfoMapper;
+import com.miaxis.question.domain.QuestionInfo;
+import com.miaxis.question.service.IQuestionInfoService;
+
+/**
+ * 题库Service业务层处理
+ *
+ * @author miaxis
+ * @date 2021-03-12
+ */
+@Service
+public class QuestionInfoServiceImpl extends ServiceImpl<QuestionInfoMapper, QuestionInfo> implements IQuestionInfoService {
+    @Autowired
+    private QuestionInfoMapper questionInfoMapper;
+
+    /**
+     * 查询题库列表
+     *
+     * @param questionInfo 题库
+     * @return 题库
+     */
+    @Override
+    public List<QuestionInfo> selectQuestionInfoList(QuestionInfo questionInfo){
+        return questionInfoMapper.selectQuestionInfoList(questionInfo);
+    }
+}

+ 79 - 0
zzjs-service/src/main/resources/mapper/question/QuestionInfoMapper.xml

@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.miaxis.question.mapper.QuestionInfoMapper">
+
+    <resultMap type="QuestionInfo" id="QuestionInfoResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="intNumber"    column="int_number"    />
+        <result property="strTppe"    column="str_tppe"    />
+        <result property="strTypeL"    column="str_type_l"    />
+        <result property="licenseType"    column="license_type"    />
+        <result property="question"    column="question"    />
+        <result property="an1"    column="an1"    />
+        <result property="an2"    column="an2"    />
+        <result property="an3"    column="an3"    />
+        <result property="an4"    column="an4"    />
+        <result property="an5"    column="an5"    />
+        <result property="an6"    column="an6"    />
+        <result property="an7"    column="an7"    />
+        <result property="answerTrue"    column="answer_true"    />
+        <result property="explain1"    column="explain1"    />
+        <result property="bestAnswerId"    column="best_answer_id"    />
+        <result property="kemu"    column="kemu"    />
+        <result property="jieshiFrom"    column="jieshi_from"    />
+        <result property="moretypes"    column="moretypes"    />
+        <result property="chapterid"    column="chapterid"    />
+        <result property="sinaimg"    column="sinaimg"    />
+        <result property="videoUrl"    column="video_url"    />
+        <result property="diffDegree"    column="diff_degree"    />
+        <result property="cityid"    column="cityid"    />
+        <result property="gs"    column="gs"    />
+        <result property="keyword"    column="keyword"    />
+        <result property="errorRate"    column="error_rate"    />
+        <result property="mediaUrl"    column="media_url"    />
+        <result property="showOptionType"    column="show_option_type"    />
+    </resultMap>
+
+    <sql id="selectQuestionInfoVo">
+        select id, type, int_number, str_tppe, str_type_l, license_type, question, an1, an2, an3, an4, an5, an6, an7, answer_true, explain1, best_answer_id, kemu, jieshi_from, moretypes, chapterid, sinaimg, video_url, diff_degree, cityid, gs, keyword, error_rate, media_url, show_option_type, from question_info
+    </sql>
+
+    <select id="selectQuestionInfoList" parameterType="QuestionInfo" resultMap="QuestionInfoResult">
+        <include refid="selectQuestionInfoVo"/>
+        <where>
+            <if test="type != null "> and type = #{type}</if>
+            <if test="intNumber != null  and intNumber != ''"> and int_number = #{intNumber}</if>
+            <if test="strTppe != null  and strTppe != ''"> and str_tppe = #{strTppe}</if>
+            <if test="strTypeL != null  and strTypeL != ''"> and str_type_l = #{strTypeL}</if>
+            <if test="licenseType != null  and licenseType != ''"> and license_type = #{licenseType}</if>
+            <if test="question != null  and question != ''"> and question = #{question}</if>
+            <if test="an1 != null  and an1 != ''"> and an1 = #{an1}</if>
+            <if test="an2 != null  and an2 != ''"> and an2 = #{an2}</if>
+            <if test="an3 != null  and an3 != ''"> and an3 = #{an3}</if>
+            <if test="an4 != null  and an4 != ''"> and an4 = #{an4}</if>
+            <if test="an5 != null  and an5 != ''"> and an5 = #{an5}</if>
+            <if test="an6 != null  and an6 != ''"> and an6 = #{an6}</if>
+            <if test="an7 != null  and an7 != ''"> and an7 = #{an7}</if>
+            <if test="answerTrue != null  and answerTrue != ''"> and answer_true = #{answerTrue}</if>
+            <if test="explain1 != null  and explain1 != ''"> and explain1 = #{explain1}</if>
+            <if test="bestAnswerId != null  and bestAnswerId != ''"> and best_answer_id = #{bestAnswerId}</if>
+            <if test="kemu != null "> and kemu = #{kemu}</if>
+            <if test="jieshiFrom != null  and jieshiFrom != ''"> and jieshi_from = #{jieshiFrom}</if>
+            <if test="moretypes != null  and moretypes != ''"> and moretypes = #{moretypes}</if>
+            <if test="chapterid != null "> and chapterid = #{chapterid}</if>
+            <if test="sinaimg != null  and sinaimg != ''"> and sinaimg = #{sinaimg}</if>
+            <if test="videoUrl != null  and videoUrl != ''"> and video_url = #{videoUrl}</if>
+            <if test="diffDegree != null "> and diff_degree = #{diffDegree}</if>
+            <if test="cityid != null "> and cityid = #{cityid}</if>
+            <if test="gs != null  and gs != ''"> and gs = #{gs}</if>
+            <if test="keyword != null  and keyword != ''"> and keyword = #{keyword}</if>
+            <if test="errorRate != null "> and error_rate = #{errorRate}</if>
+            <if test="mediaUrl != null  and mediaUrl != ''"> and media_url = #{mediaUrl}</if>
+            <if test="showOptionType != null "> and show_option_type = #{showOptionType}</if>
+        </where>
+    </select>
+
+</mapper>