浏览代码

修改上报日志sql

peiguo 4 年之前
父节点
当前提交
9154659a2e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
 }