对比新文件 |
| | |
| | | // |
| | | // Source code recreated from a .class file by IntelliJ IDEA |
| | | // (powered by FernFlower decompiler) |
| | | // |
| | | |
| | | package com.flow.controller; |
| | | |
| | | import com.flow.pojo.Invoicesjilu; |
| | | import com.flow.service.InvoicesjiluService; |
| | | import com.flow.util.result; |
| | | import com.flow.util.resultutil; |
| | | import com.github.pagehelper.PageInfo; |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | @RestController |
| | | @RequestMapping({"/hxzk"}) |
| | | public class invoicesJiLuController { |
| | | @Autowired |
| | | InvoicesjiluService invoicesjiluService; |
| | | |
| | | public invoicesJiLuController() { |
| | | } |
| | | |
| | | @PostMapping({"addinjilu"}) |
| | | @ResponseBody |
| | | public int addinjilu(Invoicesjilu invoicesjilu) { |
| | | return this.invoicesjiluService.addinjilu(invoicesjilu); |
| | | } |
| | | |
| | | @GetMapping({"findinvoicesjilu"}) |
| | | @ResponseBody |
| | | public result<List<Invoicesjilu>> findinvoicesjilu(Integer page, Integer limit) { |
| | | PageInfo<Invoicesjilu> cz = this.invoicesjiluService.findinvoicesjilu(page, limit); |
| | | return resultutil.returnSuccess(cz.getTotal(), cz.getList()); |
| | | } |
| | | |
| | | @GetMapping({"findinvoicesjiluZi"}) |
| | | @ResponseBody |
| | | public result<List<Invoicesjilu>> findinvoicesjilu(Invoicesjilu invoicesjilu, Integer page, Integer limit) { |
| | | PageInfo<Invoicesjilu> cz = this.invoicesjiluService.findinvoicesjilu(page, limit); |
| | | return resultutil.returnSuccess(cz.getTotal(), cz.getList()); |
| | | } |
| | | } |