Commit a9361f8fbba4f0773c994b63e7112e8a65f40f23
1 parent
0fec7d009e
Exists in
master
and in
2 other branches
产检管理页面,配置中心短信列表,推送记录列表,孕产妇管理三个页面手机号加密处理
Showing 3 changed files with 27 additions and 7 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntExRecordFacade.java
View file @
a9361f8
| ... | ... | @@ -423,6 +423,9 @@ |
| 423 | 423 | |
| 424 | 424 | if (isCurrent && CollectionUtils.isNotEmpty(data)) { |
| 425 | 425 | for (AntExManagerResult result : data) { |
| 426 | + //手机号加密 cfl | |
| 427 | + result.setPhone(StringUtils.encryPhone(result.getPhone())); | |
| 428 | + | |
| 426 | 429 | if (CollectionUtils.isNotEmpty(result.getrLevel())) { |
| 427 | 430 | List<Map> list = result.getrLevel(); |
| 428 | 431 | List<String> ids = new ArrayList<>(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
a9361f8
| ... | ... | @@ -1671,7 +1671,7 @@ |
| 1671 | 1671 | * @return |
| 1672 | 1672 | */ |
| 1673 | 1673 | private List convertToQuanCPatient(List <Patients> patientses, Integer userId, String hospital) { |
| 1674 | - List data = new ArrayList <>(); | |
| 1674 | + List <QuanChanResult> data = new ArrayList <>(); | |
| 1675 | 1675 | |
| 1676 | 1676 | int batchSize = 4; |
| 1677 | 1677 | int end = 0; |
| 1678 | 1678 | |
| 1679 | 1679 | |
| ... | ... | @@ -1688,17 +1688,22 @@ |
| 1688 | 1688 | } |
| 1689 | 1689 | for (Future f : listFuture) { |
| 1690 | 1690 | try { |
| 1691 | - data.addAll((List) f.get(30, TimeUnit.SECONDS)); | |
| 1691 | + data.addAll((List<QuanChanResult>) f.get(30, TimeUnit.SECONDS)); | |
| 1692 | 1692 | } catch (Exception e) { |
| 1693 | 1693 | ExceptionUtils.catchException(e, "convertToQuanCPatient get result Future error."); |
| 1694 | 1694 | } |
| 1695 | 1695 | } |
| 1696 | + if(CollectionUtils.isNotEmpty(data)){ | |
| 1697 | + for(QuanChanResult result: data){ | |
| 1698 | + result.setRealPhone(StringUtils.encryPhone(result.getRealPhone())); | |
| 1699 | + } | |
| 1700 | + } | |
| 1696 | 1701 | return data; |
| 1697 | 1702 | } |
| 1698 | 1703 | |
| 1699 | 1704 | |
| 1700 | 1705 | private List convertToQuanPatient(List <Patients> patientses, Integer userId, String hospital) { |
| 1701 | - List data = new ArrayList <>(); | |
| 1706 | + List<QuanPatientsResult> data = new ArrayList <>(); | |
| 1702 | 1707 | int batchSize = 4; |
| 1703 | 1708 | int end = 0; |
| 1704 | 1709 | List <Future> listFuture = new ArrayList <>(); |
| 1705 | 1710 | |
| ... | ... | @@ -1711,11 +1716,16 @@ |
| 1711 | 1716 | } |
| 1712 | 1717 | for (Future f : listFuture) { |
| 1713 | 1718 | try { |
| 1714 | - data.addAll((List) f.get(30, TimeUnit.SECONDS)); | |
| 1719 | + data.addAll((List<QuanPatientsResult>) f.get(30, TimeUnit.SECONDS)); | |
| 1715 | 1720 | } catch (Exception e) { |
| 1716 | 1721 | ExceptionUtils.catchException(e, "convertToQuanPatient get result Future error."); |
| 1717 | 1722 | } |
| 1718 | 1723 | } |
| 1724 | + if(CollectionUtils.isNotEmpty(data)){ | |
| 1725 | + for(QuanPatientsResult result: data){ | |
| 1726 | + result.setRealPhone(StringUtils.encryPhone(result.getRealPhone())); | |
| 1727 | + } | |
| 1728 | + } | |
| 1719 | 1729 | return data; |
| 1720 | 1730 | } |
| 1721 | 1731 | |
| ... | ... | @@ -1904,7 +1914,7 @@ |
| 1904 | 1914 | * @return |
| 1905 | 1915 | */ |
| 1906 | 1916 | private List convertToHighRisk(List <Patients> patientses, Integer userId, String hospital) { |
| 1907 | - List data = new ArrayList <>(); | |
| 1917 | + List<RiskPatientsResult> data = new ArrayList <>(); | |
| 1908 | 1918 | int batchSize = 4; |
| 1909 | 1919 | int end = 0; |
| 1910 | 1920 | List <Future> listFuture = new ArrayList <>(); |
| 1911 | 1921 | |
| ... | ... | @@ -1917,11 +1927,18 @@ |
| 1917 | 1927 | } |
| 1918 | 1928 | for (Future f : listFuture) { |
| 1919 | 1929 | try { |
| 1920 | - data.addAll((List) f.get(30, TimeUnit.SECONDS)); | |
| 1930 | + data.addAll((List<RiskPatientsResult>) f.get(30, TimeUnit.SECONDS)); | |
| 1921 | 1931 | } catch (Exception e) { |
| 1922 | 1932 | ExceptionUtils.catchException(e, "convertToHighRisk get result Future error."); |
| 1923 | 1933 | } |
| 1924 | 1934 | } |
| 1935 | + //手机号已经加密,页面显示的是这个字段 | |
| 1936 | + if(CollectionUtils.isNotEmpty(data)){ | |
| 1937 | + for(RiskPatientsResult result: data){ | |
| 1938 | + result.setRealPhone(StringUtils.encryPhone(result.getRealPhone())); | |
| 1939 | + } | |
| 1940 | + } | |
| 1941 | + | |
| 1925 | 1942 | return data; |
| 1926 | 1943 | } |
| 1927 | 1944 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SmsConfigFacade.java
View file @
a9361f8
| ... | ... | @@ -1282,7 +1282,7 @@ |
| 1282 | 1282 | map.put("hospitalName",""); |
| 1283 | 1283 | } |
| 1284 | 1284 | map.put("smsType",SmsServiceEnums.getSmsServiceById(obj.getSubTypeId())); |
| 1285 | - map.put("phone",obj.getPhone()); | |
| 1285 | + map.put("phone",StringUtils.encryPhone(obj.getPhone())); | |
| 1286 | 1286 | map.put("objType",ServiceObjEnums.getServiceObjById(obj.getObjtype())); |
| 1287 | 1287 | map.put("planTime", obj.getPlanTime()); |
| 1288 | 1288 | map.put("actualTime", obj.getActualTime() == null ? "" : obj.getActualTime()); |