From 52bc8ff0de3c7538d1401423c1cba9615c0c2082 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期四, 18 六月 2020 17:22:24 +0800 Subject: [PATCH] 发圈商品来源修改 + 云发单规则调整 --- fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java | 34 +++++++++++++++++++++++++++++++--- 1 files changed, 31 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java b/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java index 1d0d15e..ce7291a 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java @@ -118,12 +118,11 @@ contentList2.add(new ClientTextStyleVO(days +"" ,ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT)); contentList2.add(new ClientTextStyleVO("澶╁悗杩囨湡", ClientTextStyleVO.COLOR_CONTENT)); listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("鏈夋晥鏈�", ClientTextStyleVO.COLOR_TITLE),contentList2)); - listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("浣跨敤鑼冨洿", ClientTextStyleVO.COLOR_TITLE), - new ClientTextStyleVO("鍦╘"鎴戠殑-璁㈠崟涓璡"锛屽彲浣�5澶╁唴浜х敓鐨勮繑鍒╄鍗曞啀杩�", ClientTextStyleVO.COLOR_CONTENT))); + new ClientTextStyleVO("濂栧姳鍒稿彲鍦ㄣ�怽"鎴戠殑-绂忓埄涓績\"銆戣禒閫佷粬浜�", ClientTextStyleVO.COLOR_CONTENT))); } listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("澶囨敞", ClientTextStyleVO.COLOR_TITLE), - new ClientTextStyleVO("濂栧姳鍒镐篃鍙湪銆怽"鎴戠殑-绂忓埄涓績\"銆戣禒閫佷粬浜�", ClientTextStyleVO.COLOR_CONTENT))); + new ClientTextStyleVO("鏃�", ClientTextStyleVO.COLOR_CONTENT))); MsgOtherDetail detail = new MsgOtherDetail(); detail.setCreateTime(new Date()); @@ -268,4 +267,33 @@ return detail; } + + /** + * 浜戝彂鍗曠浉鍏充俊鎭� + * @param uid + * @param category + * @param item + * @param desc + * @return + */ + public static MsgOtherDetail cloudMsg(Long uid, String category, String item, String desc) { + List<CommonMsgItemVO> listMsg = new ArrayList<>(); + listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("绫诲埆", ClientTextStyleVO.COLOR_TITLE), + new ClientTextStyleVO(category, ClientTextStyleVO.COLOR_CONTENT))); + listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("浜嬮」", ClientTextStyleVO.COLOR_TITLE), + new ClientTextStyleVO(item, ClientTextStyleVO.COLOR_CONTENT))); + listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("璇存槑", ClientTextStyleVO.COLOR_TITLE), + new ClientTextStyleVO(desc, ClientTextStyleVO.COLOR_CONTENT))); + listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("澶囨敞", ClientTextStyleVO.COLOR_TITLE), + new ClientTextStyleVO("鏃�", ClientTextStyleVO.COLOR_CONTENT))); + + MsgOtherDetail detail = new MsgOtherDetail(); + detail.setCreateTime(new Date()); + detail.setRead(false); + detail.setUser(new UserInfo(uid)); + detail.setType(MsgTypeOtherTypeEnum.cloudWX); + detail.setExtraInfo(new Gson().toJson(listMsg)); + return detail; + } + } -- Gitblit v1.8.0