|
|
@ -5,13 +5,10 @@ import com.fr.design.mainframe.burying.point.AbstractPointInfo; |
|
|
|
import com.fr.json.JSON; |
|
|
|
import com.fr.json.JSON; |
|
|
|
import com.fr.json.JSONFactory; |
|
|
|
import com.fr.json.JSONFactory; |
|
|
|
import com.fr.json.JSONObject; |
|
|
|
import com.fr.json.JSONObject; |
|
|
|
import com.fr.stable.ProductConstants; |
|
|
|
|
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
@ -26,7 +23,7 @@ public class TemplateInfoCollector extends AbstractPointCollector<TemplateInfo> |
|
|
|
private static final String XML_TEMPLATE_INFO_LIST = "TemplateInfoList"; |
|
|
|
private static final String XML_TEMPLATE_INFO_LIST = "TemplateInfoList"; |
|
|
|
private static final String XML_FILE_NAME = "tpl.info"; |
|
|
|
private static final String XML_FILE_NAME = "tpl.info"; |
|
|
|
private static TemplateInfoCollector instance; |
|
|
|
private static TemplateInfoCollector instance; |
|
|
|
private DesignerOpenHistory designerOpenHistory; |
|
|
|
private DesignerOpenHistory designerOpenHistory = DesignerOpenHistory.getInstance(); |
|
|
|
//记录指定模板最新的模板耗时信息ID
|
|
|
|
//记录指定模板最新的模板耗时信息ID
|
|
|
|
private Map<String, Long> latestTemplateInfo; |
|
|
|
private Map<String, Long> latestTemplateInfo; |
|
|
|
|
|
|
|
|
|
|
@ -99,14 +96,6 @@ public class TemplateInfoCollector extends AbstractPointCollector<TemplateInfo> |
|
|
|
return latestTemplateInfo.getTemplateCreateTime(); |
|
|
|
return latestTemplateInfo.getTemplateCreateTime(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取缓存文件存放路径 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected File getInfoFile() { |
|
|
|
|
|
|
|
return new File(StableUtils.pathJoin(ProductConstants.getEnvHome(), XML_FILE_NAME)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 更新 day_count:打开设计器却未编辑模板的连续日子 |
|
|
|
* 更新 day_count:打开设计器却未编辑模板的连续日子 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -172,6 +161,13 @@ public class TemplateInfoCollector extends AbstractPointCollector<TemplateInfo> |
|
|
|
writer.end(); |
|
|
|
writer.end(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取缓存文件存放路径 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected String getInfoFilePath() { |
|
|
|
|
|
|
|
return XML_FILE_NAME; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void sendPointInfo() { |
|
|
|
public void sendPointInfo() { |
|
|
|