InboundController.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.response.ivt.InboundResponse;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.beans.factory.annotation.Autowired;
  13. import org.springframework.web.bind.annotation.RestController;
  14. import io.swagger.annotations.Api;
  15. import com.dk.mdm.service.ivt.InboundService;
  16. @Api(tags = "入库单API接口")
  17. @RestController
  18. @RequestMapping("/ivt/inbound")
  19. public class InboundController{
  20. public BaseService<Inbound> getService() {
  21. return inboundService;
  22. }
  23. @Autowired
  24. private InboundService inboundService;
  25. /**
  26. * @desc : 查看来源单据,总单加明细 采购退货用
  27. * @author : 于继渤
  28. * @date : 2024/3/6 10:36
  29. */
  30. @ApiOperation(value = "条件查询", notes = "条件查询")
  31. @PostMapping({"select_inbound_and_item"})
  32. public ResponseResultVO<PageList<InboundResponse>> selectInboundAndItem(@RequestBody InboundQuery inboundQuery) {
  33. return inboundService.selectInboundAndItem(inboundQuery);
  34. }
  35. }