|
@@ -1,5 +1,7 @@
|
|
|
package com.steerinfo.dil.controller;
|
|
|
|
|
|
+import com.steerinfo.dil.feign.QMSFeign;
|
|
|
+import com.steerinfo.dil.feign.QmsTruckFeign;
|
|
|
import com.steerinfo.dil.feign.WMSFeign;
|
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
@@ -7,12 +9,12 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -24,18 +26,527 @@ import java.util.Map;
|
|
|
public class WMSController extends BaseRESTfulController {
|
|
|
@Autowired
|
|
|
WMSFeign wmsFeign;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ QMSFeign qmsFeign;
|
|
|
@PostMapping("getWmsInboundResult")
|
|
|
@ApiOperation(value = "展示入库实绩信息")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "apiId", value = "90", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
- public RESTfulResult getWmsInboundResult( Map<String, Object> mapValue,
|
|
|
+ public Map<String,Object> getWmsInboundResult( Map<String, Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize){
|
|
|
return wmsFeign.getWmsInboundResult(mapValue,apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+ @PostMapping("getWmspOutboundResult")
|
|
|
+ @ApiOperation(value = "展示出库实绩信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "152", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public Map<String,Object> getWmspOutboundResult(@RequestBody(required = false)
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId){
|
|
|
+ return wmsFeign.getWmspOutboundResult(apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+ @PostMapping("/insertWmspOutBoundResult")
|
|
|
+ @ApiOperation(value = "新增出单实绩并返回出库单详情")
|
|
|
+ public Map<String,Object> insertWmspOutBoundResult(@RequestBody(required = false)Map<String,Object> mapval){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.insertWmspOutBoundResult(mapval);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ @PostMapping("/insertWmspOutboundScanResult")
|
|
|
+ public Map<String,Object> insertWmspOutboundScanResult(@RequestBody(required = false) Map<String,Object> mapval){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.insertWmspOutboundScanResult(mapval);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ @PostMapping("/updataResultStatus")
|
|
|
+ public Map<String,Object> updataResultStatus(@RequestParam Integer resultId){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.updataResultStatus(resultId);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ @PostMapping("/getRmsMaterial")
|
|
|
+ public Map<String,Object> getRmsMaterial(@RequestBody(required = false) Map<String,Object> mapval){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.getRmsMaterial(mapval);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //查询实时库存数据
|
|
|
+ @PostMapping("/selectGridMaterialList")
|
|
|
+ @ApiOperation(value = "展示实时库存数据")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "216", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public Map<String,Object> selectGridMaterialList(@RequestBody(required = false) Map<String, Object> mapVal,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId) {
|
|
|
+ return wmsFeign.selectGridMaterialList(apiId, pageNum, pageSize);
|
|
|
|
|
|
+ }
|
|
|
+ //钢材异地库出库扫描
|
|
|
+ @PostMapping("/ScanResultTag")
|
|
|
+ public Map<String,Object> ScanResultTag(@RequestBody(required = false) Map<String,Object> mapval){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.ScanResultTag(mapval);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //钢材异地库出库展示实绩
|
|
|
+ @PostMapping("/getWmsOffsiteLibaryOutboundList")
|
|
|
+ @ApiOperation(value = "展示实时库存数据")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "164", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public Map<String,Object> getWmsOffsiteLibaryOutboundList(@RequestBody(required = false) Map<String, Object> mapVal,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId) {
|
|
|
+ return wmsFeign.getWmsOffsiteLibaryOutboundList(apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+ //展示钢材扫描入库实绩列表
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "165", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ @PostMapping("/getWmsOffsiteLibaryInboundList")
|
|
|
+ public Map<String,Object> getWmsOffsiteLibaryInboundList(@RequestBody(required = false) Map<String, Object> mapVal,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId) {
|
|
|
+ return wmsFeign.getWmsOffsiteLibaryOutboundList(apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+//钢材异地库扫描入库
|
|
|
+@PostMapping("/ScanResultTag")
|
|
|
+public Map<String,Object> insertOffsiteLibraryInbound(@RequestBody(required = false) Map<String,Object> map){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.insertOffsiteLibraryInbound(map);
|
|
|
+ return resTfulResult;
|
|
|
+}
|
|
|
+//展示实时库存数据
|
|
|
+@ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "153", required = false, dataType = "BigDecimal"),
|
|
|
+})
|
|
|
+@PostMapping("/getWmspIntransitInventory")
|
|
|
+public Map<String,Object> getWmspIntransitInventory(@RequestBody(required = false) Map<String, Object> mapVal,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId) {
|
|
|
+ return wmsFeign.getWmspIntransitInventory(apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+//新增倒库出库实绩
|
|
|
+@PostMapping("/insertOutBoundResult")
|
|
|
+public Map<String,Object> insertOutBoundResult(@RequestBody(required = false) Map<String,Object> map){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.insertOutBoundResult(map);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //新增倒库出库扫描实绩
|
|
|
+ @PostMapping("/AddWmspOutboundScanResult")
|
|
|
+ public Map<String,Object> AddWmspOutboundScanResult(@RequestBody(required = false) Map<String,Object> mapVal){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.AddWmspOutboundScanResult(mapVal);
|
|
|
+ return resTfulResult;
|
|
|
+}
|
|
|
+ //通过下拉框筛选数据
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "153", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ @PostMapping("/getWmspRestackMakeResultList")
|
|
|
+ public Map<String,Object> getWmspRestackMakeResultList(@RequestBody(required = false) Map<String, Object> mapVal,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ Integer warehouseid,
|
|
|
+ Integer gradtionNumber,
|
|
|
+ Integer stackingId) {
|
|
|
+ return wmsFeign.getWmspRestackMakeResultList(apiId,pageNum,pageSize,warehouseid,stackingId,gradtionNumber);
|
|
|
+ }
|
|
|
+ //添加倒垛单实绩
|
|
|
+ @PostMapping("/addRestackMakeResult")
|
|
|
+ public Map<String,Object> addRestackMakeResult(@RequestBody(required = false) Map<String,Object> mapVal){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.addRestackMakeResult(mapVal);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //删除倒垛单
|
|
|
+ @PostMapping("/deleteByResultId/{resultId}")
|
|
|
+ public Map<String,Object> deleteByResultId(@PathVariable Integer resultId){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.deleteByResultId(resultId);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //下发倒垛单
|
|
|
+ @PostMapping("/dispatchDistrubtionStatus/{resultId}")
|
|
|
+ public Map<String,Object> dispatchDistrubtionStatus(@PathVariable Integer resultId){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.dispatchDistrubtionStatus(resultId);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //下拉框获取层次
|
|
|
+ @PostMapping("/selectGardationNumber")
|
|
|
+ public Map<String,Object> selectGardationNumber(Integer warehouseid, Integer stackingId){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.selectGardationNumber(warehouseid,stackingId);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //下拉框获取仓库名称
|
|
|
+ @PostMapping("/selectWarehouse")
|
|
|
+ public Map<String,Object> selectWarehouse(){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.selectWarehouse();
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //下拉框获取仓库名称
|
|
|
+ @PostMapping("/selectStackingId")
|
|
|
+ public Map<String,Object> selectStackingId(Integer warehouseid){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.selectStackingId(warehouseid);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //展示倒垛单
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "119", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ @PostMapping("/selectRestackList")
|
|
|
+ public Map<String,Object> selectRestackList(@RequestBody(required = false) Map<String, Object> mapVal,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ Integer DistrubtionStatus) {
|
|
|
+ return wmsFeign.selectRestackList(apiId,pageNum,pageSize,DistrubtionStatus);
|
|
|
+ }
|
|
|
+ //修改倒垛单
|
|
|
+ @PostMapping("/addRestackMakeResult")
|
|
|
+ public Map<String,Object> editRestackMakeResult(@RequestBody(required = false) Map<String,Object> mapVal){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.editRestackMakeResult(mapVal);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //渲染倒垛后的仓库信息
|
|
|
+ @PostMapping("/selectAfterWarehouseByResultId/{resultId}")
|
|
|
+ public Map<String,Object> selectAfterWarehouseByResultId(@PathVariable Integer resultId){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.selectAfterWarehouseByResultId(resultId);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //渲染倒垛后的垛位信息
|
|
|
+ @PostMapping("/selectAfterstackingByResultId/{resultId}")
|
|
|
+ public Map<String,Object> selectAfterstackingByResultId(@PathVariable Integer resultId){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.selectAfterWarehouseByResultId(resultId);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //PDA展示倒垛单
|
|
|
+ @PostMapping("/selectRestackForPDA")
|
|
|
+ public Map<String,Object> selectRestackForPDA(@RequestBody(required = false) Map<String,Object> map){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.selectRestackForPDA(map);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //PDA根据实绩id查找物资信息
|
|
|
+ @PostMapping("/selectMaterialInfoByResultId")
|
|
|
+ public Map<String,Object> selectMaterialInfoByResultId(@RequestBody(required = false) Map<String,Object> map){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.selectMaterialInfoByResultId(map);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //PDA根据仓库id查找倒垛单
|
|
|
+ @PostMapping("/selectRestackByWarehouseId")
|
|
|
+ public Map<String,Object> selectRestackByWarehouseId(@RequestBody(required = false) Map<String,Object> map){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.selectRestackByWarehouseId(map);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //扫描吊牌添加扫描实绩
|
|
|
+ @PostMapping("/ScanTagResult")
|
|
|
+ public Map<String,Object> ScanTagResult(@RequestBody(required = false) Map<String,Object> mal){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.ScanTagResult(mal);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ //下发
|
|
|
+ @PostMapping("/Issue")
|
|
|
+ public Map<String,Object> Issue(@RequestBody(required = false) List<Map<String, Object>> mapList){
|
|
|
+ Map<String,Object> resTfulResult = wmsFeign.Issue(mapList);
|
|
|
+ return resTfulResult;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 2.展示退库实绩信息
|
|
|
+ * @param mapValue
|
|
|
+ * @param apiId
|
|
|
+ * @param pageNum
|
|
|
+ * @param pageSize
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/getWmsReboundResult")
|
|
|
+ @ApiOperation(value = "展示退库实绩信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "161", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult getWmsReboundResult( Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize){
|
|
|
+ return wmsFeign.getWmsReboundResult(mapValue,apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
|
|
|
+
|
|
|
+ @PostMapping("/getWmsIvboundResult")
|
|
|
+ @ApiOperation(value = "展示倒库实绩信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "162", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult getWmsIvboundResult( Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize){
|
|
|
+ return wmsFeign.getWmsIvboundResult(mapValue,apiId,pageNum,pageSize);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 展示倒库物资实绩
|
|
|
+ * @param mapValue
|
|
|
+ * @param apiId
|
|
|
+ * @param pageNum
|
|
|
+ * @param pageSize
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/getWmsIvboundMaterialt")
|
|
|
+ @ApiOperation(value = "展示倒库物资实绩")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "163", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult getWmsIvboundMaterial( Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize){
|
|
|
+ return wmsFeign.getWmsIvboundMaterial(mapValue,apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getInventoryCheck")
|
|
|
+ @ApiOperation(value = "展示库存盘点实绩")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "94", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult getInventoryCheck( Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize){
|
|
|
+ return wmsFeign.getInventoryCheck(mapValue,apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getInventoryClose")
|
|
|
+ @ApiOperation(value = "展示库存结转实绩")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "95", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult getInventoryClose( Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize){
|
|
|
+ return wmsFeign.getInventoryClose(mapValue,apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getSendReceive")
|
|
|
+ @ApiOperation(value = "展示收发存实绩")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "97", required = false, dataType = "BigDecimal"),
|
|
|
+ })
|
|
|
+ public RESTfulResult getSendReceive( Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize){
|
|
|
+ return wmsFeign.getSendReceive(mapValue,apiId,pageNum,pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 展示未下发吊钢工扫描吊牌实绩
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="展示未下发吊钢工扫描吊牌实绩")
|
|
|
+ @PostMapping("/getTagResult")
|
|
|
+ public Map<String,Object> getTagResult(){
|
|
|
+ return wmsFeign.getTagResult();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 展示正常入库吊钢工扫描吊牌实绩
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="展示正常入库吊钢工扫描吊牌实绩")
|
|
|
+ @PostMapping("/getIssuedTagResult")
|
|
|
+ public Map getIssuedTagResult(){
|
|
|
+ return wmsFeign.getIssuedTagResult();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 展示异常入库吊钢工扫描吊牌实绩
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="展示异常入库吊钢工扫描吊牌实绩")
|
|
|
+ @PostMapping("/getIssuedTagNoResult")
|
|
|
+ public Map getIssuedTagNoResult(){
|
|
|
+ return wmsFeign.getIssuedTagNoResult();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 展示已退库吊钢工扫描吊牌实绩
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="展示已退库吊钢工扫描吊牌实绩")
|
|
|
+ @PostMapping("/getReIssuedResult")
|
|
|
+ public Map getReIssuedResult(){
|
|
|
+ return wmsFeign.getIssuedResult();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 展示未下发退库吊钢工扫描吊牌实绩
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="展示未下发退库吊钢工扫描吊牌实绩")
|
|
|
+ @PostMapping("/getReTagResult")
|
|
|
+ public Map getReTagResult(){
|
|
|
+ return wmsFeign.getReTagResult();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 展示已倒库入库吊钢工扫描吊牌实绩
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="展示已倒库入库吊钢工扫描吊牌实绩")
|
|
|
+ @PostMapping("/getIvIssuedResult")
|
|
|
+ public Map getIvIssuedResult(){
|
|
|
+ return wmsFeign.getIvIssuedResult();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 展示未下发退库吊钢工扫描吊牌实绩
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="展示未下发退库吊钢工扫描吊牌实绩")
|
|
|
+ @PostMapping("/getIvTagResult")
|
|
|
+ public Map getIvTagResult(){
|
|
|
+ return wmsFeign.getIvTagResult();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增入库实绩
|
|
|
+ * @param mapList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("新增入库实绩")
|
|
|
+ @PostMapping("/insertInboundResult")
|
|
|
+ @Transactional
|
|
|
+ public String addInvoice(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ /*
|
|
|
+ 获取入库物资件数
|
|
|
+ */
|
|
|
+ int size = mapList.size();
|
|
|
+ /*
|
|
|
+ 获取入库垛位
|
|
|
+ */
|
|
|
+ Map<String,Object> map1=qmsFeign.getStackingId(new BigDecimal(1),size);
|
|
|
+ String stackNo=(String) map1.get("stackNo");
|
|
|
+ BigDecimal stackId=new BigDecimal(map1.get("stackId").toString());
|
|
|
+ for (Map<String,Object> map:mapList
|
|
|
+ ){
|
|
|
+ map.put("stackingId",stackId);
|
|
|
+ }
|
|
|
+ wmsFeign.insertInboundResult(mapList);
|
|
|
+ return stackNo;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增退库实绩
|
|
|
+ * @param mapList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("新增退库实绩")
|
|
|
+ @PostMapping("/insertReboundResult")
|
|
|
+ @Transactional
|
|
|
+ public String addReboundResult(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ /*
|
|
|
+ 获取入库物资件数
|
|
|
+ */
|
|
|
+ int size = mapList.size();
|
|
|
+ /*
|
|
|
+ 获取入库垛位
|
|
|
+ */
|
|
|
+ Map<String,Object> map1=qmsFeign.getStackingId(new BigDecimal(1),size);
|
|
|
+ String stackNo=(String) map1.get("stackNo");
|
|
|
+ BigDecimal stackId=new BigDecimal(map1.get("stackId").toString());
|
|
|
+ for (Map<String,Object> map:mapList
|
|
|
+ ){
|
|
|
+ map.put("stackingId",stackId);
|
|
|
+ }
|
|
|
+ wmsFeign.insertReboundResult(mapList);
|
|
|
+ return stackNo;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增倒库入库实绩
|
|
|
+ * @param mapList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("新增倒库入库实绩")
|
|
|
+ @PostMapping("/insertIvboundResult")
|
|
|
+ @Transactional
|
|
|
+ public String addIvboundResult(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ /*
|
|
|
+ 获取入库物资件数
|
|
|
+ */
|
|
|
+ int size = mapList.size();
|
|
|
+ /*
|
|
|
+ 获取入库垛位
|
|
|
+ */
|
|
|
+ Map<String,Object> map1=qmsFeign.getStackingId(new BigDecimal(1),size);
|
|
|
+ String stackNo=(String) map1.get("stackNo");
|
|
|
+ BigDecimal stackId=new BigDecimal(map1.get("stackId").toString());
|
|
|
+ for (Map<String,Object> map:mapList
|
|
|
+ ){
|
|
|
+ map.put("stackingId",stackId);
|
|
|
+ }
|
|
|
+ wmsFeign.insertIvboundResult(mapList);
|
|
|
+ return stackNo;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *展示入库垛位
|
|
|
+ * @param DriverId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/getInboundStack")
|
|
|
+ @ApiOperation(value = "展示入库垛位")
|
|
|
+ public Integer getInboundStack(Integer DriverId){
|
|
|
+ return wmsFeign.getInboundStack(DriverId);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 新增库存盘点
|
|
|
+ * @param map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/inventoryCheck")
|
|
|
+ @ApiOperation(value = "新增库存盘点")
|
|
|
+ public Map<String, Object> inventoryCheck(@RequestBody(required = false) Map<String,Object> map) {
|
|
|
+ return wmsFeign.inventoryCheck(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增入库扫描吊牌实绩
|
|
|
+ * @param map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "新增入库扫描吊牌实绩")
|
|
|
+ @PostMapping("/insertResult")
|
|
|
+ @Transactional
|
|
|
+ public Map<String,Object> insertResult(@RequestBody(required = false)Map<String,Object>map){
|
|
|
+ return wmsFeign.insertResult(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增退库扫描吊牌实绩
|
|
|
+ * @param map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "新增退库扫描吊牌实绩")
|
|
|
+ @PostMapping("/insertReboundScanResult")
|
|
|
+ @Transactional
|
|
|
+ public Map<String,Object> insertReboundScanResult(@RequestBody(required = false)Map<String,Object>map){
|
|
|
+ return wmsFeign.insertReboundScanResult(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增倒库入库扫描吊牌实绩
|
|
|
+ * @param map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "新增倒库入库扫描吊牌实绩")
|
|
|
+ @PostMapping("/insertIvboundScanResult")
|
|
|
+ @Transactional
|
|
|
+ public Map<String,Object> insertIvboundScanResult(@RequestBody(required = false)Map<String,Object>map){
|
|
|
+ return wmsFeign.insertIvboundScanResult(map);
|
|
|
+ }
|
|
|
+
|
|
|
}
|