增加测试输出
This commit is contained in:
+9
-5
@@ -1072,14 +1072,18 @@ public class EvaluationServiceImpl implements EvaluationService {
|
|||||||
if(stat != null){
|
if(stat != null){
|
||||||
int avgPrice = stat.getAvgPrice();
|
int avgPrice = stat.getAvgPrice();
|
||||||
// 2c/2b price - weilei 2019-02-25
|
// 2c/2b price - weilei 2019-02-25
|
||||||
ApiUserCfg cfg = apiUserCfgService.findByUserId(Long.valueOf(evaluation.getFromUserId()), ApiUserCfg.ApiUserCfgKey.PRICE_TYPE);
|
System.out.println("evaluation:"+(evaluation==null));
|
||||||
if(cfg != null &&cfg.getCfgValue() != null && StringUtils.equalsIgnoreCase("2B", cfg.getCfgValue().toString())) {
|
if(null!= evaluation && null != evaluation.getFromUserId()){
|
||||||
if (evaluation != null && evaluation.getAvgPrice2b() != null && evaluation.getAvgPrice2b() > 0) {
|
ApiUserCfg cfg = apiUserCfgService.findByUserId(Long.valueOf(evaluation.getFromUserId()), ApiUserCfg.ApiUserCfgKey.PRICE_TYPE);
|
||||||
avgPrice = evaluation.getAvgPrice2b().intValue();
|
if(cfg != null &&cfg.getCfgValue() != null && StringUtils.equalsIgnoreCase("2B", cfg.getCfgValue().toString())) {
|
||||||
|
if (evaluation != null && evaluation.getAvgPrice2b() != null && evaluation.getAvgPrice2b() > 0) {
|
||||||
|
avgPrice = evaluation.getAvgPrice2b().intValue();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
long totalPrice = evaluationRateService.evaluation(avgPrice, evaluation);
|
long totalPrice = evaluationRateService.evaluation(avgPrice, evaluation);
|
||||||
if(StringUtils.isNotBlank(evaluation.getFromUserId())){
|
if(null!= evaluation && StringUtils.isNotBlank(evaluation.getFromUserId())){
|
||||||
ApiUserCfg apiUserCfg = apiUserCfgService.findByUserId(Long.valueOf(evaluation.getFromUserId()), ApiUserCfg.ApiUserCfgKey.EVALUATE_RATE);
|
ApiUserCfg apiUserCfg = apiUserCfgService.findByUserId(Long.valueOf(evaluation.getFromUserId()), ApiUserCfg.ApiUserCfgKey.EVALUATE_RATE);
|
||||||
if(apiUserCfg != null && apiUserCfg.getCfgValue() != null && apiUserCfg.getCfgValue() instanceof Double){
|
if(apiUserCfg != null && apiUserCfg.getCfgValue() != null && apiUserCfg.getCfgValue() instanceof Double){
|
||||||
Double rate = (Double)apiUserCfg.getCfgValue();
|
Double rate = (Double)apiUserCfg.getCfgValue();
|
||||||
|
|||||||
Reference in New Issue
Block a user