|
@@ -50,6 +50,11 @@ public class HandwriteCollectionController extends BaseController
|
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response,@RequestBody HandwriteCollection handwriteCollection) throws IOException {
|
|
public void export(HttpServletResponse response,@RequestBody HandwriteCollection handwriteCollection) throws IOException {
|
|
|
List<HandwriteCollection> list = handwriteCollectionService.selectHandwriteCollectionList(handwriteCollection);
|
|
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);
|
|
ExcelUtil<HandwriteCollection> util = new ExcelUtil<HandwriteCollection>(HandwriteCollection.class);
|
|
|
util.exportExcel(response, list, "手写信息采集表数据");
|
|
util.exportExcel(response, list, "手写信息采集表数据");
|
|
|
}
|
|
}
|