|
@@ -5,7 +5,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<mapper namespace="com.onemap.system.mapper.TJscSqlMapper">
|
|
|
|
|
|
<resultMap type="TJscSql" id="TJscSqlResult">
|
|
|
- <result property="id" column="id" />
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="jscName" column="jsc_Name" />
|
|
|
<result property="jscType" column="jsc_type" />
|
|
|
<result property="jscView" column="jsc_view" />
|
|
|
<result property="jscSql" column="jsc_sql" />
|
|
@@ -13,16 +14,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTJscSqlVo">
|
|
|
- select id, jsc_type, jsc_view, jsc_sql, create_by, create_time, update_by, update_time from t_jsc_sql
|
|
|
+ select id, jsc_name,jsc_type, jsc_view, jsc_sql, create_by, create_time, update_by, update_time,remark from t_jsc_sql
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTJscSqlList" parameterType="TJscSql" resultMap="TJscSqlResult">
|
|
|
<include refid="selectTJscSqlVo"/>
|
|
|
<where>
|
|
|
- <if test="jscType != null and jscType != ''"> and jsc_type = #{jscType}</if>
|
|
|
+ <if test="jscType != null and jscType != ''"> and jsc_type like '%'|| #{jscType} || '%' </if>
|
|
|
<if test="jscView != null and jscView != ''"> and jsc_view = #{jscView}</if>
|
|
|
<if test="jscSql != null and jscSql != ''"> and jsc_sql = #{jscSql}</if>
|
|
|
</where>
|
|
@@ -37,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into t_jsc_sql
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null and id != ''">id,</if>
|
|
|
+ <if test="jscName != null and jscName != ''">jsc_name,</if>
|
|
|
<if test="jscType != null and jscType != ''">jsc_type,</if>
|
|
|
<if test="jscView != null">jsc_view,</if>
|
|
|
<if test="jscSql != null and jscSql != ''">jsc_sql,</if>
|
|
@@ -44,9 +47,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="remark != null and remark != ''">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null and id != ''">#{id},</if>
|
|
|
+ <if test="jscName != null and jscName != ''">#{jscName},</if>
|
|
|
<if test="jscType != null and jscType != ''">#{jscType},</if>
|
|
|
<if test="jscView != null">#{jscView},</if>
|
|
|
<if test="jscSql != null and jscSql != ''">#{jscSql},</if>
|
|
@@ -54,12 +59,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateTJscSql" parameterType="TJscSql">
|
|
|
update t_jsc_sql
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="jscName != null and jscName != ''">jsc_name = #{jscName},</if>
|
|
|
<if test="jscType != null and jscType != ''">jsc_type = #{jscType},</if>
|
|
|
<if test="jscView != null">jsc_view = #{jscView},</if>
|
|
|
<if test="jscSql != null and jscSql != ''">jsc_sql = #{jscSql},</if>
|
|
@@ -67,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -81,4 +89,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
+
|
|
|
</mapper>
|