Commit 42f5f239 authored by 王向伟's avatar 王向伟

channelConfiguration添加updated_at字段

parent 8f77f721
......@@ -39,6 +39,8 @@ public class ClfChannelConfiguration implements Serializable {
@Column(name = "created_at")
private Timestamp createdAt = new Timestamp(System.currentTimeMillis());
@Column(name = "updated_at")
private Timestamp updatedAt;
/**
* 请求是否使用标准api
......@@ -95,4 +97,6 @@ public class ClfChannelConfiguration implements Serializable {
@Column(name = "xyqb_product_id")
private String xyqbProductId;
}
\ No newline at end of file
......@@ -10,6 +10,7 @@ import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import javax.persistence.criteria.Predicate;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
......@@ -123,6 +124,7 @@ public class CLFCenterServiceImpl implements CLFCenterService {
@Override
public void saveChannelConfiguration(ClfChannelConfiguration channelConfiguration) {
channelConfiguration.setUpdatedAt(new Timestamp(System.currentTimeMillis()));
clfChannelConfigurationRepository.save(channelConfiguration);
}
......
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