记得上下班打卡 | git大法好,push需谨慎

Commit 45e66bb6 authored by GaoHu's avatar GaoHu

exit

parent 19efe38b
......@@ -61,4 +61,11 @@ public class SmileSchoolController {
public AjaxResult updateSchoolById(@RequestBody SmileSchool smileSchool){
return iSmileSchoolService.updateSchoolById(smileSchool);
}
@PostMapping("/del")
@ApiOperation("根据id删除学校")
@ResponseBody
public AjaxResult del(@RequestParam(name = "id", required = true)Long id){
return iSmileSchoolService.del(id);
}
}
......@@ -24,4 +24,6 @@ public interface ISmileSchoolService extends IService<SmileSchool> {
AjaxResult create(SmileSchool smileSchool);
AjaxResult updateSchoolById(SmileSchool smileSchool);
AjaxResult del(Long id);
}
......@@ -97,6 +97,13 @@ public class SmileSchoolServiceImpl extends ServiceImpl<SmileSchoolMapper, Smile
return AjaxResult.error();
}
@Override
public AjaxResult del(Long id) {
smileUserMapper.deleteById(id);
return AjaxResult.success();
}
private void updateSchoolRedis() {
//查询20条学校数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment