消息查询

This commit is contained in:
zhangheng 2024-07-08 10:01:31 +08:00
parent 1d4a0a4481
commit ee95c9cb61
5 changed files with 23 additions and 0 deletions

View File

@ -93,6 +93,13 @@ public interface SignPatientManageRouteNodeMapper {
*/
List<PatientTaskVo> selectPatientTaskList(PatientTaskDto patientTaskDto);
/**
* 查询个人任务消息
*
* @param residentId 用户id
* @param nodeExecuteStatus 状态
* @return SignPatientManageRouteNode
*/
List<SignPatientManageRouteNode> selectManageRouteByResidentId(@Param("residentId") Long residentId, @Param("nodeExecuteStatus") String nodeExecuteStatus);
String selectNodeContent(Long manageRouteNodeId);

View File

@ -92,6 +92,9 @@ public class HomePageController extends BaseController {
return homePageService.subscriptionMessage(id);
}
/**
* 消息通知列表
*/
@GetMapping("/messageNotification")
public AjaxResult selectSignPatientManageRouteNode(Long residentId) {
return homePageService.selectSignPatientManageRouteNode(residentId);

View File

@ -76,6 +76,12 @@ public interface HomePageService {
*/
AjaxResult subscriptionMessage(Long id);
/**
* 消息通知列表
*
* @param residentId 用户id
* @return AjaxResult
*/
AjaxResult selectSignPatientManageRouteNode(Long residentId);
AjaxResult selectNodeContent(Long manageRouteNodeId);

View File

@ -264,6 +264,12 @@ public class HomePageServiceImpl implements HomePageService {
return AjaxResult.success(signPatientManageRouteNodeMapper.selectSignPatientManageRouteNodeById(id));
}
/**
* 消息通知列表
*
* @param residentId 用户id
* @return AjaxResult
*/
@Override
public AjaxResult selectSignPatientManageRouteNode(Long residentId) {
List<SignPatientManageRouteNode> signPatientManageRouteNodes = signPatientManageRouteNodeMapper.selectManageRouteByResidentId(residentId, NodeExecuteStatusEnum.EXECUTED.getInfo());

View File

@ -208,6 +208,7 @@ public class WeChatOfficialAccountUtils {
Map<String, Object> paramsMap = new LinkedHashMap<>();
paramsMap.put("touser", patientVO.getOpenId());
paramsMap.put("template_id", weChatAppletChatConfig.getHealthyPropagandaId());
paramsMap.put("miniprogram_state", "developer");//todo
paramsMap.put("page", "pages/homepage/homepage");
Map<String, Object> dataMap = new LinkedHashMap<>();
dataMap.put("thing5", new MessageValueEntity(thing5));