|
@@ -18,6 +18,24 @@
|
|
|
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
|
|
|
+ <if test="dto.textbookType != null and dto.textbookType != ''">
|
|
|
+ and t1.textbook_type = #{dto.textbookType}
|
|
|
+ </if>
|
|
|
+ <if test="dto.baseSemesterId != null">
|
|
|
+ and t1.base_semester_id = #{dto.baseSemesterId}
|
|
|
+ </if>
|
|
|
+ <if test="dto.subjectGroupId != null">
|
|
|
+ and t1.subject_group_id = #{dto.subjectGroupId}
|
|
|
+ </if>
|
|
|
+ <if test="dto.courseSubjectId != null">
|
|
|
+ and t1.course_subject_id = #{dto.courseSubjectId}
|
|
|
+ </if>
|
|
|
+ <if test="dto.bookName != null and dto.bookName != ''">
|
|
|
+ and t1.book_name like concat('%',#{dto.bookName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="dto.isTextbookPlan != null and dto.isTextbookPlan != ''">
|
|
|
+ and t1.is_textbook_plan = #{dto.isTextbookPlan}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="subscriptionList" resultType="com.xjrsoft.module.textbook.vo.TextbookSubscriptionRecordVo">
|
|
@@ -44,12 +62,17 @@
|
|
|
<select id="getInfoByissn" resultType="com.xjrsoft.module.textbook.vo.TextbookVo">
|
|
|
SELECT * FROM textbook WHERE delete_mark = 0 AND issn = #{issn} order by create_date desc limit 0,1
|
|
|
</select>
|
|
|
- <select id="warehouseList" resultType="com.xjrsoft.module.textbook.vo.TextbookClassWarehouseVo">
|
|
|
- SELECT t1.warehouse_date,t2.name AS warehouse_user,t1.warehouse_number,t1.source FROM textbook_class_warehouse t1
|
|
|
- LEFT JOIN xjr_user t2 IN t1.create_user_id = t2.id
|
|
|
+ <select id="warehouseList" resultType="com.xjrsoft.module.textbook.vo.TextbookClassWarehouseListVo">
|
|
|
+ SELECT t1.create_date AS warehouse_date,t2.name AS warehouse_user,t1.warehouse_number,t1.source FROM textbook_class_warehouse t1
|
|
|
+ LEFT JOIN xjr_user t2 ON t1.create_user_id = t2.id
|
|
|
WHERE t1.delete_mark = 0 AND t1.textbook_id = #{id} order by t1.sort_code
|
|
|
</select>
|
|
|
-
|
|
|
+ <select id="issueList" resultType="com.xjrsoft.module.textbook.vo.TextbookIssueRecordListVo">
|
|
|
+ SELECT t1.create_date AS issue_date,t2.name AS issue_user,t1.issue_number FROM textbook_issue_record t1
|
|
|
+ LEFT JOIN xjr_user t2 ON t1.create_user_id = t2.id
|
|
|
+ LEFT JOIN wf_textbook_claim_item t3 ON t1.wf_textbook_claim_item_id = t3.id
|
|
|
+ WHERE t1.delete_mark = 0 AND t3.textbook_id = #{id} ORDER BY t1.sort_code;
|
|
|
+ </select>
|
|
|
<select id="getClassRelation" resultType="com.xjrsoft.module.textbook.entity.TextbookClassRelation">
|
|
|
SELECT * FROM textbook_class_relation WHERE delete_mark = 0 AND textbook_id = #{id}
|
|
|
</select>
|