| | |
| | | import com.ruoyi.system.query.TBillQuery; |
| | | import com.ruoyi.system.service.TBillService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | return R.ok(pageInfo); |
| | | } |
| | | |
| | | @PostMapping("add") |
| | | public R<PageInfo<TBillDto>> add(@Validated @RequestBody TBill bill){ |
| | | tBillService.save(bill); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| | | |