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
| <?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.yuanchu.mom.mapper.TechnologyTemplateMapper">
| <update id="delAllTech">
| update mom_ocean.technology_template
| set state=0
| where id in (${ids})
| </update>
| <select id="selectAllTechTem" resultType="java.util.Map">
| select id,
| name,
| father,
| element,
| device_group
| from mom_ocean.technology_template
| where state=1
| <if test="type!=null">
| and type=#{type}
| </if>
| <if test="name!=null and name!=''">
| and name like concat('%',#{name},'%')
| </if>
| <if test="father!=null and father!=''">
| and father like concat('%',#{father},'%')
| </if>
| </select>
| </mapper>
|
|