## 个人业绩显示处理;
This commit is contained in:
parent
485cc1bfc8
commit
2b0bf0de36
|
@ -46,10 +46,10 @@ public class DataStatisticsUtil {
|
||||||
calcDetailVOTotalField(detailVOList, pkId);
|
calcDetailVOTotalField(detailVOList, pkId);
|
||||||
// addVirtualBranch(detailVOList, pkId);
|
// addVirtualBranch(detailVOList, pkId);
|
||||||
CuMemberRetailDataStatisticsDetailVO total = getDetailVOByPKID(detailVOList, pkId);
|
CuMemberRetailDataStatisticsDetailVO total = getDetailVOByPKID(detailVOList, pkId);
|
||||||
if (EYesNo.NO.getIntValue() == cuMember.getIsActivate()) {
|
// if (EYesNo.NO.getIntValue() == cuMember.getIsActivate()) {
|
||||||
// 昨日非激活 排除昨日日结表数据
|
// // 昨日非激活 排除昨日日结表数据
|
||||||
excludeDailySettlementData(detailVOList);
|
// excludeDailySettlementData(detailVOList);
|
||||||
}
|
// }
|
||||||
CuMemberRetailDataStatisticsDetailVO bigRangePv = getBigRangePVDetailVO(detailVOList, pkId);
|
CuMemberRetailDataStatisticsDetailVO bigRangePv = getBigRangePVDetailVO(detailVOList, pkId);
|
||||||
BigDecimal smallRangeTotalPv = total.getTotalPv().subtract(bigRangePv.getTotalPv());
|
BigDecimal smallRangeTotalPv = total.getTotalPv().subtract(bigRangePv.getTotalPv());
|
||||||
if (smallRangeTotalPv.compareTo(BigDecimal.ZERO) < 0) {
|
if (smallRangeTotalPv.compareTo(BigDecimal.ZERO) < 0) {
|
||||||
|
|
|
@ -447,6 +447,31 @@
|
||||||
|
|
||||||
<select id="getRetailDataStatisticsDetail"
|
<select id="getRetailDataStatisticsDetail"
|
||||||
resultType="com.hzs.retail.member.vo.CuMemberRetailDataStatisticsDetailVO">
|
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
|
SELECT
|
||||||
cu.pk_id,
|
cu.pk_id,
|
||||||
cu.MEMBER_CODE,
|
cu.MEMBER_CODE,
|
||||||
|
@ -472,6 +497,7 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
-->
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getMarketDynamicsDetail" resultType="com.hzs.retail.member.vo.MarketDynamicsDetailVO">
|
<select id="getMarketDynamicsDetail" resultType="com.hzs.retail.member.vo.MarketDynamicsDetailVO">
|
||||||
|
|
Loading…
Reference in New Issue