|
|
@ -8,6 +8,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="id" column="id" /> |
|
|
|
<result property="configKey" column="config_key" /> |
|
|
|
<result property="configValue" column="config_value" /> |
|
|
|
<result property="ableUpdate" column="able_update" /> |
|
|
|
<result property="ableDelete" column="able_delete" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
@ -15,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectOnenetConfigVo"> |
|
|
|
select id, config_key, config_value, create_by, create_time, update_by, update_time from onenet_config |
|
|
|
select id, config_key, config_value, able_update, able_delete, create_by, create_time, update_by, update_time from onenet_config |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectOnenetConfigList" parameterType="OnenetConfig" resultMap="OnenetConfigResult"> |
|
|
@ -23,6 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<where> |
|
|
|
<if test="configKey != null and configKey != ''"> and config_key = #{configKey}</if> |
|
|
|
<if test="configValue != null and configValue != ''"> and config_value = #{configValue}</if> |
|
|
|
<if test="ableUpdate != null "> and able_update = #{ableUpdate}</if> |
|
|
|
<if test="ableDelete != null "> and able_delete = #{ableDelete}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
@ -36,6 +40,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="configKey != null and configKey != ''">config_key,</if> |
|
|
|
<if test="configValue != null and configValue != ''">config_value,</if> |
|
|
|
<if test="ableUpdate != null">able_update,</if> |
|
|
|
<if test="ableDelete != null">able_delete,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
<if test="updateBy != null">update_by,</if> |
|
|
@ -44,6 +50,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="configKey != null and configKey != ''">#{configKey},</if> |
|
|
|
<if test="configValue != null and configValue != ''">#{configValue},</if> |
|
|
|
<if test="ableUpdate != null">#{ableUpdate},</if> |
|
|
|
<if test="ableDelete != null">#{ableDelete},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
@ -56,6 +64,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="configKey != null and configKey != ''">config_key = #{configKey},</if> |
|
|
|
<if test="configValue != null and configValue != ''">config_value = #{configValue},</if> |
|
|
|
<if test="ableUpdate != null">able_update = #{ableUpdate},</if> |
|
|
|
<if test="ableDelete != null">able_delete = #{ableDelete},</if> |
|
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|