|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
<select id="downLogList" resultType="com.fdkankan.agent.response.DownLogVo" parameterType="com.fdkankan.agent.request.DownParam">
|
|
|
select u.user_name,al.count,al.create_time from t_agent_new_log al left join t_user u on al.user_id = u.id
|
|
|
- where al.type = 2
|
|
|
+ where al.type = 2 and agent_id = #{param.agentId}
|
|
|
<if test="param.userName!= null and param.userName != ''">
|
|
|
and u.user_name like concat('%',#{param.userName},'%')
|
|
|
</if>
|
|
@@ -14,7 +14,7 @@
|
|
|
</select>
|
|
|
<select id="getLogDataM" resultType="com.fdkankan.agent.entity.AgentNewLog">
|
|
|
SELECT *
|
|
|
- FROM t_agent_new WHERE PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( create_time, '%Y%m' ) ) =1
|
|
|
+ FROM t_agent_new_log WHERE agent_id =#{agentId} PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( create_time, '%Y%m' ) ) =1
|
|
|
|
|
|
</select>
|
|
|
|