use of com.baidu.disconf.web.service.config.bo.ConfigHistory in project disconf by knightliao.
the class ConfigHistoryMgrImpl method createOne.
@Override
public void createOne(Long configId, String oldValue, String newValue) {
ConfigHistory configHistory = new ConfigHistory();
configHistory.setConfigId(configId);
configHistory.setOldValue(oldValue);
configHistory.setNewValue(newValue);
Visitor visitor = ThreadContext.getSessionVisitor();
if (visitor != null) {
configHistory.setUpdateBy(visitor.getLoginUserId());
}
String curTime = DateUtils.format(new Date(), DataFormatConstants.COMMON_TIME_FORMAT);
configHistory.setCreateTime(curTime);
configHistoryDao.create(configHistory);
}
Aggregations