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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| <?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.gkhy.hazmat.system.mapper.HzSecientificMapper">
|
| <select id="selectSecientificBatch" resultType="com.gkhy.hazmat.system.domain.vo.HzSecientificVo">
| SELECT
| hs.id,
| hs.secientific_name,
| hs.alias_name,
| hs.cas,
| hs.risk_type,
| hs.remark,
| hs.peculiarity_number,
| hs.create_by,
| hs.create_time,
| hs.update_by,
| hs.update_time,
| hs.del_flag,
| hp.peculiarity_type
| FROM
| hz_secientific hs
| LEFT JOIN hz_peculiarity hp ON hs.peculiarity_number = hp.peculiarity_number
| <where>
| <if test="secientificName!=null and secientificName!=''">
| and secientific_name =#{secientificName}
| </if>
| and hs.del_flag = 0
| </where>
| </select>
| <select id="selectBySecientificName" resultType="com.gkhy.hazmat.system.domain.vo.HzSecientificVo">
| SELECT
| hs.id,
| hs.secientific_name,
| hs.alias_name,
| hs.cas,
| hs.risk_type,
| hs.remark,
| hs.peculiarity_number,
| hs.create_by,
| hs.create_time,
| hs.update_by,
| hs.update_time,
| hs.del_flag,
| hp.peculiarity_type
| FROM
| hz_secientific hs
| LEFT JOIN hz_peculiarity hp ON hs.peculiarity_number = hp.peculiarity_number
| where secientific_name = #{name} and hs.del_flag = 0
| </select>
| </mapper>
|
|