Commit 57fe76dd by fudahua

好友

parent 06b32686
...@@ -113,4 +113,13 @@ public interface HandoverOperationApiService { ...@@ -113,4 +113,13 @@ public interface HandoverOperationApiService {
* @return * @return
*/ */
public List<String> listTransferIdByTakeoverStaffId(String wxEnterpriseId, String takeoverStaffId); public List<String> listTransferIdByTakeoverStaffId(String wxEnterpriseId, String takeoverStaffId);
/**
* 继承记录对应的trandferid
*
* @param wxEnterpriseId
* @param takeoverStaffId
* @return
*/
public Integer countTransferIdByTakeoverStaffId(String wxEnterpriseId, String takeoverStaffId);
} }
...@@ -296,4 +296,13 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ ...@@ -296,4 +296,13 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
} }
return ret.stream().map(dto -> dto.getHandoverTransferId()).collect(Collectors.toList()); return ret.stream().map(dto -> dto.getHandoverTransferId()).collect(Collectors.toList());
} }
@Override
public Integer countTransferIdByTakeoverStaffId(String wxEnterpriseId, String takeoverStaffId) {
List<TabHandoverTransfer> ret = handoverService.listTransferByTakeoverStaffId(wxEnterpriseId, takeoverStaffId);
if (CollectionUtils.isEmpty(ret)) {
return null;
}
return ret.stream().mapToInt(dto -> dto.getExternalCount()).sum();
}
} }
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