Commit 2a561951 by 陶光胜

通过电话号码查询商户

parent 77fdfa07
......@@ -10,7 +10,7 @@
<result column="status" jdbcType="INTEGER" property="status" />
</resultMap>
<sql id="Base_Column_List">
id, store_info_id, from_enterprise_id, to_enterprise_id, key, status
id, store_info_id, from_enterprise_id, to_enterprise_id, 'key', status
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
......@@ -27,7 +27,7 @@
SELECT LAST_INSERT_ID()
</selectKey>
insert into tab_auth_store_log (id, store_info_id, from_enterprise_id,
to_enterprise_id, key, status
to_enterprise_id, 'key', status
)
values (#{id,jdbcType=INTEGER}, #{storeInfoId,jdbcType=INTEGER}, #{fromEnterpriseId,jdbcType=INTEGER},
#{toEnterpriseId,jdbcType=INTEGER}, #{key,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}
......@@ -52,7 +52,7 @@
to_enterprise_id,
</if>
<if test="key != null">
key,
'key',
</if>
<if test="status != null">
status,
......@@ -92,7 +92,7 @@
to_enterprise_id = #{toEnterpriseId,jdbcType=INTEGER},
</if>
<if test="key != null">
key = #{key,jdbcType=VARCHAR},
'key' = #{key,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
......@@ -105,7 +105,7 @@
set store_info_id = #{storeInfoId,jdbcType=INTEGER},
from_enterprise_id = #{fromEnterpriseId,jdbcType=INTEGER},
to_enterprise_id = #{toEnterpriseId,jdbcType=INTEGER},
key = #{key,jdbcType=VARCHAR},
'key' = #{key,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -113,7 +113,7 @@
select
<include refid="Base_Column_List" />
from tab_auth_store_log
where key = #{key}
where 'key' = #{key}
<if test="status != null">
and status = #{status}
</if>
......@@ -122,12 +122,12 @@
select
<include refid="Base_Column_List" />
from tab_auth_store_log
where key = #{key} and (status =0 or status = 2)
where 'key' = #{key} and (status =0 or status = 2)
</select>
<select id="listLog" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_auth_store_log
where key = #{key} and to_enterprise_id=#{toEnterpriseId} and store_info_id=#{storeInfoId}
where 'key' = #{key} and to_enterprise_id=#{toEnterpriseId} and store_info_id=#{storeInfoId}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment