Commit e40da28b authored by 张永's avatar 张永

UserNO匹配写入UnionID 到tB2BUser表

parent b517aa1a
...@@ -369,4 +369,21 @@ public class UserController { ...@@ -369,4 +369,21 @@ public class UserController {
return Rjx.jsonOk().toJson(); return Rjx.jsonOk().toJson();
} }
@ApiOperation("修改B2B用户UnionID")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "UserNO", dataType = "String", required = true),
@ApiImplicitParam(paramType = "query", name = "UnionID", dataType = "String", required = true),
@ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"),
@ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = true, value = "终端标识", defaultValue = "wechat"),
@ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = "")
})
@RequestMapping(value = "/updateB2BUnionID",method=RequestMethod.GET)
public String updateB2BUnionID(String UserNO, String UnionID) {
userService.updateB2BUnionID(UserNO, UnionID);
return Rjx.jsonOk().toJson();
}
} }
...@@ -51,4 +51,6 @@ public interface UserService { ...@@ -51,4 +51,6 @@ public interface UserService {
public Map<String, Object> loginByOpenId(String orgNo, String openId, String mobile, String name); public Map<String, Object> loginByOpenId(String orgNo, String openId, String mobile, String name);
public void updateB2BUnionID(String UserNO, String UnionID);
} }
...@@ -842,4 +842,10 @@ public class UserServiceImpl implements UserService { ...@@ -842,4 +842,10 @@ public class UserServiceImpl implements UserService {
} }
return new XException((String)errorMsg); return new XException((String)errorMsg);
} }
@Override
public void updateB2BUnionID(String UserNO, String UnionID) {
jdbcTemplate.update("update tB2BUser set sUnionID = ? ,dLastUpdateTime = getdate() where sUserNO = ?", UnionID, UserNO);
}
} }
\ No newline at end of file
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