|
@@ -345,7 +345,7 @@ public class MaterialStareServiceImpl implements MaterialStareService {
|
|
|
add(operate.getUserId());
|
|
|
}};
|
|
|
List<KuaiShouOperateVo> userOperate = materialStareMapper.getKuaiShouOperateInfo(lastTimeStart,lastTimeEnd,userSet);
|
|
|
- String rate = null;
|
|
|
+ String rate = "0";
|
|
|
if (!Check.isNull(userOperate)){
|
|
|
//环比
|
|
|
Double rateDoulbe = (operate.getTotalCost() - userOperate.get(0).getTotalCost()) / userOperate.get(0).getTotalCost();
|
|
@@ -382,7 +382,7 @@ public class MaterialStareServiceImpl implements MaterialStareService {
|
|
|
add(operate.getUserId());
|
|
|
}};
|
|
|
List<KuaiShouOperateVo> userOperate = materialStareMapper.getKuaiShouOperateInfo(lastTimeStart,lastTimeEnd,userSet);
|
|
|
- String rate = null;
|
|
|
+ String rate = "0";
|
|
|
if (!Check.isNull(userOperate)){
|
|
|
//环比 = (当前 - 上阶段 ) / 上阶段
|
|
|
Double rateDouble = (operate.getTotalCost() - userOperate.get(0).getTotalCost() ) / userOperate.get(0).getTotalCost();
|