package com.dk.mdm.controller.ivt; import com.dk.common.model.pojo.PageList; import com.dk.common.response.ResponseResultVO; import com.dk.common.service.BaseService; import com.dk.mdm.model.pojo.ivt.Inbound; import com.dk.mdm.model.query.ivt.InboundQuery; import com.dk.mdm.model.response.ivt.InboundResponse; import com.dk.mdm.model.response.pur.PurchaseResponse; import com.dk.mdm.model.vo.ivt.InboundVO; import com.dk.mdm.model.vo.ivt.OutboundVO; import com.dk.mdm.service.ivt.InboundPurchaseService; import com.dk.mdm.service.ivt.InboundService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.validation.Valid; @Api(tags = "入库单API接口") @RestController @RequestMapping("/ivt/inbound") public class InboundController{ public BaseService getService() { return inboundService; } @Autowired private InboundService inboundService; @Autowired private InboundPurchaseService inheritedPurchaseService; /** * @desc : 条件查询 * @author : 王英杰 * @date : 2024/3/8 10:58 */ @ApiOperation( value = "分页、关联、条件查询", notes = "分页、关联、条件查询" ) @PostMapping({"list_by"}) public ResponseResultVO> selectByCond(@RequestBody InboundQuery inboundQuery) { return inboundService.selectByCond(inboundQuery); } /** * @desc : 查看来源单据,总单加明细 采购入库用 * @author : 王英杰 * @date : 2024/3/6 10:36 */ @PostMapping({"/{id}"}) public ResponseResultVO selectById(@PathVariable String id) { return inboundService.selectById(id); } /** * @desc : 查看来源单据,总单加明细 采购退货用 * @author : 于继渤 * @date : 2024/3/6 10:36 */ @ApiOperation(value = "条件查询", notes = "条件查询") @PostMapping({"select_inbound_and_item"}) public ResponseResultVO> selectInboundAndItem(@RequestBody InboundQuery inboundQuery) { return inboundService.selectInboundAndItem(inboundQuery); } /** * @desc : 新建入库单 * @author : 王英杰 * @date : 2024/3/6 10:36 */ @ApiOperation(value = "新建出库单", notes = "新建出库单") @PostMapping({"insert"}) public ResponseResultVO insert(@RequestBody InboundVO inboundVO) { return inboundService.insert(inboundVO); } /** * @desc : 采购入库新建 * @date : 2024/3/7 14:00 * @author : 王英杰 */ @ApiOperation( value = "采购入库新建", notes = "采购入库新建" ) @PostMapping({"purchase_inbound_insert"}) public ResponseResultVO purchaseInboundInsert(@Valid @RequestBody InboundVO inboundVO) { return inheritedPurchaseService.purchaseInboundInsert(inboundVO); } /** * @desc : 采购入库办理 * @date : 2024/3/7 15:34 * @author : 王英杰 */ @ApiOperation( value = "采购入库办理", notes = "采购入库办理" ) @PostMapping({"purchase_handle_inbound"}) public ResponseResultVO purchaseHandleInbound(@RequestBody InboundVO inboundVO) { return inheritedPurchaseService.purchaseHandleInbound(inboundVO); } }