智慧保安后台管理-外网-验收版本
tangzy
2021-12-06 cc057177b2fb17aee9a173a6adbabdc578fd74c7
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
35
<?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.modules.experience.mapper.ExperienceMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="experienceResultMap" type="org.springblade.modules.experience.entity.Experience">
        <id column="id" property="id"/>
        <result column="name" property="name"/>
        <result column="post" property="post"/>
        <result column="department" property="department"/>
        <result column="responsibilities" property="responsibilities"/>
        <result column="entryTime" property="entrytime"/>
        <result column="departureTime" property="departuretime"/>
        <result column="leaving" property="leaving"/>
        <result column="cardId" property="cardid"/>
        <result column="companyname" property="companyname"/>
        <result column="securityId" property="securityid"/>
    </resultMap>
 
 
    <select id="selectExperiencePage" resultMap="experienceResultMap">
        select * from sys_experience where securityId=#{experience.securityid}
    </select>
 
 
    <select id="selectExperienceInfo" resultType="java.util.HashMap">
        select * from sys_experience where securityId=#{securityid}
    </select>
 
    <!--根据 cardid 删除行业信息-->
    <delete id="delbyCardId">
        delete from sys_experience where securityId=#{securityid}
    </delete>
 
</mapper>