Просмотр исходного кода

/。 baobiao 1

release_toaliyun_real
xhxu 4 лет назад
Родитель
Сommit
586fdc51ec
2 измененных файлов: 2 добавлений и 8 удалений
  1. +0
    -6
      mallinkAdmin/src/main/java/com/iformall/controller/datatower/DataTowerController.java
  2. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/DataTowerServiceImpl.java

+ 0
- 6
mallinkAdmin/src/main/java/com/iformall/controller/datatower/DataTowerController.java Просмотреть файл

@@ -4,7 +4,6 @@ import com.iformall.annotation.SystemControllerLog;
import com.iformall.common.ErrorCode;
import com.iformall.common.ResultData;
import com.iformall.controller.base.BaseController;
import com.iformall.domain.po.base.TenantEntity;
import com.iformall.service.DataTowerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -14,13 +13,8 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.Map;

@Api(description = "数据塔台")


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/DataTowerServiceImpl.java Просмотреть файл

@@ -116,8 +116,8 @@ public class DataTowerServiceImpl implements DataTowerService {
shopMap.put("unrentedCount", unrentedCount);
double rentedPercent = new BigDecimal(((double) rentedCount / total) * 100).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
double unrentedPercent = new BigDecimal(((double) unrentedCount / total) * 100).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
shopMap.put("rentedPercent", rentedPercent + "%");
shopMap.put("unrentedPercent", unrentedPercent + "%");
shopMap.put("rentedPercent", rentedPercent);
shopMap.put("unrentedPercent", unrentedPercent);
}
return shopMap;
}


Загрузка…
Отмена
Сохранить