修改区域公司

dev-discount
袁野 2 years ago
parent 6363e152c3
commit 7dc749ffd0
  1. 4
      hai-schedule/src/main/java/com/hai/schedule/HighOrderSchedule.java
  2. 2
      hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
  3. 2
      hai-service/src/main/java/com/hai/dao/OutRechargeOrderMapperExt.java

@ -439,7 +439,7 @@ public class HighOrderSchedule {
* @Param [] * @Param []
* @return void * @return void
*/ */
@Scheduled(cron="0 0/1 * * * ?") //每1分钟执行一次 @Scheduled(cron="0 0/5 * * * ?") //每1分钟执行一次
public void integralRebateOrder() { public void integralRebateOrder() {
List<HighOrder> order = highOrderService.integralRebateOrder(); List<HighOrder> order = highOrderService.integralRebateOrder();
for (HighOrder highOrder : order) { for (HighOrder highOrder : order) {
@ -477,7 +477,7 @@ public class HighOrderSchedule {
* @Param [] * @Param []
* @return void * @return void
*/ */
@Scheduled(cron="0 0/1 * * * ?") //每1分钟执行一次 @Scheduled(cron="0 0/5 * * * ?") //每1分钟执行一次
public void integralRebateRechargeOrder() { public void integralRebateRechargeOrder() {
List<OutRechargeOrder> order = outRechargeOrderService.integralRebateRechargeOrder(); List<OutRechargeOrder> order = outRechargeOrderService.integralRebateRechargeOrder();
for (OutRechargeOrder outRechargeOrder : order) { for (OutRechargeOrder outRechargeOrder : order) {

@ -1250,7 +1250,7 @@ public interface HighOrderMapperExt {
}) })
List<SelfOilStationModel> getSelfOilStationOrderList(@Param("goodsId") String goodsId); List<SelfOilStationModel> getSelfOilStationOrderList(@Param("goodsId") String goodsId);
@Select("select * from high_order where order_status = 3 and pay_type != 3 and pay_real_price > 0 and whether_rebate = false ") @Select("select * from high_order where order_status = 3 and pay_type != 3 and pay_real_price > 0 and whether_rebate = false group by create_time desc;")
@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 {
}) })
OrderCountModel rechargeOrderByIndex(Integer code); OrderCountModel rechargeOrderByIndex(Integer code);
@Select("select * from out_recharge_order where recharge_status = 202 and pay_status = 100 and pay_type != 3 and pay_real_price > 0 and whether_rebate = false ") @Select("select * from out_recharge_order where recharge_status = 202 and pay_status = 100 and pay_type != 3 and pay_real_price > 0 and whether_rebate = false group by create_timed desc ; ")
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="recharge_price", property="rechargePrice", jdbcType=JdbcType.DECIMAL), @Result(column="recharge_price", property="rechargePrice", jdbcType=JdbcType.DECIMAL),

Loading…
Cancel
Save