|
|
|
|
@ -136,11 +136,13 @@ public class StockService {
|
|
|
|
|
for(String columnTab: rowColumnStatus.getColumnTabs()){
|
|
|
|
|
if(isRowColumnInTab(stock,columnTab,false)){
|
|
|
|
|
tabStatus(stock,columnTabStatus,columnTab);
|
|
|
|
|
if(columnTabCorrectCount.get(columnTab) == null){
|
|
|
|
|
columnTabCorrectCount.put(columnTab,1);
|
|
|
|
|
}else {
|
|
|
|
|
int c = columnTabCorrectCount.get(columnTab);
|
|
|
|
|
columnTabCorrectCount.put(columnTab,c+1);
|
|
|
|
|
if(stock.getStatus() != 0 && stock.getStatus() != 1) {
|
|
|
|
|
if (columnTabCorrectCount.get(columnTab) == null) {
|
|
|
|
|
columnTabCorrectCount.put(columnTab, 1);
|
|
|
|
|
} else {
|
|
|
|
|
int c = columnTabCorrectCount.get(columnTab);
|
|
|
|
|
columnTabCorrectCount.put(columnTab, c + 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -151,7 +153,7 @@ public class StockService {
|
|
|
|
|
String [] strings = entry.getKey().split(" - ");
|
|
|
|
|
Integer tabStart = Integer.valueOf(strings[0]);
|
|
|
|
|
Integer tabEnd = Integer.valueOf(strings[1]);
|
|
|
|
|
int counts = (tabEnd- tabStart) * rows;
|
|
|
|
|
int counts = (tabEnd- tabStart + 1) * rows;
|
|
|
|
|
if(counts == entry.getValue()){
|
|
|
|
|
rowTabStatus.put(entry.getKey(),2);
|
|
|
|
|
}
|
|
|
|
|
@ -160,7 +162,7 @@ public class StockService {
|
|
|
|
|
String [] strings = entry.getKey().split(" - ");
|
|
|
|
|
Integer tabStart = Integer.valueOf(strings[0]);
|
|
|
|
|
Integer tabEnd = Integer.valueOf(strings[1]);
|
|
|
|
|
int counts = (tabEnd- tabStart) * rows;
|
|
|
|
|
int counts = (tabEnd- tabStart + 1) * rows;
|
|
|
|
|
if(counts == entry.getValue()){
|
|
|
|
|
columnTabStatus.put(entry.getKey(),2);
|
|
|
|
|
}
|
|
|
|
|
@ -206,9 +208,6 @@ public class StockService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//0 : 未盘点 1:盘点异常 2:盘点正确
|
|
|
|
|
//1>0>2 替换为
|
|
|
|
|
// 盘点异常 未盘点 盘点正确
|
|
|
|
|
// 1000 100 10
|
|
|
|
|
|
|
|
|
|
private void tabStatus(Stock stock,Map<String,Integer> tabStatus,String tab){
|
|
|
|
|
if(tabStatus.get(tab) == null){
|
|
|
|
|
|