KPI修改入出库类型判断、出库单据流水、平库入库流水、平库出库流水
This commit is contained in:
@@ -50,7 +50,7 @@ public class KpiServiceImpl implements KpiService
|
||||
|
||||
for (MydoJobFinish job : list) {
|
||||
// 检查入库作业标识是否小于10
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) >= 10) {
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) >= 20) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -89,11 +89,11 @@ public class KpiServiceImpl implements KpiService
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库均匀分析数据
|
||||
* 获取出库均匀分析数据
|
||||
*
|
||||
* @param warehouseId 仓库ID
|
||||
* @param yearMonth 年月(格式:yyyy-MM)
|
||||
* @return 入库均匀分析数据
|
||||
* @return 出库均匀分析数据
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> getOutAnalysis(String warehouseId, String yearMonth)
|
||||
@@ -106,7 +106,7 @@ public class KpiServiceImpl implements KpiService
|
||||
|
||||
for (MydoJobFinish job : list) {
|
||||
// 检查出入库作业标识是否大于10
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) < 10) {
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) < 20) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ public class KpiServiceImpl implements KpiService
|
||||
// 区分入库和出库作业
|
||||
if (job.getInOrOut() != null) {
|
||||
int inOrOut = Integer.parseInt(job.getInOrOut());
|
||||
if (inOrOut < 10) {
|
||||
if (inOrOut < 20) {
|
||||
// 入库作业
|
||||
inCounts.put(roadwayId, inCounts.getOrDefault(roadwayId, 0) + 1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user