|
@@ -4,12 +4,13 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fs.app.utils.JwtUtils;
|
|
import com.fs.app.utils.JwtUtils;
|
|
|
-import com.fs.common.core.redis.RedisCache;
|
|
|
|
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.utils.ServletUtils;
|
|
import com.fs.common.utils.ServletUtils;
|
|
|
import com.fs.his.dto.SopDoctorTaskDto;
|
|
import com.fs.his.dto.SopDoctorTaskDto;
|
|
|
import com.fs.his.vo.SopDoctorTaskVo;
|
|
import com.fs.his.vo.SopDoctorTaskVo;
|
|
|
import io.jsonwebtoken.Claims;
|
|
import io.jsonwebtoken.Claims;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -29,6 +30,8 @@ import com.fs.his.service.IFsSopDoctorTaskService;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
|
|
+import static com.fs.his.utils.PhoneUtil.decryptPhone;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 医生处理sop任务Controller
|
|
* 医生处理sop任务Controller
|
|
|
*
|
|
*
|
|
@@ -114,7 +117,28 @@ public class FsSopDoctorTaskController extends BaseController
|
|
|
return toAjax(fsSopDoctorTaskService.deleteFsSopDoctorTaskByIds(ids));
|
|
return toAjax(fsSopDoctorTaskService.deleteFsSopDoctorTaskByIds(ids));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public String getDoctorId()
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 销售端查询解密后的客户联系电话
|
|
|
|
|
+ * */
|
|
|
|
|
+ @GetMapping("/getUserPhone/{id}")
|
|
|
|
|
+ public R getUserPhone(@PathVariable("id") Long id){
|
|
|
|
|
+ SopDoctorTaskDto queryDto=new SopDoctorTaskDto();
|
|
|
|
|
+ queryDto.setId(id);
|
|
|
|
|
+ List<SopDoctorTaskVo> list = fsSopDoctorTaskService.selectFsSopDoctorTaskVoList(queryDto);
|
|
|
|
|
+ if (CollectionUtils.isNotEmpty(list)&&list.size()==1){
|
|
|
|
|
+ String userPhone=list.get(0).getPhone();
|
|
|
|
|
+ if (userPhone!=null&&userPhone.length()>11){
|
|
|
|
|
+ userPhone=decryptPhone(userPhone);
|
|
|
|
|
+ }
|
|
|
|
|
+ return R.ok().put("userPhone",userPhone);
|
|
|
|
|
+ }
|
|
|
|
|
+ return R.ok().put("userPhone","");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取当前登录医生id
|
|
|
|
|
+ * */
|
|
|
|
|
+ private String getDoctorId()
|
|
|
{
|
|
{
|
|
|
String headValue = ServletUtils.getRequest().getHeader("APPToken");
|
|
String headValue = ServletUtils.getRequest().getHeader("APPToken");
|
|
|
Claims claims=jwtUtils.getClaimByToken(headValue);
|
|
Claims claims=jwtUtils.getClaimByToken(headValue);
|