Commit 3a372e6c by zhiwj

计算门店分数

parent 32d45df3
......@@ -229,7 +229,10 @@ public class EvaluateManageApiServiceImpl implements EvaluateManageApiService {
count++;
sum += Double.valueOf(serviceScore.toString());
}
storeApiService.updateScore(Integer.valueOf(stringObjectMap.get("enterpriseId").toString()), Integer.valueOf(stringObjectMap.get("storeId").toString()), sum / count);
Object storeId = stringObjectMap.get("storeId");
if (storeId != null) {
storeApiService.updateScore(enterpriseId, Integer.valueOf(storeId.toString()), sum / count);
}
}
}
return EnterpriseServiceResponse.success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment