Search in sources :

Example 6 with UserBindWorkspaceModel

use of io.jpom.model.data.UserBindWorkspaceModel in project Jpom by dromara.

the class UserBindWorkspaceService method deleteByUserId.

/**
 * 删除
 *
 * @param userId 用户ID
 */
public void deleteByUserId(String userId) {
    UserBindWorkspaceModel bindWorkspaceModel = new UserBindWorkspaceModel();
    bindWorkspaceModel.setUserId(userId);
    Entity where = super.dataBeanToEntity(bindWorkspaceModel);
    super.del(where);
}
Also used : Entity(cn.hutool.db.Entity) UserBindWorkspaceModel(io.jpom.model.data.UserBindWorkspaceModel)

Aggregations

UserBindWorkspaceModel (io.jpom.model.data.UserBindWorkspaceModel)6 Entity (cn.hutool.db.Entity)2 StrUtil (cn.hutool.core.util.StrUtil)1 UserModel (io.jpom.model.data.UserModel)1 WorkspaceModel (io.jpom.model.data.WorkspaceModel)1 MethodFeature (io.jpom.permission.MethodFeature)1 BaseDbService (io.jpom.service.h2db.BaseDbService)1 WorkspaceService (io.jpom.service.system.WorkspaceService)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Collectors (java.util.stream.Collectors)1 Service (org.springframework.stereotype.Service)1 Assert (org.springframework.util.Assert)1