|
@@ -4,6 +4,7 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
import com.fs.framework.security.SecurityUtils;
|
|
import com.fs.framework.security.SecurityUtils;
|
|
|
|
|
+import com.fs.handwrite.domain.HandwriteCollection;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
import com.fs.common.core.controller.BaseController;
|
|
@@ -34,6 +35,11 @@ public class HandwritePatientFormController extends BaseController
|
|
|
{
|
|
{
|
|
|
startPage();
|
|
startPage();
|
|
|
List<HandwritePatientForm> list = handwritePatientFormService.selectHandwritePatientFormList(handwritePatientForm);
|
|
List<HandwritePatientForm> list = handwritePatientFormService.selectHandwritePatientFormList(handwritePatientForm);
|
|
|
|
|
+ for (HandwritePatientForm item : list) {
|
|
|
|
|
+ if (item.getPatientPhone() != null) {
|
|
|
|
|
+ item.setPatientPhone(item.getPatientPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -44,6 +50,11 @@ public class HandwritePatientFormController extends BaseController
|
|
|
public AjaxResult export(HttpServletResponse response, HandwritePatientForm handwritePatientForm)
|
|
public AjaxResult export(HttpServletResponse response, HandwritePatientForm handwritePatientForm)
|
|
|
{
|
|
{
|
|
|
List<HandwritePatientForm> list = handwritePatientFormService.selectHandwritePatientFormList(handwritePatientForm);
|
|
List<HandwritePatientForm> list = handwritePatientFormService.selectHandwritePatientFormList(handwritePatientForm);
|
|
|
|
|
+ for (HandwritePatientForm item : list) {
|
|
|
|
|
+ if (item.getPatientPhone() != null) {
|
|
|
|
|
+ item.setPatientPhone(item.getPatientPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
ExcelUtil<HandwritePatientForm> util = new ExcelUtil<HandwritePatientForm>(HandwritePatientForm.class);
|
|
ExcelUtil<HandwritePatientForm> util = new ExcelUtil<HandwritePatientForm>(HandwritePatientForm.class);
|
|
|
return util.exportExcel(list, "手写信息初诊单数据");
|
|
return util.exportExcel(list, "手写信息初诊单数据");
|
|
|
}
|
|
}
|
|
@@ -54,7 +65,11 @@ public class HandwritePatientFormController extends BaseController
|
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Integer id)
|
|
public AjaxResult getInfo(@PathVariable("id") Integer id)
|
|
|
{
|
|
{
|
|
|
- return AjaxResult.success(handwritePatientFormService.selectHandwritePatientFormById(id));
|
|
|
|
|
|
|
+ HandwritePatientForm handwritePatientForm = handwritePatientFormService.selectHandwritePatientFormById(id);
|
|
|
|
|
+ if (handwritePatientForm.getPatientPhone() != null) {
|
|
|
|
|
+ handwritePatientForm.setPatientPhone(handwritePatientForm.getPatientPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
|
|
+ }
|
|
|
|
|
+ return AjaxResult.success(handwritePatientForm);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|