jk-GitHub-coder 4 лет назад
Родитель
Сommit
8bb4dd9db2

+ 15 - 2
YijiaRestful/src/main/resources/mapper/ElectronicMembershipCardMapper.xml

@@ -262,8 +262,7 @@
 
     <!--根据unionId更新用户的电子会员卡的信息-->
     <update id="updateElectronicCardInfoByUnionId" parameterType="com.platform.yijia.pojo.CustomerElectronicCard">
-        UPDATE
-        customer_electronic_card
+        UPDATE customer_electronic_card
         <set>
             <if test="amt !=null">
                 amt = #{amt},
@@ -278,4 +277,18 @@
             </if>
         </where>
     </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>

+ 0 - 1
YijiaRestful/src/main/resources/mapper/IntegralRuleMapper.xml

@@ -74,5 +74,4 @@
     ORDER BY T2.rule_terms DESC
   </select>
 
-
 </mapper>