yeshijie před 7 roky
rodič
revize
0a3d4aef5a

+ 23 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/health/PatientHealthRecordController.java

@ -71,6 +71,29 @@ public class PatientHealthRecordController extends WeixinBaseController {
								   @RequestParam(required = false) String value3,
								   @RequestParam(required = false) String value4) {
		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);
			return write(200, "更改成功!");
		} catch (Exception e) {