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

Merge branch 'fix/cms_clean_log_error' into 'wrdp'

[内容管理]修复清除log时数字转换异常问题

See merge request o2oa/o2oa!2282
o2null 5 лет назад
Родитель
Сommit
9de55f5942

+ 1 - 1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/service/LogService.java

@@ -80,7 +80,7 @@ public class LogService {
 			total = business.getLogFactory().getTotal();
 			if( total > stay_count_operationLog ) {
 				//将记录条目数减到stay_count_operationLog的60%
-				ids = business.getLogFactory().getRecordIdsWithCount( Integer.parseInt(( stay_count_operationLog * 0.6 )+""));
+				ids = business.getLogFactory().getRecordIdsWithCount( (int)( stay_count_operationLog * 0.6 ));
 			}
 			if( ids != null && !ids.isEmpty() ) {
 				//取最后一个,以确定最早可以保留下来的创建时间