OutboundOtherController.java 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. package com.dk.mdm.controller.ivt.outBound;
  2. import com.dk.common.model.pojo.PageList;
  3. import com.dk.common.response.ResponseResultVO;
  4. import com.dk.common.service.BaseService;
  5. import com.dk.mdm.model.pojo.ivt.Outbound;
  6. import com.dk.mdm.model.query.ivt.InboundQuery;
  7. import com.dk.mdm.model.query.ivt.OutboundQuery;
  8. import com.dk.mdm.model.response.ivt.InboundResponse;
  9. import com.dk.mdm.model.vo.ivt.InboundVO;
  10. import com.dk.mdm.model.vo.ivt.OutboundVO;
  11. import com.dk.mdm.service.ivt.inbound.InboundService;
  12. import com.dk.mdm.service.ivt.outbound.OutboundOtherService;
  13. import com.dk.mdm.service.ivt.outbound.OutboundService;
  14. import io.swagger.annotations.Api;
  15. import io.swagger.annotations.ApiOperation;
  16. import org.springframework.beans.factory.annotation.Autowired;
  17. import org.springframework.web.bind.annotation.*;
  18. import javax.validation.Valid;
  19. import java.util.Map;
  20. @Api(tags = "其他出库单API接口")
  21. @RestController
  22. @RequestMapping("/ivt/outbound_other")
  23. public class OutboundOtherController {
  24. public BaseService<Outbound> getService() {
  25. return outboundOtherService;
  26. }
  27. @Autowired
  28. private OutboundOtherService outboundOtherService;
  29. @Autowired
  30. private OutboundService outboundService;
  31. /**
  32. * @desc : 条件查询
  33. * @date : 2024/3/7 14:09
  34. * @author : 寇珊珊
  35. */
  36. @ApiOperation(value = "条件查询", notes = "条件查询")
  37. @PostMapping({"list_by"})
  38. public ResponseResultVO<PageList<InboundResponse>> selectByCond(@Valid @RequestBody OutboundQuery outboundQuery) {
  39. return outboundOtherService.selectByCond(outboundQuery);
  40. }
  41. /**
  42. * @desc : 查询出库明细(货物、附件)
  43. * @author : 付斌
  44. * @date : 2024/3/6 10:36
  45. */
  46. @PostMapping({"/{id}"})
  47. public ResponseResultVO selectById(@PathVariable String id) {
  48. return outboundService.selectById(id);
  49. }
  50. /**
  51. * @desc : 查询明细信息
  52. * @date : 2024/3/9 15:45
  53. * @author : 寇珊珊
  54. */
  55. @ApiOperation(value = "明细信息条件查询", notes = "明细信息条件查询")
  56. @PostMapping({"select_item_info_by_id/{id}"})
  57. public ResponseResultVO<Map<String, Object>> selectOutboundOtherItemInfoById(@PathVariable String id) {
  58. return outboundOtherService.selectOutboundOtherItemInfoById(id);
  59. }
  60. /**
  61. * @desc : 其他出库新建
  62. * @date : 2024/3/7 14:00
  63. * @author : 寇珊珊
  64. */
  65. @ApiOperation(
  66. value = "其他出库新建",
  67. notes = "其他出库新建"
  68. )
  69. @PostMapping({"outbound_insert"})
  70. public ResponseResultVO<?> otherOutboundInsert(@Valid @RequestBody OutboundVO outboundVO) {
  71. return outboundOtherService.otherOutboundInsert(outboundVO);
  72. }
  73. /**
  74. * @desc : 其他出库办理
  75. * @date : 2024/3/7 15:34
  76. * @author : 寇珊珊
  77. */
  78. @ApiOperation(
  79. value = "其他出库办理",
  80. notes = "其他出库办理"
  81. )
  82. @PostMapping({"outbound_handle"})
  83. public ResponseResultVO<?> otherHandleOutbound(@Valid @RequestBody OutboundVO outboundVO) {
  84. return outboundOtherService.otherHandleOutbound(outboundVO);
  85. }
  86. /**
  87. * @desc : 其它入库撤销
  88. * @date : 2024/3/7 17:06
  89. * @author : 寇珊珊
  90. */
  91. @ApiOperation(
  92. value = "其它入库撤销",
  93. notes = "其它入库撤销"
  94. )
  95. @PostMapping({"outbound_cancel"})
  96. public ResponseResultVO<?> otherOutboundCancel(@Valid @RequestBody OutboundVO outboundVO){
  97. return outboundOtherService.otherOutboundCancel(outboundVO);
  98. }
  99. /**
  100. * @desc : 其他出库编辑
  101. * @date : 2024/3/26 9:51
  102. * @author : 寇珊珊
  103. */
  104. @ApiOperation(
  105. value = "其他出库编辑",
  106. notes = "其他出库编辑"
  107. )
  108. @PostMapping({"outbound_update"})
  109. public ResponseResultVO<?> otherOutboundUpdate(@Valid @RequestBody OutboundVO outboundVO) {
  110. return outboundOtherService.otherOutboundUpdate(outboundVO);
  111. }
  112. /**
  113. * @desc : 其他出库作废
  114. * @date : 2024/3/26 9:51
  115. * @author : 寇珊珊
  116. */
  117. @ApiOperation(
  118. value = "其他出库作废",
  119. notes = "其他出库作废"
  120. )
  121. @PostMapping({"repeal/{id}"})
  122. public ResponseResultVO<?> otherOutboundRepeal(@PathVariable String id) {
  123. return outboundOtherService.otherOutboundRepeal(id);
  124. }
  125. /**
  126. * @desc : 获取单据信息(编辑用)
  127. * @date : 2024/3/14 16:37
  128. * @author : 寇珊珊
  129. */
  130. @ApiOperation(value = "获取单据信息(编辑用)", notes = "获取单据信息(编辑用)")
  131. @PostMapping({"select_by_update/{id}"})
  132. public ResponseResultVO<?> selectByUpdate(@PathVariable String id) {
  133. return outboundService.selectByUpdate(id);
  134. }
  135. /**
  136. * @desc : 条件查询 --- web端出库办理用
  137. * @date : 2024/3/7 14:09
  138. * @author : 寇珊珊
  139. */
  140. @ApiOperation(value = "条件查询", notes = "条件查询")
  141. @PostMapping({"select_outbound"})
  142. public ResponseResultVO<PageList<InboundResponse>> selectOutbound(@Valid @RequestBody OutboundQuery outboundQuery) {
  143. return outboundOtherService.selectOutbound(outboundQuery);
  144. }
  145. /**
  146. * @desc : 条件查询 --- web端出库办理用
  147. * @date : 2024/3/7 14:09
  148. * @author : 寇珊珊
  149. */
  150. @ApiOperation(value = "明细信息条件查询web端出库办理用", notes = "明细信息条件查询web端出库办理用")
  151. @PostMapping({"select_outbound_item/{id}"})
  152. public ResponseResultVO<Map<String, Object>> selectOutboundItem(@PathVariable String id) {
  153. return outboundOtherService.selectOutboundItem(id);
  154. }
  155. /**
  156. * @desc : 查询待出库数量(小程序(我的))
  157. * @date : 2024/4/9 14:09
  158. * @author : 周兴
  159. */
  160. @ApiOperation(value = "查询待出库数量(小程序(我的))", notes = "查询待出库数量(小程序(我的))")
  161. @PostMapping({"select_wait_outbound_count"})
  162. public ResponseResultVO<?> selectWaitOutboundCount(@Valid @RequestBody OutboundQuery outboundQuery) {
  163. return outboundOtherService.selectWaitOutboundCount(outboundQuery);
  164. }
  165. }