Commit 01d7e404 authored by hezhuozhi's avatar hezhuozhi

Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register

parents 162d0079 6a1fdad6
...@@ -2680,10 +2680,17 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -2680,10 +2680,17 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
records.add(record); records.add(record);
}); });
LambdaQueryWrapper<IdxBizJgOtherInfo> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<IdxBizJgOtherInfo> wrapper = new LambdaQueryWrapper<>();
wrapper.select(IdxBizJgOtherInfo::getRecord,IdxBizJgOtherInfo::getInformationSituation); wrapper.select(IdxBizJgOtherInfo::getRecord, IdxBizJgOtherInfo::getInformationSituation, IdxBizJgOtherInfo::getInformationSituationRemark);
wrapper.in(IdxBizJgOtherInfo::getRecord, records); wrapper.in(IdxBizJgOtherInfo::getRecord, records);
List<IdxBizJgOtherInfo> jgOtherInfos = otherInfoMapper.selectList(wrapper); List<IdxBizJgOtherInfo> jgOtherInfos = otherInfoMapper.selectList(wrapper);
return jgOtherInfos.stream().collect(Collectors.toMap(IdxBizJgOtherInfo::getRecord, d-> InformationManageTypeEnum.getName(d.getInformationSituation()),(k1, k2) ->k2)); return jgOtherInfos.stream()
.collect(Collectors.toMap(
IdxBizJgOtherInfo::getRecord,
other -> "3".equals(other.getInformationSituation())
? other.getInformationSituationRemark()
: InformationManageTypeEnum.getName(other.getInformationSituation()),
(oldVal, newVal) -> newVal
));
} }
/** /**
......
...@@ -14,6 +14,7 @@ public enum InformationManageTypeEnum { ...@@ -14,6 +14,7 @@ public enum InformationManageTypeEnum {
*/ */
TYPE_QR_CODE("1", "二维码"), TYPE_QR_CODE("1", "二维码"),
TYPE_STAMP("2", "电子标签"), TYPE_STAMP("2", "电子标签"),
TYPE_OTHER("3", "其他"),
TYPE_NO("99", "无"); TYPE_NO("99", "无");
private String code; private String code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment