Commit 85f61540 by 王祖波

开通服务修改

parent 7d4e90ec
...@@ -9,6 +9,7 @@ import com.gic.api.base.commons.ServiceResponse; ...@@ -9,6 +9,7 @@ import com.gic.api.base.commons.ServiceResponse;
import com.gic.clerk.api.dto.ClerkDTO; import com.gic.clerk.api.dto.ClerkDTO;
import com.gic.clerk.api.service.ClerkService; import com.gic.clerk.api.service.ClerkService;
import com.gic.commons.util.UniqueIdUtils; import com.gic.commons.util.UniqueIdUtils;
import com.gic.enterprise.api.constant.EnterpriseServiceEnum;
import com.gic.enterprise.api.dto.StoreDTO; import com.gic.enterprise.api.dto.StoreDTO;
import com.gic.enterprise.api.service.StoreService; import com.gic.enterprise.api.service.StoreService;
import com.gic.haoban.app.customer.dto.CustomerDTO; import com.gic.haoban.app.customer.dto.CustomerDTO;
...@@ -27,6 +28,7 @@ import com.gic.haoban.manage.service.entity.contact.TabContactLog; ...@@ -27,6 +28,7 @@ import com.gic.haoban.manage.service.entity.contact.TabContactLog;
import com.gic.haoban.manage.service.service.contact.ContactConfigService; import com.gic.haoban.manage.service.service.contact.ContactConfigService;
import com.gic.haoban.manage.service.service.contact.ContactFollowService; import com.gic.haoban.manage.service.service.contact.ContactFollowService;
import com.gic.haoban.manage.service.service.contact.ContactLogService; import com.gic.haoban.manage.service.service.contact.ContactLogService;
import com.gic.haoban.manage.service.service.content.adaptor.EnterpriseAdaptor;
import com.gic.member.api.dto.MemberStoreClerkDTO; import com.gic.member.api.dto.MemberStoreClerkDTO;
import com.gic.member.api.dto.es.MemberDataDTO; import com.gic.member.api.dto.es.MemberDataDTO;
import com.gic.member.api.service.MemberService; import com.gic.member.api.service.MemberService;
...@@ -68,6 +70,8 @@ public class ContactLogServiceImpl implements ContactLogService { ...@@ -68,6 +70,8 @@ public class ContactLogServiceImpl implements ContactLogService {
private CustomerApiService customerApiService; private CustomerApiService customerApiService;
@Autowired @Autowired
private ESDataDynamicOperationApiService esDataDynamicOperationApiService; private ESDataDynamicOperationApiService esDataDynamicOperationApiService;
@Autowired
private EnterpriseAdaptor enterpriseAdaptor;
public boolean contactCheck(String enterpriseId,String memberId,ClerkDTO clerkDTO) { public boolean contactCheck(String enterpriseId,String memberId,ClerkDTO clerkDTO) {
if (clerkDTO == null) { if (clerkDTO == null) {
...@@ -189,6 +193,10 @@ public class ContactLogServiceImpl implements ContactLogService { ...@@ -189,6 +193,10 @@ public class ContactLogServiceImpl implements ContactLogService {
if (qdto == null) { if (qdto == null) {
return; return;
} }
boolean hasRight = enterpriseAdaptor.checkEnterpriseHasRight(qdto.getEnterpriseId(), EnterpriseServiceEnum.POTENTIAL.getRightMenuCode());
if (!hasRight) {
return ;
}
String enterpriseId = qdto.getEnterpriseId(); String enterpriseId = qdto.getEnterpriseId();
Integer contactAutoType = qdto.getContactAutoType(); Integer contactAutoType = qdto.getContactAutoType();
ContactConfigDTO contactConfig = contactConfigService.getContactConfig(enterpriseId); ContactConfigDTO contactConfig = contactConfigService.getContactConfig(enterpriseId);
......
...@@ -23,8 +23,6 @@ public class QwSendApiServiceImpl implements QwSendApiService { ...@@ -23,8 +23,6 @@ public class QwSendApiServiceImpl implements QwSendApiService {
@Autowired @Autowired
private QwSendMsgService qwSendMsgService; private QwSendMsgService qwSendMsgService;
@Autowired
private EnterpriseAdaptor enterpriseAdaptor;
@Override @Override
public ServiceResponse<Void> qwSendRefreshByMQ(String message) { public ServiceResponse<Void> qwSendRefreshByMQ(String message) {
...@@ -32,10 +30,6 @@ public class QwSendApiServiceImpl implements QwSendApiService { ...@@ -32,10 +30,6 @@ public class QwSendApiServiceImpl implements QwSendApiService {
return ServiceResponse.success(); return ServiceResponse.success();
} }
DealQwSendDTO dealQwSendDTO = JSONObject.parseObject(message, DealQwSendDTO.class); DealQwSendDTO dealQwSendDTO = JSONObject.parseObject(message, DealQwSendDTO.class);
boolean hasRight = enterpriseAdaptor.checkEnterpriseHasRight(dealQwSendDTO.getEnterpriseId(), EnterpriseServiceEnum.POTENTIAL.getRightMenuCode());
if (!hasRight) {
return ServiceResponse.success();
}
Integer refreshType = dealQwSendDTO.getRefreshType(); Integer refreshType = dealQwSendDTO.getRefreshType();
log.info("刷新企微发送记录:{}", message); log.info("刷新企微发送记录:{}", message);
......
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