MusicSheetMapper.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  4. <mapper namespace="com.yonge.cooleshow.biz.dal.dao.MusicSheetDao">
  5. <resultMap id="BaseResultMap" type="com.yonge.cooleshow.biz.dal.entity.MusicSheet">
  6. <id column="id_" jdbcType="BIGINT" property="id"/>
  7. <result column="music_sheet_name_" jdbcType="VARCHAR" property="musicSheetName"/>
  8. <result column="user_id_" jdbcType="BIGINT" property="userId"/>
  9. <result column="composer_" jdbcType="VARCHAR" property="composer"/>
  10. <result column="music_subject_" jdbcType="VARCHAR" property="musicSubject"/>
  11. <result column="audio_type_" jdbcType="VARCHAR" property="audioType"/>
  12. <result column="music_tag_" jdbcType="VARCHAR" property="musicTag"/>
  13. <result column="play_speed_" jdbcType="INTEGER" property="playSpeed"/>
  14. <result column="can_evaluate_" jdbcType="TINYINT" property="canEvaluate"/>
  15. <result column="show_fingering_" jdbcType="TINYINT" property="showFingering"/>
  16. <result column="charge_type_" jdbcType="TINYINT" property="chargeType"/>
  17. <result column="audit_status_" jdbcType="TINYINT" property="auditStatus"/>
  18. <result column="sort_number_" jdbcType="INTEGER" property="sortNumber"/>
  19. <result column="top_flag_" jdbcType="TINYINT" property="topFlag"/>
  20. <result column="hot_flag_" jdbcType="TINYINT" property="hotFlag"/>
  21. <result column="music_price_" jdbcType="DECIMAL" property="musicPrice"/>
  22. <result column="audio_file_url_" jdbcType="VARCHAR" property="audioFileUrl"/>
  23. <result column="xml_file_url_" jdbcType="VARCHAR" property="xmlFileUrl"/>
  24. <result column="has_beat_" jdbcType="TINYINT" property="hasBeat"/>
  25. <result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
  26. <result column="create_by_" jdbcType="BIGINT" property="createBy"/>
  27. <result column="update_time_" jdbcType="TIMESTAMP" property="updateTime"/>
  28. <result column="update_by_" jdbcType="BIGINT" property="updateBy"/>
  29. <result column="remark_" jdbcType="VARCHAR" property="remark"/>
  30. </resultMap>
  31. <sql id="Base_Column_List">
  32. t.id_ as id ,
  33. t.music_sheet_name_ as musicSheetName,
  34. t.user_id_ as userId,
  35. t.composer_ as composer,
  36. t.music_subject_ as musicSubject,
  37. t.audio_type_ as audioType,
  38. t.music_tag_ as musicTag,
  39. t.play_speed_ as playSpeed,
  40. t.can_evaluate_ as canEvaluate,
  41. t.show_fingering_ as showFingering,
  42. t.charge_type_ as chargeType,
  43. t.state_ as state,
  44. t.audit_status_ as auditStatus,
  45. t.sort_number_ as sortNumber,
  46. t.top_flag_ as topFlag,
  47. t.hot_flag_ as hotFlag,
  48. t.music_price_ as musicPrice,
  49. t.audio_file_url_ as audioFileUrl,
  50. t.xml_file_url_ as xmlFileUrl,
  51. t.has_beat_ as hasBeat,
  52. t.mp3_type_ as mp3Type,
  53. t.create_time_ as createTime,
  54. t.create_by_ as createBy,
  55. t.update_time_ as updateTime,
  56. t.update_by_ as updateBy,
  57. t.del_flag_ as delFlag,
  58. t.source_type_ as sourceType,
  59. t.submit_audit_time_ as submitAuditTime,
  60. t.remark_ as remark
  61. </sql>
  62. <select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
  63. select <include refid="Base_Column_List"/>
  64. ,su.username_ as addName
  65. ,su.avatar_ as addUserAvatar
  66. ,(select group_concat(mt.name_) from music_tag mt
  67. where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  68. ,(select group_concat(s.name_) from subject s
  69. where find_in_set(s.id_,t.music_subject_) and s.del_flag_ = 0 ) as subjectNames
  70. from music_sheet t
  71. left join sys_user su on t.create_by_ = su.id_
  72. <where>
  73. <include refid="QueryInfo"/>
  74. </where>
  75. order by t.id_ desc
  76. </select>
  77. <sql id="QueryInfo">
  78. <if test="param.idAndName != null and param.idAndName != ''">
  79. and (t.id_ like concat('%',#{param.idAndName},'%') or
  80. t.music_sheet_name_ like concat('%',#{param.idAndName},'%'))
  81. </if>
  82. <if test="param.musicTagIds != null and param.musicTagIds != ''">
  83. and
  84. <foreach collection="param.musicTagIdList" separator="and" item="item">
  85. find_in_set(#{item},t.music_tag_)
  86. </foreach>
  87. </if>
  88. <if test="param.subjectIds != null and param.subjectIds != ''">
  89. and
  90. <foreach collection="param.subjectIdList" separator="and" item="item">
  91. find_in_set(#{item},t.music_subject_)
  92. </foreach>
  93. </if>
  94. <if test="param.state != null">
  95. and t.state_ = #{param.state}
  96. </if>
  97. <if test="param.auditStatus != null">
  98. and t.audit_status_ = #{param.auditStatus}
  99. </if>
  100. <if test="param.createBy != null">
  101. and t.create_by_ = #{param.createBy}
  102. </if>
  103. <if test="param.delFlag != null">
  104. and t.del_flag_ = #{param.delFlag}
  105. </if>
  106. <if test="param.sourceType != null">
  107. and t.source_type_ = #{param.sourceType}
  108. </if>
  109. </sql>
  110. <select id="selectAlbumDetailPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
  111. select distinct <include refid="Base_Column_List"/>
  112. ,(select group_concat(mt.name_) from music_tag mt
  113. where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  114. ,(select group_concat(s.name_) from subject s
  115. where find_in_set(s.id_,t.music_subject_) and s.del_flag_ = 0 ) as subjectNames
  116. from music_sheet t
  117. left join album_music_relate amr on t.id_ = amr.music_sheet_id_
  118. <where>
  119. <if test="param.idAndName != null and param.idAndName != ''">
  120. and (t.id_ like concat('%',#{param.idAndName},'%') or
  121. t.music_sheet_name_ like concat('%',#{param.idAndName},'%'))
  122. </if>
  123. <if test="param.musicTagIds != null and param.musicTagIds != ''">
  124. and
  125. <foreach collection="param.musicTagIdList" separator="and" item="item">
  126. find_in_set(#{item},t.music_tag_)
  127. </foreach>
  128. </if>
  129. <if test="param.subjectIds != null and param.subjectIds != ''">
  130. and
  131. <foreach collection="param.subjectIdList" separator="and" item="item">
  132. find_in_set(#{item},t.music_subject_)
  133. </foreach>
  134. </if>
  135. <if test="param.state != null">
  136. and t.state_ = #{param.state}
  137. </if>
  138. <if test="param.delFlag != null">
  139. and t.del_flag_ = #{param.delFlag}
  140. </if>
  141. <if test="param.id != null">
  142. <if test="param.type == 2">
  143. and amr.album_id_ = #{param.id}
  144. order by amr.create_time_
  145. </if>
  146. <if test="param.type == 1">
  147. and t.id_ not in(select amr2.music_sheet_id_ from album_music_relate amr2
  148. where amr2.album_id_ = #{param.id})
  149. </if>
  150. </if>
  151. </where>
  152. </select>
  153. <select id="detail" resultMap="DetailResultMap">
  154. SELECT
  155. <include refid="Base_Column_List"/>
  156. ,t.url_ as url
  157. ,t.midi_url_ as midiUrl
  158. ,t.metronome_url_ as metronomeUrl
  159. ,msa.id_ as accompanimentId
  160. ,msa.music_sheet_id_ as accompanimentMusicSheetId
  161. ,msa.music_subject_ as accompanimentMusicSubject
  162. ,msa.audio_file_url_ as accompanimentAudioFileUrl
  163. ,msa.sort_number_ as accompanimentSortNumber
  164. ,msa.create_time_ as accompanimentCreateTime
  165. ,msa.metronome_url_ as accompanimentMetronomeUrl
  166. ,msa.track_ as track
  167. ,su.username_ as userName
  168. ,su.avatar_ as userAvatar
  169. ,(select group_concat(mt.name_) from music_tag mt
  170. where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  171. ,(select group_concat(s.name_) from subject s
  172. where find_in_set(s.id_,t.music_subject_) and s.del_flag_ = 0) as subjectNames
  173. FROM music_sheet t
  174. left join music_sheet_accompaniment msa on msa.music_sheet_id_ = t.id_
  175. left join sys_user su on t.create_by_ = su.id_
  176. where t.id_ = #{id}
  177. order by msa.sort_number_
  178. </select>
  179. <resultMap id="DetailResultMap" type="com.yonge.cooleshow.biz.dal.vo.MusicSheetDetailVo">
  180. <id column="id" jdbcType="BIGINT" property="id"/>
  181. <result column="musicSheetName" jdbcType="VARCHAR" property="musicSheetName"/>
  182. <result column="userId" jdbcType="BIGINT" property="userId"/>
  183. <result column="composer" jdbcType="VARCHAR" property="composer"/>
  184. <result column="musicSubject" jdbcType="VARCHAR" property="musicSubject"/>
  185. <result column="audioType" jdbcType="VARCHAR" property="audioType"/>
  186. <result column="musicTag" jdbcType="VARCHAR" property="musicTag"/>
  187. <result column="playSpeed" jdbcType="INTEGER" property="playSpeed"/>
  188. <result column="canEvaluate" jdbcType="TINYINT" property="canEvaluate"/>
  189. <result column="showFingering" jdbcType="TINYINT" property="showFingering"/>
  190. <result column="chargeType" jdbcType="TINYINT" property="chargeType"/>
  191. <result column="auditStatus" jdbcType="TINYINT" property="auditStatus"/>
  192. <result column="state" jdbcType="TINYINT" property="state"/>
  193. <result column="sortNumber" jdbcType="INTEGER" property="sortNumber"/>
  194. <result column="topFlag" jdbcType="TINYINT" property="topFlag"/>
  195. <result column="hotFlag" jdbcType="TINYINT" property="hotFlag"/>
  196. <result column="musicPrice" jdbcType="DECIMAL" property="musicPrice"/>
  197. <result column="audioFileUrl" jdbcType="VARCHAR" property="audioFileUrl"/>
  198. <result column="musicTagNames" jdbcType="VARCHAR" property="musicTagNames"/>
  199. <result column="subjectNames" jdbcType="VARCHAR" property="subjectNames"/>
  200. <result column="xmlFileUrl" jdbcType="VARCHAR" property="xmlFileUrl"/>
  201. <result column="hasBeat" jdbcType="TINYINT" property="hasBeat"/>
  202. <result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
  203. <result column="createBy" jdbcType="BIGINT" property="createBy"/>
  204. <result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
  205. <result column="updateBy" jdbcType="BIGINT" property="updateBy"/>
  206. <result column="delFlag" jdbcType="BOOLEAN" property="delFlag"/>
  207. <result column="url" jdbcType="BOOLEAN" property="url"/>
  208. <result column="metronomeUrl" jdbcType="BOOLEAN" property="metronomeUrl"/>
  209. <result column="midiUrl" jdbcType="BOOLEAN" property="midiUrl"/>
  210. <result column="mp3Type" jdbcType="VARCHAR" property="mp3Type"/>
  211. <result column="remark" jdbcType="VARCHAR" property="remark"/>
  212. <result column="userName" jdbcType="VARCHAR" property="userName"/>
  213. <collection property="background" ofType="com.yonge.cooleshow.biz.dal.entity.MusicSheetAccompaniment">
  214. <id column="accompanimentId" jdbcType="BIGINT" property="id"/>
  215. <result column="accompanimentMusicSheetId" jdbcType="BIGINT" property="musicSheetId"/>
  216. <result column="accompanimentMusicSubject" jdbcType="VARCHAR" property="musicSubject"/>
  217. <result column="accompanimentAudioFileUrl" jdbcType="VARCHAR" property="audioFileUrl"/>
  218. <result column="accompanimentSortNumber" jdbcType="TINYINT" property="sortNumber"/>
  219. <result column="accompanimentCreateTime" jdbcType="TIMESTAMP" property="createTime"/>
  220. <result column="accompanimentMetronomeUrl" jdbcType="VARCHAR" property="metronomeUrl"/>
  221. <result column="track" jdbcType="VARCHAR" property="track"/>
  222. </collection>
  223. </resultMap>
  224. <select id="selectStudentMusicPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
  225. select <include refid="Base_Column_List"/>
  226. ,su.username_ as addName
  227. ,su.avatar_ as addUserAvatar
  228. ,(select group_concat(mt.name_) from music_tag mt
  229. where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  230. ,(select group_concat(s.name_) from subject s
  231. where find_in_set(s.id_,t.music_subject_) and s.del_flag_ = 0) as subjectNames
  232. <if test="param.studentId != null">
  233. ,if(mf.id_ is not null,1,0) as favorite
  234. </if>
  235. from music_sheet t
  236. left join sys_user su on t.create_by_ = su.id_
  237. <if test="param.studentId != null">
  238. left join music_favorite mf on t.id_ = mf.music_sheet_id_ and mf.user_id_ = #{param.studentId}
  239. </if>
  240. <where>
  241. <include refid="QueryInfo"/>
  242. </where>
  243. order by t.id_ desc
  244. </select>
  245. <select id="selectMyMusicPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
  246. select <include refid="Base_Column_List"/>
  247. ,su.username_ as addName
  248. ,su.avatar_ as addUserAvatar
  249. ,(select group_concat(mt.name_) from music_tag mt
  250. where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  251. ,(select group_concat(s.name_) from subject s
  252. where find_in_set(s.id_,t.music_subject_) and s.del_flag_ = 0 ) as subjectNames
  253. from music_sheet t
  254. left join sys_user su on t.create_by_ = su.id_
  255. left join music_sheet_purchase_record mspr on mspr.music_sheet_id_ = t.id_
  256. <where>
  257. <include refid="QueryInfo"/>
  258. <if test="param.studentId != null">
  259. and mspr.student_id_ = #{param.studentId}
  260. and mspr.order_status_ = 1
  261. </if>
  262. </where>
  263. order by mspr.id_ desc
  264. </select>
  265. <select id="selectFavoriteMusicPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
  266. select <include refid="Base_Column_List"/>
  267. ,su.username_ as addName
  268. ,su.avatar_ as addUserAvatar
  269. ,(select group_concat(mt.name_) from music_tag mt
  270. where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  271. ,(select group_concat(s.name_) from subject s
  272. where find_in_set(s.id_,t.music_subject_) and s.del_flag_ = 0 ) as subjectNames
  273. ,if(mf.id_ is not null,1,0) as favorite
  274. from music_sheet t
  275. left join sys_user su on t.create_by_ = su.id_
  276. left join music_favorite mf on t.id_ = mf.music_sheet_id_
  277. <where>
  278. <include refid="QueryInfo"/>
  279. <if test="param.studentId != null">
  280. and mf.user_id_ = #{param.studentId}
  281. </if>
  282. </where>
  283. order by mf.id_ desc
  284. </select>
  285. <select id="selectPracticeMusicPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
  286. select <include refid="Base_Column_List"/>
  287. ,su.username_ as addName
  288. ,su.avatar_ as addUserAvatar
  289. ,(select group_concat(mt.name_) from music_tag mt
  290. where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  291. ,(select group_concat(s.name_) from subject s where find_in_set(s.id_,t.music_subject_) ) as subjectNames
  292. from music_sheet t
  293. left join sys_user su on t.create_by_ = su.id_
  294. <where>
  295. <include refid="QueryInfo"/>
  296. <if test="practiceMusicIdList != null and practiceMusicIdList.size() != 0">
  297. and t.id_ in
  298. <foreach collection="practiceMusicIdList" item="item" open="(" close=")" separator=",">
  299. #{item}
  300. </foreach>
  301. </if>
  302. </where>
  303. <if test="practiceMusicIdList != null and practiceMusicIdList.size() != 0">
  304. order by field(t.id_,
  305. <foreach collection="practiceMusicIdList" item="item" separator=",">
  306. #{item}
  307. </foreach>
  308. </if>
  309. )
  310. </select>
  311. <select id="selectStudentOrderPage" resultType="com.yonge.cooleshow.biz.dal.vo.StudentMusicSheetOrderVo">
  312. select mspr.music_sheet_id_ as musicSheetId
  313. ,ms.music_sheet_name_ as musicSheetName
  314. ,ms.composer_ as composer
  315. ,ms.music_tag_ as musicTag
  316. ,(select group_concat(mt.name_) from music_tag mt
  317. where find_in_set(mt.id_,ms.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  318. ,mspr.purchase_price_ as purchasePrice
  319. ,mspr.order_no_ as orderNo
  320. ,mspr.purchase_time_ as purchaseTime
  321. from music_sheet_purchase_record mspr
  322. left join music_sheet ms on mspr.music_sheet_id_ = ms.id_
  323. <where>
  324. <if test="param.orderStatus != null">
  325. and mspr.order_status_ = #{param.orderStatus}
  326. </if>
  327. <if test="param.idAndName != null and param.idAndName != ''">
  328. and (ms.id_ like concat('%',#{param.idAndName} ,'%')
  329. or ms.music_sheet_name_ like concat('%',#{param.idAndName},'%'))
  330. </if>
  331. <if test="param.studentId != null">
  332. and mspr.student_id_ = #{param.studentId}
  333. </if>
  334. <if test="param.orderNo != null and param.orderNo != ''">
  335. and mspr.order_no_ = #{param.orderNo}
  336. </if>
  337. <if test="param.musicTagList != null and param.musicTagList.size() != 0">
  338. and
  339. <foreach collection="param.musicTagList" separator="and" item="item">
  340. find_in_set(#{item},ms.music_tag_)
  341. </foreach>
  342. </if>
  343. <if test="param.startTime != null">
  344. and mspr.purchase_time_ &gt; #{param.startTime}
  345. </if>
  346. <if test="param.endTime != null">
  347. and mspr.purchase_time_ &lt; #{param.endTime}
  348. </if>
  349. <if test="param.delFlag != null">
  350. and ms.del_flag_ = #{param.delFlag}
  351. </if>
  352. </where>
  353. order by mspr.id_ desc
  354. </select>
  355. <select id="selectTeacherPage" resultType="com.yonge.cooleshow.biz.dal.vo.TeacherMusicSheetVo">
  356. select ms.id_ as musicSheetId
  357. ,ms.music_sheet_name_ as musicSheetName
  358. ,ms.composer_ as composer
  359. ,ms.music_tag_ as musicTag
  360. ,(select group_concat(mt.name_) from music_tag mt
  361. where find_in_set(mt.id_,ms.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  362. ,ms.play_speed_ as playSpeed
  363. ,ms.music_price_ as musicPrice
  364. ,ms.create_time_ as createTime
  365. ,ms.audit_status_ as auditStatus
  366. ,su.username_ as auditName
  367. from music_sheet ms
  368. left join music_sheet_auth_record msar on ms.id_ = msar.music_sheet_id_
  369. left join sys_user su on msar.verify_user_id_ = su.id_
  370. <where>
  371. <if test="param.idAndName != null and param.idAndName != ''">
  372. and (ms.id_ like concat('%',#{param.idAndName} ,'%')
  373. or ms.music_sheet_name_ like concat('%',#{param.idAndName},'%')
  374. or ms.composer_ like concat('%',#{param.idAndName},'%'))
  375. </if>
  376. <if test="param.teacherId != null">
  377. and ms.create_by_ = #{param.teacherId}
  378. </if>
  379. <if test="param.startTime != null">
  380. and ms.create_time_ &gt; #{param.startTime}
  381. </if>
  382. <if test="param.endTime != null">
  383. and ms.create_time_ &lt; #{param.endTime}
  384. </if>
  385. <if test="param.delFlag != null">
  386. and ms.del_flag_ = #{param.delFlag}
  387. </if>
  388. </where>
  389. order by ms.id_ desc
  390. </select>
  391. <select id="selectAuditPage" resultType="com.yonge.cooleshow.biz.dal.vo.TeacherMusicSheetVo">
  392. select
  393. ms.create_by_ as teacherId
  394. ,su.username_ as username
  395. ,su.phone_ as phone
  396. ,ms.id_ as musicSheetId
  397. ,ms.music_sheet_name_ as musicSheetName
  398. ,ms.composer_ as composer
  399. ,ms.music_tag_ as musicTag
  400. ,(select group_concat(mt.name_) from music_tag mt
  401. where find_in_set(mt.id_,ms.music_tag_) and mt.del_flag_ = 0) as musicTagNames
  402. ,ms.play_speed_ as playSpeed
  403. ,ms.music_price_ as musicPrice
  404. ,ms.create_time_ as createTime
  405. ,ms.audit_status_ as auditStatus
  406. ,su.username_ as auditName
  407. from music_sheet ms
  408. left join sys_user su on su.id_ = ms.create_by_
  409. left join music_sheet_auth_record msar on ms.id_ = msar.music_sheet_id_
  410. left join sys_user su2 on msar.verify_user_id_ = su2.id_
  411. <where>
  412. ms.user_id_ &gt; 0
  413. <if test="param.idAndName != null and param.idAndName != ''">
  414. and (su.id_ like concat('%',#{param.idAndName} ,'%')
  415. or su.username_ like concat('%',#{param.idAndName},'%')
  416. or su.phone_ like concat('%',#{param.idAndName},'%'))
  417. </if>
  418. <if test="param.auditName != null and param.auditName != ''">
  419. and su2.username_ like concat('%',#{param.auditName},'%')
  420. </if>
  421. <if test="param.authStatus != null">
  422. and ms.audit_status_ = #{param.authStatus}
  423. </if>
  424. <if test="param.startTime != null">
  425. and ms.create_time_ &gt; #{param.startTime}
  426. </if>
  427. <if test="param.endTime != null">
  428. and ms.create_time_ &lt; #{param.endTime}
  429. </if>
  430. <if test="param.delFlag != null">
  431. and ms.del_flag_ = #{param.delFlag}
  432. </if>
  433. </where>
  434. order by ms.submit_audit_time_ desc
  435. </select>
  436. </mapper>