Commit 1bf3122b authored by 朱晨阳's avatar 朱晨阳

修改数据类型转换

parent 92894af3
......@@ -112,7 +112,7 @@ public class TdInfoQueryController extends BaseController {
} else if(dto.getAnalysisType() != null && dto.getAnalysisType().equals("按10分钟") && startDate.length() == 16) {
StringBuilder newStartDate = new StringBuilder(startDate);
int number = 0;
if(newStartDate.charAt(15) > 0) {
if((newStartDate.charAt(15) - '0') > 0) {
number = 9;
}
newStartDate.replace(15, 16, number+"");
......@@ -221,7 +221,7 @@ public class TdInfoQueryController extends BaseController {
} else if(dto.getAnalysisType() != null && dto.getAnalysisType().equals("按10分钟") && startDate.length() == 16) {
StringBuilder newStartDate = new StringBuilder(startDate);
int number = 0;
if(newStartDate.charAt(15) > 0) {
if((newStartDate.charAt(15) - '0') > 0) {
number = 9;
}
newStartDate.replace(15, 16, number+"");
......
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