|
@@ -403,8 +403,14 @@
|
|
t11.file_key
|
|
t11.file_key
|
|
FROM
|
|
FROM
|
|
tb_lib_vip t12
|
|
tb_lib_vip t12
|
|
- left join
|
|
|
|
- (
|
|
|
|
|
|
+ join (
|
|
|
|
+ SELECT DISTINCT vip_id,lib_id from tb_lib_vip_service
|
|
|
|
+ where lib_id = #{libId} and species='S003'
|
|
|
|
+ <if test="queryDate !=null and queryDate!='' and queryEndDate !=null and queryEndDate!=''">
|
|
|
|
+ AND to_days(end_time) >= TO_DAYS(#{queryDate}) and to_days( #{queryEndDate} ) >= to_days( start_time )
|
|
|
|
+ </if>
|
|
|
|
+ )sv on t12.id =sv.vip_id
|
|
|
|
+ left join (
|
|
SELECT DATE_FORMAT( t11.create_time, '%Y-%m-%d' ) AS create_time, t11.corrected_picture_url, t11.file_key,t.id,t11.vip_id,t.`subject`
|
|
SELECT DATE_FORMAT( t11.create_time, '%Y-%m-%d' ) AS create_time, t11.corrected_picture_url, t11.file_key,t.id,t11.vip_id,t.`subject`
|
|
from scon_homework_picture t11
|
|
from scon_homework_picture t11
|
|
LEFT JOIN scon_homework t ON t.id = t11.homework_id
|
|
LEFT JOIN scon_homework t ON t.id = t11.homework_id
|
|
@@ -418,13 +424,10 @@
|
|
)t11 on t12.id = t11.vip_id
|
|
)t11 on t12.id = t11.vip_id
|
|
LEFT JOIN tb_lib_join t13 ON t12.lib_id = t13.id
|
|
LEFT JOIN tb_lib_join t13 ON t12.lib_id = t13.id
|
|
WHERE
|
|
WHERE
|
|
- t12.lib_id = #{libId}
|
|
|
|
|
|
+ 1=1
|
|
<if test="searchValue != '' ">
|
|
<if test="searchValue != '' ">
|
|
and t12.child_name regexp #{searchValue}
|
|
and t12.child_name regexp #{searchValue}
|
|
</if>
|
|
</if>
|
|
-<!-- <if test="searchSubject != '' ">-->
|
|
|
|
-<!-- and a.SUBJECT = #{searchSubject}-->
|
|
|
|
-<!-- </if>-->
|
|
|
|
) a
|
|
) a
|
|
GROUP BY
|
|
GROUP BY
|
|
a.create_time,
|
|
a.create_time,
|