Przeglądaj źródła

修复cms清除log中数字转换异常问题

o2sword 5 lat temu
rodzic
commit
bb83a19f49

+ 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() ) {
 				//取最后一个,以确定最早可以保留下来的创建时间