Explorar el Código

修改上报日志sql

peiguo hace 4 años
padre
commit
9154659a2e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      whepi-web/src/main/java/com/bofeng/dao/MsReportLogMapper.java

+ 1 - 1
whepi-web/src/main/java/com/bofeng/dao/MsReportLogMapper.java

@@ -14,6 +14,6 @@ import java.util.List;
 public interface MsReportLogMapper extends BaseMapper<MsReportLog> {
 
     // 当天的打卡轨迹
-    @Select("select user_id,report_date,city from ms_report_log where user_id = 1 and report_date = DATE_FORMAT(now(), '%Y-%m-%d') group by user_id,report_date,city")
+    @Select("select user_id,report_date,city from ms_report_log where user_id = #{userId} and report_date = DATE_FORMAT(now(), '%Y-%m-%d') group by user_id,report_date,city")
     List<MsReportLog> logAddr(@Param("userId") Long userId);
 }