|
|
@@ -5,8 +5,6 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.github.yulichang.base.MPJBaseServiceImpl;
|
|
|
import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
-import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
-import com.xjrsoft.module.base.service.IBaseClassService;
|
|
|
import com.xjrsoft.module.organization.dto.WeChatSendMessageDto;
|
|
|
import com.xjrsoft.module.organization.entity.User;
|
|
|
import com.xjrsoft.module.organization.entity.UserStudent;
|
|
|
@@ -32,8 +30,6 @@ import java.util.List;
|
|
|
public class WfRoomStayOvernightServiceImpl extends MPJBaseServiceImpl<WfRoomStayOvernightMapper, WfRoomStayOvernight> implements IWfRoomStayOvernightService {
|
|
|
private final IUserService userService;
|
|
|
|
|
|
- private final IBaseClassService classService;
|
|
|
-
|
|
|
private final IWeChatService weChatService;
|
|
|
@Override
|
|
|
public Boolean noticeParents(Long id) {
|
|
|
@@ -49,7 +45,6 @@ public class WfRoomStayOvernightServiceImpl extends MPJBaseServiceImpl<WfRoomSta
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyy年MM月dd日");
|
|
|
|
|
|
User student = userService.getById(applicant.getApplicantUserId());
|
|
|
- BaseClass aClass = classService.getById(applicant.getClassName());
|
|
|
String wechatTemplate = "pbggflZY985uimp9XQ0pe3-GftuPyF7fG5jCo97_jJU";
|
|
|
for (User user : list) {
|
|
|
WeChatSendMessageDto weChatSendMessageDto = new WeChatSendMessageDto();
|
|
|
@@ -68,7 +63,7 @@ public class WfRoomStayOvernightServiceImpl extends MPJBaseServiceImpl<WfRoomSta
|
|
|
}});
|
|
|
//班级
|
|
|
data.put("thing2", new JSONObject() {{
|
|
|
- put("value", aClass.getName());
|
|
|
+ put("value", applicant.getClassName());
|
|
|
}});
|
|
|
weChatSendMessageDto.setContent(data);
|
|
|
weChatService.sendTemplateMessage(weChatSendMessageDto);
|