|
@ -9,10 +9,7 @@ import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@ -20,6 +17,7 @@ import java.util.Map;
|
|
* 智业服务接口
|
|
* 智业服务接口
|
|
* */
|
|
* */
|
|
@Controller
|
|
@Controller
|
|
|
|
@RestController
|
|
@RequestMapping(value = "/third/sign/")
|
|
@RequestMapping(value = "/third/sign/")
|
|
@Api(description = "基卫签约服务接口")
|
|
@Api(description = "基卫签约服务接口")
|
|
public class SignController {
|
|
public class SignController {
|
|
@ -33,7 +31,6 @@ public class SignController {
|
|
/******************************* 签约接口 ********************************************************/
|
|
/******************************* 签约接口 ********************************************************/
|
|
|
|
|
|
@RequestMapping(value = "CheckSignFamily",method = RequestMethod.POST)
|
|
@RequestMapping(value = "CheckSignFamily",method = RequestMethod.POST)
|
|
@ResponseBody
|
|
|
|
@ApiOperation("查询是否已签约")
|
|
@ApiOperation("查询是否已签约")
|
|
public Result checkSignFamily(
|
|
public Result checkSignFamily(
|
|
@ApiParam(name="idcard",value="患者身份证",defaultValue = "350821201112240026")
|
|
@ApiParam(name="idcard",value="患者身份证",defaultValue = "350821201112240026")
|
|
@ -53,4 +50,27 @@ public class SignController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@RequestMapping(value = "getSickFamilyDoctorSignLimit",method = RequestMethod.POST)
|
|
|
|
@ApiOperation("查询家庭医生签约人数上限接口")
|
|
|
|
public Result getSickFamilyDoctorSignLimit(
|
|
|
|
@ApiParam(name="jwTeamCode",value="智业行政团队code",defaultValue = "44")
|
|
|
|
@RequestParam(value="jwTeamCode",required = true) String jwTeamCode){
|
|
|
|
try {
|
|
|
|
String response = signZYService.getSickFamilyDoctorSignLimit(jwTeamCode);
|
|
|
|
return Result.success("查询签约成功!",response);
|
|
|
|
} catch (Exception ex) {
|
|
|
|
ex.printStackTrace();
|
|
|
|
if(ex instanceof ApiException)
|
|
|
|
{
|
|
|
|
ApiException apiEx = (ApiException) ex;
|
|
|
|
return Result.error(apiEx.errorCode(),ex.getMessage());
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
return Result.error(ex.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|