|  | @ -30,6 +30,7 @@ import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import java.util.ArrayList;
 | 
	
		
			
				|  |  | import java.util.List;
 | 
	
		
			
				|  |  | import java.util.Map;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /**
 | 
	
		
			
				|  |  |  * Created by Trick on 2018/11/27.
 | 
	
	
		
			
				|  | @ -52,11 +53,13 @@ public class PackageServiceEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                                          @RequestParam(value = "labelType", required = false)String labelType,
 | 
	
		
			
				|  |  |                                          @ApiParam(name = "patient", value = "居民code(判断居民是否签约,非必传)")
 | 
	
		
			
				|  |  |                                          @RequestParam(value = "patient", required = false)String patient,
 | 
	
		
			
				|  |  |                                          @ApiParam(name = "saasId", value = "租户id")
 | 
	
		
			
				|  |  |                                          @RequestParam(value = "saasId", required = false)String saasId,
 | 
	
		
			
				|  |  |                                          @ApiParam(name = "page", value = "第几页")
 | 
	
		
			
				|  |  |                                          @RequestParam(value = "page", required = true)Integer page,
 | 
	
		
			
				|  |  |                                          @ApiParam(name = "size", value = "每页大小")
 | 
	
		
			
				|  |  |                                          @RequestParam(value = "size", required = true)Integer size) {
 | 
	
		
			
				|  |  |         return packageService.findPackageService(city,labelCode,labelType,patient,page,size);
 | 
	
		
			
				|  |  |         return packageService.findPackageService(city,saasId,labelCode,labelType,patient,page,size);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -110,26 +113,26 @@ public class PackageServiceEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @PostMapping(value = PatientRequestMapping.SignPackage.signPackageAndFamily)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "绑定家人,签约服务包", notes = "绑定家人,签约服务包")
 | 
	
		
			
				|  |  |     public Envelop signPackageAndFamily(@ApiParam(name = "recordJson", value = "签约实体")
 | 
	
		
			
				|  |  |     public ObjEnvelop<Map<String,Object>> signPackageAndFamily(@ApiParam(name = "recordJson", value = "签约实体")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "recordJson", required = true)String recordJson,
 | 
	
		
			
				|  |  |                                         @ApiParam(name = "patient", value = "申请绑定的居民code")
 | 
	
		
			
				|  |  |                                                                @ApiParam(name = "patient", value = "申请绑定的居民code")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "patient", required = true)String patient,
 | 
	
		
			
				|  |  |                                         @ApiParam(name = "familyName", value = "申请绑定的家人的名称")
 | 
	
		
			
				|  |  |                                                                @ApiParam(name = "familyName", value = "申请绑定的家人的名称")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "familyName", required = false)String familyName,
 | 
	
		
			
				|  |  |                                         @ApiParam(name = "principalNum", value = "医社保号")
 | 
	
		
			
				|  |  |                                                                @ApiParam(name = "principalNum", value = "医社保号")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "principalNum", required = false)String principalNum,
 | 
	
		
			
				|  |  |                                         @ApiParam(name = "idcard", value = "身份证号")
 | 
	
		
			
				|  |  |                                                                @ApiParam(name = "idcard", value = "身份证号")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "idcard", required = false)String idcard,
 | 
	
		
			
				|  |  |                                         @ApiParam(name = "familyMobile", value = "家人的手机号码")
 | 
	
		
			
				|  |  |                                                                @ApiParam(name = "familyMobile", value = "家人的手机号码")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "familyMobile", required = true)String familyMobile,
 | 
	
		
			
				|  |  |                                         @ApiParam(name = "platform", value = "消息平台,1微信端/患者端,2医生APP端")
 | 
	
		
			
				|  |  |                                                                @ApiParam(name = "platform", value = "消息平台,1微信端/患者端,2医生APP端")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "platform", required = true)Integer platform,
 | 
	
		
			
				|  |  |                                         @ApiParam(name = "familyBindRole", value = "1\"配偶\",2\"父亲\",3\"母亲\",4\"公公\",5\"婆婆\",6\"岳父\",7\"岳母\",8\"女婿\",9\"儿媳\",10\"子女\"")
 | 
	
		
			
				|  |  |                                                                @ApiParam(name = "familyBindRole", value = "1\"配偶\",2\"父亲\",3\"母亲\",4\"公公\",5\"婆婆\",6\"岳父\",7\"岳母\",8\"女婿\",9\"儿媳\",10\"子女\"")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "familyBindRole", required = true)Integer familyBindRole,
 | 
	
		
			
				|  |  |                                         @ApiParam(name = "isAdult", value = "0未成年人 1成年人")
 | 
	
		
			
				|  |  |                                                                @ApiParam(name = "isAdult", value = "0未成年人 1成年人")
 | 
	
		
			
				|  |  |                                         @RequestParam(value = "isAdult", required = true)Integer isAdult) throws Exception {
 | 
	
		
			
				|  |  |         ServicePackageSignRecordDO recordDO = toEntity(recordJson, ServicePackageSignRecordDO.class);
 | 
	
		
			
				|  |  |         return packageService.signPackageAndFamily(recordDO,patient,familyMobile,platform,familyBindRole,isAdult,familyName,principalNum,idcard);
 | 
	
		
			
				|  |  |         return success(PatientRequestMapping.SignPackage.api_success,packageService.signPackageAndFamily(recordDO,patient,familyMobile,platform,familyBindRole,isAdult,familyName,principalNum,idcard));
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = PatientRequestMapping.SignPackage.findDoctorById)
 |