Commit e2a3f54b by ilal Committed by chenzg

提交

parent ceda8764
...@@ -560,18 +560,22 @@ public class QyzxController { ...@@ -560,18 +560,22 @@ public class QyzxController {
@PostMapping(value = "/menustructure") @PostMapping(value = "/menustructure")
@ApiOperation(value = "菜单结构", httpMethod = "POST", notes = "") @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())); QyzxAdminMenu.builder().build().delete(new QueryWrapper<QyzxAdminMenu>().lambda().eq(QyzxAdminMenu::getOrgCode, userBean.getOrgCode()));
QyzxAdminMenu meu = QyzxAdminMenu.builder().build(); for(QyzxAdminMenu me : qymu) {
meu.setMenuCode(qymu.getMenuCode()); QyzxAdminMenu meu = QyzxAdminMenu.builder().build();
meu.setMenuName(qymu.getMenuName()); meu.setMenuCode(me.getMenuCode());
meu.setSortNumber(qymu.getSortNumber()); meu.setMenuName(me.getMenuName());
meu.setOrgCode(userBean.getOrgCode()); meu.setSortNumber(me.getSortNumber());
meu.setAddtime(new Date().getTime()); 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