| @@ -1,6 +1,8 @@ | |||||
| package com.iformall.domain.po; | package com.iformall.domain.po; | ||||
| import cn.afterturn.easypoi.excel.annotation.Excel; | import cn.afterturn.easypoi.excel.annotation.Excel; | ||||
| import com.alibaba.fastjson.JSONException; | |||||
| import com.alibaba.fastjson.JSONObject; | |||||
| import javax.persistence.Id; | import javax.persistence.Id; | ||||
| import javax.persistence.Table; | import javax.persistence.Table; | ||||
| @@ -249,6 +251,25 @@ public class WxCUserBasicInfo implements Serializable { | |||||
| this.endTime = endTime; | this.endTime = endTime; | ||||
| } | } | ||||
| public String getAddressStr() { | |||||
| if (address == null) | |||||
| return null; | |||||
| JSONObject addressJSON; | |||||
| try { | |||||
| addressJSON = JSONObject.parseObject(address); | |||||
| } catch (JSONException e){ | |||||
| return address; | |||||
| } | |||||
| addressStr = addressJSON.getString("address")+addressJSON.getString("name"); | |||||
| return addressStr; | |||||
| } | |||||
| public void setAddressStr(String _addressStr) { | |||||
| addressStr = _addressStr; | |||||
| } | |||||
| public static enum Field | public static enum Field | ||||
| { | { | ||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | ||||