Commit 356e0ea1 by ilal

提交

parent 03a59dc9
......@@ -560,18 +560,22 @@ public class QyzxController {
@PostMapping(value = "/menustructure")
@ApiOperation(value = "菜单结构", httpMethod = "POST", notes = "")
public Result<Object> menustructure(@CurrentUser UserBean userBean,@RequestBody QyzxAdminMenu qymu) {
public Result<Object> menustructure(@CurrentUser UserBean userBean,@RequestBody List<QyzxAdminMenu> qymu) {
QyzxAdminMenu.builder().build().delete(new QueryWrapper<QyzxAdminMenu>().lambda().eq(QyzxAdminMenu::getOrgCode, userBean.getOrgCode()));
for(QyzxAdminMenu me : qymu) {
QyzxAdminMenu meu = QyzxAdminMenu.builder().build();
meu.setMenuCode(qymu.getMenuCode());
meu.setMenuName(qymu.getMenuName());
meu.setSortNumber(qymu.getSortNumber());
meu.setMenuCode(me.getMenuCode());
meu.setMenuName(me.getMenuName());
meu.setSortNumber(me.getSortNumber());
meu.setOrgCode(userBean.getOrgCode());
meu.setAddtime(new Date().getTime());
meu.insert();
}
return ResultUtil.data(meu, "修改成功");
return ResultUtil.data(qymu, "修改成功");
}
......
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