|
@@ -59,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">company_id,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="createUser != null">create_user,</if>
|
|
<if test="createUser != null">create_user,</if>
|
|
|
|
|
+ <if test="wxRemark != null">wx_remark,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="wxNickName != null">#{wxNickName},</if>
|
|
<if test="wxNickName != null">#{wxNickName},</if>
|
|
@@ -68,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="createUser != null">#{createUser},</if>
|
|
<if test="createUser != null">#{createUser},</if>
|
|
|
|
|
+ <if test="wxRemark != null">#{wxRemark},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -106,4 +108,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectByCompanyUserAndWxNo" resultType="com.fs.company.domain.CompanyWxAccount">
|
|
<select id="selectByCompanyUserAndWxNo" resultType="com.fs.company.domain.CompanyWxAccount">
|
|
|
select * from company_wx_account where company_user_id = #{userId} and wx_no = #{wxNo}
|
|
select * from company_wx_account where company_user_id = #{userId} and wx_no = #{wxNo}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectCompanyWxAccountByWxRemark" resultType="com.fs.company.domain.CompanyWxAccount">
|
|
|
|
|
+ select * from company_wx_account where wx_remark like concat( #{wxRemark}, '%') limit 1
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
</mapper>
|
|
</mapper>
|