whyclxw
2025-05-14 d8e2cd27eed45224faecb07ca45be69bf78611af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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.whyc.mapper.BaojigroupUsrMapper">
 
    <delete id="deleteUserList">
        <foreach collection="list" item="item" separator=";" >
            delete from db_user.tb_baojigroup_usr where baoji_id = #{item.baojiId} and uid = #{item.uid}
        </foreach>
    </delete>
    <select id="getALlUsrByBjId" resultType="com.whyc.pojo.db_user.BaojigroupUsr">
        select tb_baojigroup_usr.*,tb_user_inf.uname
        from db_user.tb_baojigroup_usr,db_user.tb_user_inf
        where tb_baojigroup_usr.uid=tb_user_inf.uid
        and   baoji_id = #{id}
    </select>
    <select id="getUserList" resultType="com.whyc.pojo.db_user.User">
        select u.uid,u.uname from db_user.tb_baojigroup_usr bu,db_user.tb_user_inf u
        where bu.uid = u.uid
          and bu.baoji_id = #{id}
          and u.uid>100
    </select>
    <select id="getGroupFlag" resultType="java.lang.Integer">
        select b.team_flag from db_user.tb_baojigroup_usr bu,db_user.tb_baojigroup b
        where bu.baoji_group_id = b.baoji_group_id
          and b.team_flag = 1
          and bu.uid = #{uid} limit 1
    </select>
</mapper>