|
|
|
@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="guid" column="guid" /> |
|
|
|
<result property="userId" column="user_id" /> |
|
|
|
<result property="roleId" column="role_id" /> |
|
|
|
<result property="sceneId" column="scene_id" /> |
|
|
|
<result property="creator" column="creator" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updator" column="updator" /> |
|
|
|
@ -15,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectQuestionFreVo"> |
|
|
|
select guid, user_id, role_id, creator, create_time, updator, update_time from question_fre |
|
|
|
select guid, user_id, role_id, scene_id, creator, create_time, updator, update_time from question_fre |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectQuestionFreList" parameterType="QuestionFre" resultMap="QuestionFreResult"> |
|
|
|
@ -23,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<where> |
|
|
|
<if test="userId != null and userId != ''"> and user_id = #{userId}</if> |
|
|
|
<if test="roleId != null and roleId != ''"> and role_id = #{roleId}</if> |
|
|
|
<if test="sceneId != null and sceneId != ''"> and scene_id = #{sceneId}</if> |
|
|
|
<if test="creator != null and creator != ''"> and creator = #{creator}</if> |
|
|
|
<if test="updator != null and updator != ''"> and updator = #{updator}</if> |
|
|
|
</where> |
|
|
|
@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="guid != null and guid != ''">guid,</if> |
|
|
|
<if test="userId != null and userId != ''">user_id,</if> |
|
|
|
<if test="roleId != null and roleId != ''">role_id,</if> |
|
|
|
<if test="sceneId != null and sceneId != ''">scene_id,</if> |
|
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
|
<if test="createTime != null ">create_time,</if> |
|
|
|
<if test="updator != null and updator != ''">updator,</if> |
|
|
|
@ -49,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="guid != null and guid != ''">#{guid},</if> |
|
|
|
<if test="userId != null and userId != ''">#{userId},</if> |
|
|
|
<if test="roleId != null and roleId != ''">#{roleId},</if> |
|
|
|
<if test="sceneId != null and sceneId != ''">#{sceneId},</if> |
|
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
|
<if test="createTime != null ">#{createTime},</if> |
|
|
|
<if test="updator != null and updator != ''">#{updator},</if> |
|
|
|
@ -61,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="userId != null and userId != ''">user_id = #{userId},</if> |
|
|
|
<if test="roleId != null and roleId != ''">role_id = #{roleId},</if> |
|
|
|
<if test="sceneId != null and sceneId != ''">scene_id = #{sceneId},</if> |
|
|
|
<if test="creator != null and creator != ''">creator = #{creator},</if> |
|
|
|
<if test="createTime != null ">create_time = #{createTime},</if> |
|
|
|
<if test="updator != null and updator != ''">updator = #{updator},</if> |
|
|
|
|