lyhzzz 2 years ago
parent
commit
374aefd081
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/agent/AgentNewLogMapper.xml

+ 1 - 1
src/main/resources/mapper/agent/AgentNewLogMapper.xml

@@ -14,7 +14,7 @@
     </select>
     </select>
     <select id="getLogDataM" resultType="com.fdkankan.agent.entity.AgentNewLog">
     <select id="getLogDataM" resultType="com.fdkankan.agent.entity.AgentNewLog">
         SELECT *
         SELECT *
-        FROM t_agent_new_log WHERE agent_id =#{agentId} PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( create_time, '%Y%m' ) ) =1
+        FROM t_agent_new_log WHERE agent_id =#{agentId} and PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( create_time, '%Y%m' ) ) =1
 
 
     </select>
     </select>