|  | @ -1,9 +1,7 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.hospital.endpoint.internet;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.org.BaseOrgDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.internet.service.InternetService;
 | 
	
		
			
				|  |  | import com.yihu.jw.org.service.BaseOrgInfoService;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.ObjEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
 | 
	
	
		
			
				|  | @ -30,9 +28,6 @@ public class InternetController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private InternetService internetService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private BaseOrgInfoService baseOrgInfoService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @PostMapping(value = "/upNsUserToken")
 | 
	
		
			
				|  |  |     @ApiOperation(value = "2.1 获取监管平台token数据")
 | 
	
	
		
			
				|  | @ -55,14 +50,11 @@ public class InternetController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @PostMapping(value = "/upNsOrganBas")
 | 
	
		
			
				|  |  |     @ApiOperation(value = "2.2 医院基本信息")
 | 
	
		
			
				|  |  |     public ObjEnvelop upNsOrganBas(
 | 
	
		
			
				|  |  |             @ApiParam(name = "orgCode", value = "机构编码 350211A1002", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(value = "orgCode") String orgCode)throws Exception {
 | 
	
		
			
				|  |  |     public ObjEnvelop upNsOrganBas()throws Exception {
 | 
	
		
			
				|  |  |         ObjEnvelop env = new ObjEnvelop();
 | 
	
		
			
				|  |  |         Map map = new HashMap();
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             BaseOrgDO baseOrgDO = baseOrgInfoService.getBaseOrgByCode(orgCode);
 | 
	
		
			
				|  |  |             String res =  internetService.upNsOrganBas(baseOrgDO);
 | 
	
		
			
				|  |  |             String res =  internetService.upNsOrganBas();
 | 
	
		
			
				|  |  |             JSONObject resJson = (JSONObject) JSONObject.parse(res);
 | 
	
		
			
				|  |  |             if("200".equals(resJson.get("msg").toString())) {
 | 
	
		
			
				|  |  |                 return ObjEnvelop.getSuccess("医院信息更新成功!",res);
 |