Commit d2d1fd86 authored by 张宇杰's avatar 张宇杰

新创SQL

parent 8d2ebeeb
......@@ -107,4 +107,6 @@ public interface QuestionnaireDao {
List<Review> selectReviewListByRecordId(@Param("recordId") Long recordId);
List<Record> AboutViewList(Record record);
List<Record> JackList(Record record);
}
......@@ -1294,7 +1294,7 @@ public class QuestionnaireServiceImpl implements QuestionnaireService {
}
@Override
public List<Record> JackList(Record record) {
return questionnaireDao.queryRecordList(record);
return questionnaireDao.JackList(record);
}
@Override
......
......@@ -660,4 +660,48 @@
ORDER BY create_time DESC
</select>
<select id="JackList" resultType="com.tiptimes.model.Record">
SELECT * from t_record
<where>
<if test="id != null and id != ''">
AND id = #{idd}
</if>
<if test="reason != null and reason != ''">
AND reason = #{reason}
</if>
<if test="createTime != null">
AND create_time = #{createTime}
</if>
<if test="writePeople != null and writePeople != ''">
AND write_people = #{writePeople}
</if>
<if test="phoneNumber != null and phoneNumber != ''">
AND phone_number = #{phoneNumber}
</if>
<if test="questionnaireUuid != null and questionnaireUuid != ''">
AND questionnaire_uuid = #{questionnaireUuid}
</if>
<if test="createBy != null and createBy != ''">
AND create_by like concat(concat('%',#{createBy},'%'))
</if>
<if test="processStatus != null"><!-- 问卷状态 -->
AND process_status = #{processStatus}
</if>
<if test="qnYear != null and qnYear != ''"><!-- 年份 -->
AND qn_year = #{qnYear}
</if>
<if test="writePeople != null and writePeople != ''"><!-- 年份 -->
AND write_people = #{writePeople}
</if>
<if test="createId != null and createId != ''"><!-- 年份 -->
AND create_id = #{createId}
</if>
<if test="questionnaireName != null and questionnaireName != ''"><!-- 年份 -->
AND questionnaire_name = #{questionnaireName}
</if>
</where>
ORDER BY create_time DESC
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment