|
@ -96,14 +96,13 @@ public class DoctorImmController extends BaseController {
|
|
|
if (immrs != null) {
|
|
|
for (Map<String, Object> map : immrs) {
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("child_code", map.get("child_code"));//儿童编码
|
|
|
json.put("name", map.get("name"));//儿童姓名
|
|
|
json.put("photo", map.get("photo"));//头像
|
|
|
json.put("idcard", map.get("idcard"));//新生儿身份证号
|
|
|
json.put("barcode", map.get("barcode"));//新生儿条码
|
|
|
json.put("family_code", map.get("family_code"));//家人CODE
|
|
|
json.put("relation", map.get("relation"));//---1父亲 2母亲 3老公 4老婆 5儿子 6女儿 7其他
|
|
|
json.put("del", map.get("del"));//0为有效,1为删除状态
|
|
|
json.put("family_name", map.get("family_name"));//关联居民
|
|
|
json.put("child_name", map.get("child_name"));//儿童姓名
|
|
|
json.put("birthday", map.get("birthday"));//儿童生日
|
|
|
json.put("ymmc", map.get("ymmc"));//疫苗名称
|
|
|
json.put("ymkc", map.get("ymkc"));//true:可约,false:不可约
|
|
|
json.put("alert_tag", map.get("alert_tag"));//0待提醒,1已提醒
|
|
|
json.put("barcode", map.get("barcode"));//儿童免疫条码
|
|
|
jsonArray.put(json);
|
|
|
}
|
|
|
}
|
|
@ -129,8 +128,8 @@ public class DoctorImmController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/alertImmVacclinByPatient", method = RequestMethod.POST)
|
|
|
@ApiOperation(value = "医生提醒单个居民疫苗接种")
|
|
|
public String alertImmVacclinByPatient(@ApiParam(name = "code", value = "待接种记录CODE", defaultValue = "")
|
|
|
@RequestParam(value = "待接种记录CODE", required = true) String code){
|
|
|
public String alertImmVacclinByPatient(@ApiParam(name = "barcode", value = "儿童免疫条码", defaultValue = "")
|
|
|
@RequestParam(value = "barcode", required = true) String barcode){
|
|
|
try {
|
|
|
// TODO: 2018/6/21
|
|
|
return write(200, "请求成功");
|
|
@ -143,7 +142,7 @@ public class DoctorImmController extends BaseController {
|
|
|
@RequestMapping(value = "/getPatientImmVacclin", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "根据儿童免疫条码获取待接种疫苗")
|
|
|
public String getPatientImmVacclin(@ApiParam(name = "barcode", value = "儿童免疫编码", defaultValue = "")
|
|
|
@RequestParam(value = "儿童免疫编码", required = true) String barcode){
|
|
|
@RequestParam(value = "barcode", required = true) String barcode){
|
|
|
try {
|
|
|
ChildImmuneVaccin childImmuneVaccin = childFamilyImmuneService.getChildImmuneVaccinByBarcode(barcode);
|
|
|
return write(200, "请求成功","data",childImmuneVaccin);
|