@ -86,6 +86,9 @@ public class ChildInfoService extends BaseService {
*/
public ChildInfoVO getChildInfoVOByCode(String code) throws Exception{
ChildInfo c = childInfoDao.findByCode(code);
if(c == null){
throw new Exception("无法找到该新生儿信息!");
}
ChildInfoVO vo = new ChildInfoVO();
vo.setCode(c.getCode());
@ -544,7 +544,7 @@ public class FamilyMemberController extends WeixinBaseController {
return write(200,"查询成功!","data",childInfo);
} catch (Exception e) {
error(e);
return error(-1, "查询失败!");
return error(-1, e.getMessage());