南昌市物联网技防平台-学校版后台
zengh
2021-06-03 723946c6b272e5aa4c7ec110ff1395f6c2b23e89
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
29
30
31
32
33
34
<?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="org.springblade.jfpt.zc.mapper.ZcMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="zcResultMap" type="org.springblade.jfpt.zc.entity.Zc">
        <id column="id" property="id"/>
        <result column="username" property="username"/>
        <result column="password" property="password"/>
        <result column="sname" property="sname"/>
        <result column="sex" property="sex"/>
        <result column="phone" property="phone"/>
        <result column="zctime" property="zctime"/>
        <result column="type" property="type"/>
        <result column="deptid" property="deptid"/>
        <result column="parentId" property="parentId"/>
    </resultMap>
 
 
    <select id="selectZcPage" resultMap="zcResultMap">
        select * from act_zc where is_deleted = 0
    </select>
 
 
    <!--注册新增-->
   <insert id="inster">
       insert  into act_zc(username,password,sname,sex,phone,zctime,deptid) values(#{username},#{password},#{sname},#{sex},#{phone},#{zctime},#{deptid})
   </insert>
 
    <select id="selectType" resultType="String">
        select type from act_zc where username=#{param1}
    </select>
 
</mapper>