|
@ -251,7 +251,7 @@ public class GuahaoController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/imm/GetChildrenInfo",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("计免:获取儿童信息")
|
|
|
@ApiOperation("计免:获取免疫接种儿童信息")
|
|
|
public Result GetChildrenInfo(@ApiParam(name="barCode",value="条形编码",defaultValue = "0052248552")
|
|
|
@RequestParam String barCode)
|
|
|
{
|
|
@ -265,4 +265,161 @@ public class GuahaoController {
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/imm/GetOrgImmuneList",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("计免:获取免疫接种机构列表")
|
|
|
public Result GetOrgImmuneList(@ApiParam(name="Condition",value="",defaultValue = "")
|
|
|
@RequestParam String Condition)
|
|
|
{
|
|
|
try {
|
|
|
|
|
|
String data = guahaoService.GetOrgImmuneList(Condition);
|
|
|
|
|
|
return Result.success("获取免疫接种机构列表!",data);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/imm/GetOrgNumberList",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("计免:获取免疫接种号源")
|
|
|
public Result GetOrgNumberList(@ApiParam(name="orgId",value="机构编码",defaultValue = "")
|
|
|
@RequestParam String orgId,
|
|
|
@ApiParam(name="ScheduleId",value="排班ID",defaultValue = "")
|
|
|
@RequestParam String ScheduleId)
|
|
|
{
|
|
|
try {
|
|
|
|
|
|
String data = guahaoService.GetOrgNumberList(orgId,ScheduleId);
|
|
|
|
|
|
return Result.success("获取免疫接种号源!",data);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/imm/GetOrgScheduleList",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("计免:获取免疫接种排班信息")
|
|
|
public Result GetOrgScheduleList(@ApiParam(name="OrgCode",value="机构编码",defaultValue = "")
|
|
|
@RequestParam String OrgCode,
|
|
|
@ApiParam(name="strStart",value="开始日期",defaultValue = "")
|
|
|
@RequestParam String strStart,
|
|
|
@ApiParam(name="strEnd",value="结束日期",defaultValue = "")
|
|
|
@RequestParam String strEnd)
|
|
|
{
|
|
|
try {
|
|
|
|
|
|
String data = guahaoService.GetOrgScheduleList(OrgCode,strStart,strEnd);
|
|
|
|
|
|
return Result.success("获取免疫接种排班信息!",data);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/imm/GetOrgScheduleAndNumberList",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("计免:获取免疫接种排班信息和号源信息")
|
|
|
public Result GetOrgScheduleAndNumberList(@ApiParam(name="OrgCode",value="条形编码",defaultValue = "")
|
|
|
@RequestParam String OrgCode)
|
|
|
{
|
|
|
try {
|
|
|
|
|
|
String data = guahaoService.GetOrgScheduleAndNumberList(OrgCode);
|
|
|
|
|
|
return Result.success("获取免疫接种排班信息和号源信息!",data);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/imm/GetResImmuneListWithBarCode",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("计免:根据条形码获取预约记录")
|
|
|
public Result GetResImmuneListWithBarCode(@ApiParam(name="BarCode",value="条形编码",defaultValue = "")
|
|
|
@RequestParam String BarCode)
|
|
|
{
|
|
|
try {
|
|
|
|
|
|
String data = guahaoService.GetResImmuneListWithBarCode(BarCode);
|
|
|
|
|
|
return Result.success("根据条形码获取预约记录!",data);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/imm/RegisterImmune",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("计免:免疫接种确认预约")
|
|
|
public Result RegisterImmune(@ApiParam(name="BarCode",value="条形编码",defaultValue = "")
|
|
|
@RequestParam String BarCode,
|
|
|
@ApiParam(name="OrgCode",value="机构编码",defaultValue = "")
|
|
|
@RequestParam String OrgCode,
|
|
|
@ApiParam(name="SectionType",value="坐诊类型",defaultValue = "")
|
|
|
@RequestParam String SectionType,
|
|
|
@ApiParam(name="strStart",value="日期:第一次坐诊开始日期",defaultValue = "")
|
|
|
@RequestParam String strStart,
|
|
|
@ApiParam(name="SSID",value="市民社保卡号",defaultValue = "")
|
|
|
@RequestParam String SSID,
|
|
|
@ApiParam(name="PatientName",value="儿童姓名",defaultValue = "")
|
|
|
@RequestParam String PatientName,
|
|
|
@ApiParam(name="PatientID",value="儿童身份证号",defaultValue = "")
|
|
|
@RequestParam String PatientID,
|
|
|
@ApiParam(name="PatientPhone",value="市民手机号",defaultValue = "")
|
|
|
@RequestParam String PatientPhone)
|
|
|
{
|
|
|
try {
|
|
|
|
|
|
String data = guahaoService.RegisterImmune(BarCode,OrgCode,SectionType,strStart,SSID,PatientName,PatientID,PatientPhone);
|
|
|
|
|
|
return Result.success("免疫接种确认预约成功!",data);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/imm/UnResRegisterImmune",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("计免:免疫接种取消预约")
|
|
|
public Result UnResRegisterImmune(@ApiParam(name="BarCode",value="条形编码",defaultValue = "")
|
|
|
@RequestParam String BarCode,
|
|
|
@ApiParam(name="OrgCode",value="机构编码",defaultValue = "")
|
|
|
@RequestParam String OrgCode,
|
|
|
@ApiParam(name="SectionType",value="坐诊类型",defaultValue = "")
|
|
|
@RequestParam String SectionType,
|
|
|
@ApiParam(name="strStart",value="日期:第一次坐诊开始日期",defaultValue = "")
|
|
|
@RequestParam String strStart,
|
|
|
@ApiParam(name="SSID",value="市民社保卡号",defaultValue = "")
|
|
|
@RequestParam String SSID,
|
|
|
@ApiParam(name="PatientName",value="儿童姓名",defaultValue = "")
|
|
|
@RequestParam String PatientName,
|
|
|
@ApiParam(name="PatientID",value="儿童身份证号",defaultValue = "")
|
|
|
@RequestParam String PatientID,
|
|
|
@ApiParam(name="PatientPhone",value="市民手机号",defaultValue = "")
|
|
|
@RequestParam String PatientPhone)
|
|
|
{
|
|
|
try {
|
|
|
|
|
|
String data = guahaoService.UnResRegisterImmune(BarCode,OrgCode,SectionType,strStart,SSID,PatientName,PatientID,PatientPhone);
|
|
|
|
|
|
return Result.success("免疫接种取消预约成功!",data);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* =============================计免预约挂号相关接口======================================END
|
|
|
*/
|
|
|
}
|