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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
| <?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="cn.gistack.sm.sjztdw.mapper.DwsResFormDiMapper">
|
| <insert id="save" parameterType="cn.gistack.sm.sjztdw.entity.DwsResFormDi">
| INSERT INTO SJZT_DW."dws_res_form_di"
| (
| "city_nm",
| "city_cd",
| "county_nm",
| "county_cd",
| "town_nm",
| "town_cd",
| "res_nm",
| "res_cd",
| "res_reg_cd",
| "ch",
| "dt",
| "drp",
| "rz",
| "low_z",
| "sy_value",
| "sl_value"
| )
| VALUES
| (
| #{res.cityName},
| #{res.cityCode},
| #{res.countyName},
| #{res.countyCode},
| #{res.townName},
| #{res.townCode},
| #{res.resName},
| #{res.resGuid},
| #{res.resRegCode},
| #{ch},
| #{excel.monitorDate},
| #{excel.drp,jdbcType=VARCHAR},
| #{excel.rz,jdbcType=VARCHAR},
| #{excel.lowZ,jdbcType=VARCHAR},
| #{excel.avgValue,jdbcType=VARCHAR},
| #{excel.avgSpqnValue,jdbcType=VARCHAR}
| )
|
| </insert>
| <update id="edit">
| UPDATE SJZT_DW."dws_res_form_di"
| SET
| "drp" = #{entity.drp,jdbcType=VARCHAR},
| "rz" = #{entity.rz,jdbcType=VARCHAR},
| "low_z" = #{entity.lowZ,jdbcType=VARCHAR},
| "sy_value" = #{entity.avgValue,jdbcType=VARCHAR},
| "sl_value" = #{entity.avgSpqnValue,jdbcType=VARCHAR}
| WHERE
| "res_cd" = #{entity.resCd}
| AND "dt" = #{entity.monitorDate}
| AND "ch" = #{entity.ch}
| </update>
| <update id="updateCustomize">
| UPDATE SJZT_DW."dws_res_form_di"
| SET
| "drp" = #{excel.drp},
| "rz" = #{excel.rz},
| "low_z" = #{excel.lowZ},
| "sy_value" = #{excel.avgValue},
| "sl_value" = #{excel.avgSpqnValue}
| WHERE
| "res_cd" = #{res.resGuid}
| AND "dt" = #{excel.monitorDate}
| AND "ch" = #{ch}
| </update>
| <delete id="remove">
| DELETE FROM
| SJZT_DW."dws_res_form_di"
| WHERE
| "res_cd" = #{entity.resCd}
| AND "dt" = #{entity.monitorDate}
| AND "ch" = #{entity.ch}
|
| </delete>
| </mapper>
|
|