Browse Source

诊疗、随访患者添加手机号、姓名查询方式

new-ays
zzc 2 months ago
parent
commit
e03ba731f3
  1. 6
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/FmsFollowupDao.java
  2. 2
      acupuncture-system/src/main/java/com/acupuncture/system/service/impl/AdminFmsFollowupQueueServiceImpl.java
  3. 2
      acupuncture-system/src/main/java/com/acupuncture/system/service/impl/FmsFollowupServiceImpl.java
  4. 6
      acupuncture-system/src/main/resources/mapper/dao/FmsFollowupDao.xml

6
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/FmsFollowupDao.java

@ -41,13 +41,15 @@ public interface FmsFollowupDao {
@Param("taskFlag") Byte taskFlag, @Param("taskFlag") Byte taskFlag,
@Param("haveQueue")Integer haveQueue, @Param("haveQueue")Integer haveQueue,
@Param("tenantId") Long tenantId, @Param("tenantId") Long tenantId,
@Param("phone") String phone); @Param("phone") String phone,
@Param("name") String name);
List<FmsFollowupVo.FollowupPatient> adminQueryPatient(@Param("id") Long id, List<FmsFollowupVo.FollowupPatient> adminQueryPatient(@Param("id") Long id,
@Param("taskFlag") Byte taskFlag, @Param("taskFlag") Byte taskFlag,
@Param("haveQueue")Integer haveQueue, @Param("haveQueue")Integer haveQueue,
@Param("tenantId") Long tenantId, @Param("tenantId") Long tenantId,
@Param("phone") String phone); @Param("phone") String phone,
@Param("name") String name);
/** /**
* 查询随访任务 * 查询随访任务

2
acupuncture-system/src/main/java/com/acupuncture/system/service/impl/AdminFmsFollowupQueueServiceImpl.java

@ -73,7 +73,7 @@ public class AdminFmsFollowupQueueServiceImpl implements AdminFmsFollowupQueueSe
@Override @Override
public List<FmsFollowupVo.FollowupPatient> adminQueryPatient(FmsFollowupDto.FollowupPatientQueryDTO dto) { public List<FmsFollowupVo.FollowupPatient> adminQueryPatient(FmsFollowupDto.FollowupPatientQueryDTO dto) {
List<FmsFollowupVo.FollowupPatient> followupPatients = fmsFollowupDao.adminQueryPatient(dto.getQueueId(), null, dto.getHaveQueue(), dto.getTenantId(), dto.getPhone()); List<FmsFollowupVo.FollowupPatient> followupPatients = fmsFollowupDao.adminQueryPatient(dto.getQueueId(), null, dto.getHaveQueue(), dto.getTenantId(), dto.getPhone(), dto.getName());
if (CollectionUtil.isNotEmpty(followupPatients)) { if (CollectionUtil.isNotEmpty(followupPatients)) {
List<Object> commonFollowupQueue = redisCache.getCacheList("common_followup_queue"); List<Object> commonFollowupQueue = redisCache.getCacheList("common_followup_queue");
for (FmsFollowupVo.FollowupPatient followupPatient : followupPatients) { for (FmsFollowupVo.FollowupPatient followupPatient : followupPatients) {

2
acupuncture-system/src/main/java/com/acupuncture/system/service/impl/FmsFollowupServiceImpl.java

@ -87,7 +87,7 @@ public class FmsFollowupServiceImpl implements FmsFollowupService {
@Override @Override
public List<FmsFollowupVo.FollowupPatient> queryPatient(FmsFollowupDto.FollowupPatientQueryDTO dto) { public List<FmsFollowupVo.FollowupPatient> queryPatient(FmsFollowupDto.FollowupPatientQueryDTO dto) {
List<FmsFollowupVo.FollowupPatient> followupPatients = fmsFollowupDao.queryPatient(dto.getQueueId(), null, dto.getHaveQueue(), dto.getTenantId(), dto.getPhone()); List<FmsFollowupVo.FollowupPatient> followupPatients = fmsFollowupDao.queryPatient(dto.getQueueId(), null, dto.getHaveQueue(), dto.getTenantId(), dto.getPhone(), dto.getName());
if (CollectionUtil.isNotEmpty(followupPatients)) { if (CollectionUtil.isNotEmpty(followupPatients)) {
List<Object> commonFollowupQueue = redisCache.getCacheList("common_followup_queue"); List<Object> commonFollowupQueue = redisCache.getCacheList("common_followup_queue");
for (FmsFollowupVo.FollowupPatient followupPatient : followupPatients) { for (FmsFollowupVo.FollowupPatient followupPatient : followupPatients) {

6
acupuncture-system/src/main/resources/mapper/dao/FmsFollowupDao.xml

@ -154,6 +154,9 @@
<if test="phone != null and phone != ''"> <if test="phone != null and phone != ''">
AND r.phone =#{phone} AND r.phone =#{phone}
</if> </if>
<if test="name != null and name != ''">
AND r.name =#{name}
</if>
group by r.patient_id, r.tenant_id group by r.patient_id, r.tenant_id
order by r.create_time desc order by r.create_time desc
</select> </select>
@ -244,6 +247,9 @@
<if test="phone != null and phone != ''"> <if test="phone != null and phone != ''">
AND r.phone =#{phone} AND r.phone =#{phone}
</if> </if>
<if test="name != null and name != ''">
AND r.name =#{name}
</if>
group by r.patient_id, r.tenant_id group by r.patient_id, r.tenant_id
order by r.create_time desc order by r.create_time desc
</select> </select>

Loading…
Cancel
Save