|
@@ -262,8 +262,7 @@
|
|
|
|
|
|
<!--根据unionId更新用户的电子会员卡的信息-->
|
|
<!--根据unionId更新用户的电子会员卡的信息-->
|
|
<update id="updateElectronicCardInfoByUnionId" parameterType="com.platform.yijia.pojo.CustomerElectronicCard">
|
|
<update id="updateElectronicCardInfoByUnionId" parameterType="com.platform.yijia.pojo.CustomerElectronicCard">
|
|
- UPDATE
|
|
|
|
- customer_electronic_card
|
|
|
|
|
|
+ UPDATE customer_electronic_card
|
|
<set>
|
|
<set>
|
|
<if test="amt !=null">
|
|
<if test="amt !=null">
|
|
amt = #{amt},
|
|
amt = #{amt},
|
|
@@ -278,4 +277,18 @@
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</update>
|
|
</update>
|
|
|
|
+
|
|
|
|
+ <!--查询油站的会员卡启用标识 (1、启动 2,停用)-->
|
|
|
|
+ <select id="getStationCardEnabledFlag" parameterType="String" resultType="String">
|
|
|
|
+ SELECT
|
|
|
|
+ card_enabled_flag AS cardEnabledFlag
|
|
|
|
+ FROM
|
|
|
|
+ station_pay
|
|
|
|
+ <where>
|
|
|
|
+ <if test="stationId !='' and stationId != null" >
|
|
|
|
+ station_id = #{stationId}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|