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); } }