parent
ec839b84e7
commit
42d78211b0
@ -0,0 +1,15 @@ |
||||
package com.keyware.htey.entity.user; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Data; |
||||
import lombok.NoArgsConstructor; |
||||
|
||||
@Data |
||||
@NoArgsConstructor |
||||
@AllArgsConstructor |
||||
@TableName("USER_ROLE") |
||||
public class UserRole { |
||||
private String userId; |
||||
private String roleId; |
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.keyware.htey.mybatis.itf; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.keyware.htey.entity.user.User; |
||||
import com.keyware.htey.entity.user.UserRole; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
/** |
||||
* @author daijj8 |
||||
* @version V1.0 |
||||
* @Package com.keyware.htey.mybatis.itf |
||||
* @date 2025/1/14 17:11 |
||||
*/ |
||||
@Mapper |
||||
public interface UserRoleMapper extends BaseMapper<UserRole> { |
||||
int deleteByUserId(String var1); |
||||
} |
@ -1,8 +1,11 @@ |
||||
package com.keyware.htey.service.itf; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.keyware.htey.entity.usersecret.Usersecret; |
||||
|
||||
public interface UsersecretService extends IService<Usersecret> { |
||||
int insertSelective(Usersecret var1); |
||||
void deleteByPrimaryKey(List<String> var1); |
||||
} |
||||
|
@ -0,0 +1,12 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
||||
<mapper namespace="com.keyware.htey.mybatis.itf.UserRoleMapper" > |
||||
<resultMap id="BaseResultMap" type="com.keyware.htey.entity.user.UserRole" > |
||||
<result column="USER_ID" property="userId" jdbcType="VARCHAR" /> |
||||
<result column="ROLE_ID" property="roleId" jdbcType="VARCHAR" /> |
||||
</resultMap> |
||||
|
||||
<delete id="deleteByUserId" parameterType="java.lang.String"> |
||||
delete from USER_ROLE where USER_ID = #{userId,jdbcType=VARCHAR} |
||||
</delete> |
||||
</mapper> |
Loading…
Reference in new issue