| | |
| | | <if test="null != type and 4 == type"> |
| | | and a.payStatus = 3 |
| | | </if> |
| | | order by a.insertTime desc limit #{pageNo}, #{pageSize} |
| | | order by a.insertTime desc, a.id desc limit #{pageNo}, #{pageSize} |
| | | </select> |
| | | <select id="queryDatas" resultType="com.dsh.competition.feignclient.model.BillingRequest"> |
| | | SELECT |
| | |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="query.storeId != null"> |
| | | AND FIND_IN_SET(#{query.storeId}, t1.competitionStoreIds) |
| | | </if> |
| | | <if test="sTime !=null and sTime!= '' and eTime !=null and eTime!= ''"> |
| | | and t1.insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | and t1.payStatus = 2 |
| | | <choose> |
| | | <when test="query.includeRefund != null and query.includeRefund"> |
| | | and t1.payStatus IN (2, 3) |
| | | </when> |
| | | <otherwise> |
| | | and t1.payStatus = 2 |
| | | </otherwise> |
| | | </choose> |
| | | </where> |
| | | order by t1.insertTime desc, t1.id desc |
| | | </select> |
| | | <select id="queryBycode" resultType="java.lang.Integer"> |
| | | SELECT cp.storeId |
| | |
| | | select count(1) |
| | | from t_user_competition where competitionId = #{id} |
| | | </select> |
| | | </mapper> |
| | | </mapper> |