|
@@ -396,8 +396,11 @@
|
|
FROM
|
|
FROM
|
|
customer_electronic_card
|
|
customer_electronic_card
|
|
<where>
|
|
<where>
|
|
|
|
+ <if test="stationId !='' and stationId != null" >
|
|
|
|
+ station_id = #{stationId}
|
|
|
|
+ </if>
|
|
<if test="unionId !=null and unionId !=''">
|
|
<if test="unionId !=null and unionId !=''">
|
|
- union_id = #{unionId}
|
|
|
|
|
|
+ AND union_id = #{unionId}
|
|
</if>
|
|
</if>
|
|
<if test="blogOpenId !=null and blogOpenId !=''">
|
|
<if test="blogOpenId !=null and blogOpenId !=''">
|
|
AND blog_openid = #{blogOpenId}
|
|
AND blog_openid = #{blogOpenId}
|
|
@@ -408,9 +411,6 @@
|
|
<if test="cardOilsType !=null and cardOilsType !=''">
|
|
<if test="cardOilsType !=null and cardOilsType !=''">
|
|
AND card_oils_type = #{cardOilsType}
|
|
AND card_oils_type = #{cardOilsType}
|
|
</if>
|
|
</if>
|
|
- <if test="stationId !='' and stationId != null" >
|
|
|
|
- AND station_id = #{stationId}
|
|
|
|
- </if>
|
|
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -499,15 +499,21 @@
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
<where>
|
|
<where>
|
|
|
|
+ <if test="stationId !='' and stationId != null" >
|
|
|
|
+ station_id = #{stationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="blogOpenId !=null and blogOpenId !=''">
|
|
|
|
+ AND blog_openid = #{blogOpenId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="minaOpenId !=null and minaOpenId !=''">
|
|
|
|
+ AND mina_openid = #{minaOpenId}
|
|
|
|
+ </if>
|
|
<if test="unionId !=null and unionId != ''">
|
|
<if test="unionId !=null and unionId != ''">
|
|
- union_id = #{unionId}
|
|
|
|
|
|
+ AND union_id = #{unionId}
|
|
</if>
|
|
</if>
|
|
<if test="cardOilsType !='' and cardOilsType != null" >
|
|
<if test="cardOilsType !='' and cardOilsType != null" >
|
|
AND card_oils_type = #{cardOilsType}
|
|
AND card_oils_type = #{cardOilsType}
|
|
</if>
|
|
</if>
|
|
- <if test="stationId !='' and stationId != null" >
|
|
|
|
- AND station_id = #{stationId}
|
|
|
|
- </if>
|
|
|
|
</where>
|
|
</where>
|
|
</update>
|
|
</update>
|
|
|
|
|