ソースを参照

一点通抓取修改

小么熊🐻 1 年間 前
コミット
94405ae168

+ 6 - 8
zzjs-service/src/main/java/com/miaxis/question/domain/QuestionColumn.java

@@ -1,17 +1,15 @@
 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.TableField;
 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.annotation.Excel;
 import com.miaxis.common.core.domain.BaseBusinessEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
 /**
  * 题库分类对象 question_column
  *

+ 14 - 0
zzjs-service/src/main/java/com/miaxis/question/mapper/QuestionInfoKtNewMapper.java

@@ -20,4 +20,18 @@ public interface QuestionInfoKtNewMapper extends BaseMapper<QuestionInfoKtNew> {
     public List<QuestionInfoKtNew> selectQuestionInfoKtNewList(QuestionInfoKtNew questionInfoKtNew);
 
     int selectQuestionInfoKtNewCount(QuestionInfoKtNew questionInfoKtNew);
+
+    List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainGifList();
+
+    List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainMp3List();
+
+    List<QuestionInfoKtNew> selectQuestionInfoKtNewImageList();
+
+    List<QuestionInfoKtNew> selectQuestionInfoKtNewImageYdtList();
+
+    List<QuestionInfoKtNew> selectQuestionInfoKtNewIssuemp3List();
+
+    List<QuestionInfoKtNew> selectQuestionInfoKtNewAnswermp3List();
+
+    List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainjsmp3List();
 }

+ 42 - 0
zzjs-service/src/main/java/com/miaxis/question/service/IQuestionInfoKtNewService.java

@@ -22,4 +22,46 @@ public interface IQuestionInfoKtNewService extends IService<QuestionInfoKtNew>{
 
     public int selectQuestionInfoKtNewCount(QuestionInfoKtNew questionInfoKtNew);
 
+
+    /**
+     * ExplainGif
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainGifList();
+
+    /**
+     * ExplainMp3
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainMp3List();
+
+    /**
+     * Image
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewImageList() ;
+
+    /**
+     * ImageYdt
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewImageYdtList() ;
+
+    /**
+     * Issuemp3
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewIssuemp3List();
+
+    /**
+     * Answermp3
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewAnswermp3List() ;
+
+    /**
+     * Explainjsmp3
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainjsmp3List() ;
 }

+ 59 - 0
zzjs-service/src/main/java/com/miaxis/question/service/impl/QuestionInfoKtNewServiceImpl.java

@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.miaxis.common.utils.DateUtils;
+import com.miaxis.question.domain.QuestionInfoKtGet;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.apache.commons.lang3.StringUtils;
@@ -38,4 +39,62 @@ public class QuestionInfoKtNewServiceImpl extends ServiceImpl<QuestionInfoKtNewM
     public int selectQuestionInfoKtNewCount(QuestionInfoKtNew questionInfoKtNew) {
         return questionInfoKtNewMapper.selectQuestionInfoKtNewCount(questionInfoKtNew);
     }
+
+
+
+    /**
+     * ExplainGif
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainGifList() {
+        return questionInfoKtNewMapper.selectQuestionInfoKtNewExplainGifList();
+    }
+
+    /**
+     * ExplainMp3
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainMp3List() {
+        return questionInfoKtNewMapper.selectQuestionInfoKtNewExplainMp3List();
+    }
+
+    /**
+     * Image
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewImageList() {
+        return questionInfoKtNewMapper.selectQuestionInfoKtNewImageList();
+    }
+
+    /**
+     * ImageYdt
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewImageYdtList() {
+        return questionInfoKtNewMapper.selectQuestionInfoKtNewImageYdtList();
+    }
+
+    /**
+     * Issuemp3
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewIssuemp3List() {
+        return questionInfoKtNewMapper.selectQuestionInfoKtNewIssuemp3List();
+    }
+
+    /**
+     * Answermp3
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewAnswermp3List() {
+        return questionInfoKtNewMapper.selectQuestionInfoKtNewAnswermp3List();
+    }
+
+    /**
+     * Explainjsmp3
+     * @return
+     */
+    public List<QuestionInfoKtNew> selectQuestionInfoKtNewExplainjsmp3List() {
+        return questionInfoKtNewMapper.selectQuestionInfoKtNewExplainjsmp3List();
+    }
 }

+ 35 - 0
zzjs-service/src/main/resources/mapper/question/QuestionInfoKtNewMapper.xml

@@ -103,5 +103,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </where>
     </select>
 
+    <select id="selectQuestionInfoKtNewExplainGifList"  resultMap="QuestionInfoKtNewResult">
+        select * from question_info_kt_new where explain_gif!=''
+
+    </select>
+
+    <select id="selectQuestionInfoKtNewExplainMp3List"  resultMap="QuestionInfoKtNewResult">
+        select * from question_info_kt_new where explain_mp3!=''
+
+    </select>
+
+    <select id="selectQuestionInfoKtNewImageList"  resultMap="QuestionInfoKtNewResult">
+        select * from question_info_kt_new where image!=''
+
+    </select>
+
+    <select id="selectQuestionInfoKtNewImageYdtList"  resultMap="QuestionInfoKtNewResult">
+        <!--select * from question_info_kt_new where image_ydt!=''-->
+        select * from question_info_kt_new  where image_ydt!='';
+    </select>
+
+    <select id="selectQuestionInfoKtNewIssuemp3List"  resultMap="QuestionInfoKtNewResult">
+        select * from question_info_kt_new where issuemp3!=''
+
+    </select>
+
+    <select id="selectQuestionInfoKtNewAnswermp3List"  resultMap="QuestionInfoKtNewResult">
+        select * from question_info_kt_new where answermp3!=''
+
+    </select>
+
+    <select id="selectQuestionInfoKtNewExplainjsmp3List"  resultMap="QuestionInfoKtNewResult">
+        select * from question_info_kt_new where explainjsmp3!=''
+
+    </select>
+
 
 </mapper>