@@ -0,0 +1,1908 @@
+package org.opencps.api.controller.util;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.opencps.api.serverconfig.model.ServerConfigDataModel;%0Aimport org.opencps.api.serverconfig.model.ServerConfigDetailModel;%0Aimport org.opencps.auth.utils.APIDateTimeUtils;%0Aimport org.opencps.communication.model.ServerConfig;%0A%0Apublic class ServerConfigUtils %7B%0A%0A%09public static List%3CServerConfigDataModel%3E mappingTOData(List%3CServerConfig%3E configs) %7B%0A%0A%09%09List%3CServerConfigDataModel%3E outputs = new ArrayList%3CServerConfigDataModel%3E();%0A%0A%09%09for (ServerConfig cf : configs) %7B%0A%09%09%09ServerConfigDataModel model = new ServerConfigDataModel();%0A%0A%09%09%09model.setServerConfigId(cf.getPrimaryKey());%0A%09%09%09model.setCreateDate(%0A%09%09%09%09%09APIDateTimeUtils.convertDateToString(cf.getCreateDate(), APIDateTimeUtils._NORMAL_PARTTERN));%0A%09%09%09model.setModifiedDate(%0A%09%09%09%09%09APIDateTimeUtils.convertDateToString(cf.getModifiedDate(), APIDateTimeUtils._NORMAL_PARTTERN));%0A%09%09%09model.setServerNo(cf.getServerNo());%0A%09%09%09model.setServerName(cf.getServerName());%0A%09%09%09model.setProtocol(cf.getProtocol());%0A%09%09%09model.setLastSync(%0A%09%09%09%09%09APIDateTimeUtils.convertDateToString(cf.getLastSync(), APIDateTimeUtils._NORMAL_PARTTERN));%0A%0A%09%09%09outputs.add(model);%0A%09%09%7D%0A%0A%09%09return outputs;%0A%09%7D%0A%0A%09public ServerConfigDetailModel mappingToDetailModel(ServerConfig cf) %7B%0A%09%09ServerConfigDetailModel model = new ServerConfigDetailModel();%0A%0A%09%09model.setServerConfigId(cf.getPrimaryKey());%0A%09%09model.setCreateDate(%0A%09%09%09%09APIDateTimeUtils.convertDateToString(cf.getCreateDate(), APIDateTimeUtils._NORMAL_PARTTERN));%0A%09%09model.setModifiedDate(%0A%09%09%09%09APIDateTimeUtils.convertDateToString(cf.getModifiedDate(), APIDateTimeUtils._NORMAL_PARTTERN));%0A%09%09model.setServerNo(cf.getServerNo());%0A%09%09model.setServerName(cf.getServerName());%0A%09%09model.setProtocol(cf.getProtocol());%0A%09%09model.setLastSync(APIDateTimeUtils.convertDateToString(cf.getLastSync(), APIDateTimeUtils._NORMAL_PARTTERN));%0A%0A%09%09return model;%0A%09%7D%0A%7D%0A

Add ServerConfigUtils class