Kaynağa Gözat

修改积分xml

release_toaliyun_real
hanxueda 7 yıl önce
ebeveyn
işleme
a503fc3193
1 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. +6
    -6
      mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml

+ 6
- 6
mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml Dosyayı Görüntüle

@@ -8,7 +8,7 @@
<result column="credit_amount" jdbcType="INTEGER" property="creditAmount" />
<result column="credit_num" jdbcType="INTEGER" property="creditNum" />
<result column="credit_type" jdbcType="INTEGER" property="creditType" />
<result column="create_date" jdbcType="TIMESTAMP" property="credateDate" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="receipt_url" jdbcType="VARCHAR" property="receiptUrl" />
<result column="operator_type" jdbcType="INTEGER" property="operatorType" />
<result column="operator_id" jdbcType="BIGINT" property="operatorId" />
@@ -127,7 +127,7 @@
<if test=" null != cUserId ">
and `c_user_id` = #{cUserId}
</if>
<if test=" null != scoreType ">
<if test=" null != creditType ">
and `credit_type` = #{creditType}
</if>
and DATEDIFF(`create_date`,now())=0
@@ -143,14 +143,14 @@
<if test=" null != cUserId ">
and `c_user_id` = #{cUserId}
</if>
<if test=" null != scoreType ">
<if test=" null != creditType ">
and `credit_type` = #{creditType}
</if>
and DATEDIFF(`create_date`,now())=0
</select>

<select id="creditAmount" parameterType="java.lang.Integer" resultType="java.lang.Integer">
SELECT credit_amount FROM wx_credit_history where tenant_id = #{tenantId} ORDER BY create_date desc limit 1
<select id="creditAmount" parameterType="java.lang.Long" resultType="java.lang.Integer">
SELECT credit_amount FROM wx_credit_history where c_user_id = #{cUserId} ORDER BY id desc limit 1
</select>

<select id="countList" parameterType="com.iformall.domain.po.WxCreditHistory" resultType="java.lang.Integer">
@@ -163,7 +163,7 @@
<if test=" null != cUserId ">
and `c_user_id` = #{cUserId}
</if>
<if test=" null != scoreType ">
<if test=" null != creditType ">
and `credit_type` = #{creditType}
</if>
</select>


Yükleniyor…
İptal
Kaydet