Commit 05f0a7ac by 徐高华

企微托管

parent 105d8e64
......@@ -24,6 +24,16 @@ public class WxUserAddLogQDTO implements Serializable{
private Date qwAddTime ;
private String friendClerkId ;
private String friendStoreId ;
// 0手动 1系统
private int delType ;
public int getDelType() {
return delType;
}
public void setDelType(int delType) {
this.delType = delType;
}
public String getFriendClerkId() {
return friendClerkId;
......
......@@ -87,6 +87,12 @@
<dependency>
<groupId>com.gic</groupId>
<artifactId>haoban-task-manage-api</artifactId>
<version>${haoban-task-manage-api}</version>
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>gic-enterprise-api</artifactId>
<version>${gic-enterprise-api}</version>
<exclusions>
......
......@@ -63,6 +63,15 @@ public class TabWxUserAddLog implements Serializable {
private String friendClerkId ;
private String friendStoreId ;
private int delType ;
public int getDelType() {
return delType;
}
public void setDelType(int delType) {
this.delType = delType;
}
public String getFriendClerkId() {
return friendClerkId;
......
......@@ -150,6 +150,7 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService {
entity.setQwAddTime(qdto.getQwAddTime());
entity.setFriendClerkId(qdto.getFriendClerkId());
entity.setFriendStoreId(qdto.getFriendStoreId());
entity.setDelType(qdto.getDelType());
this.wxUserAddLogMapper.insert(entity);
}catch(Exception e) {
log.info("异常",e);
......
......@@ -27,6 +27,7 @@ import com.gic.haoban.manage.service.service.ExternalClerkRelatedService;
import com.gic.haoban.manage.service.service.SecretSettingService;
import com.gic.haoban.manage.service.service.WxEnterpriseService;
import com.gic.haoban.manage.service.service.hm.WxUserAddLogService;
import com.gic.haoban.task.manage.api.service.OpenQwApiService;
import com.gic.member.api.dto.MemberDTO;
import com.gic.member.api.dto.MemberSourceDetailDTO;
import com.gic.member.api.dto.MemberSourceShowDTO;
......@@ -84,6 +85,8 @@ public class ExternalClerkRelatedServiceImpl implements ExternalClerkRelatedServ
private TabHaobanRepairExternalUserMapper tabHaobanRepairExternalUserMapper;
@Autowired
private SecretSettingService secretSettingService;
@Autowired
private OpenQwApiService openQwApiService ;
@Override
public void insert(TabHaobanExternalClerkRelated related) {
......@@ -172,6 +175,10 @@ public class ExternalClerkRelatedServiceImpl implements ExternalClerkRelatedServ
}
wxUserAddLogQDTO.setFriendClerkId(related.getClerkId());
wxUserAddLogQDTO.setFriendStoreId(related.getStoreId());
int autoDelNum = this.openQwApiService.getAutoDelNum(staffId,externalUserid) ;
if(autoDelNum>0) {
wxUserAddLogQDTO.setDelType(1);
}
wxUserAddLogService.save(wxUserAddLogQDTO);
//定制
addDelFriendEvent(related.getUnionid(), related.getClerkId(), wxEnterpriseId, enterpriseId, related.getMemberId(), related.getStoreId(), 0);
......
......@@ -220,6 +220,7 @@
ref="mallOrderStatusChangeApiService" timeout="10000" />
<dubbo:service interface="com.gic.haoban.manage.api.service.OpenStaffApiService"
ref="openStaffApiService" timeout="10000" />
<dubbo:reference interface="com.gic.haoban.task.manage.api.service.OpenQwApiService" id="openQwApiService"/>
<dubbo:reference interface="com.gic.store.goods.service.GoodsInfoOutApiService" id="goodsInfoOutApiService" timeout="10000" retries="0" check="false"/>
<dubbo:reference interface="com.gic.store.goods.service.GoodsCenterApiService" id="goodsCenterApiService" timeout="10000" retries="0" check="false"/>
<dubbo:reference interface="com.gic.business.order.service.ordermanage.OrderInfoOutApiService" id="orderInfoOutApiService" timeout="10000" retries="0" check="false"/>
......
......@@ -106,7 +106,7 @@
create_time,
update_time,
add_time,
all_del_flag , qw_add_time , friend_clerk_id , friend_store_id)
all_del_flag , qw_add_time , friend_clerk_id , friend_store_id , del_type )
VALUES (#{logId,jdbcType=BIGINT},
#{wxEnterpriseId,jdbcType=VARCHAR},
#{enterpriseId,jdbcType=CHAR},
......@@ -138,7 +138,7 @@
now(),
now(),
now(),
#{allDelFlag,jdbcType=INTEGER} , #{qwAddTime} , #{friendClerkId} , #{friendStoreId})
#{allDelFlag,jdbcType=INTEGER} , #{qwAddTime} , #{friendClerkId} , #{friendStoreId} , #{delType})
]]>
</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