Commit 993142f2 authored by Quxl's avatar Quxl

x

parent cf835725
......@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.egolm.common.DateUtil;
import com.egolm.common.StringUtil;
import com.egolm.common.bean.Rjx;
import com.egolm.shop.config.XException;
......@@ -208,6 +209,8 @@ public class UserController {
} else {
throw new XException("手机号码和OPENID不能为空");
}
} else {
userService.saveOpenId((String)customerMap.get("sCustNO"), openId);
}
String custNo = (String)customerMap.get("sCustNO");
List<Map<String, Object>> shopList = userService.queryShopList(custNo);
......
......@@ -37,4 +37,6 @@ public interface UserService {
public void deleteOpenId(String openId);
public void saveOpenId(String string, String openId);
}
......@@ -551,5 +551,10 @@ public class UserServiceImpl implements UserService {
public void deleteOpenId(String openId) {
jdbcTemplate.update("update tCustomer set sOpenID = ? where sOpenID = ?", null, openId);
}
@Override
public void saveOpenId(String sCustNO, String openId) {
jdbcTemplate.update("update tCustomer set sOpenID = ? where sCustNO = ?", openId, sCustNO);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment