Commit 3afa18e5 by 徐高华

Merge branch 'feature/企微许可账号购买' into 'master'

非空判断

See merge request !1116
parents 443381c8 c9c48cfe
...@@ -137,6 +137,14 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ ...@@ -137,6 +137,14 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
try { try {
TabHaobanStaff handover = staffService.selectById(dto.getHandoverStaffId()); TabHaobanStaff handover = staffService.selectById(dto.getHandoverStaffId());
TabHaobanStaff takeover = staffService.selectById(dto.getTakeoverStaffId()); TabHaobanStaff takeover = staffService.selectById(dto.getTakeoverStaffId());
if(null == handover) {
logger.info("handover is null={}",dto.getHandoverStaffId());
return;
}
if(null == takeover) {
logger.info("takeover is null={}",dto.getTakeoverStaffId());
return;
}
QywxTransferCustomerDTO customerDTO = qywxUserApiService.transferResult(qwDTO.getThirdCorpid(), config.getWxSuiteid(), handover.getWxUserId(), takeover.getWxUserId(), true); QywxTransferCustomerDTO customerDTO = qywxUserApiService.transferResult(qwDTO.getThirdCorpid(), config.getWxSuiteid(), handover.getWxUserId(), takeover.getWxUserId(), true);
if (customerDTO.getErrcode() != 0) { if (customerDTO.getErrcode() != 0) {
return; return;
......
...@@ -170,6 +170,9 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor ...@@ -170,6 +170,9 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
*/ */
private void dealStoreGroup(GroupSyncPojo syncPojo) { private void dealStoreGroup(GroupSyncPojo syncPojo) {
logger.info("门店分组变更binlog监听:{}", JSONObject.toJSONString(syncPojo)); logger.info("门店分组变更binlog监听:{}", JSONObject.toJSONString(syncPojo));
if(null != syncPojo && (null == syncPojo.getOldStatus() || null == syncPojo.getStatus())) {
return ;
}
//删除 同步绑定门店 //删除 同步绑定门店
if (syncPojo!= null && syncPojo.getOldStatus() == 1 && syncPojo.getStatus() == 0) { if (syncPojo!= null && syncPojo.getOldStatus() == 1 && syncPojo.getStatus() == 0) {
logger.info("门店分组变更,同步绑定门店:{}", JSONObject.toJSONString(syncPojo)); logger.info("门店分组变更,同步绑定门店:{}", JSONObject.toJSONString(syncPojo));
......
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