containsKey
This commit is contained in:
@@ -270,9 +270,9 @@ public class ScheduledJob {
|
|||||||
|
|
||||||
List<String> standId = sarStandardsInfoDao.selectIdFormDTBZH(DTBJH);
|
List<String> standId = sarStandardsInfoDao.selectIdFormDTBZH(DTBJH);
|
||||||
if (standId.size() > 0) {
|
if (standId.size() > 0) {
|
||||||
|
boolean b = replaceIdCountMap.containsKey(standId.get(0));
|
||||||
//如果代替标准id已存在则映射为2不存在则添加并映射为1
|
//如果代替标准id已存在则映射为2不存在则添加并映射为1
|
||||||
if (replaceIdCountMap.containsKey(standId)) {
|
if (b) {
|
||||||
replaceIdCountMap.replace(standId.get(0), 2);
|
replaceIdCountMap.replace(standId.get(0), 2);
|
||||||
} else {
|
} else {
|
||||||
replaceIdCountMap.put(standId.get(0), 1);
|
replaceIdCountMap.put(standId.get(0), 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user