|
@@ -167,13 +167,14 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
orderInfo.setCountFa(String.valueOf(count));
|
|
orderInfo.setCountFa(String.valueOf(count));
|
|
|
|
|
|
Integer evaluateInfoCount = evaluateInfoService.selectCount(new EntityWrapper<EvaluateInfo>()
|
|
Integer evaluateInfoCount = evaluateInfoService.selectCount(new EntityWrapper<EvaluateInfo>()
|
|
- .eq("satisfaction", "5")
|
|
|
|
|
|
+ .gt("satisfaction", "4")
|
|
.eq("evaluatored_id", commonId));
|
|
.eq("evaluatored_id", commonId));
|
|
orderInfo.setHaoPing(evaluateInfoCount);
|
|
orderInfo.setHaoPing(evaluateInfoCount);
|
|
Integer evaluateInfoCount1 = evaluateInfoService.selectCount(new EntityWrapper<EvaluateInfo>()
|
|
Integer evaluateInfoCount1 = evaluateInfoService.selectCount(new EntityWrapper<EvaluateInfo>()
|
|
.eq("satisfaction", "1")
|
|
.eq("satisfaction", "1")
|
|
.eq("evaluatored_id", commonId));
|
|
.eq("evaluatored_id", commonId));
|
|
orderInfo.setChaPing(evaluateInfoCount1);
|
|
orderInfo.setChaPing(evaluateInfoCount1);
|
|
|
|
+ //好评率
|
|
if (evaluateInfoCount >= 20 && count != 0) {
|
|
if (evaluateInfoCount >= 20 && count != 0) {
|
|
hao = String.valueOf(evaluateInfoCount / count * 100 + "%");
|
|
hao = String.valueOf(evaluateInfoCount / count * 100 + "%");
|
|
}
|
|
}
|
|
@@ -195,13 +196,14 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
orderInfo.setCountFa(String.valueOf(count));
|
|
orderInfo.setCountFa(String.valueOf(count));
|
|
|
|
|
|
Integer evaluateInfoCount = evaluateInfoService.selectCount(new EntityWrapper<EvaluateInfo>()
|
|
Integer evaluateInfoCount = evaluateInfoService.selectCount(new EntityWrapper<EvaluateInfo>()
|
|
- .eq("satisfaction", "5")
|
|
|
|
|
|
+ .gt("satisfaction", "4")
|
|
.eq("evaluatored_id", commonId));
|
|
.eq("evaluatored_id", commonId));
|
|
orderInfo.setHaoPing(evaluateInfoCount);
|
|
orderInfo.setHaoPing(evaluateInfoCount);
|
|
Integer evaluateInfoCount1 = evaluateInfoService.selectCount(new EntityWrapper<EvaluateInfo>()
|
|
Integer evaluateInfoCount1 = evaluateInfoService.selectCount(new EntityWrapper<EvaluateInfo>()
|
|
.eq("satisfaction", "1")
|
|
.eq("satisfaction", "1")
|
|
.eq("evaluatored_id", commonId));
|
|
.eq("evaluatored_id", commonId));
|
|
orderInfo.setChaPing(evaluateInfoCount1);
|
|
orderInfo.setChaPing(evaluateInfoCount1);
|
|
|
|
+ //好评率
|
|
if (evaluateInfoCount >= 20 && count != 0) {
|
|
if (evaluateInfoCount >= 20 && count != 0) {
|
|
hao = String.valueOf(evaluateInfoCount / count * 100 + "%");
|
|
hao = String.valueOf(evaluateInfoCount / count * 100 + "%");
|
|
}
|
|
}
|