123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- package com.tld.controller;
- import com.tld.model.Error;
- import com.tld.service.AskGoodsService;
- import com.tld.service.QueryListService;
- import com.tld.service.WarehousingService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import java.util.Map;
- /**
- * gs接出接口
- */
- @RestController
- @RequestMapping("gsPlugOut")
- public class GsPlugOutController {
- //入库
- @Autowired
- private WarehousingService warehousingService;
- //出库
- @Autowired
- private AskGoodsService askGoodsService;
- //查询
- @Autowired
- private QueryListService queryListService;
- /**
- * 入库回传
- * @param orderNumber 参数
- */
- @GetMapping("plugOutWarehousing")
- public void plugOutWarehousing(String orderNumber , String realName){
- warehousingService.plugOutWarehousing(orderNumber,realName);
- }
- /**
- * 出库回传---生产领用单/非生产领用出库单
- * @param removalCode 要货申请单id
- */
- @GetMapping("plugOutRemoval")
- public void plugOutRemoval(String removalCode , String realName){
- askGoodsService.plugOutRemoval(removalCode,realName);
- }
- /**
- * 出销售发货单接口文档
- * @param removalCode 要货申请单id
- */
- @GetMapping("CreateBOLOutStock")
- public void CreateBOLOutStock(String removalCode , String realName){
- askGoodsService.CreateBOLOutStock(removalCode,realName);
- }
- /**
- * 移库单接口文档
- * @param removalCode 要货申请单id
- */
- @GetMapping("CreateGMReqOutStock")
- public void CreateGMReqOutStock(String removalCode , String realName ){
- askGoodsService.CreateGMReqOutStock(removalCode,realName);
- }
- /**
- * 生产收货接口文档/报工单
- * @param removalCode 入库单编号
- */
- @GetMapping("CreateGRReqInStock")
- public void CreateGRReqInStock(String removalCode , String realName){
- askGoodsService.CreateGRReqInStock(removalCode,realName);
- }
- /**
- * 其他收货接口文档/其它入库
- * @param removalCode 入库单编号
- */
- @GetMapping("CreateOtherInStock")
- public void CreateOtherInStock(String removalCode , String realName){
- askGoodsService.CreateOtherInStock(removalCode,realName);
- }
- /**
- * 其他发货补领料/其他出货接口文档/其它出库
- * @param removalCode 入库单编号
- */
- @GetMapping("CreateOtherDeliveryMaterials")
- public void CreateOtherDeliveryMaterials(String removalCode , String realName){
- askGoodsService.CreateOtherDeliveryMaterials(removalCode,realName);
- }
- /**
- * 其他发货(参照要货申请制单(其他发货通知_青岛工厂))接口文档/其他出货接口文档/其它出库
- * @param removalCode 入库单编号
- */
- @GetMapping("CreateOtherDeliveryMaterial")
- public void CreateOtherDeliveryMaterial(String removalCode , String realName){
- askGoodsService.CreateOtherDeliveryMaterial(removalCode,realName);
- }
- /**
- * 失败重传
- * @param error 参数
- * @return 返回结果
- */
- @PostMapping("anew")
- public Map<String, Object> anew(@RequestBody Error error){
- return queryListService.anew(error);
- }
- }
|