|
@ -23,84 +23,84 @@ import java.util.Map;
|
|
|
@Api(description = "基卫签约服务接口")
|
|
|
public class SignController {
|
|
|
|
|
|
@Autowired
|
|
|
ZysoftService zysoftService;
|
|
|
@Autowired
|
|
|
ZysoftService zysoftService;
|
|
|
|
|
|
@Autowired
|
|
|
private SignZYService signZYService;
|
|
|
@Autowired
|
|
|
private SignZYService signZYService;
|
|
|
|
|
|
/******************************* 签约接口 ********************************************************/
|
|
|
/******************************* 签约接口 ********************************************************/
|
|
|
|
|
|
@RequestMapping(value = "CheckSignFamily",method = RequestMethod.POST)
|
|
|
@ApiOperation("查询是否已签约")
|
|
|
public Result checkSignFamily(
|
|
|
@ApiParam(name="idcard",value="患者身份证",defaultValue = "350821201112240026")
|
|
|
@RequestParam(value="idcard",required = true) String idcard){
|
|
|
try {
|
|
|
Map<String,String> response = signZYService.checkSignFamily(idcard);
|
|
|
return Result.success("查询签约成功!",response);
|
|
|
} catch (Exception ex) {
|
|
|
if(ex instanceof ApiException)
|
|
|
{
|
|
|
ApiException apiEx = (ApiException) ex;
|
|
|
return Result.error(apiEx.errorCode(),ex.getMessage());
|
|
|
}
|
|
|
else{
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@RequestMapping(value = "CheckSignFamily",method = RequestMethod.POST)
|
|
|
@ApiOperation("查询是否已签约")
|
|
|
public Result checkSignFamily(
|
|
|
@ApiParam(name="idcard",value="患者身份证",defaultValue = "350821201112240026")
|
|
|
@RequestParam(value="idcard",required = true) String idcard){
|
|
|
try {
|
|
|
Map<String,String> response = signZYService.checkSignFamily(idcard);
|
|
|
return Result.success("查询签约成功!",response);
|
|
|
} catch (Exception ex) {
|
|
|
if(ex instanceof ApiException)
|
|
|
{
|
|
|
ApiException apiEx = (ApiException) ex;
|
|
|
return Result.error(apiEx.errorCode(),ex.getMessage());
|
|
|
}
|
|
|
else{
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@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());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@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());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "getSickFamilyDoctorSpecialistControl",method = RequestMethod.POST)
|
|
|
@ApiOperation("查询家签慢病患者定标情况接口")
|
|
|
public Result getSickFamilyDoctorSpecialistControl(
|
|
|
@ApiParam(name="TIME_START",value="修改的开始时间",defaultValue = "2017-6-6 00:00:00")
|
|
|
@RequestParam(value="TIME_START",required = false) String TIME_START,
|
|
|
@ApiParam(name="TIME_END",value="修改的开始时间",defaultValue = "2017-6-7 23:59:59")
|
|
|
@RequestParam(value="TIME_END",required = false) String TIME_END,
|
|
|
@ApiParam(name="IDENTITY_CARD_NO",value="身份证号",defaultValue = "360502194503120013")
|
|
|
@RequestParam(value="IDENTITY_CARD_NO",required = false) String IDENTITY_CARD_NO){
|
|
|
try {
|
|
|
String response = "";
|
|
|
if(StringUtils.isBlank(IDENTITY_CARD_NO)){
|
|
|
response = signZYService.getSickFamilyDoctorSpecialistControl(TIME_START,TIME_END);
|
|
|
}else{
|
|
|
response = signZYService.getSickFamilyDoctorSpecialistControlByIdcard(IDENTITY_CARD_NO);
|
|
|
}
|
|
|
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());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@RequestMapping(value = "getSickFamilyDoctorSpecialistControl",method = RequestMethod.POST)
|
|
|
@ApiOperation("查询家签慢病患者定标情况接口")
|
|
|
public Result getSickFamilyDoctorSpecialistControl(
|
|
|
@ApiParam(name="TIME_START",value="修改的开始时间",defaultValue = "2017-6-6 00:00:00")
|
|
|
@RequestParam(value="TIME_START",required = false) String TIME_START,
|
|
|
@ApiParam(name="TIME_END",value="修改的开始时间",defaultValue = "2017-6-7 23:59:59")
|
|
|
@RequestParam(value="TIME_END",required = false) String TIME_END,
|
|
|
@ApiParam(name="IDENTITY_CARD_NO",value="身份证号",defaultValue = "360502194503120013")
|
|
|
@RequestParam(value="IDENTITY_CARD_NO",required = false) String IDENTITY_CARD_NO){
|
|
|
try {
|
|
|
String response = "";
|
|
|
if(StringUtils.isBlank(IDENTITY_CARD_NO)){
|
|
|
response = signZYService.getSickFamilyDoctorSpecialistControl(TIME_START,TIME_END);
|
|
|
}else{
|
|
|
response = signZYService.getSickFamilyDoctorSpecialistControlByIdcard(IDENTITY_CARD_NO);
|
|
|
}
|
|
|
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());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|