| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 预约成功提醒 |
| | |
| | | |
| | | //如果一个项目存在多个护理项目则发送多次消息 |
| | | String projectInfo=""; |
| | | String staffName=""; |
| | | Set<String> staffNames=new HashSet<>(); |
| | | for (SysBeauticianState beauticianState:beauticianStateList){ |
| | | projectInfo+=beauticianState.getProjInfo().getName()+beauticianState.getCount()+"次,"; |
| | | staffName+=beauticianState.getBeautiStaffInfo().getSuName()+","; |
| | | staffNames.add(beauticianState.getBeautiStaffInfo().getSuName()); |
| | | } |
| | | projectInfo=projectInfo.substring(0,projectInfo.length()-1); |
| | | staffName=staffName.substring(0,staffName.length()-1); |
| | | String staffName=StringUtils.collToStr(staffNames,","); |
| | | UniformMsgPojo uniformMsgPojo=new UniformMsgPojo(); |
| | | GzhTemplateMessagePojo messagePojo=new GzhTemplateMessagePojo(); |
| | | uniformMsgPojo.setTouser(touser); |