|  | @ -143,16 +143,26 @@ public class PatientController extends WeixinBaseController {
 | 
												
													
														
															|  |      */
 |  |      */
 | 
												
													
														
															|  |     @RequestMapping(value = "save")
 |  |     @RequestMapping(value = "save")
 | 
												
													
														
															|  |     @ResponseBody
 |  |     @ResponseBody
 | 
												
													
														
															|  |     public String save(@RequestParam(required = false) String photo, @RequestParam(required = false) String name, @RequestParam(required = false) Integer sex, @RequestParam(required = false) String birthday, @RequestParam(required = false) String ssc, @RequestParam(required = false) String province, @RequestParam(required = false) String city, @RequestParam(required = false) String town, @RequestParam(required = false) String address, @RequestParam(required = false) String street) {
 |  | 
 | 
												
													
														
															|  | 
 |  |     public String save(@RequestParam(required = false) String photo,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) String name,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) Integer sex,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) String birthday,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) String ssc,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) String province,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) String city,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) String town,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) String address,
 | 
												
													
														
															|  | 
 |  |                        @RequestParam(required = false) String street) {
 | 
												
													
														
															|  |         try {
 |  |         try {
 | 
												
													
														
															|  |             Patient patient = patientInfoService.findByCode(getUID());
 |  |             Patient patient = patientInfoService.findByCode(getUID());
 | 
												
													
														
															|  |             if (StringUtils.isEmpty(photo)) {
 |  | 
 | 
												
													
														
															|  |                 photo = fetchWxImages();
 |  | 
 | 
												
													
														
															|  |             }
 |  | 
 | 
												
													
														
															|  |             if (StringUtils.isNotEmpty(photo)) {
 |  | 
 | 
												
													
														
															|  |                 photo = CommonUtil.copyTempImage(photo);
 |  | 
 | 
												
													
														
															|  |             }
 |  | 
 | 
												
													
														
															|  | 
 |  | //            if (StringUtils.isEmpty(photo)) {
 | 
												
													
														
															|  | 
 |  | //                photo = fetchWxImages();
 | 
												
													
														
															|  | 
 |  | //            }
 | 
												
													
														
															|  | 
 |  | //            if (StringUtils.isNotEmpty(photo)) {
 | 
												
													
														
															|  | 
 |  | //                photo = CommonUtil.copyTempImage(photo);
 | 
												
													
														
															|  | 
 |  | //            }
 | 
												
													
														
															|  |             if (StringUtils.isNotEmpty(photo)) {
 |  |             if (StringUtils.isNotEmpty(photo)) {
 | 
												
													
														
															|  | 
 |  |                 photo=SystemConf.getInstance().getImageServer()+photo;
 | 
												
													
														
															|  |                 patient.setPhoto(photo);
 |  |                 patient.setPhoto(photo);
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |             if (StringUtils.isNotEmpty(name))
 |  |             if (StringUtils.isNotEmpty(name))
 |