|
|
@@ -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); |
|
|
|