|  | @ -426,7 +426,8 @@ public class FamilyContractController extends WeixinBaseController {
 | 
	
		
			
				|  |  |                        @RequestParam(required = false)String patient,
 | 
	
		
			
				|  |  |                        @RequestParam(required = false)String countryCode,
 | 
	
		
			
				|  |  |                        @RequestParam(required = true)String medicareNumber,
 | 
	
		
			
				|  |  |                        @RequestParam(required = false)String sevId) {
 | 
	
		
			
				|  |  |                        @RequestParam(required = false)String sevId,
 | 
	
		
			
				|  |  |                        @RequestParam(required = false)String imgId) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             if (StringUtils.isEmpty(doctor)) {
 | 
	
		
			
				|  |  |                 return error(-1, "签约医生不能为空");
 | 
	
	
		
			
				|  | @ -455,7 +456,7 @@ public class FamilyContractController extends WeixinBaseController {
 | 
	
		
			
				|  |  |                 if (StringUtils.isNotEmpty(content)) {
 | 
	
		
			
				|  |  |                     content = CommonUtil.copyTempImage(content);
 | 
	
		
			
				|  |  |                     if (StringUtils.isNotEmpty(content)) {
 | 
	
		
			
				|  |  |                         familyContractService.saveCertificate(patient,content,sevId);
 | 
	
		
			
				|  |  |                         familyContractService.saveCertificate(patient,content,sevId,imgId);
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -482,7 +483,8 @@ public class FamilyContractController extends WeixinBaseController {
 | 
	
		
			
				|  |  |                             @RequestParam(required = false) String reason,
 | 
	
		
			
				|  |  |                             @RequestParam(required = false) String countryCode,
 | 
	
		
			
				|  |  |                             @RequestParam(required = true) String medicareNumber,
 | 
	
		
			
				|  |  |                             @RequestParam(required = false)String sevId) {
 | 
	
		
			
				|  |  |                             @RequestParam(required = false)String sevId,
 | 
	
		
			
				|  |  |                             @RequestParam(required = false)String imgId) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             if (StringUtils.isEmpty(doctor)) {
 | 
	
		
			
				|  |  |                 return error(-1, "签约医生不能为空");
 | 
	
	
		
			
				|  | @ -518,7 +520,7 @@ public class FamilyContractController extends WeixinBaseController {
 | 
	
		
			
				|  |  |                 if (StringUtils.isNotEmpty(content)) {
 | 
	
		
			
				|  |  |                     content = CommonUtil.copyTempImage(content);
 | 
	
		
			
				|  |  |                     if (StringUtils.isNotEmpty(content)) {
 | 
	
		
			
				|  |  |                         familyContractService.saveCertificate(patient,content,sevId);
 | 
	
		
			
				|  |  |                         familyContractService.saveCertificate(patient,content,sevId,imgId);
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 return write(200, "签约申请成功");
 | 
	
	
		
			
				|  | @ -765,4 +767,17 @@ public class FamilyContractController extends WeixinBaseController {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/findPatientCertificateByType", method = {RequestMethod.GET})
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     @ApiOperation("获取居民服务类型凭证")
 | 
	
		
			
				|  |  |     public String findPatientCertificate(@ApiParam(name = "patient", value = "居民code") @RequestParam(required = true)String patient,
 | 
	
		
			
				|  |  |                                          @ApiParam(name = "type", value = "服务类型code") @RequestParam(required = true)String type) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             return write(200, "查询成功", "data", signWebService.findByPatientAndSignYearAndDelAndSignDictCode(patient,type));
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             error(e);
 | 
	
		
			
				|  |  |             return error(-1, "查询失败!");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | }
 |