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); +}