Commit 64d11664 by 徐高华

单向好友

parent 659d74fb
package com.gic.haoban.manage.api.dto.qdto.hm; package com.gic.haoban.manage.api.dto.qdto.hm;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
public class WxUserAddLogQDTO implements Serializable{ public class WxUserAddLogQDTO implements Serializable{
...@@ -20,6 +21,15 @@ public class WxUserAddLogQDTO implements Serializable{ ...@@ -20,6 +21,15 @@ public class WxUserAddLogQDTO implements Serializable{
private String staffName; private String staffName;
private String clerkId; private String clerkId;
private Integer addWay ; private Integer addWay ;
private Date qwAddTime ;
public Date getQwAddTime() {
return qwAddTime;
}
public void setQwAddTime(Date qwAddTime) {
this.qwAddTime = qwAddTime;
}
public Integer getAddWay() { public Integer getAddWay() {
return addWay; return addWay;
......
package com.gic.haoban.manage.service.entity.hm; package com.gic.haoban.manage.service.entity.hm;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
/** /**
* *
...@@ -58,6 +59,15 @@ public class TabWxUserAddLog implements Serializable { ...@@ -58,6 +59,15 @@ public class TabWxUserAddLog implements Serializable {
private java.util.Date updateTime; private java.util.Date updateTime;
/**是否所有好友删除 1是0否*/ /**是否所有好友删除 1是0否*/
private Integer allDelFlag; private Integer allDelFlag;
private Date qwAddTime ;
public Date getQwAddTime() {
return qwAddTime;
}
public void setQwAddTime(Date qwAddTime) {
this.qwAddTime = qwAddTime;
}
public void setLogId(Long logId) { public void setLogId(Long logId) {
this.logId = logId; this.logId = logId;
......
...@@ -147,6 +147,7 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService { ...@@ -147,6 +147,7 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService {
entity = this.addMemberInfo(qdto.getEnterpriseId(), qdto.getMemberId(), entity); entity = this.addMemberInfo(qdto.getEnterpriseId(), qdto.getMemberId(), entity);
} }
} }
entity.setQwAddTime(qdto.getQwAddTime());
this.wxUserAddLogMapper.insert(entity); this.wxUserAddLogMapper.insert(entity);
}catch(Exception e) { }catch(Exception e) {
log.info("异常",e); log.info("异常",e);
......
...@@ -167,6 +167,9 @@ public class ExternalClerkRelatedServiceImpl implements ExternalClerkRelatedServ ...@@ -167,6 +167,9 @@ public class ExternalClerkRelatedServiceImpl implements ExternalClerkRelatedServ
wxUserAddLogQDTO.setExternalUserid(related.getExternalUserId()); wxUserAddLogQDTO.setExternalUserid(related.getExternalUserId());
wxUserAddLogQDTO.setStaffId(related.getStaffId()); wxUserAddLogQDTO.setStaffId(related.getStaffId());
wxUserAddLogQDTO.setClerkId(related.getClerkId()); wxUserAddLogQDTO.setClerkId(related.getClerkId());
if(null != related.getAddTime()) {
wxUserAddLogQDTO.setQwAddTime(new Date(related.getAddTime()*1000));
}
wxUserAddLogService.save(wxUserAddLogQDTO); wxUserAddLogService.save(wxUserAddLogQDTO);
//定制 //定制
addDelFriendEvent(related.getUnionid(), related.getClerkId(), wxEnterpriseId, enterpriseId, related.getMemberId(), related.getStoreId(), 0); addDelFriendEvent(related.getUnionid(), related.getClerkId(), wxEnterpriseId, enterpriseId, related.getMemberId(), related.getStoreId(), 0);
......
...@@ -247,6 +247,9 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -247,6 +247,9 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
wxUserAddLogQDTO.setStaffId(related.getStaffId()); wxUserAddLogQDTO.setStaffId(related.getStaffId());
wxUserAddLogQDTO.setClerkId(related.getClerkId()); wxUserAddLogQDTO.setClerkId(related.getClerkId());
wxUserAddLogQDTO.setDelClerkFlag(true); wxUserAddLogQDTO.setDelClerkFlag(true);
if(null != related.getAddTime()) {
wxUserAddLogQDTO.setQwAddTime(new Date(related.getAddTime()*1000));
}
wxUserAddLogService.save(wxUserAddLogQDTO); wxUserAddLogService.save(wxUserAddLogQDTO);
addDelFriendEvent(related.getUnionid(), related.getClerkId(), wxEnterpriseId, enterpriseId, related.getMemberId(), related.getStoreId(), 0); addDelFriendEvent(related.getUnionid(), related.getClerkId(), wxEnterpriseId, enterpriseId, related.getMemberId(), related.getStoreId(), 0);
...@@ -658,6 +661,9 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -658,6 +661,9 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
wxUserAddLogQDTO.setStaffName(staffName); wxUserAddLogQDTO.setStaffName(staffName);
wxUserAddLogQDTO.setClerkId(hyClerkId); wxUserAddLogQDTO.setClerkId(hyClerkId);
wxUserAddLogQDTO.setAddWay(dto.getAddWay()); wxUserAddLogQDTO.setAddWay(dto.getAddWay());
if(StringUtils.isNotBlank(dto.getAddCreateTime())) {
wxUserAddLogQDTO.setQwAddTime(new Date(Long.valueOf(createTime)*1000));
}
this.wxUserAddLogService.save(wxUserAddLogQDTO); this.wxUserAddLogService.save(wxUserAddLogQDTO);
RedisUtil.unlock(lockKey); RedisUtil.unlock(lockKey);
if(StringUtils.isNotBlank(memberId)) { if(StringUtils.isNotBlank(memberId)) {
......
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
from tab_haoban_external_clerk_related from tab_haoban_external_clerk_related
where staff_id = #{staffId,jdbcType=VARCHAR} where staff_id = #{staffId,jdbcType=VARCHAR}
and external_user_id = #{externalUserid} and external_user_id = #{externalUserid}
and status_flag = #{statusFlag} and status_flag = #{statusFlag} order by update_time desc
</select> </select>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<result column="create_time" property="createTime"/> <result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/> <result column="update_time" property="updateTime"/>
<result column="all_del_flag" property="allDelFlag"/> <result column="all_del_flag" property="allDelFlag"/>
<result column="qw_add_time" property="qwAddTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
log_id , log_id ,
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
member_label_name, member_label_name,
create_time, create_time,
update_time, update_time,
all_del_flag all_del_flag , qw_add_time
</sql> </sql>
<!-- ===================== 新增 ======================== --> <!-- ===================== 新增 ======================== -->
<insert id="insert" <insert id="insert"
...@@ -103,7 +104,7 @@ ...@@ -103,7 +104,7 @@
create_time, create_time,
update_time, update_time,
add_time, add_time,
all_del_flag) all_del_flag , qw_add_time)
VALUES (#{logId,jdbcType=BIGINT}, VALUES (#{logId,jdbcType=BIGINT},
#{wxEnterpriseId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR},
#{enterpriseId,jdbcType=CHAR}, #{enterpriseId,jdbcType=CHAR},
...@@ -135,7 +136,7 @@ ...@@ -135,7 +136,7 @@
now(), now(),
now(), now(),
now(), now(),
#{allDelFlag,jdbcType=INTEGER}) #{allDelFlag,jdbcType=INTEGER} , #{qwAddTime})
]]> ]]>
</insert> </insert>
......
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