cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package cn.ksource.web.facade.wechat.userlocation;
 
import java.util.Map;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import cn.ksource.core.dao.BaseDao;
import cn.ksource.core.util.StringUtil;
 
@Service("userLocationFacade")
public class UserLocationFacadeImpl implements UserLocationFacade {
    
    @Autowired
    private BaseDao baseDao;
 
    @Override
    public Integer saveUserLocation(Map params) {
        String id = StringUtil.getUUID();
        params.put("id", id);
        String sql = new String("INSERT INTO USER_LOCATION(ID,IME,LONGITUDE,LATITUDE,LOCATION_NAME,LOCATION_TIME) VALUES (:id,:ime,:longitude,:latitude,:locationName,:locationTime)");
        return baseDao.execute(sql, params);
    }
 
}