Commit e2a3f54b by ilal Committed by chenzg

提交

parent ceda8764
......@@ -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()));
QyzxAdminMenu meu = QyzxAdminMenu.builder().build();
meu.setMenuCode(qymu.getMenuCode());
meu.setMenuName(qymu.getMenuName());
meu.setSortNumber(qymu.getSortNumber());
meu.setOrgCode(userBean.getOrgCode());
meu.setAddtime(new Date().getTime());
for(QyzxAdminMenu me : qymu) {
QyzxAdminMenu meu = QyzxAdminMenu.builder().build();
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