Commit 2ee1fba7 authored by shiyu's avatar shiyu

模板消息3

parent fac55550
...@@ -177,7 +177,11 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -177,7 +177,11 @@ public class SendMsgServiceImpl implements SendMsgService {
Map<String, Object> paramMap = new LinkedHashMap<>(); Map<String, Object> paramMap = new LinkedHashMap<>();
paramMap.put("thing4", new HashMap() {{ paramMap.put("thing4", new HashMap() {{
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
} else {
put("value", auctionOfferNoticeMsg.getItemName());
}
}}); }});
paramMap.put("amount5", new HashMap() {{ paramMap.put("amount5", new HashMap() {{
put("value", auctionOfferNoticeMsg.getCurrentPrice()); put("value", auctionOfferNoticeMsg.getCurrentPrice());
...@@ -224,7 +228,11 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -224,7 +228,11 @@ public class SendMsgServiceImpl implements SendMsgService {
Map<String, Object> paramMap = new LinkedHashMap<>(); Map<String, Object> paramMap = new LinkedHashMap<>();
paramMap.put("thing4", new HashMap() {{ paramMap.put("thing4", new HashMap() {{
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
} else {
put("value", auctionOfferNoticeMsg.getItemName());
}
}}); }});
paramMap.put("amount6", new HashMap() {{ paramMap.put("amount6", new HashMap() {{
put("value", auctionOfferNoticeMsg.getCurrentPrice()); put("value", auctionOfferNoticeMsg.getCurrentPrice());
...@@ -277,7 +285,11 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -277,7 +285,11 @@ public class SendMsgServiceImpl implements SendMsgService {
Map<String, Object> paramMap = new LinkedHashMap<>(); Map<String, Object> paramMap = new LinkedHashMap<>();
paramMap.put("thing2", new HashMap() {{ paramMap.put("thing2", new HashMap() {{
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
} else {
put("value", auctionOfferNoticeMsg.getItemName());
}
}}); }});
paramMap.put("thing3", new HashMap() {{ paramMap.put("thing3", new HashMap() {{
put("value", "请在截止时间前及时付款"); put("value", "请在截止时间前及时付款");
...@@ -328,7 +340,11 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -328,7 +340,11 @@ public class SendMsgServiceImpl implements SendMsgService {
Map<String, Object> paramMap = new LinkedHashMap<>(); Map<String, Object> paramMap = new LinkedHashMap<>();
paramMap.put("thing1", new HashMap() {{ paramMap.put("thing1", new HashMap() {{
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
} else {
put("value", auctionOfferNoticeMsg.getItemName());
}
}}); }});
paramMap.put("amount2", new HashMap() {{ paramMap.put("amount2", new HashMap() {{
put("value", auctionOfferNoticeMsg.getCurrentPrice() + "元"); put("value", auctionOfferNoticeMsg.getCurrentPrice() + "元");
...@@ -379,7 +395,11 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -379,7 +395,11 @@ public class SendMsgServiceImpl implements SendMsgService {
Map<String, Object> paramMap = new LinkedHashMap<>(); Map<String, Object> paramMap = new LinkedHashMap<>();
paramMap.put("thing1", new HashMap() {{ paramMap.put("thing1", new HashMap() {{
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
} else {
put("value", auctionOfferNoticeMsg.getItemName());
}
}}); }});
paramMap.put("amount2", new HashMap() {{ paramMap.put("amount2", new HashMap() {{
put("value", auctionOfferNoticeMsg.getCurrentPrice()); put("value", auctionOfferNoticeMsg.getCurrentPrice());
...@@ -430,7 +450,11 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -430,7 +450,11 @@ public class SendMsgServiceImpl implements SendMsgService {
Map<String, Object> paramMap = new LinkedHashMap<>(); Map<String, Object> paramMap = new LinkedHashMap<>();
paramMap.put("thing1", new HashMap() {{ paramMap.put("thing1", new HashMap() {{
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
} else {
put("value", auctionOfferNoticeMsg.getItemName());
}
}}); }});
paramMap.put("amount2", new HashMap() {{ paramMap.put("amount2", new HashMap() {{
put("value", auctionOfferNoticeMsg.getCurrentPrice()); put("value", auctionOfferNoticeMsg.getCurrentPrice());
...@@ -481,7 +505,11 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -481,7 +505,11 @@ public class SendMsgServiceImpl implements SendMsgService {
Map<String, Object> paramMap = new LinkedHashMap<>(); Map<String, Object> paramMap = new LinkedHashMap<>();
paramMap.put("thing2", new HashMap() {{ paramMap.put("thing2", new HashMap() {{
if (auctionOfferNoticeMsg.getItemName().length() > 20) {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
} else {
put("value", auctionOfferNoticeMsg.getItemName());
}
}}); }});
paramMap.put("thing3", new HashMap() {{ paramMap.put("thing3", new HashMap() {{
put("value", "有用户新出价"+ auctionOfferNoticeMsg.getCurrentPrice() + "元"); put("value", "有用户新出价"+ auctionOfferNoticeMsg.getCurrentPrice() + "元");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment