|
@@ -16,10 +16,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="qwCompanyId" column="qw_company_id" />
|
|
|
<result property="status" column="status" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserCompanyUserVo">
|
|
|
- select id, user_id, company_user_id, company_id, is_repeat_fans, project_id, qw_user_id, qw_external_contact_id, qw_company_id, `status`, remark from fs_user_company_user
|
|
|
+ select id, user_id, company_user_id, company_id, is_repeat_fans, project_id, qw_user_id, qw_external_contact_id, qw_company_id, `status`, remark, create_time from fs_user_company_user
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserCompanyUserList" parameterType="FsUserCompanyUser" resultMap="FsUserCompanyUserResult">
|
|
@@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="qwCompanyId != null "> and qw_company_id = #{qwCompanyId}</if>
|
|
|
<if test="status != null "> and `status` = #{status}</if>
|
|
|
<if test="remark != null "> and remark = #{remark}</if>
|
|
|
+ <if test="createTime != null "> and create_time = #{createTime}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="qwCompanyId != null">qw_company_id,</if>
|
|
|
<if test="status != null">`status`,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -70,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="qwCompanyId != null">#{qwCompanyId},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -86,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="qwCompanyId != null">qw_company_id = #{qwCompanyId},</if>
|
|
|
<if test="status != null">`status` = #{status},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|