Browse Source

Merge branch 'dev'

# Conflicts:
#	epmet-module/data-report/data-report-server/deploy/docker-compose-prod.yml
#	epmet-module/data-report/data-report-server/pom.xml
dev
wangxianzhang 4 years ago
parent
commit
6360128fd2
  1. 5
      epmet-module/data-report/data-report-client/src/main/java/com/epmet/evaluationindex/screen/dto/form/AdvancedBranchRankFormDTO.java
  2. 5
      epmet-module/data-report/data-report-client/src/main/java/com/epmet/evaluationindex/screen/dto/form/PartyPointRankFormDTO.java
  3. 4
      epmet-module/data-report/data-report-client/src/main/java/com/epmet/evaluationindex/screen/dto/form/UserPointRankFormDTO.java
  4. 3
      epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenIndexDataMonthlyDao.xml
  5. 6
      epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenPartyUserRankDataDao.xml

5
epmet-module/data-report/data-report-client/src/main/java/com/epmet/evaluationindex/screen/dto/form/AdvancedBranchRankFormDTO.java

@ -33,5 +33,10 @@ public class AdvancedBranchRankFormDTO implements Serializable {
*/ */
private String areaCode; private String areaCode;
/**
* 客户ID
*/
private String customerId;
public interface AddUserInternalGroup {} public interface AddUserInternalGroup {}
} }

5
epmet-module/data-report/data-report-client/src/main/java/com/epmet/evaluationindex/screen/dto/form/PartyPointRankFormDTO.java

@ -36,5 +36,10 @@ public class PartyPointRankFormDTO implements Serializable {
* */ * */
private String monthId; private String monthId;
/**
* 客户ID
*/
private String customerId;
} }

4
epmet-module/data-report/data-report-client/src/main/java/com/epmet/evaluationindex/screen/dto/form/UserPointRankFormDTO.java

@ -36,5 +36,9 @@ public class UserPointRankFormDTO implements Serializable {
* */ * */
private String monthId; private String monthId;
/**
* 客户ID
*/
private String customerId;
} }

3
epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenIndexDataMonthlyDao.xml

@ -261,6 +261,9 @@
dm.del_flag = '0' dm.del_flag = '0'
AND rd.del_flag = '0' AND rd.del_flag = '0'
<choose> <choose>
<when test="customerId != null and customerId != ''">
AND org.CUSTOMER_ID = #{customerId}
</when>
<when test="areaCode != null and areaCode != ''"> <when test="areaCode != null and areaCode != ''">
AND org.AREA_CODE LIKE concat(#{areaCode}, '%') AND org.AREA_CODE LIKE concat(#{areaCode}, '%')
</when> </when>

6
epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenPartyUserRankDataDao.xml

@ -171,6 +171,9 @@
AND u.grid_id = #{orgId} AND u.grid_id = #{orgId}
</if> </if>
</if> </if>
<if test="customerId != null and customerId != ''">
u.CUSTOMER_ID = #{customerId}
</if>
ORDER BY ORDER BY
u.point_total DESC,convert(u.user_name using gbk) ASC u.point_total DESC,convert(u.user_name using gbk) ASC
LIMIT #{topNum} LIMIT #{topNum}
@ -212,6 +215,9 @@
AND u.grid_id = #{orgId} AND u.grid_id = #{orgId}
</if> </if>
</if> </if>
<if test="customerId != null and customerId != ''">
AND u.CUSTOMER_ID = #{customerId}
</if>
ORDER BY ORDER BY
u.point_total DESC u.point_total DESC
LIMIT #{topNum} LIMIT #{topNum}

Loading…
Cancel
Save