|
@@ -200,12 +200,12 @@
|
|
|
<if test="param.state != null">
|
|
|
and t.state_ = #{param.state}
|
|
|
</if>
|
|
|
- <if test="param.authStatus != null">
|
|
|
- and msar.audit_state_ = #{param.authStatus}
|
|
|
- <if test="param.authStatus == 'PASS'">
|
|
|
+ <if test="param.auditStatus != null">
|
|
|
+ and msar.audit_state_ = #{param.auditStatus}
|
|
|
+ <if test="param.auditStatus == 'PASS'">
|
|
|
AND t.state_ = 1
|
|
|
</if>
|
|
|
- <if test="param.authStatus == 'OUT_SALE'">
|
|
|
+ <if test="param.auditStatus == 'OUT_SALE'">
|
|
|
AND t.state_ = 0
|
|
|
</if>
|
|
|
</if>
|
|
@@ -418,15 +418,8 @@
|
|
|
,su.avatar_ as addUserAvatar
|
|
|
from music_sheet t
|
|
|
left join sys_user su on t.create_by_ = su.id_
|
|
|
- <if test="param.authStatus != null">
|
|
|
+ <if test="param.auditStatus != null">
|
|
|
left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_
|
|
|
- and msar.audit_state_ = #{param.authStatus}
|
|
|
- <if test="param.authStatus == 'PASS'">
|
|
|
- AND ms.state_ = 1
|
|
|
- </if>
|
|
|
- <if test="param.authStatus == 'OUT_SALE'">
|
|
|
- AND ms.state_ = 0
|
|
|
- </if>
|
|
|
</if>
|
|
|
<where>
|
|
|
<include refid="QueryInfo"/>
|