|
@@ -1,8 +1,11 @@
|
|
|
package com.fs.company.controller.company;
|
|
|
|
|
|
+import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
|
+import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.his.param.FsDoctorParam;
|
|
|
import com.fs.his.service.IFsDoctorService;
|
|
|
import com.fs.his.utils.RedisCacheUtil;
|
|
@@ -11,14 +14,15 @@ import com.fs.his.vo.FsDoctorVO;
|
|
|
import com.fs.his.vo.OptionsVO;
|
|
|
import com.fs.his.vo.UserVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Base64;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import static com.fs.his.utils.PhoneUtil.decryptAutoPhoneMk;
|
|
|
+import static com.fs.his.utils.PhoneUtil.encryptPhone;
|
|
|
+
|
|
|
/**
|
|
|
* 医生管理Controller
|
|
|
*
|
|
@@ -121,6 +125,24 @@ public class FsDoctorController extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @GetMapping("/getDocVoList")
|
|
|
+ public TableDataInfo getDocVoList(FsDoctorParam param) {
|
|
|
+ startPage();
|
|
|
+ List<FsDoctorVO> list = fsDoctorService.selectDocVOByNameAndPhone(param);
|
|
|
+ if (list == null || list.isEmpty()) {
|
|
|
+ param.setMobile(encryptPhone(param.getMobile()));
|
|
|
+ list = fsDoctorService.selectDocVOByNameAndPhone(param);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (list != null) {
|
|
|
+ list.forEach( item -> {
|
|
|
+ if (item.getMobile() != null)
|
|
|
+ item.setMobile(decryptAutoPhoneMk(item.getMobile()));
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|