Commit 0b9a5ef8 authored by 周健威's avatar 周健威

Merge remote-tracking branch 'origin/dev' into dev

parents 851c2b2d 50f06362
...@@ -11,7 +11,8 @@ import lombok.Data; ...@@ -11,7 +11,8 @@ import lombok.Data;
@Data @Data
public class BannerVo { public class BannerVo {
private String title; private Long id;
private String title;
/** /**
* 封面地址 * 封面地址
......
...@@ -40,6 +40,7 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> { ...@@ -40,6 +40,7 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> {
bannerVo.setCover(banner.getCover()); bannerVo.setCover(banner.getCover());
bannerVo.setUrl(banner.getUrl()); bannerVo.setUrl(banner.getUrl());
bannerVo.setTitle(banner.getTitle()); bannerVo.setTitle(banner.getTitle());
bannerVo.setId(banner.getId());
bannerVos.add(bannerVo); bannerVos.add(bannerVo);
}); });
return bannerVos; return bannerVos;
......
...@@ -16,6 +16,7 @@ import lombok.RequiredArgsConstructor; ...@@ -16,6 +16,7 @@ import lombok.RequiredArgsConstructor;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -45,10 +46,16 @@ public class CustomerBehaviorNotesBiz extends BaseBiz<CustomerBehaviorNotesMappe ...@@ -45,10 +46,16 @@ public class CustomerBehaviorNotesBiz extends BaseBiz<CustomerBehaviorNotesMappe
private final ActivityBehaviorRelationBiz activityBehaviorRelationBiz; private final ActivityBehaviorRelationBiz activityBehaviorRelationBiz;
@Value("${activity.register.id}")
private Integer activityId;
public void saveCustomerBehavior(CustomerBehaviorNoteDTO customerBehaviorNoteDTO) { public void saveCustomerBehavior(CustomerBehaviorNoteDTO customerBehaviorNoteDTO) {
CustomerBehaviorNotes customerBehaviorNotes = new CustomerBehaviorNotes(); CustomerBehaviorNotes customerBehaviorNotes = new CustomerBehaviorNotes();
BeanUtils.copyProperties(customerBehaviorNoteDTO, customerBehaviorNotes); BeanUtils.copyProperties(customerBehaviorNoteDTO, customerBehaviorNotes);
customerBehaviorNotes.setCrtTime(Instant.now().toEpochMilli()); customerBehaviorNotes.setCrtTime(Instant.now().toEpochMilli());
if (customerBehaviorNoteDTO.getType()==BehaviorEnum.REGISTRY.getCode()){
customerBehaviorNotes.setTypeId(activityId);
}
mapper.insertSelective(customerBehaviorNotes); mapper.insertSelective(customerBehaviorNotes);
} }
......
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