|
|
@@ -36,6 +36,11 @@ public class HandwriteCollectionController extends BaseController
|
|
|
{
|
|
|
startPage();
|
|
|
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"));
|
|
|
+ }
|
|
|
+ }
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
@@ -55,7 +60,11 @@ public class HandwriteCollectionController extends BaseController
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Integer id)
|
|
|
{
|
|
|
- return AjaxResult.success(handwriteCollectionService.selectHandwriteCollectionById(id));
|
|
|
+ HandwriteCollection handwriteCollection = handwriteCollectionService.selectHandwriteCollectionById(id);
|
|
|
+ if (handwriteCollection.getPatientPhone() != null) {
|
|
|
+ handwriteCollection.setPatientPhone(handwriteCollection.getPatientPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
+ }
|
|
|
+ return AjaxResult.success(handwriteCollection);
|
|
|
}
|
|
|
|
|
|
|