Commit c5f07063 by 叶立庆

Merge branch 'v5.7.0' into 'master'

上线合并

See merge request !3
2 parents d3bd0ff8 d23efab8
......@@ -10,7 +10,7 @@
</parent>
<groupId>cn.com.glsx.dj.strategy</groupId>
<artifactId>rpc-dj-strategy-api</artifactId>
<version>5.6.0-SNAPSHOT</version>
<version>5.7.0-SNAPSHOT</version>
<name>rpc-dj-strategy-api</name>
<properties>
......@@ -25,7 +25,7 @@
<dependency>
<groupId>cn.com.glsx.dj.strategy</groupId>
<artifactId>rpc-dj-strategy-api</artifactId>
<version>5.6.0-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
......
......@@ -34,7 +34,11 @@ public enum StrategyTypeEnum {
/**
* 最终盘点
*/
FINAL_INVENTORY(6,"最终盘点与低客单产品购入")
FINAL_INVENTORY(6,"最终盘点与低客单产品购入"),
/**
* BI-门店留言
*/
BI_COMMENT(7,"留言")
;
private Integer value;
......
......@@ -26,7 +26,7 @@
<dependency>
<groupId>cn.com.glsx.dj.strategy</groupId>
<artifactId>rpc-dj-strategy-api</artifactId>
<version>5.6.0-SNAPSHOT</version>
<version>5.7.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.oreframework.boot</groupId>
......
......@@ -67,6 +67,7 @@ public class StrategyDetailService {
* 记录型策略
*/
private final List<StrategyTypeEnum> recordStrategy = Lists.newArrayList(
StrategyTypeEnum.BI_COMMENT,
StrategyTypeEnum.MENTORING,
StrategyTypeEnum.FINAL_INVENTORY,
StrategyTypeEnum.POWERFUL_PROMOTION,
......@@ -98,6 +99,7 @@ public class StrategyDetailService {
// 这里只处理记录和任务型
if (recordStrategy.contains(strategyByValue)) {
switch (strategyByValue) {
case BI_COMMENT:
case MENTORING:
case SALE_ELITE_TO_STORE_PULL:
Example strategyStaffRelExample = new Example(StrategyStaffRel.class);
......
......@@ -76,6 +76,7 @@
count(distinct merchant_id) merchantCount
from dj_car_life_strategy_info
where deleted_flag = 'N'
and strategy_type != 7
<if test="businessType != null">
AND biz = #{businessType}
</if>
......@@ -91,6 +92,7 @@
count(*) strategyCount
from dj_car_life_strategy_info
where deleted_flag = 'N'
and strategy_type != 7
<if test="businessType != null and businessType != ''">
AND biz = #{businessType}
</if>
......@@ -111,6 +113,7 @@
count(distinct merchant_id) storeCount
from dj_car_life_strategy_info
where deleted_flag = 'N'
and strategy_type != 7
<if test="businessType != null and businessType != ''">
AND biz = #{businessType}
</if>
......@@ -141,6 +144,7 @@
strategy_type strategyType
from dj_car_life_strategy_info
where deleted_flag = 'N'
and strategy_type != 7
<if test="businessType != null and businessType != ''">
AND biz = #{businessType}
</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!