|
@@ -8,19 +8,26 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fs.his.dto.SopDoctorTaskDto;
|
|
import com.fs.his.dto.SopDoctorTaskDto;
|
|
|
import com.fs.his.service.IFsSopDoctorTaskService;
|
|
import com.fs.his.service.IFsSopDoctorTaskService;
|
|
|
import com.fs.his.vo.SopDoctorTaskVo;
|
|
import com.fs.his.vo.SopDoctorTaskVo;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.fs.his.mapper.FsSopDoctorTaskMapper;
|
|
import com.fs.his.mapper.FsSopDoctorTaskMapper;
|
|
|
import com.fs.his.domain.FsSopDoctorTask;
|
|
import com.fs.his.domain.FsSopDoctorTask;
|
|
|
|
|
|
|
|
|
|
+import static com.fs.his.utils.PhoneUtil.decryptPhone;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 医生处理sop任务Service业务层处理
|
|
* 医生处理sop任务Service业务层处理
|
|
|
*
|
|
*
|
|
|
* @author fs
|
|
* @author fs
|
|
|
* @date 2025-12-25
|
|
* @date 2025-12-25
|
|
|
*/
|
|
*/
|
|
|
|
|
+@Slf4j
|
|
|
@Service
|
|
@Service
|
|
|
public class FsSopDoctorTaskServiceImpl extends ServiceImpl<FsSopDoctorTaskMapper, FsSopDoctorTask> implements IFsSopDoctorTaskService {
|
|
public class FsSopDoctorTaskServiceImpl extends ServiceImpl<FsSopDoctorTaskMapper, FsSopDoctorTask> implements IFsSopDoctorTaskService {
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private FsSopDoctorTaskMapper fsSopDoctorTaskMapper;
|
|
|
/**
|
|
/**
|
|
|
* 查询医生处理sop任务
|
|
* 查询医生处理sop任务
|
|
|
*
|
|
*
|
|
@@ -30,7 +37,12 @@ public class FsSopDoctorTaskServiceImpl extends ServiceImpl<FsSopDoctorTaskMappe
|
|
|
@Override
|
|
@Override
|
|
|
public SopDoctorTaskVo selectFsSopDoctorTaskById(Long id)
|
|
public SopDoctorTaskVo selectFsSopDoctorTaskById(Long id)
|
|
|
{
|
|
{
|
|
|
- return baseMapper.selectFsSopDoctorTaskById(id);
|
|
|
|
|
|
|
+ SopDoctorTaskVo sopDoctorTaskVo = fsSopDoctorTaskMapper.selectFsSopDoctorTaskById(id);
|
|
|
|
|
+ //医生端查看客户手机号直接解密
|
|
|
|
|
+ if (sopDoctorTaskVo!=null&&sopDoctorTaskVo.getPhone()!=null&&sopDoctorTaskVo.getPhone().length()>11){
|
|
|
|
|
+ sopDoctorTaskVo.setPhone(decryptPhone(sopDoctorTaskVo.getPhone()));
|
|
|
|
|
+ }
|
|
|
|
|
+ return sopDoctorTaskVo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -47,7 +59,7 @@ public class FsSopDoctorTaskServiceImpl extends ServiceImpl<FsSopDoctorTaskMappe
|
|
|
String todayEnd = new SimpleDateFormat("yyyy-MM-dd 23:59:59").format(new Date());
|
|
String todayEnd = new SimpleDateFormat("yyyy-MM-dd 23:59:59").format(new Date());
|
|
|
queryDto.setBeginTime(todayStart);
|
|
queryDto.setBeginTime(todayStart);
|
|
|
queryDto.setEndTime(todayEnd);
|
|
queryDto.setEndTime(todayEnd);
|
|
|
- return baseMapper.selectFsSopDoctorTaskVoList(queryDto);
|
|
|
|
|
|
|
+ return fsSopDoctorTaskMapper.selectFsSopDoctorTaskVoList(queryDto);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -60,7 +72,7 @@ public class FsSopDoctorTaskServiceImpl extends ServiceImpl<FsSopDoctorTaskMappe
|
|
|
public int insertFsSopDoctorTask(FsSopDoctorTask fsSopDoctorTask)
|
|
public int insertFsSopDoctorTask(FsSopDoctorTask fsSopDoctorTask)
|
|
|
{
|
|
{
|
|
|
fsSopDoctorTask.setCreateTime(DateUtils.getNowDate());
|
|
fsSopDoctorTask.setCreateTime(DateUtils.getNowDate());
|
|
|
- return baseMapper.insertFsSopDoctorTask(fsSopDoctorTask);
|
|
|
|
|
|
|
+ return fsSopDoctorTaskMapper.insertFsSopDoctorTask(fsSopDoctorTask);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -73,7 +85,7 @@ public class FsSopDoctorTaskServiceImpl extends ServiceImpl<FsSopDoctorTaskMappe
|
|
|
public int updateFsSopDoctorTask(FsSopDoctorTask fsSopDoctorTask)
|
|
public int updateFsSopDoctorTask(FsSopDoctorTask fsSopDoctorTask)
|
|
|
{
|
|
{
|
|
|
fsSopDoctorTask.setUpdateTime(DateUtils.getNowDate());
|
|
fsSopDoctorTask.setUpdateTime(DateUtils.getNowDate());
|
|
|
- return baseMapper.updateFsSopDoctorTask(fsSopDoctorTask);
|
|
|
|
|
|
|
+ return fsSopDoctorTaskMapper.updateFsSopDoctorTask(fsSopDoctorTask);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -85,7 +97,7 @@ public class FsSopDoctorTaskServiceImpl extends ServiceImpl<FsSopDoctorTaskMappe
|
|
|
@Override
|
|
@Override
|
|
|
public int deleteFsSopDoctorTaskByIds(Long[] ids)
|
|
public int deleteFsSopDoctorTaskByIds(Long[] ids)
|
|
|
{
|
|
{
|
|
|
- return baseMapper.deleteFsSopDoctorTaskByIds(ids);
|
|
|
|
|
|
|
+ return fsSopDoctorTaskMapper.deleteFsSopDoctorTaskByIds(ids);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -97,6 +109,6 @@ public class FsSopDoctorTaskServiceImpl extends ServiceImpl<FsSopDoctorTaskMappe
|
|
|
@Override
|
|
@Override
|
|
|
public int deleteFsSopDoctorTaskById(Long id)
|
|
public int deleteFsSopDoctorTaskById(Long id)
|
|
|
{
|
|
{
|
|
|
- return baseMapper.deleteFsSopDoctorTaskById(id);
|
|
|
|
|
|
|
+ return fsSopDoctorTaskMapper.deleteFsSopDoctorTaskById(id);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|