Commit 18627ab7 by xiongjiangtao

用户推荐时间更新

parent 1a272c42
......@@ -119,6 +119,9 @@ public class MaterialShareLogApiServiceImpl implements MaterialShareLogApiServic
return temp;
}).collect(Collectors.toList());
triggerCustomerDetailService.batchSaveGoodsShare(list);
return ServiceResponse.success();
}
}
......@@ -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.SimpleGoodsInfoVO;
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.collect.Lists;
import org.apache.commons.collections.CollectionUtils;
......@@ -35,6 +37,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
......@@ -48,9 +51,13 @@ public class ClerkMaterialShareController {
@Autowired
private MaterialShareLogApiService materialShareLogApiService;
@Autowired
private ContentMaterialShareApiService contentMaterialShareApiService;
@Autowired
private MemberExtraPropertyApiService memberExtraPropertyApiService;
/**
* 导购分享素材日志
*
......@@ -131,8 +138,14 @@ public class ClerkMaterialShareController {
}
//更新会员推荐时间更新
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();
......
......@@ -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="memberExtraPropertyApiService" interface="com.gic.member.api.service.extra.MemberExtraPropertyApiService" timeout="100000" retries="0" check="false" />
</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