增加平均星数
This commit is contained in:
@@ -153,7 +153,7 @@ public class projectService {
|
|||||||
|
|
||||||
if(commentEntityList.size() != 0)
|
if(commentEntityList.size() != 0)
|
||||||
{
|
{
|
||||||
int sum = 0;
|
double sum = 0;
|
||||||
for(int i= 0;i<commentEntityList.size();i++)
|
for(int i= 0;i<commentEntityList.size();i++)
|
||||||
{
|
{
|
||||||
sum +=commentEntityList.get(i).getStar();
|
sum +=commentEntityList.get(i).getStar();
|
||||||
|
Reference in New Issue
Block a user