Browse Source

修改查询库存固定资产

master
fanzongzhe0036 4 months ago
parent
commit
7741153f31
  1. 4
      yxt-wms-biz/src/main/java/com/yxt/wms/apiadmin/inventroy/WmsInventoryRest.java
  2. 13
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventory/WmsInventoryService.java

4
yxt-wms-biz/src/main/java/com/yxt/wms/apiadmin/inventroy/WmsInventoryRest.java

@ -351,9 +351,9 @@ public class WmsInventoryRest {
//------------------------------ 行政类审批查询库存 ---------------------------------------
@ApiOperation("行政类审批查询库存")
@PostMapping("/oaInventoryList")
public ResultBean<List<FormCommon>> oaInventoryList(@RequestParam("orgPath") String orgPath, @RequestParam("warehouseTypeValue") String warehouseTypeValue) {
public ResultBean<List<FormCommon>> oaInventoryList(@RequestParam("orgPath") String orgPath) {
ResultBean<List<FormCommon>> rb = ResultBean.fireFail();
List<FormCommon> list = wmsInventoryService.oaInventoryList(orgPath, warehouseTypeValue);
List<FormCommon> list = wmsInventoryService.oaInventoryList(orgPath,"固定资产库");
return rb.success().setData(list);
}

13
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventory/WmsInventoryService.java

@ -1370,8 +1370,11 @@ public class WmsInventoryService extends MybatisBaseService<WmsInventoryMapper,
for (WmsInventory d : inventories) {
FormCommon f = new FormCommon();
f.setId(d.getSid());
f.setDictValue(d.getGoodsSpuName());
f.setDictValue(d.getGoodsID());
Map<String, Object> extra = new HashMap<>();
if (StringUtils.isNotBlank(d.getGoodsSpuName())) {
extra.put("goodsSpuName", d.getGoodsSpuName());
}
if (null != d.getCount()) {
extra.put("count", d.getCount().toString());
}
@ -1387,14 +1390,6 @@ public class WmsInventoryService extends MybatisBaseService<WmsInventoryMapper,
if (StringUtils.isNotBlank(d.getUnit())) {
extra.put("unit", d.getUnit());
}
if (warehouseTypeValue.equals("招待库")) {
String price = baseGoodsSkuExtendFeign.selSalesPrice(d.getGoodsSkuSid()).getData();
if (StringUtils.isNotBlank(price)) {
extra.put("price", price);
} else {
extra.put("price", "");
}
}
f.setExtra(extra);
list.add(f);
}

Loading…
Cancel
Save