admin
2019-01-28 f7ed4e6bbe9be95d268481e66d70d90e70e07e12
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java
@@ -37,50 +37,51 @@
      List<CommonMsgItemVO> items = new ArrayList<>();
      List<ClientTextStyleVO> contentList = new ArrayList<>();
      contentList.add(new ClientTextStyleVO(msg.getOrderId(), "#000000"));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("订单号", "#888888"), contentList));
      contentList.add(new ClientTextStyleVO(msg.getOrderId(), COLOR_CONTENT));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("订单号", COLOR_TITLE), contentList));
      contentList = new ArrayList<>();
      contentList.add(new ClientTextStyleVO("共", "#000000"));
      contentList.add(new ClientTextStyleVO(msg.getGoodsCount() + "", "#E5005C"));
      contentList.add(new ClientTextStyleVO("件商品", "#000000"));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("商品数量", "#888888"), contentList));
      contentList.add(new ClientTextStyleVO("共", COLOR_CONTENT));
      contentList.add(new ClientTextStyleVO(msg.getGoodsCount() + "", COLOR_HIGHLIGHT_CONTENT));
      contentList.add(new ClientTextStyleVO("件商品", COLOR_CONTENT));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("商品数量", COLOR_TITLE), contentList));
      contentList = new ArrayList<>();
      contentList.add(new ClientTextStyleVO(msg.getType().getDesc(), "#000000"));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("订单类型", "#888888"), contentList));
      contentList.add(new ClientTextStyleVO(msg.getType().getDesc(), COLOR_CONTENT));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("订单类型", COLOR_TITLE), contentList));
      contentList = new ArrayList<>();
      if (msg.getState() == MsgOrderDetail.STATE_FK)
         contentList.add(new ClientTextStyleVO("已付款", "#E5005C"));
         contentList.add(new ClientTextStyleVO("已付款", COLOR_HIGHLIGHT_CONTENT));
      else if (msg.getState() == MsgOrderDetail.STATE_JS)
         contentList.add(new ClientTextStyleVO("已收货", "#E5005C"));
         contentList.add(new ClientTextStyleVO("已收货", COLOR_HIGHLIGHT_CONTENT));
      else if (msg.getState() == MsgOrderDetail.STATE_SX)
         contentList.add(new ClientTextStyleVO("未付款/已退款", "#E5005C"));
         contentList.add(new ClientTextStyleVO("未付款/已退款", COLOR_HIGHLIGHT_CONTENT));
      else if (msg.getState() == MsgOrderDetail.STATE_WQ)
         contentList.add(new ClientTextStyleVO("已维权", "#E5005C"));
         contentList.add(new ClientTextStyleVO("已维权", COLOR_HIGHLIGHT_CONTENT));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("订单状态", "#888888"), contentList));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("订单状态", COLOR_TITLE), contentList));
      contentList = new ArrayList<>();
      contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(msg.getPayMoney()), "#E5005C"));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("付款金额", "#888888"), contentList));
      contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(msg.getPayMoney()),
            COLOR_HIGHLIGHT_CONTENT));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("付款金额", COLOR_TITLE), contentList));
      contentList = new ArrayList<>();
      contentList
            .add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(msg.getHongBaoMoney()), "#E5005C"));
      contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(msg.getHongBaoMoney()),
            COLOR_HIGHLIGHT_CONTENT));
      if (msg.getType() == MsgTypeOrderTypeEnum.fanli)
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("返利金额", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("返利金额", COLOR_TITLE), contentList));
      else if (msg.getType() == MsgTypeOrderTypeEnum.share)
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("分享奖金", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("分享奖金", COLOR_TITLE), contentList));
      else if (msg.getType() == MsgTypeOrderTypeEnum.invite)
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("邀请奖金", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("邀请奖金", COLOR_TITLE), contentList));
      contentList = new ArrayList<>();
      contentList.add(
            new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "无" : msg.getBeiZhu(), "#000000"));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("备注", "#888888"), contentList));
      contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "无" : msg.getBeiZhu(),
            COLOR_CONTENT));
      items.add(new CommonMsgItemVO(new ClientTextStyleVO("备注", COLOR_TITLE), contentList));
      return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_order.png", "订单消息",
            msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items);
   }
@@ -106,12 +107,12 @@
         ba = UserUtil.filterBindingAccount(ba);
         contentList.add(new ClientTextStyleVO("支付宝:" + ba.getName() + " " + ba.getAccount(), COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("提现账号", COLOR_CONTENT), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("提现账号", COLOR_TITLE), contentList));
         contentList = new ArrayList<>();
         contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(msg.getExtract().getMoney()),
               COLOR_HIGHLIGHT_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("提现金额", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("提现金额", COLOR_TITLE), contentList));
         contentList = new ArrayList<>();
         if (msg.getExtract().getState() == Extract.STATE_NOT_PROCESS
@@ -121,7 +122,7 @@
            contentList.add(new ClientTextStyleVO("已通过", COLOR_HIGHLIGHT_CONTENT));
         else if (msg.getExtract().getState() == Extract.STATE_REJECT)
            contentList.add(new ClientTextStyleVO("提现被拒绝", COLOR_HIGHLIGHT_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("提现状态", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("提现状态", COLOR_TITLE), contentList));
         contentList = new ArrayList<>();
         if (msg.getExtract().getState() == Extract.STATE_NOT_PROCESS
@@ -131,25 +132,25 @@
            contentList.add(new ClientTextStyleVO("无", COLOR_CONTENT));
         else if (msg.getExtract().getState() == Extract.STATE_REJECT)
            contentList.add(new ClientTextStyleVO(msg.getExtract().getReason(), COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("状态说明", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("状态说明", COLOR_TITLE), contentList));
         contentList = new ArrayList<>();
         contentList.add(new ClientTextStyleVO(
               TimeUtil.getGernalTime(msg.getExtract().getExtractTime(), "yyyy-MM-dd HH:mm"), COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("预计到账", "#888888"), contentList));
         contentList.add(new ClientTextStyleVO(TimeUtil.getGernalTime(
               msg.getExtract().getExtractTime() + 1000 * 60 * 60 * 24L, "yyyy-MM-dd HH:mm"), COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("预计到账", COLOR_TITLE), contentList));
         if (msg.getExtract().getState() == Extract.STATE_PASS) {//
            contentList = new ArrayList<>();
            contentList.add(new ClientTextStyleVO(
                  TimeUtil.getGernalTime(msg.getExtract().getReceiveTime().getTime(), "yyyy-MM-dd HH:mm"),
                  COLOR_CONTENT));
            items.add(new CommonMsgItemVO(new ClientTextStyleVO("实际到账", "#888888"), contentList));
            items.add(new CommonMsgItemVO(new ClientTextStyleVO("实际到账", COLOR_TITLE), contentList));
         }
         contentList = new ArrayList<>();
         contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "无" : msg.getBeiZhu(),
               COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("备注", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("备注", COLOR_TITLE), contentList));
         return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_extract.png", "提现",
               msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items);
      } else if (msg.getMsgType() == MsgTypeMoneyTypeEnum.extractValid) {
@@ -165,20 +166,20 @@
         contentList = new ArrayList<>();
         contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(msg.getMoney()),
               COLOR_HIGHLIGHT_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("提现金额", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("提现金额", COLOR_TITLE), contentList));
         contentList = new ArrayList<>();
         contentList.add(new ClientTextStyleVO("¥验证成功", COLOR_HIGHLIGHT_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("验证状态", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("验证状态", COLOR_TITLE), contentList));
         contentList = new ArrayList<>();
         contentList.add(new ClientTextStyleVO(msg.getStateDesc(), COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("状态说明", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("状态说明", COLOR_TITLE), contentList));
         contentList = new ArrayList<>();
         contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "无" : msg.getBeiZhu(),
               COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("备注", "#888888"), contentList));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("备注", COLOR_TITLE), contentList));
         return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_extract.png", "提现账号验证",
               msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items);
@@ -231,7 +232,7 @@
         contentList = new ArrayList<>();
         contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(msg.getBalance()) + "",
               COLOR_HIGHLIGHT_CONTENT));
               COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("账号余额", COLOR_TITLE), contentList));
         contentList = new ArrayList<>();
@@ -249,7 +250,7 @@
                  date + msg.getMsgType().getDesc(),
                  msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items);
         else
            new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_invite_money.png",
            return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_invite_money.png",
                  date + msg.getMsgType().getDesc(),
                  msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items);
@@ -301,8 +302,9 @@
               COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("备注", COLOR_TITLE), contentList));
         return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_share.png", msg.getMsgType().getDesc(),
               msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items);
         return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_share_money.png",
               msg.getMsgType().getDesc(), msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(),
               items);
      } else if (msg.getMsgType() == MsgTypeMoneyTypeEnum.inviteWeiQuan) {
         contentList.add(new ClientTextStyleVO(msg.getOrderId(), COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("邀请订单", COLOR_TITLE), contentList));
@@ -326,8 +328,9 @@
               COLOR_CONTENT));
         items.add(new CommonMsgItemVO(new ClientTextStyleVO("备注", COLOR_TITLE), contentList));
         return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_invite.png", msg.getMsgType().getDesc(),
               msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items);
         return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_invite_money.png",
               msg.getMsgType().getDesc(), msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(),
               items);
      }
      return null;