|
@@ -637,8 +637,8 @@ public class TWhgenlegServiceImpl implements ITWhgenlegService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<Map<String, Object>> biCustomerInfo() {
|
|
|
- return tWhgenlegMapper.biCustomerInfo();
|
|
|
+ public List<Map<String, Object>> biCustomerInfo(Long warehouseId) {
|
|
|
+ return tWhgenlegMapper.biCustomerInfo(warehouseId);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -647,8 +647,8 @@ public class TWhgenlegServiceImpl implements ITWhgenlegService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Map<String, Object> biStockCount() {
|
|
|
- return tWhgenlegMapper.stockStatistics(null, null, null);
|
|
|
+ public Map<String, Object> biStockCount(Long warehouseId) {
|
|
|
+ return tWhgenlegMapper.stockStatistics(null, null, null, warehouseId);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -657,8 +657,8 @@ public class TWhgenlegServiceImpl implements ITWhgenlegService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<Map<String, Object>> biGoodsInfo() {
|
|
|
- return tWhgenlegMapper.biGoodsInfo();
|
|
|
+ public List<Map<String, Object>> biGoodsInfo(Long warehouseId) {
|
|
|
+ return tWhgenlegMapper.biGoodsInfo(warehouseId);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -667,8 +667,8 @@ public class TWhgenlegServiceImpl implements ITWhgenlegService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Map<String, Object> biMaxStockDays() {
|
|
|
- return tWhgenlegMapper.stockDays(null);
|
|
|
+ public Map<String, Object> biMaxStockDays(Long warehouseId) {
|
|
|
+ return tWhgenlegMapper.stockDays(null, warehouseId);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -677,42 +677,42 @@ public class TWhgenlegServiceImpl implements ITWhgenlegService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<Map<String, Object>> biStockDaysInfo() {
|
|
|
+ public List<Map<String, Object>> biStockDaysInfo(Long warehouseId) {
|
|
|
List<Map<String, Object>> data = new ArrayList<>();
|
|
|
Map<String, Object> item;
|
|
|
|
|
|
item = tWhgenlegMapper.stockStatistics(DateUtils.offsetDate(-6) + " 00:00:00",
|
|
|
- null, null);
|
|
|
+ null, null, warehouseId);
|
|
|
item.put("name", "7天以内");
|
|
|
data.add(item);
|
|
|
|
|
|
item = tWhgenlegMapper.stockStatistics(DateUtils.offsetDate(-14) + " 00:00:00",
|
|
|
- DateUtils.offsetDate(-6) + " 00:00:00", null);
|
|
|
+ DateUtils.offsetDate(-6) + " 00:00:00", null, warehouseId);
|
|
|
item.put("name", "7~15天");
|
|
|
data.add(item);
|
|
|
|
|
|
item = tWhgenlegMapper.stockStatistics(DateUtils.offsetDate(-29) + " 00:00:00",
|
|
|
- DateUtils.offsetDate(-14) + " 00:00:00", null);
|
|
|
+ DateUtils.offsetDate(-14) + " 00:00:00", null, warehouseId);
|
|
|
item.put("name", "15~30天");
|
|
|
data.add(item);
|
|
|
|
|
|
item = tWhgenlegMapper.stockStatistics(DateUtils.offsetDate(-59) + " 00:00:00",
|
|
|
- DateUtils.offsetDate(-29) + " 00:00:00", null);
|
|
|
+ DateUtils.offsetDate(-29) + " 00:00:00", null, warehouseId);
|
|
|
item.put("name", "30~60天");
|
|
|
data.add(item);
|
|
|
|
|
|
item = tWhgenlegMapper.stockStatistics(DateUtils.offsetDate(-89) + " 00:00:00",
|
|
|
- DateUtils.offsetDate(-59) + " 00:00:00", null);
|
|
|
+ DateUtils.offsetDate(-59) + " 00:00:00", null, warehouseId);
|
|
|
item.put("name", "60~90天");
|
|
|
data.add(item);
|
|
|
|
|
|
item = tWhgenlegMapper.stockStatistics(DateUtils.offsetDate(-179) + " 00:00:00",
|
|
|
- DateUtils.offsetDate(-89) + " 00:00:00", null);
|
|
|
+ DateUtils.offsetDate(-89) + " 00:00:00", null, warehouseId);
|
|
|
item.put("name", "90~180天");
|
|
|
data.add(item);
|
|
|
|
|
|
item = tWhgenlegMapper.stockStatistics(null,
|
|
|
- DateUtils.offsetDate(-179) + " 00:00:00", null);
|
|
|
+ DateUtils.offsetDate(-179) + " 00:00:00", null, warehouseId);
|
|
|
item.put("name", "超过180天");
|
|
|
data.add(item);
|
|
|
|