|
@@ -4,33 +4,25 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.ydtech.core.page.BasePageVO;
|
|
|
|
|
-import com.ydtech.core.page.PageResult;
|
|
|
|
|
|
|
+import com.ydtech.constants.enums.dict.finance.CheckingStatusEnum;
|
|
|
import com.ydtech.exception.SystemException;
|
|
import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.admin.model.SysUser;
|
|
import com.ydtech.modules.admin.model.SysUser;
|
|
|
|
|
+import com.ydtech.modules.base.model.dto.PageDto;
|
|
|
|
|
+import com.ydtech.modules.base.model.vo.PageVo;
|
|
|
import com.ydtech.modules.esm.model.EsmInsCompany;
|
|
import com.ydtech.modules.esm.model.EsmInsCompany;
|
|
|
import com.ydtech.modules.esm.service.EsmInsCompanyService;
|
|
import com.ydtech.modules.esm.service.EsmInsCompanyService;
|
|
|
import com.ydtech.modules.inv.dao.InvChannelsExternalBillsDetailsMapper;
|
|
import com.ydtech.modules.inv.dao.InvChannelsExternalBillsDetailsMapper;
|
|
|
import com.ydtech.modules.inv.model.InvChannelsExternalBillsDetails;
|
|
import com.ydtech.modules.inv.model.InvChannelsExternalBillsDetails;
|
|
|
-import com.ydtech.modules.inv.model.InvExternalBills;
|
|
|
|
|
-import com.ydtech.modules.inv.model.InvInsExternalBillsDetails;
|
|
|
|
|
-import com.ydtech.modules.inv.model.dto.InvInsChannelExcelDto;
|
|
|
|
|
-import com.ydtech.modules.inv.model.vo.req.InvChannelExternalBillsDetailsReqVO;
|
|
|
|
|
|
|
+import com.ydtech.modules.inv.model.dto.InvChannelExcelDto;
|
|
|
import com.ydtech.modules.inv.model.vo.res.InvBaseChannelMatchInsResVO;
|
|
import com.ydtech.modules.inv.model.vo.res.InvBaseChannelMatchInsResVO;
|
|
|
-import com.ydtech.modules.inv.model.vo.res.InvChannelMatchInsResVO;
|
|
|
|
|
-import com.ydtech.modules.inv.model.vo.res.InvCompanyResVO;
|
|
|
|
|
import com.ydtech.modules.inv.service.InvChannelsExternalBillsDetailsService;
|
|
import com.ydtech.modules.inv.service.InvChannelsExternalBillsDetailsService;
|
|
|
import com.ydtech.modules.inv.service.InvExternalBillsService;
|
|
import com.ydtech.modules.inv.service.InvExternalBillsService;
|
|
|
-import com.ydtech.utils.StringUtils;
|
|
|
|
|
import com.ydtech.utils.excel.ExcelEasypoiUtils;
|
|
import com.ydtech.utils.excel.ExcelEasypoiUtils;
|
|
|
-import com.ydtech.utils.excel.ExcelUtils2;
|
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
-import java.math.BigDecimal;
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -48,30 +40,45 @@ public class InvChannelsExternalBillsDetailsServiceImpl extends ServiceImpl<InvC
|
|
|
private EsmInsCompanyService esmInsCompanyService;
|
|
private EsmInsCompanyService esmInsCompanyService;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public PageResult<InvBaseChannelMatchInsResVO> gainChannelMatchIns(InvChannelExternalBillsDetailsReqVO reqVo) {
|
|
|
|
|
|
|
+ public PageVo<InvBaseChannelMatchInsResVO> gainChannelMatchIns(PageDto pageDto) {
|
|
|
|
|
+ PageVo<InvBaseChannelMatchInsResVO> pageVo = new PageVo();
|
|
|
//获取总数量
|
|
//获取总数量
|
|
|
- int total = super.baseMapper.gainChannelMatchInsCount(reqVo);
|
|
|
|
|
-// //计算mysql分页起索引
|
|
|
|
|
-// int firstIndex = reqVo.getPageNum()==1?0:(reqVo.getPageNum()-1) * reqVo.getPageSize() +1;
|
|
|
|
|
-// //计算mysql分页总页数
|
|
|
|
|
-// int totalPages = total % reqVo.getPageSize() == 0?total / reqVo.getPageSize():total / reqVo.getPageSize() +1;
|
|
|
|
|
|
|
+ int total = super.baseMapper.gainChannelMatchInsCount(pageDto);
|
|
|
|
|
|
|
|
-// PageResult pr = new PageResult();
|
|
|
|
|
-// pr.setPageNum(reqVo.getPageNum());
|
|
|
|
|
-// pr.setPageSize(reqVo.getPageSize());
|
|
|
|
|
-// pr.setTotalSize(total);
|
|
|
|
|
-// pr.setTotalPages(totalPages);
|
|
|
|
|
|
|
+ pageVo.setTotalSize(total);
|
|
|
|
|
+ PageVo.buildPageInfo(pageDto, pageVo);
|
|
|
|
|
|
|
|
|
|
+ pageVo.setContent(super.baseMapper.gainChannelMatchIns(pageDto));
|
|
|
|
|
|
|
|
- //请求替换分页开始索引
|
|
|
|
|
- reqVo.setPageNum(PageResult.buildPageLimitStart(reqVo));
|
|
|
|
|
|
|
+ return pageVo;
|
|
|
|
|
|
|
|
- List<InvBaseChannelMatchInsResVO> resVOList = super.baseMapper.gainChannelMatchIns(reqVo);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- return PageResult.buildPageResult(reqVo, total, resVOList);
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+// @Override
|
|
|
|
|
+// public PageResult<InvBaseChannelMatchInsResVO> gainChannelMatchIns(InvChannelExternalBillsDetailsReqVO reqVo) {
|
|
|
|
|
+// //获取总数量
|
|
|
|
|
+// int total = super.baseMapper.gainChannelMatchInsCount(reqVo);
|
|
|
|
|
+//// //计算mysql分页起索引
|
|
|
|
|
+//// int firstIndex = reqVo.getPageNum()==1?0:(reqVo.getPageNum()-1) * reqVo.getPageSize() +1;
|
|
|
|
|
+//// //计算mysql分页总页数
|
|
|
|
|
+//// int totalPages = total % reqVo.getPageSize() == 0?total / reqVo.getPageSize():total / reqVo.getPageSize() +1;
|
|
|
|
|
+//
|
|
|
|
|
+//// PageResult pr = new PageResult();
|
|
|
|
|
+//// pr.setPageNum(reqVo.getPageNum());
|
|
|
|
|
+//// pr.setPageSize(reqVo.getPageSize());
|
|
|
|
|
+//// pr.setTotalSize(total);
|
|
|
|
|
+//// pr.setTotalPages(totalPages);
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// //请求替换分页开始索引
|
|
|
|
|
+// reqVo.setPageNum(PageResult.buildPageLimitStart(reqVo));
|
|
|
|
|
+//
|
|
|
|
|
+// List<InvBaseChannelMatchInsResVO> resVOList = super.baseMapper.gainChannelMatchIns(reqVo);
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// return PageResult.buildPageResult(reqVo, total, resVOList);
|
|
|
|
|
+//
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public boolean deleteByBatchNum(String batchNum) {
|
|
public boolean deleteByBatchNum(String batchNum) {
|
|
@@ -80,30 +87,149 @@ public class InvChannelsExternalBillsDetailsServiceImpl extends ServiceImpl<InvC
|
|
|
return remove(lqw);
|
|
return remove(lqw);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// @Override
|
|
|
|
|
+// public InvExternalBills importData(MultipartFile file, InvExternalBills iieb) {
|
|
|
|
|
+//
|
|
|
|
|
+// String errorMsg = "";
|
|
|
|
|
+// List<InvChannelsExternalBillsDetails> list = null;
|
|
|
|
|
+// try {
|
|
|
|
|
+// List<InvInsChannelExcelDto> dtoList = ExcelEasypoiUtils.importExcel(file, InvInsChannelExcelDto.class, 0, 1, 1);
|
|
|
|
|
+//
|
|
|
|
|
+// dtoList = dtoList.stream().filter(l -> l.getPlateNum() != null).collect(Collectors.toList());
|
|
|
|
|
+// if(null == dtoList || dtoList.size() < 1){
|
|
|
|
|
+// errorMsg = "导入失败!匹配数据 0 条";
|
|
|
|
|
+//
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// Map<String, InvChannelsExternalBillsDetails> m = new HashMap();
|
|
|
|
|
+// dtoList.stream().forEach(a ->{
|
|
|
|
|
+// InvChannelsExternalBillsDetails icebd = new InvChannelsExternalBillsDetails();
|
|
|
|
|
+// if (m.containsKey(a.getPlateNum())) {
|
|
|
|
|
+// icebd = m.get(a.getPlateNum());
|
|
|
|
|
+//
|
|
|
|
|
+// } else {
|
|
|
|
|
+// BeanUtil.copyProperties(a, icebd);
|
|
|
|
|
+// //对应保险公司
|
|
|
|
|
+// EsmInsCompany insCompany = esmInsCompanyService.findInsCompanyByName(a.getInsCompany());
|
|
|
|
|
+// if(null == insCompany)throw new SystemException("保险公司:" + a.getInsCompany() + "不匹配");
|
|
|
|
|
+// icebd.setInsCompanyId(insCompany.getId());
|
|
|
|
|
+// icebd.setInsCompany(insCompany.getName());
|
|
|
|
|
+//
|
|
|
|
|
+// icebd.setMliftaCost(a.getMliftaCost());
|
|
|
|
|
+//
|
|
|
|
|
+// icebd.setPayDate(a.getPayDate());
|
|
|
|
|
+// icebd.setInsCoverage(a.getInsCoverage());
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// icebd.setStatus("1");
|
|
|
|
|
+//
|
|
|
|
|
+// }
|
|
|
|
|
+// m.put(a.getPlateNum(), icebd);
|
|
|
|
|
+// });
|
|
|
|
|
+//
|
|
|
|
|
+// //获取车牌号list
|
|
|
|
|
+// List<String> listKey = m.keySet().stream().collect(Collectors.toList());
|
|
|
|
|
+// //获取车牌号重复的list 渠道
|
|
|
|
|
+// List<String> longs = gainPlateNumRepetitionList(listKey);
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// if(longs.size() > 0){
|
|
|
|
|
+// errorMsg = "车牌号已经存在:"+longs;
|
|
|
|
|
+//// throw new SystemException("车牌号已经存在:"+longs);
|
|
|
|
|
+// }else{
|
|
|
|
|
+// list = new ArrayList<>(m.values());
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// } catch (IOException e) {
|
|
|
|
|
+// errorMsg = "导入失败!" + e.getMessage();
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// if (StringUtils.isNotEmpty(errorMsg)) {
|
|
|
|
|
+// iieb.setImportStatus("0");
|
|
|
|
|
+// iieb.setErrorMsg(errorMsg);
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// } else {
|
|
|
|
|
+//
|
|
|
|
|
+// iieb = InvExternalBills.buildImportInvExternalBills(iieb, list);
|
|
|
|
|
+// boolean boo = saveBatch(list);
|
|
|
|
|
+// }
|
|
|
|
|
+// return iieb;
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void pay(List<String> ids, SysUser user) {
|
|
|
|
|
+ //更新批次号状态
|
|
|
|
|
+ LambdaUpdateWrapper<InvChannelsExternalBillsDetails> luw = new LambdaUpdateWrapper<>();
|
|
|
|
|
+ luw.set(InvChannelsExternalBillsDetails::getStatus, "2");
|
|
|
|
|
+ luw.set(InvChannelsExternalBillsDetails::getPayOperatorId, user.getId());
|
|
|
|
|
+ luw.set(InvChannelsExternalBillsDetails::getPayOperator, user.getName());
|
|
|
|
|
+ luw.in(InvChannelsExternalBillsDetails::getId, ids);
|
|
|
|
|
+ update(luw);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取车牌号重复的list 渠道
|
|
|
|
|
+ *
|
|
|
|
|
+ * @author: lig
|
|
|
|
|
+ * @date: 2023年07月07日 0007
|
|
|
|
|
+ */
|
|
|
|
|
+ private List<String> gainPlateNumRepetitionList(List<String> listKey) {
|
|
|
|
|
+ LambdaQueryWrapper<InvChannelsExternalBillsDetails> lqw = new LambdaQueryWrapper();
|
|
|
|
|
+ lqw.select(InvChannelsExternalBillsDetails::getPlateNum);
|
|
|
|
|
+ lqw.eq(InvChannelsExternalBillsDetails::getStatus, CheckingStatusEnum.AS0.getCode());
|
|
|
|
|
+ lqw.in(InvChannelsExternalBillsDetails::getPlateNum, listKey);
|
|
|
|
|
+
|
|
|
|
|
+ //查询获取对象具体字段的集合
|
|
|
|
|
+ List<String> longs = listObjs(lqw, new Function<Object, String>() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String apply(Object id) {
|
|
|
|
|
+ return id.toString();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return longs;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
- public InvExternalBills importData(MultipartFile file, InvExternalBills iieb) {
|
|
|
|
|
|
|
+ public void importData(MultipartFile file) {
|
|
|
|
|
|
|
|
String errorMsg = "";
|
|
String errorMsg = "";
|
|
|
List<InvChannelsExternalBillsDetails> list = null;
|
|
List<InvChannelsExternalBillsDetails> list = null;
|
|
|
try {
|
|
try {
|
|
|
- List<InvInsChannelExcelDto> dtoList = ExcelEasypoiUtils.importExcel(file, InvInsChannelExcelDto.class, 0, 1, 1);
|
|
|
|
|
|
|
+ List<InvChannelExcelDto> dtoList = ExcelEasypoiUtils.importExcel(file, InvChannelExcelDto.class, 0, 1, 1);
|
|
|
|
|
|
|
|
dtoList = dtoList.stream().filter(l -> l.getPlateNum() != null).collect(Collectors.toList());
|
|
dtoList = dtoList.stream().filter(l -> l.getPlateNum() != null).collect(Collectors.toList());
|
|
|
- if(null == dtoList || dtoList.size() < 1){
|
|
|
|
|
- errorMsg = "导入失败!匹配数据 0 条";
|
|
|
|
|
|
|
+ if (null == dtoList || dtoList.size() < 1) {
|
|
|
|
|
+// errorMsg = "导入失败!匹配数据 0 条";
|
|
|
|
|
+ throw new SystemException("导入失败!匹配数据 0 条");
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
Map<String, InvChannelsExternalBillsDetails> m = new HashMap();
|
|
Map<String, InvChannelsExternalBillsDetails> m = new HashMap();
|
|
|
- dtoList.stream().forEach(a ->{
|
|
|
|
|
|
|
+ dtoList.stream().forEach(a -> {
|
|
|
InvChannelsExternalBillsDetails icebd = new InvChannelsExternalBillsDetails();
|
|
InvChannelsExternalBillsDetails icebd = new InvChannelsExternalBillsDetails();
|
|
|
if (m.containsKey(a.getPlateNum())) {
|
|
if (m.containsKey(a.getPlateNum())) {
|
|
|
icebd = m.get(a.getPlateNum());
|
|
icebd = m.get(a.getPlateNum());
|
|
|
|
|
+ if (!a.getChannel().equals(icebd.getChannel())) {
|
|
|
|
|
+ throw new SystemException("导入重复数据,车牌号:" + a.getPlateNum());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
BeanUtil.copyProperties(a, icebd);
|
|
BeanUtil.copyProperties(a, icebd);
|
|
|
//对应保险公司
|
|
//对应保险公司
|
|
|
EsmInsCompany insCompany = esmInsCompanyService.findInsCompanyByName(a.getInsCompany());
|
|
EsmInsCompany insCompany = esmInsCompanyService.findInsCompanyByName(a.getInsCompany());
|
|
|
- if(null == insCompany)throw new SystemException("保险公司:" + a.getInsCompany() + "不匹配");
|
|
|
|
|
|
|
+ if (null == insCompany) throw new SystemException("保险公司:" + a.getInsCompany() + "不匹配");
|
|
|
icebd.setInsCompanyId(insCompany.getId());
|
|
icebd.setInsCompanyId(insCompany.getId());
|
|
|
icebd.setInsCompany(insCompany.getName());
|
|
icebd.setInsCompany(insCompany.getName());
|
|
|
|
|
|
|
@@ -112,8 +238,7 @@ public class InvChannelsExternalBillsDetailsServiceImpl extends ServiceImpl<InvC
|
|
|
icebd.setPayDate(a.getPayDate());
|
|
icebd.setPayDate(a.getPayDate());
|
|
|
icebd.setInsCoverage(a.getInsCoverage());
|
|
icebd.setInsCoverage(a.getInsCoverage());
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- icebd.setStatus("1");
|
|
|
|
|
|
|
+ icebd.setStatus("0");
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
m.put(a.getPlateNum(), icebd);
|
|
m.put(a.getPlateNum(), icebd);
|
|
@@ -124,74 +249,24 @@ public class InvChannelsExternalBillsDetailsServiceImpl extends ServiceImpl<InvC
|
|
|
//获取车牌号重复的list 渠道
|
|
//获取车牌号重复的list 渠道
|
|
|
List<String> longs = gainPlateNumRepetitionList(listKey);
|
|
List<String> longs = gainPlateNumRepetitionList(listKey);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- if(longs.size() > 0){
|
|
|
|
|
- errorMsg = "车牌号已经存在:"+longs;
|
|
|
|
|
|
|
+ if (longs.size() > 0) {
|
|
|
|
|
+ throw new SystemException(String.format("车牌号已经存在:%s", longs));
|
|
|
|
|
+// errorMsg = "车牌号已经存在:"+longs;
|
|
|
// throw new SystemException("车牌号已经存在:"+longs);
|
|
// throw new SystemException("车牌号已经存在:"+longs);
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
list = new ArrayList<>(m.values());
|
|
list = new ArrayList<>(m.values());
|
|
|
|
|
+ saveBatch(list);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
- errorMsg = "导入失败!" + e.getMessage();
|
|
|
|
|
|
|
+ throw new SystemException("导入失败!");
|
|
|
|
|
+// errorMsg = "导入失败!" + e.getMessage();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(errorMsg)) {
|
|
|
|
|
- iieb.setImportStatus("0");
|
|
|
|
|
- iieb.setErrorMsg(errorMsg);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- } else {
|
|
|
|
|
-
|
|
|
|
|
- iieb = InvExternalBills.buildImportInvExternalBills(iieb, list);
|
|
|
|
|
- boolean boo = saveBatch(list);
|
|
|
|
|
- }
|
|
|
|
|
- return iieb;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Override
|
|
|
|
|
- public void pay(List<String> ids, SysUser user) {
|
|
|
|
|
- //更新批次号状态
|
|
|
|
|
- LambdaUpdateWrapper<InvChannelsExternalBillsDetails> luw = new LambdaUpdateWrapper<>();
|
|
|
|
|
- luw.set(InvChannelsExternalBillsDetails::getStatus,"2");
|
|
|
|
|
- luw.set(InvChannelsExternalBillsDetails::getPayOperatorId,user.getId());
|
|
|
|
|
- luw.set(InvChannelsExternalBillsDetails::getPayOperator,user.getName());
|
|
|
|
|
- luw.in(InvChannelsExternalBillsDetails::getId,ids);
|
|
|
|
|
- update(luw);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 获取车牌号重复的list 渠道
|
|
|
|
|
- *
|
|
|
|
|
- * @author: lig
|
|
|
|
|
- * @date: 2023年07月07日 0007
|
|
|
|
|
- */
|
|
|
|
|
- private List<String> gainPlateNumRepetitionList(List<String> listKey){
|
|
|
|
|
- LambdaQueryWrapper<InvChannelsExternalBillsDetails> lqw = new LambdaQueryWrapper();
|
|
|
|
|
- lqw.select(InvChannelsExternalBillsDetails::getPlateNum);
|
|
|
|
|
- lqw.in(InvChannelsExternalBillsDetails::getPlateNum,listKey);
|
|
|
|
|
-
|
|
|
|
|
- //查询获取对象具体字段的集合
|
|
|
|
|
- List<String> longs = listObjs(lqw, new Function<Object, String>() {
|
|
|
|
|
- @Override
|
|
|
|
|
- public String apply(Object id) {
|
|
|
|
|
- return id.toString();
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- return longs;
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|