Browse Source

【功能优化】根据社区ID获取最新活动列表

national_dev
Bill 2 years ago
parent
commit
b4f25ef2b0
  1. 5
      code/smart-community/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/resi/ResiLatestActFormDTO.java
  2. 3
      code/smart-community/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/ActInfoDao.xml

5
code/smart-community/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/resi/ResiLatestActFormDTO.java

@ -49,6 +49,11 @@ public class ResiLatestActFormDTO implements Serializable {
@NotBlank(message = "客户Id不能为空", groups = { AddUserInternalGroup.class })
private String customerId;
/**
* 组织(社区)ID
*/
private String agencyId;
/**
* 页容量默认20页
*/

3
code/smart-community/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/ActInfoDao.xml

@ -324,6 +324,9 @@
LEFT JOIN (SELECT count(1) signupNum, re.ACT_ID from act_user_relation re WHERE re.DEL_FLAG = '0' AND re.`STATUS` != 'refused' AND re.`STATUS` != 'canceled' GROUP BY re.ACT_ID) c ON c.ACT_ID = i.ID
WHERE i.DEL_FLAG = '0'
AND i.CUSTOMER_ID = #{customerId}
<if test="agencyId != null and agencyId != ''">
AND i.SPONSOR_ID = #{agencyId}
</if>
AND i.ACT_STATUS != 'finished' AND i.ACT_STATUS != 'canceled'
ORDER BY i.CREATED_TIME DESC
LIMIT 0, #{num}

Loading…
Cancel
Save