传了三个参数
name=技术部
seq=1
remark=技术部很重要
get请求能走通会乱码,post请求失败
@RequestMapping("/sys/dept")
@Slf4j
public class SysDeptController {
@Resource
private SysDeptService sysDeptService;
@Resource
private SysTreeService sysTreeService;
@RequestMapping("/save.json")
@ResponseBody
public JsonData saveDept(DeptParam deptParam){
sysDeptService.save(deptParam);
log.info("新增部门"+deptParam.getName());
return JsonData.success();
}