Просмотр исходного кода

Merge commit '6ba4fa7b6df3c8ac7b2160902249329d4c33c65d' into release

release_toaliyun_real
luozukai 6 лет назад
Родитель
Сommit
96d930fc9d
2 измененных файлов: 5 добавлений и 0 удалений
  1. +2
    -0
      mallinkAdmin/src/main/resources/db/migration/V201908051920__CHANGE_SCORE_HIS.sql
  2. +3
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxScoreHistoryServiceImpl.java

+ 2
- 0
mallinkAdmin/src/main/resources/db/migration/V201908051920__CHANGE_SCORE_HIS.sql Просмотреть файл

@@ -0,0 +1,2 @@
ALTER TABLE `wx_score_history`
CHANGE COLUMN `create_date` `create_date` DATETIME NOT NULL COMMENT '创建日期' ;

+ 3
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxScoreHistoryServiceImpl.java Просмотреть файл

@@ -11,6 +11,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.iformall.common.IdWorker; import com.iformall.common.IdWorker;


import java.util.Date;

@Service @Service
public class WxScoreHistoryServiceImpl implements WxScoreHistoryService { public class WxScoreHistoryServiceImpl implements WxScoreHistoryService {
private final Logger logger = LoggerFactory.getLogger(this.getClass()); private final Logger logger = LoggerFactory.getLogger(this.getClass());
@@ -35,6 +37,7 @@ public class WxScoreHistoryServiceImpl implements WxScoreHistoryService {
//record.setId(UUID.randomUUID().toString().replaceAll("-", "")); //record.setId(UUID.randomUUID().toString().replaceAll("-", ""));
final IdWorker idWorker = IdWorker.get(); final IdWorker idWorker = IdWorker.get();
record.setId(idWorker.nextId()); record.setId(idWorker.nextId());
record.setCreateDate(new Date());
wxScoreHistoryMapper.insertSelective(record); wxScoreHistoryMapper.insertSelective(record);
} else { } else {
wxScoreHistoryMapper.updateByPrimaryKeySelective(record); wxScoreHistoryMapper.updateByPrimaryKeySelective(record);


Загрузка…
Отмена
Сохранить