|
|
@@ -48,13 +48,31 @@
|
|
|
<if test="dto.isTextbookPlan != null and dto.isTextbookPlan != ''">
|
|
|
and t3.is_textbook_plan = #{dto.isTextbookPlan}
|
|
|
</if>
|
|
|
+ order by t1.create_date desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getList" parameterType="com.xjrsoft.module.textbook.dto.TextbookIssueRecordExportDto" resultType="com.xjrsoft.module.textbook.vo.TextbookIssueRecordPageVo">
|
|
|
+ SELECT t1.id,t1.sort_code,t3.issn,t3.book_name,t3.publishing_house,t3.editor_in_chief,t7.group_name,t5.name AS grade_name,
|
|
|
+ t6.name AS class_name,t8.name AS course_name,t10.name AS textbook_type_cn,t3.specifications_models,
|
|
|
+ t11.name AS issue_mode_cn,t1.create_date,t9.name AS claim_user,t1.issue_number FROM textbook_issue_record t1
|
|
|
+ LEFT JOIN wf_textbook_claim_item t2 ON t1.data_item_id = t2.id
|
|
|
+ LEFT JOIN textbook t3 ON t2.textbook_id = t3.id
|
|
|
+ LEFT JOIN wf_textbook_claim t4 ON t2.wf_textbook_claim_id = t4.id
|
|
|
+ LEFT JOIN base_grade t5 ON t3.grade_id = t5.id
|
|
|
+ LEFT JOIN base_class t6 ON t4.class_id = t6.id
|
|
|
+ LEFT JOIN subject_group t7 ON t3.subject_group_id = t7.id
|
|
|
+ LEFT JOIN base_course_subject t8 ON t3.course_subject_id = t8.id
|
|
|
+ LEFT JOIN xjr_user t9 ON t4.claim_user_id = t9.id
|
|
|
+ LEFT JOIN xjr_dictionary_detail t10 ON t3.textbook_type = t10.code AND t10.item_id = 1739209191193636865
|
|
|
+ LEFT JOIN xjr_dictionary_detail t11 ON t1.issue_mode = t11.code AND t11.item_id = 1739821685805215745
|
|
|
+ WHERE t1.delete_mark = 0
|
|
|
<if test="dto.ids != null and dto.ids.size() > 0">
|
|
|
and t1.id in <foreach item="id" index="index" collection="dto.ids" open="(" close=")"
|
|
|
- separator=",">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
+ separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
- ORDER BY t1.sort_code
|
|
|
+ order by t1.create_date desc
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|