dev-discount
袁野 3 years ago
parent 454c740acc
commit ec790f1bf9
  1. 14
      hai-bweb/src/main/java/com/bweb/controller/OutRechargeOrderController.java
  2. 10
      hai-service/src/main/java/com/hai/service/OutRechargeOrderService.java
  3. 7
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java

@ -148,4 +148,18 @@ public class OutRechargeOrderController {
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value = "/countOrder", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "完成充值")
public ResponseData countOrder() {
try {
return ResponseMsgUtil.success(outRechargeOrderService.CountOrder());
} catch (Exception e) {
log.error("HighOrderController --> cancelOrder() error!", e);
return ResponseMsgUtil.exception(e);
}
}
}

@ -1,6 +1,7 @@
package com.hai.service;
import com.hai.entity.OutRechargeOrder;
import io.swagger.models.auth.In;
import java.util.List;
import java.util.Map;
@ -70,4 +71,13 @@ public interface OutRechargeOrderService {
**/
void finishOrder(Long orderId);
/**
* @Author Sum1Dream
* @Description //查询订单未支付数量 Administrator
* @Date 10:53 2021/6/14
* @Param []
* @return java.lang.Integer
**/
Long CountOrder();
}

@ -102,4 +102,11 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
updateOrder(order);
}
}
@Override
public Long CountOrder() {
OutRechargeOrderExample example = new OutRechargeOrderExample();
example.createCriteria().andStatusEqualTo(2);
return outRechargeOrderMapper.countByExample(example);
}
}

Loading…
Cancel
Save