|
@@ -1,11 +1,18 @@
|
1
|
1
|
package com.community.huiju.service.impl;
|
2
|
2
|
|
|
3
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
3
|
4
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
5
|
+import com.community.commom.mode.ResponseBean;
|
|
6
|
+import com.community.commom.session.UserElement;
|
4
|
7
|
import com.community.huiju.dao.TpBillOrderMapper;
|
5
|
8
|
import com.community.huiju.model.TpBillOrder;
|
6
|
9
|
import com.community.huiju.service.IBillOrderService;
|
|
10
|
+import lombok.extern.slf4j.Slf4j;
|
|
11
|
+import org.springframework.beans.factory.annotation.Autowired;
|
7
|
12
|
import org.springframework.stereotype.Service;
|
8
|
13
|
|
|
14
|
+import java.util.List;
|
|
15
|
+
|
9
|
16
|
/**
|
10
|
17
|
* <p>
|
11
|
18
|
* 缴费订单表 服务实现类
|
|
@@ -15,6 +22,21 @@ import org.springframework.stereotype.Service;
|
15
|
22
|
* @since 2019-04-18
|
16
|
23
|
*/
|
17
|
24
|
@Service
|
|
25
|
+@Slf4j
|
18
|
26
|
public class BillOrderServiceImpl extends ServiceImpl<TpBillOrderMapper, TpBillOrder> implements IBillOrderService {
|
19
|
27
|
|
|
28
|
+ @Autowired
|
|
29
|
+ private TpBillOrderMapper tpBillOrderMapper;
|
|
30
|
+
|
|
31
|
+ @Override
|
|
32
|
+ public ResponseBean getByOrderNumberBillInvoice(UserElement userElement, String orderNumber) {
|
|
33
|
+ ResponseBean responseBean = new ResponseBean();
|
|
34
|
+
|
|
35
|
+ QueryWrapper<TpBillOrder> billOrderQueryWrapper = new QueryWrapper<>();
|
|
36
|
+ billOrderQueryWrapper.eq("order_bumber", orderNumber);
|
|
37
|
+ List<TpBillOrder> billOrderList = tpBillOrderMapper.selectList(billOrderQueryWrapper);
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+ return responseBean;
|
|
41
|
+ }
|
20
|
42
|
}
|