## 个人业绩显示处理;
This commit is contained in:
parent
abbfc85c86
commit
de20f9ed65
|
@ -46,10 +46,10 @@ public class DataStatisticsUtil {
|
|||
calcDetailVOTotalField(detailVOList, pkId);
|
||||
// addVirtualBranch(detailVOList, pkId);
|
||||
CuMemberRetailDataStatisticsDetailVO total = getDetailVOByPKID(detailVOList, pkId);
|
||||
if (EYesNo.NO.getIntValue() == cuMember.getIsActivate()) {
|
||||
// 昨日非激活 排除昨日日结表数据
|
||||
excludeDailySettlementData(detailVOList);
|
||||
}
|
||||
// if (EYesNo.NO.getIntValue() == cuMember.getIsActivate()) {
|
||||
// // 昨日非激活 排除昨日日结表数据
|
||||
// excludeDailySettlementData(detailVOList);
|
||||
// }
|
||||
CuMemberRetailDataStatisticsDetailVO bigRangePv = getBigRangePVDetailVO(detailVOList, pkId);
|
||||
BigDecimal smallRangeTotalPv = total.getTotalPv().subtract(bigRangePv.getTotalPv());
|
||||
if (smallRangeTotalPv.compareTo(BigDecimal.ZERO) < 0) {
|
||||
|
|
|
@ -447,6 +447,31 @@
|
|||
|
||||
<select id="getRetailDataStatisticsDetail"
|
||||
resultType="com.hzs.retail.member.vo.CuMemberRetailDataStatisticsDetailVO">
|
||||
SELECT
|
||||
cu.pk_id,
|
||||
cu.MEMBER_CODE,
|
||||
mr.ENABLE_STATUS,
|
||||
|
||||
0 consumePv,
|
||||
0 newConsumePv,
|
||||
|
||||
NVL( mr.TEAM_CONSUME_PV, 0 ) teamConsumePv,
|
||||
0 teamNewPv,
|
||||
|
||||
0 sNewConsumePv,
|
||||
0 sTeamNewPv
|
||||
FROM ${memberRetailTable} mr
|
||||
left join cu_member cu on cu.PK_ID = mr.PK_MEMBER and mr.CATEGORY = 0
|
||||
<where>
|
||||
<if test="pkMemberList != null and pkMemberList.size > 0">
|
||||
cu.pk_id in
|
||||
<foreach collection="pkMemberList" item="pkMember" separator="," open="(" close=")">
|
||||
#{pkMember}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
|
||||
<!-- 市场动态不需要显示自己,不需要显示秒结
|
||||
SELECT
|
||||
cu.pk_id,
|
||||
cu.MEMBER_CODE,
|
||||
|
@ -472,6 +497,7 @@
|
|||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
-->
|
||||
</select>
|
||||
|
||||
<select id="getMarketDynamicsDetail" resultType="com.hzs.retail.member.vo.MarketDynamicsDetailVO">
|
||||
|
|
Loading…
Reference in New Issue