From e2659efff2cbbaeda063313edba9512d19b06077 Mon Sep 17 00:00:00 2001 From: xyiege Date: Sun, 17 Jul 2022 01:01:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/AdminInvoiceMgtController.java | 38 +++++++++++++++++++ .../cn/chjyj/szwh/mapper/TicketMapper.java | 19 ++++++++++ 2 files changed, 57 insertions(+) create mode 100644 src/main/java/cn/chjyj/szwh/controller/admin/AdminInvoiceMgtController.java create mode 100644 src/main/java/cn/chjyj/szwh/mapper/TicketMapper.java diff --git a/src/main/java/cn/chjyj/szwh/controller/admin/AdminInvoiceMgtController.java b/src/main/java/cn/chjyj/szwh/controller/admin/AdminInvoiceMgtController.java new file mode 100644 index 0000000..80bbdf4 --- /dev/null +++ b/src/main/java/cn/chjyj/szwh/controller/admin/AdminInvoiceMgtController.java @@ -0,0 +1,38 @@ +package cn.chjyj.szwh.controller.admin; + +import cn.chjyj.szwh.controller.BaseController; +import com.alibaba.fastjson.JSONObject; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.servlet.http.HttpServletRequest; + +/** + * 发票管理 + */ +@RestController +@RequestMapping("/admin/order.InvoiceManagement") +public class AdminInvoiceMgtController extends BaseController { + + /** + * 发票列表 + * @param request + * @return + */ + @PostMapping("/list") + public JSONObject ivlist(HttpServletRequest request){ + //发票编号 + String invoNumber=request.getParameter("invoice_number"); + +// $invoice_number = $this->request->post('invoice_number'); +// $seller = $this->request->post('seller'); +// $buy = $this->request->post('buy'); +// $batchcode = $this->request->post('batchcode'); +// $status = $this->request->post('status'); +// $createtime = $this->request->post('createtime'); +// $page = $this->request->post('page', 1); +// $limit = $this->request->post('limit', 20); + return jsonObject; + } +} diff --git a/src/main/java/cn/chjyj/szwh/mapper/TicketMapper.java b/src/main/java/cn/chjyj/szwh/mapper/TicketMapper.java new file mode 100644 index 0000000..9eb6539 --- /dev/null +++ b/src/main/java/cn/chjyj/szwh/mapper/TicketMapper.java @@ -0,0 +1,19 @@ +package cn.chjyj.szwh.mapper; + +import cn.chjyj.szwh.bean.Ticket; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 发票mapper + */ +@Component +public interface TicketMapper { + /** + * 根据发票编号查找 + * @param ticketId + * @return + */ + List getTicketLikeTid(String ticketId); +}