修改问题。
This commit is contained in:
parent
6d944b7aa8
commit
9a29e5c9eb
@ -130,7 +130,9 @@ public class SignPatientManageRouteNodeController extends BaseController {
|
||||
return R.ok(signNodeService.getSpecialDiseaseNode(patientTaskDto));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 测试生成患者档案列表数据用
|
||||
*/
|
||||
@GetMapping("/generateStatistic")
|
||||
public R<String> generateStatistic() {
|
||||
signNodeService.generateStatistic();
|
||||
|
||||
@ -153,16 +153,6 @@ public interface SignPatientManageRouteNodeMapper {
|
||||
*/
|
||||
int updateNodeExecuteStatusByIds(@Param("manageRouteNodeIds") List<Long> manageRouteNodeIds, @Param("nodeExecuteStatus") String nodeExecuteStatus, @Param("appletStatus") String appletStatus, @Param("messageStatus") String messageStatus, @Param("officialStatus") String officialStatus);
|
||||
|
||||
/**
|
||||
* @description 根据签约记录表主键查询患者已执行任务数量
|
||||
* @param signPatientRecordId 签约记录表主键
|
||||
* @return 任务执行数量
|
||||
* @Author haown
|
||||
* @Date 2024-08-13 14:00
|
||||
*/
|
||||
int getPatientExecutedTaskNum(Long signPatientRecordId);
|
||||
|
||||
|
||||
int selectNodeCountByCreateTime(@Param("firstDay") LocalDate firstDay, @Param("now") LocalDate now);
|
||||
|
||||
BigDecimal selectNodeCount(@Param("phoneDialMethod") String phoneDialMethod, @Param("messagePushSign") Long messagePushSign, @Param("appletPushSign") Long appletPushSign);
|
||||
|
||||
@ -207,5 +207,8 @@ public interface ISignPatientManageRouteNodeService {
|
||||
*/
|
||||
Boolean getSignTriggerConditon(Long signPatientManageRouteId, Long patientId);
|
||||
|
||||
/**
|
||||
* 测试生成患者档案列表数据用
|
||||
*/
|
||||
void generateStatistic();
|
||||
}
|
||||
|
||||
@ -1102,6 +1102,9 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
|
||||
return generateTask;
|
||||
}
|
||||
|
||||
/**
|
||||
* 测试生成患者档案列表数据用
|
||||
*/
|
||||
@Override public void generateStatistic() {
|
||||
// 查询患者
|
||||
PatientInfoDto patientInfo = new PatientInfoDto();
|
||||
|
||||
@ -259,6 +259,7 @@
|
||||
-- from
|
||||
-- patient_task_view p
|
||||
<where>
|
||||
p.del_flag = 0
|
||||
<if test="residentId != null">
|
||||
and p.resident_id = #{residentId}
|
||||
</if>
|
||||
|
||||
@ -938,15 +938,6 @@
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="getPatientExecutedTaskNum" resultType="java.lang.Integer">
|
||||
select spmr.patient_id, spmr.sign_patient_record_id, count(spmrn.id)
|
||||
from sign_patient_manage_route_node spmrn
|
||||
LEFT JOIN sign_patient_manage_route spmr ON spmr.id = spmrn.manage_route_id
|
||||
LEFT JOIN patient_info pi ON pi.sign_patient_record_id = spmr.sign_patient_record_id
|
||||
where spmr.patient_id = #{patientId} and spmrn.del_flag = 0 and spmrn.node_execute_status = 'EXECUTED'
|
||||
GROUP BY spmr.patient_id, spmr.sign_patient_record_id
|
||||
</select>
|
||||
|
||||
<select id="selectNodeCountByCreateTime" resultType="java.lang.Integer">
|
||||
select count(1)
|
||||
from sign_patient_manage_route_node
|
||||
|
||||
Loading…
Reference in New Issue
Block a user