Commit 18627ab7 by xiongjiangtao

用户推荐时间更新

parent 1a272c42
...@@ -119,6 +119,9 @@ public class MaterialShareLogApiServiceImpl implements MaterialShareLogApiServic ...@@ -119,6 +119,9 @@ public class MaterialShareLogApiServiceImpl implements MaterialShareLogApiServic
return temp; return temp;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
triggerCustomerDetailService.batchSaveGoodsShare(list); triggerCustomerDetailService.batchSaveGoodsShare(list);
return ServiceResponse.success(); return ServiceResponse.success();
} }
} }
...@@ -22,6 +22,8 @@ import com.gic.haoban.manage.web.qo.content.share.ContentLinkShareQO; ...@@ -22,6 +22,8 @@ import com.gic.haoban.manage.web.qo.content.share.ContentLinkShareQO;
import com.gic.haoban.manage.web.vo.content.ContentMaterialInfoVO; import com.gic.haoban.manage.web.vo.content.ContentMaterialInfoVO;
import com.gic.haoban.manage.web.vo.content.SimpleGoodsInfoVO; import com.gic.haoban.manage.web.vo.content.SimpleGoodsInfoVO;
import com.gic.haoban.manage.web.vo.content.share.ContentMaterialLandingPageVO; import com.gic.haoban.manage.web.vo.content.share.ContentMaterialLandingPageVO;
import com.gic.member.api.dto.member.req.MemberExtraPropertyReq;
import com.gic.member.api.service.extra.MemberExtraPropertyApiService;
import com.google.common.base.Splitter; import com.google.common.base.Splitter;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
...@@ -35,6 +37,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -35,6 +37,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -48,9 +51,13 @@ public class ClerkMaterialShareController { ...@@ -48,9 +51,13 @@ public class ClerkMaterialShareController {
@Autowired @Autowired
private MaterialShareLogApiService materialShareLogApiService; private MaterialShareLogApiService materialShareLogApiService;
@Autowired @Autowired
private ContentMaterialShareApiService contentMaterialShareApiService; private ContentMaterialShareApiService contentMaterialShareApiService;
@Autowired
private MemberExtraPropertyApiService memberExtraPropertyApiService;
/** /**
* 导购分享素材日志 * 导购分享素材日志
* *
...@@ -131,8 +138,14 @@ public class ClerkMaterialShareController { ...@@ -131,8 +138,14 @@ public class ClerkMaterialShareController {
} }
//更新会员推荐时间更新 //更新会员推荐时间更新
if(CollectionUtils.isNotEmpty(memberIdList)){ if(CollectionUtils.isNotEmpty(memberIdList)){
for (String memberId : memberIdList) {
MemberExtraPropertyReq memberExtraPropertyReq = new MemberExtraPropertyReq();
memberExtraPropertyReq.setEnterpriseId(recommendShareLogQO.getEnterpriseId());
memberExtraPropertyReq.setMemberId(memberId);
memberExtraPropertyReq.setExtraKey("interestingGoodsLastSuggestTime");
memberExtraPropertyReq.setExtraValue(new Date());
memberExtraPropertyApiService.updateMemberExtraProperty(memberExtraPropertyReq);
}
} }
return RestResponse.successResult(); return RestResponse.successResult();
......
...@@ -174,4 +174,7 @@ ...@@ -174,4 +174,7 @@
<dubbo:reference id="storeRankApiService" interface="com.gic.enterprise.api.service.rank.StoreRankApiService" timeout="100000" retries="0" check="false" /> <dubbo:reference id="storeRankApiService" interface="com.gic.enterprise.api.service.rank.StoreRankApiService" timeout="100000" retries="0" check="false" />
<dubbo:reference id="memberExtraPropertyApiService" interface="com.gic.member.api.service.extra.MemberExtraPropertyApiService" timeout="100000" retries="0" check="false" />
</beans> </beans>
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