Commit b0dddcdb by 吴佳

loadData/saveData方法名调整

parent 98cfe477
......@@ -960,7 +960,7 @@ public class MdaUtils {
return new String(DigestUtils.sha1(DigestUtils.md5(srcPassword)));
}
public static void saveData(IModule module, IStream os) {
public static void saveDataOld(IModule module, IStream os) {
ObjectMapper mapper = MdaEnv.getBean(ObjectMapper.class);
try {
mapper.writeValue(os.getOutputStream(), module);
......@@ -971,7 +971,7 @@ public class MdaUtils {
/**
* 模板数据保存
**/
public static void saveMdlData(IModule module, IStream os) {
public static void saveData(IModule module, IStream os) {
//在第一行写入module 名字
// os.insertLine(0,module.getName());
......@@ -1084,7 +1084,7 @@ public class MdaUtils {
return Codetables.getCodetableLabel(key, codetable, locale.getLanguage());
}
public static void loadMdlData(IModule module ,IStream stream) {
public static void loadData(IModule module ,IStream stream) {
module.clear();
String[] lines = null;
try {
......@@ -1237,7 +1237,7 @@ public class MdaUtils {
return baseObject.getPath();
}
public static void loadData(IModule module, IStream stream) {
public static void loadDataOld(IModule module, IStream stream) {
ObjectMapper mapper = MdaEnv.getBean(ObjectMapper.class);
try {
module.copyValues(mapper.readValue(stream.getInputStream(), module.getClass()));
......
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