| | |
| | | package com.yeshi.fanli.vo.msg;
|
| | |
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum;
|
| | |
|
| | | /*
|
| | | * 用户消息已读状态存储
|
| | | */
|
| | | @Table("yeshi_ec_msg_read_state")
|
| | | public class UserMsgUnReadNumVO {
|
| | | private String typeOrder;// 订单消息未读数
|
| | |
|
| | | private String typeMoney;// 资金消息未读数
|
| | |
|
| | | private String typeAccount;// 账户消息未读数
|
| | |
|
| | | private String typeInvite;// 邀请消息未读数
|
| | |
|
| | | private String typeScore;// 积分消息未读数
|
| | |
|
| | | private String typeSystem;// 系统消息未读数
|
| | |
|
| | | public UserMsgUnReadNumVO(UserMsgUnReadNum num) {
|
| | | this.typeAccount = getCountDesc(num.getTypeAccount());
|
| | | this.typeInvite = getCountDesc(num.getTypeInvite());
|
| | | this.typeMoney = getCountDesc(num.getTypeMoney());
|
| | | this.typeOrder = getCountDesc(num.getTypeOrder());
|
| | | this.typeScore = getCountDesc(num.getTypeScore());
|
| | | this.typeSystem = getCountDesc(num.getTypeSystem());
|
| | | }
|
| | |
|
| | | static String getCountDesc(int count) {
|
| | | if (count >= 100)
|
| | | return "99+";
|
| | | else
|
| | | return count + "";
|
| | | }
|
| | |
|
| | | public UserMsgUnReadNumVO() {
|
| | |
|
| | | }
|
| | |
|
| | | public String getTypeOrder() {
|
| | | return typeOrder;
|
| | | }
|
| | |
|
| | | public void setTypeOrder(String typeOrder) {
|
| | | this.typeOrder = typeOrder;
|
| | | }
|
| | |
|
| | | public String getTypeMoney() {
|
| | | return typeMoney;
|
| | | }
|
| | |
|
| | | public void setTypeMoney(String typeMoney) {
|
| | | this.typeMoney = typeMoney;
|
| | | }
|
| | |
|
| | | public String getTypeSystem() {
|
| | | return typeSystem;
|
| | | }
|
| | |
|
| | | public void setTypeSystem(String typeSystem) {
|
| | | this.typeSystem = typeSystem;
|
| | | }
|
| | |
|
| | | public String getTypeAccount() {
|
| | | return typeAccount;
|
| | | }
|
| | |
|
| | | public void setTypeAccount(String typeAccount) {
|
| | | this.typeAccount = typeAccount;
|
| | | }
|
| | |
|
| | | public String getTypeInvite() {
|
| | | return typeInvite;
|
| | | }
|
| | |
|
| | | public void setTypeInvite(String typeInvite) {
|
| | | this.typeInvite = typeInvite;
|
| | | }
|
| | |
|
| | | public String getTypeScore() {
|
| | | return typeScore;
|
| | | }
|
| | |
|
| | | public void setTypeScore(String typeScore) {
|
| | | this.typeScore = typeScore;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.vo.msg; |
| | | |
| | | import org.yeshi.utils.generater.mybatis.Table; |
| | | |
| | | import com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum; |
| | | |
| | | /* |
| | | * 用户消息已读状态存储 |
| | | */ |
| | | @Table("yeshi_ec_msg_read_state") |
| | | public class UserMsgUnReadNumVO { |
| | | private String typeOrder;// 订单消息未读数 |
| | | |
| | | private String typeMoney;// 资金消息未读数 |
| | | |
| | | private String typeAccount;// 账户消息未读数 |
| | | |
| | | private String typeInvite;// 邀请消息未读数 |
| | | |
| | | private String typeScore;// 积分消息未读数 |
| | | |
| | | private String typeSystem;// 系统消息未读数 |
| | | |
| | | public UserMsgUnReadNumVO(UserMsgUnReadNum num) { |
| | | this.typeAccount = getCountDesc(num.getTypeAccount()); |
| | | this.typeInvite = getCountDesc(num.getTypeInvite()); |
| | | this.typeMoney = getCountDesc(num.getTypeMoney()); |
| | | this.typeOrder = getCountDesc(num.getTypeOrder()); |
| | | this.typeScore = getCountDesc(num.getTypeScore()); |
| | | this.typeSystem = getCountDesc(num.getTypeSystem()); |
| | | } |
| | | |
| | | static String getCountDesc(int count) { |
| | | if (count >= 100) |
| | | return "99+"; |
| | | else |
| | | return count + ""; |
| | | } |
| | | |
| | | public UserMsgUnReadNumVO() { |
| | | |
| | | } |
| | | |
| | | public String getTypeOrder() { |
| | | return typeOrder; |
| | | } |
| | | |
| | | public void setTypeOrder(String typeOrder) { |
| | | this.typeOrder = typeOrder; |
| | | } |
| | | |
| | | public String getTypeMoney() { |
| | | return typeMoney; |
| | | } |
| | | |
| | | public void setTypeMoney(String typeMoney) { |
| | | this.typeMoney = typeMoney; |
| | | } |
| | | |
| | | public String getTypeSystem() { |
| | | return typeSystem; |
| | | } |
| | | |
| | | public void setTypeSystem(String typeSystem) { |
| | | this.typeSystem = typeSystem; |
| | | } |
| | | |
| | | public String getTypeAccount() { |
| | | return typeAccount; |
| | | } |
| | | |
| | | public void setTypeAccount(String typeAccount) { |
| | | this.typeAccount = typeAccount; |
| | | } |
| | | |
| | | public String getTypeInvite() { |
| | | return typeInvite; |
| | | } |
| | | |
| | | public void setTypeInvite(String typeInvite) { |
| | | this.typeInvite = typeInvite; |
| | | } |
| | | |
| | | public String getTypeScore() { |
| | | return typeScore; |
| | | } |
| | | |
| | | public void setTypeScore(String typeScore) { |
| | | this.typeScore = typeScore; |
| | | } |
| | | |
| | | } |