|
|
|
@ -209,14 +209,15 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
@ApiOperation(value = "检查备货区", notes = "传入stockupDTO") |
|
|
|
|
public R scanStockUpArea(@RequestParam Long stockUpAreaCode) { |
|
|
|
|
BasicdataGoodsAllocationEntity basicdataGoodsAllocationEntity = basicdataGoodsAllocationClient.scanStockUpAllocationByCode(stockUpAreaCode); |
|
|
|
|
if (Func.isEmpty(basicdataGoodsAllocationEntity)){ |
|
|
|
|
return Resp.scanFail("无此库位信息","无此库位信息"); |
|
|
|
|
} |
|
|
|
|
Long goodsAreaId = basicdataGoodsAllocationEntity.getGoodsAreaId(); |
|
|
|
|
BasicdataGoodsAreaEntity entityByGoodsAreaId = basicdataGoodsAreaClient.getEntityByGoodsAreaId(goodsAreaId); |
|
|
|
|
if (entityByGoodsAreaId.getAreaType().equals("1")){ |
|
|
|
|
if (entityByGoodsAreaId.getAreaType().equals("2")){ |
|
|
|
|
return Resp.scanFail("不是备货区库位","不是备货区库位"); |
|
|
|
|
} |
|
|
|
|
if (Func.isEmpty(basicdataGoodsAllocationEntity)){ |
|
|
|
|
return Resp.scanFail("无此库位信息","无此库位信息"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return R.data(basicdataGoodsAllocationEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|