fix: 修正图片告警查询用错id

dev
huangfeng 12 months ago
parent a3a207690a
commit e77b337fdd

@ -151,7 +151,7 @@
<if test="termlist != null and termlist.size > 0"> <if test="termlist != null and termlist.size > 0">
where a.photo_org_id in where a.photo_org_id in
<foreach close=")" collection="termlist" item="item" index="index" open="(" separator=","> <foreach close=")" collection="termlist" item="item" index="index" open="(" separator=",">
#{item.id} #{item.orginalId}
</foreach> </foreach>
</if> </if>
<if test="labellist != null and labellist.size > 0"> <if test="labellist != null and labellist.size > 0">

@ -155,7 +155,7 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
Map<String, TerminalChannelMapper> termchannelMapMap = cacheService.getTermChannelMapMap(); Map<String, TerminalChannelMapper> termchannelMapMap = cacheService.getTermChannelMapMap();
for (TerminalPhoto item : list) { for (TerminalPhoto item : list) {
Integer mediaType = item.getMediaType(); Integer mediaType = item.getMediaType();
BigInteger photoid = item.getId(); BigInteger photoid = item.getOrginalId();
if (mediaType != null && (mediaType.intValue() == 0 || mediaType.intValue() == 1)) { if (mediaType != null && (mediaType.intValue() == 0 || mediaType.intValue() == 1)) {
Integer termId = item.getTermId(); Integer termId = item.getTermId();
if (termId != null) { if (termId != null) {

Loading…
Cancel
Save