Browse Source

服务发票

master
xyiege 4 years ago
parent
commit
e2659efff2
  1. 38
      src/main/java/cn/chjyj/szwh/controller/admin/AdminInvoiceMgtController.java
  2. 19
      src/main/java/cn/chjyj/szwh/mapper/TicketMapper.java

38
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;
}
}

19
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<Ticket> getTicketLikeTid(String ticketId);
}
Loading…
Cancel
Save