周计划和详细 页面优化

This commit is contained in:
sk1551
2020-09-10 17:11:59 +08:00
parent dffbc6a283
commit b451bcce02
2 changed files with 485 additions and 0 deletions

View File

@ -92,6 +92,25 @@ public class ByChildController extends BaseController {
return AjaxResult.success(byChildService.selectByChildById(id));
}
/**
* 获取维护幼儿信息
*/
@GetMapping("/getInfo")
public AjaxResult getInfo_query(ByChild byChild) {
if (schoolCommon.isStringEmpty(byChild.getName())) {
return AjaxResult.error("请输入幼儿姓名");
}
if (schoolCommon.isStringEmpty(byChild.getPhone())) {
return AjaxResult.error("请输入家长联系方式");
}
List<ByChild> list = byChildService.selectByChildList(byChild);
if (list == null || list.size() == 0) {
return AjaxResult.error("未找到该幼儿的信息");
}
return AjaxResult.success(list.get(0));
}
/**
* 新增幼儿信息
*/