|
|
@@ -19,9 +19,11 @@ import java.util.List;
|
|
|
public interface IStockGoodsClient {
|
|
|
String API_PREFIX = "/client";
|
|
|
String SELECT_STOKE = API_PREFIX + "/select-stock";
|
|
|
- String SAVE_STOCK = API_PREFIX + "/save-stock" ;
|
|
|
+ String SAVE_STOCK = API_PREFIX + "/save-stock";
|
|
|
+ String SAVE_STOCK_YCP = API_PREFIX + "/save-stockYCP";
|
|
|
String GET_STOCK = API_PREFIX + "/get_stock";
|
|
|
String UPDATE_STOCK = API_PREFIX + "/updateStock";
|
|
|
+ String UPDATE_STOCK_YCP = API_PREFIX + "/updateStockYCP";
|
|
|
String GET_STOCK_BY_ID = API_PREFIX + "/getStockByID";
|
|
|
String GET_ONE = API_PREFIX + "/getOne";
|
|
|
String GET_STOCK_BY_CONDITIONS = API_PREFIX + "/getStockByCondition";
|
|
|
@@ -31,82 +33,109 @@ public interface IStockGoodsClient {
|
|
|
String UPDATE_STOCK_GOODS = API_PREFIX + "/updateStockGoods";
|
|
|
String GET_STOCK_GOODS_ALL = API_PREFIX + "/selectStockGoodsAll";
|
|
|
String SELECT_STOCK_PARTS = API_PREFIX + "/selectStockParts";
|
|
|
+ String SELECT_STOCK_PARTS_YCP = API_PREFIX + "/selectStockPartsYCP";
|
|
|
+ String SELECT_LIST_BY_GOODS_ID = API_PREFIX + "/selectListByGoodsId";
|
|
|
|
|
|
|
|
|
@GetMapping("/stockgoods/stocklist")
|
|
|
- List<StockGoods> list(
|
|
|
- @RequestParam(value = "code",required = false)String code,
|
|
|
- @RequestParam(value = "cname",required = false)String cname,
|
|
|
- @RequestParam(value = "brandItem",required = false)String brandItem,
|
|
|
- @RequestParam(value = "placeProduction",required = false)String placeProduction,
|
|
|
- @RequestParam(value = "typeno",required = false)String typeno,
|
|
|
- @RequestParam(value = "typenoOne",required = false)String typenoOne,
|
|
|
- @RequestParam(value = "typenoTwo",required = false)String typenoTwo,
|
|
|
- @RequestParam(value = "stockName",required = false)String stockName,
|
|
|
- @RequestParam(value = "brand",required = false)String brand,
|
|
|
- @RequestParam(value = "tenantId",required = false)String tenantId,
|
|
|
- @RequestParam(value = "createStartTime",required = false)String createStartTime,
|
|
|
- @RequestParam(value = "createEndTime",required = false)String createEndTime,
|
|
|
- @RequestParam(value = "size",required = false)String size,
|
|
|
- @RequestParam(value = "current",required = false)String current
|
|
|
- );
|
|
|
+ List<StockGoods> list(
|
|
|
+ @RequestParam(value = "code", required = false) String code,
|
|
|
+ @RequestParam(value = "cname", required = false) String cname,
|
|
|
+ @RequestParam(value = "brandItem", required = false) String brandItem,
|
|
|
+ @RequestParam(value = "placeProduction", required = false) String placeProduction,
|
|
|
+ @RequestParam(value = "typeno", required = false) String typeno,
|
|
|
+ @RequestParam(value = "typenoOne", required = false) String typenoOne,
|
|
|
+ @RequestParam(value = "typenoTwo", required = false) String typenoTwo,
|
|
|
+ @RequestParam(value = "stockName", required = false) String stockName,
|
|
|
+ @RequestParam(value = "brand", required = false) String brand,
|
|
|
+ @RequestParam(value = "tenantId", required = false) String tenantId,
|
|
|
+ @RequestParam(value = "createStartTime", required = false) String createStartTime,
|
|
|
+ @RequestParam(value = "createEndTime", required = false) String createEndTime,
|
|
|
+ @RequestParam(value = "size", required = false) String size,
|
|
|
+ @RequestParam(value = "current", required = false) String current
|
|
|
+ );
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 查询库存总账 是否存在
|
|
|
- * @param corpId 客户id
|
|
|
- * @param storageId 仓库id
|
|
|
- * @param goodId 商品id
|
|
|
- * @param itemType 产品规格型号
|
|
|
- * @param lotNo 批次号
|
|
|
- * @param cntrNo 箱号
|
|
|
- * @param billNo 提单号
|
|
|
+ *
|
|
|
+ * @param corpId 客户id
|
|
|
+ * @param storageId 仓库id
|
|
|
+ * @param goodId 商品id
|
|
|
+ * @param itemType 产品规格型号
|
|
|
+ * @param lotNo 批次号
|
|
|
+ * @param cntrNo 箱号
|
|
|
+ * @param billNo 提单号
|
|
|
* @param contractNumber 合同号
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(SELECT_STOKE)
|
|
|
- R<StockGoodsVO> selectStock(@RequestParam(value = "corpId",required = false)Long corpId,
|
|
|
- @RequestParam(value = "storageId",required = false)Long storageId,
|
|
|
- @RequestParam("goodId")Long goodId,
|
|
|
- @RequestParam(value = "itemType",required = false)String itemType,
|
|
|
- @RequestParam(value = "lotNo",required = false)String lotNo,
|
|
|
- @RequestParam(value = "cntrNo",required = false)String cntrNo,
|
|
|
- @RequestParam(value = "billNo",required = false)String billNo,
|
|
|
- @RequestParam(value = "contractNumber",required = false)String contractNumber,
|
|
|
- @RequestParam(value = "tradeType",required = false)String tradeType);
|
|
|
+ R<StockGoodsVO> selectStock(@RequestParam(value = "corpId", required = false) Long corpId,
|
|
|
+ @RequestParam(value = "storageId", required = false) Long storageId,
|
|
|
+ @RequestParam("goodId") Long goodId,
|
|
|
+ @RequestParam(value = "itemType", required = false) String itemType,
|
|
|
+ @RequestParam(value = "lotNo", required = false) String lotNo,
|
|
|
+ @RequestParam(value = "cntrNo", required = false) String cntrNo,
|
|
|
+ @RequestParam(value = "billNo", required = false) String billNo,
|
|
|
+ @RequestParam(value = "contractNumber", required = false) String contractNumber,
|
|
|
+ @RequestParam(value = "tradeType", required = false) String tradeType);
|
|
|
|
|
|
/**
|
|
|
* 查询库存总账 是否存在
|
|
|
- * @param corpId 客户id
|
|
|
- * @param storageId 仓库id
|
|
|
- * @param goodId 商品id
|
|
|
- * @param itemType 产品规格型号
|
|
|
- * @param lotNo 批次号
|
|
|
- * @param cntrNo 箱号
|
|
|
- * @param billNo 提单号
|
|
|
+ *
|
|
|
+ * @param corpId 客户id
|
|
|
+ * @param storageId 仓库id
|
|
|
+ * @param goodId 商品id
|
|
|
+ * @param itemType 产品规格型号
|
|
|
+ * @param lotNo 批次号
|
|
|
+ * @param cntrNo 箱号
|
|
|
+ * @param billNo 提单号
|
|
|
* @param contractNumber 合同号
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(SELECT_STOCK_PARTS)
|
|
|
- R<StockGoodsVO> selectStockParts(@RequestParam(value = "corpId",required = false)Long corpId,
|
|
|
- @RequestParam(value = "storageId",required = false)Long storageId,
|
|
|
- @RequestParam("goodId")Long goodId,
|
|
|
- @RequestParam(value = "itemType",required = false)String itemType,
|
|
|
- @RequestParam(value = "lotNo",required = false)String lotNo,
|
|
|
- @RequestParam(value = "cntrNo",required = false)String cntrNo,
|
|
|
- @RequestParam(value = "billNo",required = false)String billNo,
|
|
|
- @RequestParam(value = "contractNumber",required = false)String contractNumber,
|
|
|
- @RequestParam(value = "tradeType",required = false)String tradeType);
|
|
|
+ R<StockGoodsVO> selectStockParts(@RequestParam(value = "corpId", required = false) Long corpId,
|
|
|
+ @RequestParam(value = "storageId", required = false) Long storageId,
|
|
|
+ @RequestParam("goodId") Long goodId,
|
|
|
+ @RequestParam(value = "itemType", required = false) String itemType,
|
|
|
+ @RequestParam(value = "lotNo", required = false) String lotNo,
|
|
|
+ @RequestParam(value = "cntrNo", required = false) String cntrNo,
|
|
|
+ @RequestParam(value = "billNo", required = false) String billNo,
|
|
|
+ @RequestParam(value = "contractNumber", required = false) String contractNumber,
|
|
|
+ @RequestParam(value = "tradeType", required = false) String tradeType);
|
|
|
+
|
|
|
+ @GetMapping(SELECT_STOCK_PARTS_YCP)
|
|
|
+ R<StockGoodsVO> selectStockPartsYCP(@RequestParam(value = "corpId", required = false) Long corpId,
|
|
|
+ @RequestParam(value = "storageId", required = false) Long storageId,
|
|
|
+ @RequestParam("goodId") Long goodId,
|
|
|
+ @RequestParam(value = "itemType", required = false) String itemType,
|
|
|
+ @RequestParam(value = "lotNo", required = false) String lotNo,
|
|
|
+ @RequestParam(value = "cntrNo", required = false) String cntrNo,
|
|
|
+ @RequestParam(value = "billNo", required = false) String billNo,
|
|
|
+ @RequestParam(value = "contractNumber", required = false) String contractNumber,
|
|
|
+ @RequestParam(value = "tenantId", required = false) String tenantId,
|
|
|
+ @RequestParam(value = "tradeType", required = false) String tradeType);
|
|
|
|
|
|
/**
|
|
|
* 新增库存总账
|
|
|
+ *
|
|
|
* @param stockGoods
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping(SAVE_STOCK)
|
|
|
R saveStock(@RequestBody StockGoods stockGoods);
|
|
|
/**
|
|
|
+ * 新增库存总账
|
|
|
+ *
|
|
|
+ * @param stockGoods
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(SAVE_STOCK_YCP)
|
|
|
+ R saveStockYCP(@RequestBody StockGoods stockGoods);
|
|
|
+
|
|
|
+ /**
|
|
|
* 订单明细查询库存总账
|
|
|
+ *
|
|
|
* @param stockGoods
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -118,17 +147,28 @@ public interface IStockGoodsClient {
|
|
|
|
|
|
/**
|
|
|
* 修改库存总账
|
|
|
+ *
|
|
|
* @param stockGoods
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping(UPDATE_STOCK)
|
|
|
boolean updateStock(@RequestBody StockGoods stockGoods);
|
|
|
|
|
|
+ /**
|
|
|
+ * 修改库存总账
|
|
|
+ *
|
|
|
+ * @param stockGoods
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(UPDATE_STOCK_YCP)
|
|
|
+ boolean updateStockYCP(@RequestBody StockGoods stockGoods);
|
|
|
+
|
|
|
@PostMapping(UPDATE_STOCK_GOODS)
|
|
|
int updateStockGoods(@RequestBody StockGoods stockGoods);
|
|
|
|
|
|
/**
|
|
|
* 根据库存账id获取库存id
|
|
|
+ *
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -137,6 +177,7 @@ public interface IStockGoodsClient {
|
|
|
|
|
|
/**
|
|
|
* 查询某一个库存
|
|
|
+ *
|
|
|
* @param stockGoods
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -144,23 +185,27 @@ public interface IStockGoodsClient {
|
|
|
StockGoods getOneStock(@RequestBody StockGoods stockGoods);
|
|
|
|
|
|
@GetMapping(LIST_STOCK_BY_CONDITIONS)
|
|
|
- List<StockGoods> listStockByCondition(StockGoods stockGoods);
|
|
|
+ List<StockGoods> listStockByCondition(StockGoods stockGoods);
|
|
|
|
|
|
@PostMapping(POST_LIST_STOCK_BY_CONDITIONS)
|
|
|
- List<StockGoods> postListStockByCondition(@RequestBody StockGoods stockGoods);
|
|
|
+ List<StockGoods> postListStockByCondition(@RequestBody StockGoods stockGoods);
|
|
|
|
|
|
/**
|
|
|
* 根据商品id 租户 获取对应租户商品的库存数量
|
|
|
+ *
|
|
|
* @param goodId
|
|
|
* @param tenantId
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(GET_STOCK_NUMBER)
|
|
|
- BigDecimal getStockNumber(@RequestParam("goodId")Long goodId,@RequestParam("tenantId")String tenantId);
|
|
|
+ BigDecimal getStockNumber(@RequestParam("goodId") Long goodId, @RequestParam("tenantId") String tenantId);
|
|
|
|
|
|
/***
|
|
|
* 获取租户下所有库区
|
|
|
*/
|
|
|
@GetMapping(GET_STOCK_GOODS_ALL)
|
|
|
List<StockGoods> selectStockGoodsAll();
|
|
|
+
|
|
|
+ @GetMapping(SELECT_LIST_BY_GOODS_ID)
|
|
|
+ List<StockGoods> selectListByGoodsId(@RequestParam("goodId") Long id);
|
|
|
}
|