监护人维护幼儿信息
This commit is contained in:
@ -105,12 +105,13 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.antMatchers("/benyi/experience/add").anonymous()//半日入园体验申请
|
||||
.antMatchers("/benyi/experience/getInfo**").anonymous()//半日入园体验明细
|
||||
.antMatchers("/benyi/halfdayplan/getInfo/**").anonymous()//半日入园内容
|
||||
.antMatchers("/benyi/child/add").anonymous()//幼儿维护申请
|
||||
.antMatchers("/benyi/child/edit**").anonymous()//幼儿维护修改
|
||||
// .antMatchers("/benyi/child/add").anonymous()//幼儿维护申请
|
||||
.antMatchers("/benyi/child/edit").anonymous()//幼儿维护修改
|
||||
.antMatchers("/benyi/child/getChild_query").anonymous()//幼儿维护申请明细
|
||||
.antMatchers("/benyi/contactpeople/add").anonymous()//家长维护申请
|
||||
.antMatchers("/benyi/contactpeople/edit**").anonymous()//家长维护修改
|
||||
// .antMatchers("/benyi/contactpeople/add").anonymous()//家长维护申请
|
||||
.antMatchers("/benyi/contactpeople/edit").anonymous()//家长维护修改
|
||||
.antMatchers("/benyi/contactpeople/getInfo**").anonymous()//监护人维护明细
|
||||
.antMatchers("/benyi/child/getInfo").anonymous()//幼儿信息维护明细
|
||||
|
||||
// 除上面外的所有请求全部需要鉴权认证
|
||||
.anyRequest().authenticated()
|
||||
|
@ -118,6 +118,19 @@ public class ByChildContactpeopleController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult editContactpeople(@RequestBody ByChildContactpeople byChildContactpeople) {
|
||||
//如果存在,就更新,否则删除
|
||||
ByChildContactpeople byChildContactpeoplenew = new ByChildContactpeople();
|
||||
byChildContactpeoplenew.setChildid(byChildContactpeople.getChildid());
|
||||
List<ByChildContactpeople> list = byChildContactpeopleService.selectByChildContactpeopleList(byChildContactpeoplenew);
|
||||
if (list != null && list.size() > 0) {
|
||||
return toAjax(byChildContactpeopleService.updateByChildContactpeople(byChildContactpeople));
|
||||
} else {
|
||||
return toAjax(byChildContactpeopleService.insertByChildContactpeople(byChildContactpeople));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿紧急情况联系人
|
||||
*/
|
||||
|
@ -240,6 +240,11 @@ public class ByChildController extends BaseController {
|
||||
return toAjax(byChildService.updateByChild(byChild));
|
||||
}
|
||||
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult editchild(@RequestBody ByChild byChild) {
|
||||
return toAjax(byChildService.updateByChild(byChild));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿信息
|
||||
*/
|
||||
|
Reference in New Issue
Block a user