小程序消息列表
This commit is contained in:
parent
071b5a042f
commit
3775d26aa4
@ -88,7 +88,9 @@ public interface SignPatientManageRouteNodeMapper {
|
|||||||
*/
|
*/
|
||||||
List<PatientTaskVo> selectPatientTaskList(PatientTaskDto patientTaskDto);
|
List<PatientTaskVo> selectPatientTaskList(PatientTaskDto patientTaskDto);
|
||||||
|
|
||||||
List<SignPatientManageRouteNode> selectManageRouteByResidentId(Long residentId);
|
List<SignPatientManageRouteNode> selectManageRouteByResidentId(@Param("residentId") Long residentId,@Param("nodeExecuteStatus") String nodeExecuteStatus);
|
||||||
|
|
||||||
String selectNodeContent(Long id);
|
String selectNodeContent(Long manageRouteNodeId);
|
||||||
|
|
||||||
|
int updateMessageStatus(SignPatientManageRouteNode signPatientManageRouteNode);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -682,7 +682,7 @@
|
|||||||
where manage_route_id = #{manageRouteId}
|
where manage_route_id = #{manageRouteId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectPatientTaskList" parameterType="com.xinelu.manage.dto.signpatientmanageroutenode.PatientTaskDto" resultType="com.xinelu.manage.vo.signpatientmanageroutenode.PatientTaskVo">
|
<select id="selectPatientTaskList" parameterType="com.xinelu.manage.dto.signpatientmanageroutenode.PatientTaskDto" resultType="com.xinelu.manage.vo.signpatientmanageroutenode.PatientTaskVo">
|
||||||
select patient.id as patientId, patient.patient_name,
|
select patient.id as patientId, patient.patient_name,
|
||||||
patient.patient_phone,
|
patient.patient_phone,
|
||||||
patient.family_member_phone,
|
patient.family_member_phone,
|
||||||
@ -750,7 +750,8 @@
|
|||||||
spmrn.manage_route_name,
|
spmrn.manage_route_name,
|
||||||
spmrn.route_node_name,
|
spmrn.route_node_name,
|
||||||
spmrn.route_node_day,
|
spmrn.route_node_day,
|
||||||
spmrn.update_time
|
spmrn.update_time,
|
||||||
|
spmrn.message_status
|
||||||
from sign_patient_manage_route_node spmrn
|
from sign_patient_manage_route_node spmrn
|
||||||
LEFT JOIN sign_patient_manage_route spmr ON spmr.id = spmrn.manage_route_id
|
LEFT JOIN sign_patient_manage_route spmr ON spmr.id = spmrn.manage_route_id
|
||||||
LEFT JOIN patient_info pi on pi.id = spmr.patient_id
|
LEFT JOIN patient_info pi on pi.id = spmr.patient_id
|
||||||
@ -766,4 +767,10 @@
|
|||||||
from sign_patient_manage_route_node
|
from sign_patient_manage_route_node
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<update id="updateMessageStatus">
|
||||||
|
update sign_patient_manage_route_node
|
||||||
|
set message_status = #{messageStatus}
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -4,6 +4,7 @@ import com.xinelu.common.core.controller.BaseController;
|
|||||||
import com.xinelu.common.core.domain.AjaxResult;
|
import com.xinelu.common.core.domain.AjaxResult;
|
||||||
import com.xinelu.common.core.page.TableDataInfo;
|
import com.xinelu.common.core.page.TableDataInfo;
|
||||||
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
||||||
|
import com.xinelu.manage.domain.signpatientmanageroutenode.SignPatientManageRouteNode;
|
||||||
import com.xinelu.manage.dto.patientquestionsubmitresult.PatientQuestionSubmitResultDTO;
|
import com.xinelu.manage.dto.patientquestionsubmitresult.PatientQuestionSubmitResultDTO;
|
||||||
import com.xinelu.mobile.service.homepage.HomePageService;
|
import com.xinelu.mobile.service.homepage.HomePageService;
|
||||||
import com.xinelu.mobile.vo.myfollowup.MyFollowUpVO;
|
import com.xinelu.mobile.vo.myfollowup.MyFollowUpVO;
|
||||||
@ -53,8 +54,8 @@ public class HomePageController extends BaseController {
|
|||||||
* 问卷记录信息
|
* 问卷记录信息
|
||||||
*/
|
*/
|
||||||
@GetMapping("/selectQuestionSubmit")
|
@GetMapping("/selectQuestionSubmit")
|
||||||
public AjaxResult selectQuestionSubmit(Long patientQuestionSubmitResultId,Long patientTaskExecuteRecordId) {
|
public AjaxResult selectQuestionSubmit(Long patientQuestionSubmitResultId, Long patientTaskExecuteRecordId) {
|
||||||
return homePageService.selectQuestionSubmit(patientQuestionSubmitResultId,patientTaskExecuteRecordId);
|
return homePageService.selectQuestionSubmit(patientQuestionSubmitResultId, patientTaskExecuteRecordId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -87,17 +88,22 @@ public class HomePageController extends BaseController {
|
|||||||
* 微信小程序消息通知跳转页面
|
* 微信小程序消息通知跳转页面
|
||||||
*/
|
*/
|
||||||
@GetMapping("/subscriptionMessage")
|
@GetMapping("/subscriptionMessage")
|
||||||
public AjaxResult subscriptionMessage(Long id){
|
public AjaxResult subscriptionMessage(Long id) {
|
||||||
return homePageService.subscriptionMessage(id);
|
return homePageService.subscriptionMessage(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/messageNotification")
|
@GetMapping("/messageNotification")
|
||||||
public AjaxResult selectSignPatientManageRouteNode(Long residentId){
|
public AjaxResult selectSignPatientManageRouteNode(Long residentId) {
|
||||||
return homePageService.selectSignPatientManageRouteNode(residentId);
|
return homePageService.selectSignPatientManageRouteNode(residentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/updateMessageStatus")
|
@GetMapping("/selectNodeContent")
|
||||||
private AjaxResult updateMessageStatus(Long manageRouteNodeId){
|
public AjaxResult selectNodeContent(Long manageRouteNodeId) {
|
||||||
return homePageService.updateMessageStatus(manageRouteNodeId);
|
return homePageService.selectNodeContent(manageRouteNodeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/updateMessageStatus")
|
||||||
|
public AjaxResult updateMessageStatus(@RequestBody SignPatientManageRouteNode signPatientManageRouteNode) {
|
||||||
|
return homePageService.updateMessageStatus(signPatientManageRouteNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4,6 +4,7 @@ import com.xinelu.common.core.domain.AjaxResult;
|
|||||||
import com.xinelu.common.core.page.TableDataInfo;
|
import com.xinelu.common.core.page.TableDataInfo;
|
||||||
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
||||||
import com.xinelu.manage.domain.scriptInfo.ScriptInfo;
|
import com.xinelu.manage.domain.scriptInfo.ScriptInfo;
|
||||||
|
import com.xinelu.manage.domain.signpatientmanageroutenode.SignPatientManageRouteNode;
|
||||||
import com.xinelu.manage.dto.patientquestionsubmitresult.PatientQuestionSubmitResultDTO;
|
import com.xinelu.manage.dto.patientquestionsubmitresult.PatientQuestionSubmitResultDTO;
|
||||||
import com.xinelu.mobile.vo.myfollowup.MyFollowUpVO;
|
import com.xinelu.mobile.vo.myfollowup.MyFollowUpVO;
|
||||||
|
|
||||||
@ -77,5 +78,7 @@ public interface HomePageService {
|
|||||||
|
|
||||||
AjaxResult selectSignPatientManageRouteNode(Long residentId);
|
AjaxResult selectSignPatientManageRouteNode(Long residentId);
|
||||||
|
|
||||||
AjaxResult updateMessageStatus(Long manageRouteNodeId);
|
AjaxResult selectNodeContent(Long manageRouteNodeId);
|
||||||
|
|
||||||
|
AjaxResult updateMessageStatus(SignPatientManageRouteNode signPatientManageRouteNode);
|
||||||
}
|
}
|
||||||
@ -266,7 +266,7 @@ public class HomePageServiceImpl implements HomePageService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult selectSignPatientManageRouteNode(Long residentId) {
|
public AjaxResult selectSignPatientManageRouteNode(Long residentId) {
|
||||||
List<SignPatientManageRouteNode> signPatientManageRouteNodes = signPatientManageRouteNodeMapper.selectManageRouteByResidentId(residentId);
|
List<SignPatientManageRouteNode> signPatientManageRouteNodes = signPatientManageRouteNodeMapper.selectManageRouteByResidentId(residentId, NodeExecuteStatusEnum.EXECUTED.getInfo());
|
||||||
if (CollectionUtils.isEmpty(signPatientManageRouteNodes)) {
|
if (CollectionUtils.isEmpty(signPatientManageRouteNodes)) {
|
||||||
return AjaxResult.success(new ArrayList<>());
|
return AjaxResult.success(new ArrayList<>());
|
||||||
}
|
}
|
||||||
@ -279,7 +279,12 @@ public class HomePageServiceImpl implements HomePageService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult updateMessageStatus(Long manageRouteNodeId) {
|
public AjaxResult selectNodeContent(Long manageRouteNodeId) {
|
||||||
return AjaxResult.success(signPatientManageRouteNodeMapper.selectNodeContent(manageRouteNodeId));
|
return AjaxResult.success(signPatientManageRouteNodeMapper.selectNodeContent(manageRouteNodeId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult updateMessageStatus(SignPatientManageRouteNode signPatientManageRouteNode) {
|
||||||
|
return AjaxResult.success(signPatientManageRouteNodeMapper.updateMessageStatus(signPatientManageRouteNode));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user