提交 7034d85d authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 2b9ea900
......@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
import com.zrqx.core.exception.BaseException;
import com.zrqx.core.util.bean.BeanUtils;
import com.zrqx.core.util.datatype.ArrayUtils;
import com.zrqx.core.util.datatype.UUIDUtil;
import com.zrqx.core.util.page.PageInfo;
import com.zrqx.core.util.page.PageParam;
......@@ -79,10 +80,12 @@ public class DepartmentController {
}
}
// 更新权限
ModulepowerToDepartmentForm f = new ModulepowerToDepartmentForm();
f.setDepartmentId(entity.getId());
f.setMpIdList(entity.getMpIdList());
departmentSerivce.saveModulepowerToDepartment(f);
if(ArrayUtils.isNotEmpty(entity.getMpIdList())){
ModulepowerToDepartmentForm f = new ModulepowerToDepartmentForm();
f.setDepartmentId(entity.getId());
f.setMpIdList(entity.getMpIdList());
departmentSerivce.saveModulepowerToDepartment(f);
}
return CallBack.success(true);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论