Commit 4e018c16 by 徐高华

非空校验

parent 1200830e
...@@ -586,6 +586,11 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe ...@@ -586,6 +586,11 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
ServiceResponse response = this.bindCheck(oldRelationDTO, "-1", ChannelCodeEnum.SYNC_BIND.getCode()); ServiceResponse response = this.bindCheck(oldRelationDTO, "-1", ChannelCodeEnum.SYNC_BIND.getCode());
logger.info("绑定结果正常:{},{}", JSONObject.toJSONString(response), oldRelationDTO.getClerkId()); logger.info("绑定结果正常:{},{}", JSONObject.toJSONString(response), oldRelationDTO.getClerkId());
if (response == null) { if (response == null) {
TabHaobanStaff staff = this.staffMapper.selectByPrimaryKey(oldRelationDTO.getStaffId()) ;
if(null == staff) {
logger.info("staff is del");
return;
}
this.staffClerkRelationService.insert(oldRelationDTO); this.staffClerkRelationService.insert(oldRelationDTO);
logger.info("换门店后,查询主门店,newClerkId={}",oldRelationDTO.getStaffId()); logger.info("换门店后,查询主门店,newClerkId={}",oldRelationDTO.getStaffId());
// 设置主门店 // 设置主门店
...@@ -598,7 +603,6 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe ...@@ -598,7 +603,6 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
hmQrcodeQDTO.setHmType(1); hmQrcodeQDTO.setHmType(1);
hmQrcodeQDTO.setWxEnterpriseId(oldRelationDTO.getWxEnterpriseId()); hmQrcodeQDTO.setWxEnterpriseId(oldRelationDTO.getWxEnterpriseId());
hmQrcodeQDTO.setEnterpriseId(oldRelationDTO.getEnterpriseId()); hmQrcodeQDTO.setEnterpriseId(oldRelationDTO.getEnterpriseId());
TabHaobanStaff staff = this.staffMapper.selectByPrimaryKey(oldRelationDTO.getStaffId()) ;
hmQrcodeQDTO.setName(staff.getStaffName()); hmQrcodeQDTO.setName(staff.getStaffName());
hmQrcodeQDTO.setPassFlag(1); hmQrcodeQDTO.setPassFlag(1);
hmQrcodeQDTO.setStoreId(clerkSyncQDTO.getStoreId()); hmQrcodeQDTO.setStoreId(clerkSyncQDTO.getStoreId());
......
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