|
@@ -7,12 +7,13 @@
|
|
|
<resultMap type="com.ruoyi.interfaces.domain.MdDataSetSql" id="MdDataSetSqlResult">
|
|
<resultMap type="com.ruoyi.interfaces.domain.MdDataSetSql" id="MdDataSetSqlResult">
|
|
|
<result property="id" column="ID" />
|
|
<result property="id" column="ID" />
|
|
|
<result property="dcCode" column="DC_CODE" />
|
|
<result property="dcCode" column="DC_CODE" />
|
|
|
|
|
+ <result property="dsCode" column="DS_CODE" />
|
|
|
<result property="runSql" column="RUN_SQL" />
|
|
<result property="runSql" column="RUN_SQL" />
|
|
|
<result property="pars" column="PARS" />
|
|
<result property="pars" column="PARS" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectMdDataSetSqlVo">
|
|
<sql id="selectMdDataSetSqlVo">
|
|
|
- select ID, DC_CODE, RUN_SQL, PARS from md_data_set_sql
|
|
|
|
|
|
|
+ select ID, DC_CODE,DS_CODE, RUN_SQL, PARS from md_data_set_sql
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectMdDataSetSqlList" parameterType="com.ruoyi.interfaces.domain.MdDataSetSql" resultMap="MdDataSetSqlResult">
|
|
<select id="selectMdDataSetSqlList" parameterType="com.ruoyi.interfaces.domain.MdDataSetSql" resultMap="MdDataSetSqlResult">
|
|
@@ -20,6 +21,7 @@
|
|
|
<where>
|
|
<where>
|
|
|
<if test="id != null "> and ID = #{id}</if>
|
|
<if test="id != null "> and ID = #{id}</if>
|
|
|
<if test="dcCode != null and dcCode != ''"> and DC_CODE = #{dcCode}</if>
|
|
<if test="dcCode != null and dcCode != ''"> and DC_CODE = #{dcCode}</if>
|
|
|
|
|
+ <if test="dsCode != null and dsCode != ''"> and DS_CODE = #{dsCode}</if>
|
|
|
<if test="runSql != null and runSql != ''"> and RUN_SQL = #{runSql}</if>
|
|
<if test="runSql != null and runSql != ''"> and RUN_SQL = #{runSql}</if>
|
|
|
<if test="pars != null and pars != ''"> and PARS = #{pars}</if>
|
|
<if test="pars != null and pars != ''"> and PARS = #{pars}</if>
|
|
|
</where>
|
|
</where>
|
|
@@ -34,11 +36,13 @@
|
|
|
insert into md_data_set_sql
|
|
insert into md_data_set_sql
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="dcCode != null">DC_CODE,</if>
|
|
<if test="dcCode != null">DC_CODE,</if>
|
|
|
|
|
+ <if test="dsCode != null">DS_CODE,</if>
|
|
|
<if test="runSql != null">RUN_SQL,</if>
|
|
<if test="runSql != null">RUN_SQL,</if>
|
|
|
<if test="pars != null">PARS,</if>
|
|
<if test="pars != null">PARS,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="dcCode != null">#{dcCode},</if>
|
|
<if test="dcCode != null">#{dcCode},</if>
|
|
|
|
|
+ <if test="dsCode != null">#{dsCode},</if>
|
|
|
<if test="runSql != null">#{runSql},</if>
|
|
<if test="runSql != null">#{runSql},</if>
|
|
|
<if test="pars != null">#{pars},</if>
|
|
<if test="pars != null">#{pars},</if>
|
|
|
</trim>
|
|
</trim>
|
|
@@ -48,6 +52,7 @@
|
|
|
update md_data_set_sql
|
|
update md_data_set_sql
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="dcCode != null">DC_CODE = #{dcCode},</if>
|
|
<if test="dcCode != null">DC_CODE = #{dcCode},</if>
|
|
|
|
|
+ <if test="dsCode != null">DS_CODE = #{dsCode},</if>
|
|
|
<if test="runSql != null">RUN_SQL = #{runSql},</if>
|
|
<if test="runSql != null">RUN_SQL = #{runSql},</if>
|
|
|
<if test="pars != null">PARS = #{pars},</if>
|
|
<if test="pars != null">PARS = #{pars},</if>
|
|
|
</trim>
|
|
</trim>
|