备品备件优化
This commit is contained in:
@ -172,7 +172,7 @@ public class OpsBeipinBeijianServiceImpl extends ServiceImpl<OpsBeipinBeijianMap
|
|||||||
for (OpsBeipinBeijianDto item : records) {
|
for (OpsBeipinBeijianDto item : records) {
|
||||||
long kucunCount = item.getRuKuCount() - item.getChuKuCount();
|
long kucunCount = item.getRuKuCount() - item.getChuKuCount();
|
||||||
zonCount += kucunCount;
|
zonCount += kucunCount;
|
||||||
if (kucunCount == 0 || (item.getRuKuCount() > 0 && item.getRuKuCount() / 2 > item.getKucunCount())){
|
if (kucunCount == 0 || (item.getRuKuCount() > 0 && item.getRuKuCount() / 2 > kucunCount)){
|
||||||
diCount++;
|
diCount++;
|
||||||
}
|
}
|
||||||
if (!map.containsKey(item.getShebeiType())) {
|
if (!map.containsKey(item.getShebeiType())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user