Browse Source

group_main更新时候bug修复

dev_shibei_match
wangchao 5 years ago
parent
commit
2c0ded5042
  1. 9
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/impl/GroupExtractServiceImpl.java
  2. 6
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginGroupMainDailyDao.xml

9
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/impl/GroupExtractServiceImpl.java

@ -137,9 +137,12 @@ public class GroupExtractServiceImpl implements GroupExtractService {
List<String> partyIds = userService.getPartymembersByCustomerId(param.getCustomerId());
List<GridHeartedFormDTO> heartedIds = userService.getWarmHeartedByCustomerId(param.getCustomerId());
factOriginGroupMainDailyDao.updatePartyFlag(partyIds,param.getCustomerId());
factOriginGroupMainDailyDao.updateHeartedFlag(heartedIds,param.getCustomerId());
if(!partyIds.isEmpty()) {
factOriginGroupMainDailyDao.updatePartyFlag(partyIds, param.getCustomerId());
}
if(!heartedIds.isEmpty()) {
factOriginGroupMainDailyDao.updateHeartedFlag(heartedIds, param.getCustomerId());
}
}
}
}

6
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginGroupMainDailyDao.xml

@ -71,8 +71,7 @@
<where>
DEL_FLAG = '0'
AND CUSTOMER_ID = #{customerId}
AND
<foreach collection="list" item="ownerId" open="( " separator=" OR " close=" ) ">
<foreach collection="list" item="ownerId" open="AND ( " separator=" OR " close=" ) ">
GROUP_OWNER_ID = #{ownerId}
</foreach>
</where>
@ -84,8 +83,7 @@
<where>
DEL_FLAG = '0'
AND CUSTOMER_ID = #{customerId}
AND
<foreach collection="list" item="item" open="( " separator=" OR " close=" ) ">
<foreach collection="list" item="item" open="AND ( " separator=" OR " close=" ) ">
(GROUP_OWNER_ID = #{item.userId} AND GRID_ID = #{item.gridId})
</foreach>
</where>

Loading…
Cancel
Save