Files
aida_back/src/main/resources/mapper/primary/AccountMapper.xml

34 lines
1.4 KiB
XML
Raw Normal View History

2024-01-19 16:36:34 +08:00
<?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.ai.da.mapper.primary.AccountMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.ai.da.mapper.primary.entity.Account">
<id column="id" property="id" />
<result column="user_email" property="userEmail" />
<result column="user_name" property="userName" />
<result column="user_password" property="userPassword" />
<result column="create_date" property="createDate" />
</resultMap>
<select id="findByPhoneList" resultType="com.ai.da.mapper.primary.entity.Account">
select id , user_email AS userEmail, user_Name AS userName,
user_password AS userPassword from t_account
where user_Name in
<foreach collection="phoneList" item="phone" open="(" separator="," close=")">
#{phone}
</foreach>
</select>
<select id="findById" resultType="com.ai.da.mapper.primary.entity.Account">
select id ,user_email AS userEmail, user_phone AS userPhone,
user_password AS userPassword from t_account
where id = #{id}
</select>
2024-07-19 15:40:54 +08:00
<update id="toVisitor">
update t_account
2025-02-05 11:22:45 +08:00
set is_trial = 0, credits = 0, system_user = 0
2024-07-19 15:40:54 +08:00
where id = #{id}
</update>
2024-01-19 16:36:34 +08:00
</mapper>