| 
					
				 | 
			
			
				@ -43,8 +43,8 @@ public class WlyyPatientExpressageAddrEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "jsonData", value = "Json数据", required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam String jsonData) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        StringBuilder log = new StringBuilder(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        WlyyPatientExpressageAddrDO addrDO = wlyyPatientExpressageAddrService.createAddr(jsonData,log); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(log.toString())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        WlyyPatientExpressageAddrDO addrDO = wlyyPatientExpressageAddrService.createAddr(jsonData, log); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!StringUtils.isEmpty(log.toString())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return failed(log.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success(addrDO); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -64,9 +64,9 @@ public class WlyyPatientExpressageAddrEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public Envelop setAddrDefault( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "patient", value = "居民code", required = true) @RequestParam(value = "patient") String patient, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "addrId", value = "当前地址id", required = true) @RequestParam(value = "addrId") String addrId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        StringBuilder error = new StringBuilder(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        wlyyPatientExpressageAddrService.setAddrDefault(patient,addrId,error); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(!StringUtils.isEmpty(error.toString())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        StringBuilder error = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        wlyyPatientExpressageAddrService.setAddrDefault(patient, addrId, error); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (null != error && !StringUtils.isEmpty(error.toString())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return failed("设置默认地址失败:" + error.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success("设置默认地址成功"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -93,24 +93,6 @@ public class WlyyPatientExpressageAddrEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success(wlyyPatientExpressageAddr, WlyyPatientExpressageAddrVO.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = BaseHospitalRequestMapping.WlyyPatientExpressageAddr.PAGE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "获取分页") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public PageEnvelop<WlyyPatientExpressageAddrVO> page( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "fields", required = false) String fields, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "filters", value = "过滤器,为空检索所有条件") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "filters", required = false) String filters, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "sorts", value = "排序,规则参见说明文档") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "sorts", required = false) String sorts, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "page") int page, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "size", value = "页码", required = true, defaultValue = "15") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "size") int size) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyPatientExpressageAddrDO> wlyyPatientExpressageAddrs = wlyyPatientExpressageAddrService.search(fields, filters, sorts, page, size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        int count = (int) wlyyPatientExpressageAddrService.getCount(filters); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success(wlyyPatientExpressageAddrs, count, page, size, WlyyPatientExpressageAddrVO.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = BaseHospitalRequestMapping.WlyyPatientExpressageAddr.LIST) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "获取列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ListEnvelop<WlyyPatientExpressageAddrVO> list( 
			 |