Browse Source

电话号码维护

cgp 3 giờ trước cách đây
mục cha
commit
7abae47505

+ 5 - 0
fs-admin/src/main/java/com/fs/crm/controller/HandwriteCollectionController.java

@@ -50,6 +50,11 @@ public class HandwriteCollectionController extends BaseController
     @PostMapping("/export")
     public void export(HttpServletResponse response,@RequestBody HandwriteCollection handwriteCollection) throws IOException {
         List<HandwriteCollection> list = handwriteCollectionService.selectHandwriteCollectionList(handwriteCollection);
+        for (HandwriteCollection item : list) {
+            if (item.getPatientPhone() != null) {
+                item.setPatientPhone(item.getPatientPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
+            }
+        }
         ExcelUtil<HandwriteCollection> util = new ExcelUtil<HandwriteCollection>(HandwriteCollection.class);
         util.exportExcel(response, list, "手写信息采集表数据");
     }