@@ -0,0 +1,660 @@
+package com.qinxiandiqi.springdemo.demo1.dao;%0A%0Aimport com.qinxiandiqi.springdemo.demo1.domain.LoginLog;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.jdbc.core.JdbcTemplate;%0Aimport org.springframework.stereotype.Repository;%0A%0A/**%0A * Created by Jianan on 9/23/15.%0A */%0A@Repository%0Apublic class LoginLogDao %7B%0A%0A    @Autowired%0A    private JdbcTemplate jdbcTemplate;%0A%0A    public void insertLoginLog(LoginLog loginLog)%7B%0A        String sqlStr = %22INSERT INTO t_login_log(user_id, ip, login_datetime) VALUES(?,?,?)%22;%0A        jdbcTemplate.update(sqlStr, loginLog.getUserId(), loginLog.getIp(), loginLog.getLoginDate());%0A    %7D%0A%7D%0A

add loginlogdao