Commit fd2620da by xugaojun

去除写死字段

parent 4d4e9d7e
package com.gic.haoban.manage.service.service.impl; package com.gic.haoban.manage.service.service.impl;
import com.gic.commons.util.UniqueIdUtils;
import com.gic.haoban.manage.service.dao.mapper.TabHaobanErrorLogMapper; import com.gic.haoban.manage.service.dao.mapper.TabHaobanErrorLogMapper;
import com.gic.haoban.manage.service.entity.TabHaobanErrorLog; import com.gic.haoban.manage.service.entity.TabHaobanErrorLog;
import com.gic.haoban.manage.service.service.ErrorLogService; import com.gic.haoban.manage.service.service.ErrorLogService;
...@@ -22,7 +23,7 @@ public class ErrorLogServiceImpl implements ErrorLogService { ...@@ -22,7 +23,7 @@ public class ErrorLogServiceImpl implements ErrorLogService {
@Override @Override
public void save(TabHaobanErrorLog errorLog) { public void save(TabHaobanErrorLog errorLog) {
errorLog.setId(123123L); errorLog.setId(UniqueIdUtils.uniqueLong());
errorLog.setCreateTime(new Date()); errorLog.setCreateTime(new Date());
errorLog.setUpdateTime(new Date()); errorLog.setUpdateTime(new Date());
tabHaobanErrorLogMapper.insert(errorLog); tabHaobanErrorLogMapper.insert(errorLog);
......
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