|
|
@ -28,11 +28,11 @@ public interface OutRechargeOrderMapperExt { |
|
|
|
"count(1) as count,", |
|
|
|
"count(1) as count,", |
|
|
|
"sum(pay_price) as pay_price,", |
|
|
|
"sum(pay_price) as pay_price,", |
|
|
|
"sum(order_price) as order_price,", |
|
|
|
"sum(order_price) as order_price,", |
|
|
|
"`status`", |
|
|
|
"`pay_status`", |
|
|
|
"from out_recharge_order", |
|
|
|
"from out_recharge_order", |
|
|
|
"where ", |
|
|
|
"where ", |
|
|
|
" create_timed between #{finishTimeS} and #{finishTimeE} " , |
|
|
|
" create_timed between #{finishTimeS} and #{finishTimeE} " , |
|
|
|
"<if test='status != null'> and status = #{status} </if>", |
|
|
|
"<if test='status != null'> and pay_status = #{status} </if>", |
|
|
|
"GROUP BY day", |
|
|
|
"GROUP BY day", |
|
|
|
"</script>" |
|
|
|
"</script>" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -41,7 +41,7 @@ public interface OutRechargeOrderMapperExt { |
|
|
|
@Result(column="day", property="day", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="day", property="day", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="order_price", property="orderPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="order_price", property="orderPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="pay_status", property="payStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
}) |
|
|
|
}) |
|
|
|
List<OutOrderModel> getListOrderCount(String finishTimeS , String finishTimeE , Integer status); |
|
|
|
List<OutOrderModel> getListOrderCount(String finishTimeS , String finishTimeE , Integer status); |
|
|
|
|
|
|
|
|
|
|
@ -108,7 +108,7 @@ public interface OutRechargeOrderMapperExt { |
|
|
|
List<OutRechargeOrderModel> selectOrderCount(@Param("map") Map<String,Object> map); |
|
|
|
List<OutRechargeOrderModel> selectOrderCount(@Param("map") Map<String,Object> map); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select({"SELECT * FROM out_recharge_order ho WHERE TIMESTAMPDIFF(MINUTE,ho.create_timed,SYSDATE()) > 15 AND ho.status = 1"}) |
|
|
|
@Select({"SELECT * FROM out_recharge_order ho WHERE TIMESTAMPDIFF(MINUTE,ho.create_timed,SYSDATE()) > 15 AND ho.pay_status = 101"}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
@ -147,7 +147,7 @@ public interface OutRechargeOrderMapperExt { |
|
|
|
@Select(value = { |
|
|
|
@Select(value = { |
|
|
|
"<script>", |
|
|
|
"<script>", |
|
|
|
"select sum(order_price) orderPrice, sum(pay_real_price) payRealPrice , count(*) count ", |
|
|
|
"select sum(order_price) orderPrice, sum(pay_real_price) payRealPrice , count(*) count ", |
|
|
|
"from out_recharge_order where status in (2,3) and Identification_code = #{code}", |
|
|
|
"from out_recharge_order where pay_status in (2,3) and Identification_code = #{code}", |
|
|
|
"</script>" |
|
|
|
"</script>" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|