Commit 4aad8761 by 徐高华

Merge branch 'developer' of http://git.gicdev.com/haoban3.0/haoban-manage3.0.git into developer

parents 96cd844a 9b8a0a30
...@@ -310,8 +310,11 @@ public class MaterialApiServiceImpl implements MaterialApiService { ...@@ -310,8 +310,11 @@ public class MaterialApiServiceImpl implements MaterialApiService {
(a, b) -> a (a, b) -> a
)); ));
result.forEach(dto -> { result.forEach(dto -> {
//小程序去判断逻辑
if (dto.getMaterialType() != null && dto.getMaterialType() == 6) {
TabMiniprogramSetting miniprogramSetting = settingMap.get(dto.getAppId()); TabMiniprogramSetting miniprogramSetting = settingMap.get(dto.getAppId());
dto.setMaterialDesc(miniprogramSetting == null ? "--" : miniprogramSetting.getMiniprogramName()); dto.setMaterialDesc(miniprogramSetting == null ? "--" : miniprogramSetting.getMiniprogramName());
}
}); });
} }
return PageUtil.changePageHelperToCurrentPage(page, MaterialDTO.class); return PageUtil.changePageHelperToCurrentPage(page, MaterialDTO.class);
......
...@@ -293,7 +293,7 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -293,7 +293,7 @@ public class MessageApiServiceImpl implements MessageApiService {
if (null != user) { if (null != user) {
Integer status = user.getStatus(); Integer status = user.getStatus();
// 1=已激活,2=已禁用,4=未激活,5=退出企业。 // 1=已激活,2=已禁用,4=未激活,5=退出企业。
log.info("企业微信用户状态:{}",status); log.info("企业微信用户状态:{}", status);
if (status == 1) { if (status == 1) {
log.info("企业微信用户存在,并且已激活无需删除:{}:{}", wxEnterpriseId, userid); log.info("企业微信用户存在,并且已激活无需删除:{}:{}", wxEnterpriseId, userid);
return; return;
...@@ -316,7 +316,7 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -316,7 +316,7 @@ public class MessageApiServiceImpl implements MessageApiService {
List<StaffClerkRelationDTO> staffClerkRelationDTOS = staffClerkRelationApiService.listByStaffId(wxEnterpriseId, staffId); List<StaffClerkRelationDTO> staffClerkRelationDTOS = staffClerkRelationApiService.listByStaffId(wxEnterpriseId, staffId);
if (CollectionUtils.isNotEmpty(staffClerkRelationDTOS)) { if (CollectionUtils.isNotEmpty(staffClerkRelationDTOS)) {
for (StaffClerkRelationDTO staffClerkRelationDTO : staffClerkRelationDTOS) { for (StaffClerkRelationDTO staffClerkRelationDTO : staffClerkRelationDTOS) {
staffClerkRelationApiService.unbindByStaffAndClerkId(staffId,staffClerkRelationDTO.getClerkId()); staffClerkRelationApiService.unbindByStaffAndClerkId(staffId, staffClerkRelationDTO.getClerkId());
} }
} }
} }
...@@ -475,13 +475,13 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -475,13 +475,13 @@ public class MessageApiServiceImpl implements MessageApiService {
log.info("clerkId未绑定:clerkId={}", clerkId); log.info("clerkId未绑定:clerkId={}", clerkId);
return false; return false;
} }
WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(relation.getWxEnterpriseId()) ; WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(relation.getWxEnterpriseId());
if (qwDTO == null) { if (qwDTO == null) {
log.info("企业为空"); log.info("企业为空");
return false; return false;
} }
StaffDTO staffDTO = staffApiService.selectById(relation.getStaffId()); StaffDTO staffDTO = staffApiService.selectById(relation.getStaffId());
String corpid = qwDTO.getThirdCorpid() ; String corpid = qwDTO.getThirdCorpid();
String wxUserId = ""; String wxUserId = "";
if (qwDTO.needOpenUserId3th()) { if (qwDTO.needOpenUserId3th()) {
wxUserId = staffDTO.getWxOpenUseId(); wxUserId = staffDTO.getWxOpenUseId();
...@@ -560,7 +560,7 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -560,7 +560,7 @@ public class MessageApiServiceImpl implements MessageApiService {
String title = jsonObject.getString("title"); String title = jsonObject.getString("title");
String content = jsonObject.getString("content"); String content = jsonObject.getString("content");
String memberName = jsonObject.getString("memberName"); String memberName = jsonObject.getString("memberName");
WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(wxEnterpriseId) ; WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(wxEnterpriseId);
if (qwDTO == null) { if (qwDTO == null) {
log.info("企业为空"); log.info("企业为空");
return; return;
...@@ -583,7 +583,8 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -583,7 +583,8 @@ public class MessageApiServiceImpl implements MessageApiService {
@Override @Override
public String getNewWxUserIdByStaffId(String wxEnterpriseId, String staffId) { public String getNewWxUserIdByStaffId(String wxEnterpriseId, String staffId) {
WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(wxEnterpriseId) ; log.info("请求wxEnterpriseId:{},staffId:{}", wxEnterpriseId, staffId);
WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(wxEnterpriseId);
if (qwDTO == null) { if (qwDTO == null) {
return ""; return "";
} }
......
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