InboundController.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.dk.mdm.controller.ivt;
  2. import com.dk.common.model.pojo.PageList;
  3. import com.dk.common.response.ResponseResultVO;
  4. import com.dk.mdm.model.pojo.ivt.Inbound;
  5. import com.dk.common.service.BaseService;
  6. import com.dk.mdm.model.query.ivt.InboundQuery;
  7. import com.dk.mdm.model.query.pur.PurchaseQuery;
  8. import com.dk.mdm.model.response.ivt.InboundResponse;
  9. import com.dk.mdm.model.response.pur.PurchaseResponse;
  10. import io.swagger.annotations.ApiOperation;
  11. import org.springframework.web.bind.annotation.PostMapping;
  12. import org.springframework.web.bind.annotation.RequestBody;
  13. import org.springframework.web.bind.annotation.RequestMapping;
  14. import org.springframework.beans.factory.annotation.Autowired;
  15. import org.springframework.web.bind.annotation.RestController;
  16. import io.swagger.annotations.Api;
  17. import com.dk.mdm.service.ivt.InboundService;
  18. @Api(tags = "入库单API接口")
  19. @RestController
  20. @RequestMapping("/ivt/inbound")
  21. public class InboundController{
  22. public BaseService<Inbound> getService() {
  23. return inboundService;
  24. }
  25. @Autowired
  26. private InboundService inboundService;
  27. /**
  28. * @desc : 条件查询
  29. * @author : 王英杰
  30. * @date : 2024/3/8 10:58
  31. */
  32. @ApiOperation(
  33. value = "分页、关联、条件查询",
  34. notes = "分页、关联、条件查询"
  35. )
  36. @PostMapping({"list_by"})
  37. public ResponseResultVO<PageList<PurchaseResponse>> selectByCond(@RequestBody InboundQuery inboundQuery) {
  38. return inboundService.selectByCond(inboundQuery);
  39. }
  40. /**
  41. * @desc : 查看来源单据,总单加明细 采购退货用
  42. * @author : 于继渤
  43. * @date : 2024/3/6 10:36
  44. */
  45. @ApiOperation(value = "条件查询", notes = "条件查询")
  46. @PostMapping({"select_inbound_and_item"})
  47. public ResponseResultVO<PageList<InboundResponse>> selectInboundAndItem(@RequestBody InboundQuery inboundQuery) {
  48. return inboundService.selectInboundAndItem(inboundQuery);
  49. }
  50. }