|
@@ -82,13 +82,35 @@
|
|
<!-- 分页查询 -->
|
|
<!-- 分页查询 -->
|
|
<select id="queryPage" resultMap="MusicGroupDeliveryRecord"
|
|
<select id="queryPage" resultMap="MusicGroupDeliveryRecord"
|
|
parameterType="map">
|
|
parameterType="map">
|
|
- SELECT * FROM music_group_delivery_record ORDER BY id_
|
|
|
|
|
|
+ SELECT * FROM music_group_delivery_record
|
|
|
|
+ <where>
|
|
|
|
+ <if test="musicGroupId != null and musicGroupId != ''">
|
|
|
|
+ and music_group_id_ = #{musicGroupId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="expressCompany != null and expressCompany != ''">
|
|
|
|
+ and express_company_ = #{expressCompany}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="expressBillNo != null and expressBillNo != ''">
|
|
|
|
+ and express_bill_no_ = #{expressBillNo}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ ORDER BY id_
|
|
<include refid="global.limit" />
|
|
<include refid="global.limit" />
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 查询当前表的总记录数 -->
|
|
<!-- 查询当前表的总记录数 -->
|
|
<select id="queryCount" resultType="int">
|
|
<select id="queryCount" resultType="int">
|
|
- SELECT COUNT(*) FROM
|
|
|
|
- music_group_delivery_record
|
|
|
|
|
|
+ SELECT COUNT(*) FROM music_group_delivery_record
|
|
|
|
+ <where>
|
|
|
|
+ <if test="musicGroupId != null and musicGroupId != ''">
|
|
|
|
+ and music_group_id_ = #{musicGroupId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="expressCompany != null and expressCompany != ''">
|
|
|
|
+ and express_company_ = #{expressCompany}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="expressBillNo != null and expressBillNo != ''">
|
|
|
|
+ and express_bill_no_ = #{expressBillNo}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|