|
@@ -73,8 +73,12 @@
|
|
and t2.stat_date <=#{endTime}
|
|
and t2.stat_date <=#{endTime}
|
|
LEFT JOIN ctop_project t3 ON t1.project_id = t3.id
|
|
LEFT JOIN ctop_project t3 ON t1.project_id = t3.id
|
|
where t1.auto_delivery != 3 AND account_status = 0
|
|
where t1.auto_delivery != 3 AND account_status = 0
|
|
- <if test="projectId != null ">
|
|
|
|
- and t1.project_id = #{projectId}
|
|
|
|
|
|
+ <if test="projectIds != null and projectIds.size()>0 ">
|
|
|
|
+ AND t1.project_id in
|
|
|
|
+ <foreach collection="projectIds" item="item" separator=","
|
|
|
|
+ open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
</if>
|
|
</if>
|
|
<if test="authName != null ">
|
|
<if test="authName != null ">
|
|
and t1.auth_name LIKE CONCAT('%',#{authName},'%')
|
|
and t1.auth_name LIKE CONCAT('%',#{authName},'%')
|
|
@@ -107,8 +111,12 @@
|
|
where t1.auto_delivery != 3
|
|
where t1.auto_delivery != 3
|
|
and t2.stat_date >=#{startTime}
|
|
and t2.stat_date >=#{startTime}
|
|
and t2.stat_date <=#{endTime}
|
|
and t2.stat_date <=#{endTime}
|
|
- <if test="projectId != null ">
|
|
|
|
- and t1.project_id = #{projectId}
|
|
|
|
|
|
+ <if test="projectIds != null and projectIds.size()>0 ">
|
|
|
|
+ AND t1.project_id in
|
|
|
|
+ <foreach collection="projectIds" item="item" separator=","
|
|
|
|
+ open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
</if>
|
|
</if>
|
|
<if test="authName != null ">
|
|
<if test="authName != null ">
|
|
and t1.auth_name LIKE CONCAT('%',#{authName},'%')
|
|
and t1.auth_name LIKE CONCAT('%',#{authName},'%')
|