|
@ -71,6 +71,29 @@ public class PatientHealthRecordController extends WeixinBaseController {
|
|
@RequestParam(required = false) String value3,
|
|
@RequestParam(required = false) String value3,
|
|
@RequestParam(required = false) String value4) {
|
|
@RequestParam(required = false) String value4) {
|
|
try {
|
|
try {
|
|
|
|
if(type==1&&StringUtils.isNotBlank(value3)){
|
|
|
|
String images = "";
|
|
|
|
String[] imgs = value3.split(",");
|
|
|
|
for (String img:imgs){
|
|
|
|
if(img.contains("group1/")){
|
|
|
|
images+=img+",";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(images.lastIndexOf(",")==images.length()-1){
|
|
|
|
images = images.substring(0,images.length()-1);
|
|
|
|
}
|
|
|
|
// 从微信服务器获取图片
|
|
|
|
value3 = fetchWxImages();
|
|
|
|
value3 = CommonUtil.copyTempImage(value3);
|
|
|
|
if(StringUtils.isNotEmpty(value3)){
|
|
|
|
value3=value3+","+images;
|
|
|
|
}else {
|
|
|
|
value3=images;
|
|
|
|
}
|
|
|
|
if(value3.lastIndexOf(",")==value3.length()-1){
|
|
|
|
value3 = value3.substring(0,value3.length()-1);
|
|
|
|
}
|
|
|
|
}
|
|
patientHealthRecordService.modifyHealthCare(id, type, value1, value2, value3, value4);
|
|
patientHealthRecordService.modifyHealthCare(id, type, value1, value2, value3, value4);
|
|
return write(200, "更改成功!");
|
|
return write(200, "更改成功!");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|