@ -33,5 +33,10 @@ public class AdvancedBranchRankFormDTO implements Serializable {
*/
private String areaCode;
/**
* 客户ID
private String customerId;
public interface AddUserInternalGroup {}
}
@ -36,5 +36,10 @@ public class PartyPointRankFormDTO implements Serializable {
* */
private String monthId;
@ -36,5 +36,9 @@ public class UserPointRankFormDTO implements Serializable {
@ -261,6 +261,9 @@
dm.del_flag = '0'
AND rd.del_flag = '0'
<choose>
<when test="customerId != null and customerId != ''">
AND org.CUSTOMER_ID = #{customerId}
</when>
<when test="areaCode != null and areaCode != ''">
AND org.AREA_CODE LIKE concat(#{areaCode}, '%')
@ -171,6 +171,9 @@
AND u.grid_id = #{orgId}
</if>
<if test="customerId != null and customerId != ''">
u.CUSTOMER_ID = #{customerId}
ORDER BY
u.point_total DESC,convert(u.user_name using gbk) ASC
LIMIT #{topNum}
@ -212,6 +215,9 @@
AND u.CUSTOMER_ID = #{customerId}
u.point_total DESC