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
| <?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" >
| <!-- Table:epc_app_stander_def_{rule} -->
| <mapper namespace="com.changhong.epc.tenant.mapper.tenant.norm.AppStanderDefMapper">
|
| <insert id="AppStanderDefSave" >
| insert into epc_app_stander_def_{rule}(el_iden,mas_define_code,type,def_type,def_name,def_value,row_no,col_no,squ,show_flag,relation,inverse,
| show_count,count,ss_id,ins_p,ins_t,upd_p,upd_t,data_start)
| values
| <foreach collection="apps" item="app" separator=",">
| (#{app.elIden},#{app.masDefineCode},#{app.type},#{app.defType},#{app.defName},#{app.asDefValue},#{app.rowNo},#{app.colNo},#{app.squ},#{app.showFlag},#{app.relation},#{app.inverse},#{app.showCount},#{app.count},#{supp.id},#{supp.insP},#{supp.insT},#{supp.updP},#{supp.updT},#{supp.dataStart})
| </foreach>
| </insert>
|
| <insert id="appStanderDefSaveOne">
| insert into epc_app_stander_def_{rule}(el_iden,mas_define_code,type,def_type,def_name,def_value,row_no,col_no,squ,show_flag,relation,inverse,
| show_count,count,ss_id,ins_p,ins_t,upd_p,upd_t,data_start)
| values
| (#{app.elIden},#{app.masDefineCode},#{app.type},#{app.defType},#{app.defName},#{app.asDefValue},#{app.rowNo},#{app.colNo},#{app.squ},#{app.showFlag},#{app.relation},#{app.inverse},#{app.showCount},#{app.count},#{supp.id},#{supp.insP},#{supp.insT},#{supp.updP},#{supp.updT},#{supp.dataStart})
| </insert>
|
| <update id="AppStanderDefUpdate" parameterType="com.changhong.epc.bean.tenant.norm.extend.SuppStanderExtend">
| update epc_app_stander_def_{rule} SET data_start=99
| where
| ss_Id
| in(
| select id from epc_supp_stander_{rule} where ct_id
| <foreach collection="supp" item="sup" open="in(" close=")" separator=",">
| #{sup.ctId}
| </foreach>
| )
| </update>
| </mapper>
|
|