| @@ -8,7 +8,7 @@ | |||||
| <result column="credit_amount" jdbcType="INTEGER" property="creditAmount" /> | <result column="credit_amount" jdbcType="INTEGER" property="creditAmount" /> | ||||
| <result column="credit_num" jdbcType="INTEGER" property="creditNum" /> | <result column="credit_num" jdbcType="INTEGER" property="creditNum" /> | ||||
| <result column="credit_type" jdbcType="INTEGER" property="creditType" /> | <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="receipt_url" jdbcType="VARCHAR" property="receiptUrl" /> | ||||
| <result column="operator_type" jdbcType="INTEGER" property="operatorType" /> | <result column="operator_type" jdbcType="INTEGER" property="operatorType" /> | ||||
| <result column="operator_id" jdbcType="BIGINT" property="operatorId" /> | <result column="operator_id" jdbcType="BIGINT" property="operatorId" /> | ||||
| @@ -127,7 +127,7 @@ | |||||
| <if test=" null != cUserId "> | <if test=" null != cUserId "> | ||||
| and `c_user_id` = #{cUserId} | and `c_user_id` = #{cUserId} | ||||
| </if> | </if> | ||||
| <if test=" null != scoreType "> | |||||
| <if test=" null != creditType "> | |||||
| and `credit_type` = #{creditType} | and `credit_type` = #{creditType} | ||||
| </if> | </if> | ||||
| and DATEDIFF(`create_date`,now())=0 | and DATEDIFF(`create_date`,now())=0 | ||||
| @@ -143,14 +143,14 @@ | |||||
| <if test=" null != cUserId "> | <if test=" null != cUserId "> | ||||
| and `c_user_id` = #{cUserId} | and `c_user_id` = #{cUserId} | ||||
| </if> | </if> | ||||
| <if test=" null != scoreType "> | |||||
| <if test=" null != creditType "> | |||||
| and `credit_type` = #{creditType} | and `credit_type` = #{creditType} | ||||
| </if> | </if> | ||||
| and DATEDIFF(`create_date`,now())=0 | and DATEDIFF(`create_date`,now())=0 | ||||
| </select> | </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> | ||||
| <select id="countList" parameterType="com.iformall.domain.po.WxCreditHistory" resultType="java.lang.Integer"> | <select id="countList" parameterType="com.iformall.domain.po.WxCreditHistory" resultType="java.lang.Integer"> | ||||
| @@ -163,7 +163,7 @@ | |||||
| <if test=" null != cUserId "> | <if test=" null != cUserId "> | ||||
| and `c_user_id` = #{cUserId} | and `c_user_id` = #{cUserId} | ||||
| </if> | </if> | ||||
| <if test=" null != scoreType "> | |||||
| <if test=" null != creditType "> | |||||
| and `credit_type` = #{creditType} | and `credit_type` = #{creditType} | ||||
| </if> | </if> | ||||
| </select> | </select> | ||||