|
|
@@ -0,0 +1,36 @@
|
|
|
+<?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.xjrsoft.module.textbook.mapper.TextbookMapper">
|
|
|
+ <select id="getPage" parameterType="com.xjrsoft.module.textbook.dto.TextbookPageDto" resultType="com.xjrsoft.module.textbook.vo.TextbookPageVo">
|
|
|
+ SELECT t1.id,t1.sort_code,t1.issn,t1.book_name,t1.publishing_house,t1.editor_in_chief,
|
|
|
+ t1.subject_group_id,t2.group_name,t3.name AS semester_name,t4.name AS course_name,t7.name AS is_textbook_plan_cn,
|
|
|
+ t5.name AS textbook_type_cn,t1.specifications_models,t1.appraisal_price,t1.price,t1.discount,t1.subtotal,t1.stock,
|
|
|
+ (SELECT GROUP_CONCAT(c2.name) FROM textbook_class_relation c1
|
|
|
+ LEFT JOIN base_class c2 ON c1.class_id = c2.id
|
|
|
+ WHERE c1.textbook_id = t1.id) AS use_class,
|
|
|
+ t6.name AS use_grade,t1.version FROM textbook t1
|
|
|
+ LEFT JOIN subject_group t2 ON t1.subject_group_id = t2.id
|
|
|
+ LEFT JOIN base_semester t3 ON t1.base_semester_id = t3.id
|
|
|
+ LEFT JOIN base_course_subject t4 ON t1.course_subject_id = t4.id
|
|
|
+ LEFT JOIN xjr_dictionary_detail t5 ON t1.textbook_type = t5.code AND t5.item_id = 1739209191193636865
|
|
|
+ LEFT JOIN base_grade t6 ON t1.grade_id = t6.id
|
|
|
+ LEFT JOIN xjr_dictionary_detail t7 ON t1.is_textbook_plan = t7.code AND t7.item_id = 1737360269850038273
|
|
|
+ WHERE t1.delete_mark = 0
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getSemesterInfo" resultType="com.xjrsoft.module.student.vo.StudentHonorsListVo">
|
|
|
+
|
|
|
+ </select>
|
|
|
+ <select id="getClassInfo" resultType="com.xjrsoft.module.student.vo.StudentHonorsListVo">
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getInfo" resultType="com.xjrsoft.module.student.vo.StudentHonorsVo">
|
|
|
+
|
|
|
+ </select>
|
|
|
+ <select id="getSortCode" resultType="java.lang.Integer">
|
|
|
+
|
|
|
+ </select>
|
|
|
+</mapper>
|