Commit c8142a3b24319ec6a888bd3e78fa63c701834421

Authored by cfl
1 parent 4088126363
Exists in master and in 2 other branches dev, luanping

模板消息生成取minContent字段

Showing 1 changed file with 21 additions and 0 deletions

platform-msg-generate/src/main/java/com/lyms/platform/msg/worker/TempleteMsgGenerateWorker.java View file @ c8142a3
... ... @@ -1664,6 +1664,13 @@
1664 1664  
1665 1665 String checkTimeStr = DateUtils.getDateStr(yuYueDate, DateUtils.Y_M_D);
1666 1666 String checkName = "产前检查";
  1667 + //维护了minContent,就使用该字段发送 cfl 20231012
  1668 + if(StringUtils.isNotEmpty(template.getMinContent())){
  1669 + checkName = template.getMinContent();
  1670 + if(checkName.length() > 20){
  1671 + checkName = checkName.substring(0,20);
  1672 + }
  1673 + }
1667 1674  
1668 1675  
1669 1676 String serDoct = baseService.getServiceDoctorId(pat.getId(), false);
... ... @@ -1737,6 +1744,13 @@
1737 1744  
1738 1745 String checkWeekName = HelperUtils.getCheckTimeStr(start, end);
1739 1746 String checkName = "产前检查";
  1747 + //维护了minContent,就使用该字段发送 cfl 20231012
  1748 + if(StringUtils.isNotEmpty(template.getMinContent())){
  1749 + checkName = template.getMinContent();
  1750 + if(checkName.length() > 20){
  1751 + checkName = checkName.substring(0,20);
  1752 + }
  1753 + }
1740 1754  
1741 1755 messageContent = HelperUtils.replaceName(pat.getUsername(), messageContent);
1742 1756  
... ... @@ -1779,6 +1793,13 @@
1779 1793  
1780 1794 String checkTimeStr = DateUtils.getDateStr(yuYueDate, DateUtils.Y_M_D);
1781 1795 String checkName = "产前检查";
  1796 + //维护了minContent,就使用该字段发送 cfl 20231012
  1797 + if(StringUtils.isNotEmpty(template.getMinContent())){
  1798 + checkName = template.getMinContent();
  1799 + if(checkName.length() > 20){
  1800 + checkName = checkName.substring(0,20);
  1801 + }
  1802 + }
1782 1803  
1783 1804 MsgRequest request = HelperUtils.getMessageRequest1(template.getSendTime(), messageContent, pat.getPhone(),
1784 1805 ServiceObjEnums.YUNOBJ.getId(), template.getSmsType(),