lyhzzz 2 년 전
부모
커밋
374aefd081
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 id="getLogDataM" resultType="com.fdkankan.agent.entity.AgentNewLog">
         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>