|
@@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static com.tzld.piaoquan.growth.common.common.constant.WeComConstant.POST_WE_COM_ADD_MSG_TEMPLATE;
|
|
@@ -36,6 +37,11 @@ public class MessageServiceImpl implements MessageService {
|
|
|
@Autowired
|
|
|
private PreSpecialSendMessageMapper preSpecialSendMessageMapper;
|
|
|
|
|
|
+ private static final List<Long> specialStaffIdList = new ArrayList<Long>() {{
|
|
|
+ add(16L);
|
|
|
+ add(17L);
|
|
|
+ }};
|
|
|
+
|
|
|
@Override
|
|
|
public boolean pushWeComMessage(JSONObject jsonObject, Long corpId) {
|
|
|
try {
|
|
@@ -59,7 +65,10 @@ public class MessageServiceImpl implements MessageService {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public String getMessageText() {
|
|
|
+ public String getMessageText(Long staffId) {
|
|
|
+ if (specialStaffIdList.contains(staffId)) {
|
|
|
+ return MessageConstant.specialText;
|
|
|
+ }
|
|
|
Integer hour = DateUtil.getHourOfDay();
|
|
|
if (hour < 12) {
|
|
|
return MessageConstant.morningText;
|