|
|
@@ -10,12 +10,15 @@ 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
|
|
|
@@ -30,6 +33,8 @@ public class InboundController{
|
|
|
private InboundService inboundService;
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private InboundPurchaseService inheritedPurchaseService;
|
|
|
|
|
|
/**
|
|
|
* @desc : 条件查询
|
|
|
@@ -41,7 +46,7 @@ public class InboundController{
|
|
|
notes = "分页、关联、条件查询"
|
|
|
)
|
|
|
@PostMapping({"list_by"})
|
|
|
- public ResponseResultVO<PageList<PurchaseResponse>> selectByCond(@RequestBody InboundQuery inboundQuery) {
|
|
|
+ public ResponseResultVO<PageList<InboundResponse>> selectByCond(@RequestBody InboundQuery inboundQuery) {
|
|
|
return inboundService.selectByCond(inboundQuery);
|
|
|
}
|
|
|
|
|
|
@@ -77,5 +82,18 @@ public class InboundController{
|
|
|
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);
|
|
|
+ }
|
|
|
|
|
|
}
|