rev: 盘点确认

This commit is contained in:
2023-05-31 18:30:26 +08:00
parent f862349a78
commit 4e77ef19a2
2 changed files with 20 additions and 6 deletions

View File

@@ -43,6 +43,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
@@ -343,7 +344,24 @@ public class StIvtCheckmstCpServiceImpl extends ServiceImpl<StIvtCheckmstCpMappe
@Override
public Object getBucketrecord(JSONObject whereJson) {
return mdPbBucketrecordMapper.queryAll(whereJson);
List<Map> maps = mdPbBucketrecordMapper.queryAll(whereJson);
if (ObjectUtil.isEmpty(maps)) {
JSONObject param = new JSONObject();
param.put("checkdtl_id", whereJson.getString("checkdtl_id"));
List<Map> checkDtl = this.getCheckDtl(param);
for (Map json : checkDtl) {
json.put("storage_qty", json.get("base_qty"));
}
maps = checkDtl;
}
return maps;
}
@Override