|
|
@@ -44,6 +44,7 @@ import java.io.File; |
|
|
|
import java.io.FileInputStream; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.io.OutputStream; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.net.URLEncoder; |
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
@@ -280,8 +281,8 @@ public class ReportServiceImpl extends BaseServiceImpl<ReportMapper, Report> imp |
|
|
|
} else { |
|
|
|
if(StringUtils.isNotEmpty(reportInfoVO.getMission().getMileage())){ |
|
|
|
try{ |
|
|
|
int temp = Integer.parseInt(reportInfoVO.getMission().getMileage()) / 1000; |
|
|
|
str = temp+"公里"; |
|
|
|
BigDecimal mileageBd = new BigDecimal(reportInfoVO.getMission().getMileage()).divide(new BigDecimal(1000)); |
|
|
|
str = mileageBd + "公里"; |
|
|
|
}catch (Exception e){ |
|
|
|
log.info("转换里程出错:{}",e.getMessage()); |
|
|
|
str=""; |