| | |
| | | order by a.insertTime desc limit #{pageNo}, #{pageSize} |
| | | </select> |
| | | <select id="queryDatas" resultType="com.dsh.competition.feignclient.model.BillingRequest"> |
| | | SELECT DATE_FORMAT(insertTime, '%m-%d %H:%i')as `time`, |
| | | amount |
| | | SELECT |
| | | DATE_FORMAT(insertTime, '%m-%d %H:%i')as `time`, |
| | | amount, |
| | | UNIX_TIMESTAMP(payTime) * 1000 as dateTime |
| | | from t_payment_competition |
| | | where payStatus in (2,3) and payType in (1,2) |
| | | <if test="null != monthStart and '' != monthStart and null != monthEnd and '' != monthEnd"> |
| | |
| | | </if> |
| | | </select> |
| | | <select id="queryCancelDatas" resultType="com.dsh.competition.feignclient.model.BillingRequest"> |
| | | SELECT DATE_FORMAT(refundTime, '%m-%d %H:%i')as `time`, |
| | | amount |
| | | SELECT |
| | | DATE_FORMAT(refundTime, '%m-%d %H:%i')as `time`, |
| | | amount, |
| | | UNIX_TIMESTAMP(refundTime) * 1000 as dateTime |
| | | from t_payment_competition |
| | | where payStatus = 3 and payType in (1,2) |
| | | <if test="null != monthStart and '' != monthStart and null != monthEnd and '' != monthEnd"> |