修复用户标签id类型不一致的问题 #175

This commit is contained in:
Binary Wang
2017-04-10 11:14:20 +08:00
parent 89470660ef
commit 0ff63ba3cb
3 changed files with 20 additions and 6 deletions

View File

@ -32,7 +32,7 @@ public class WxMpUser implements Serializable {
private Integer sexId;
private String remark;
private Integer groupId;
private Integer[] tagIds;
private Long[] tagIds;
public Boolean getSubscribe() {
return this.subscribe;
@ -150,11 +150,11 @@ public class WxMpUser implements Serializable {
this.groupId = groupId;
}
public Integer[] getTagIds() {
public Long[] getTagIds() {
return this.tagIds;
}
public void setTagIds(Integer[] tagIds) {
public void setTagIds(Long[] tagIds) {
this.tagIds = tagIds;
}

View File

@ -36,7 +36,7 @@ public class WxMpUserGsonAdapter implements JsonDeserializer<WxMpUser> {
Integer sexId = GsonHelper.getInteger(o, "sex");
wxMpUser.setRemark(GsonHelper.getString(o, "remark"));
wxMpUser.setGroupId(GsonHelper.getInteger(o, "groupid"));
wxMpUser.setTagIds(GsonHelper.getIntArray(o, "tagid_list"));
wxMpUser.setTagIds(GsonHelper.getLongArray(o, "tagid_list"));
wxMpUser.setSexId(sexId);
if (new Integer(1).equals(sexId)) {
wxMpUser.setSex("");