|
@@ -1,7 +1,6 @@
|
|
|
package org.jeecg.modules.jixiaoPersonPrice.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.modules.jixiaoPersonPrice.dto.JixiaoPersonPriceExportDTO;
|
|
@@ -19,8 +18,6 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
-import java.io.IOException;
|
|
|
-import java.net.URLEncoder;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -40,10 +37,15 @@ public class JixiaoPersonPriceServiceImpl extends ServiceImpl<JixiaoPersonPriceM
|
|
|
@Value("${jeecg.path.upload}")
|
|
|
private String upLoadPath;
|
|
|
|
|
|
+ /**查询规定时间内完结的委托对应的绩效导出的人员*/
|
|
|
+ public List<String> selectPersonByDate(JixiaoPersonPriceExportDTO dto){
|
|
|
+ return jixiaoPersonPriceMapper.selectPersonByDate(dto);
|
|
|
+ }
|
|
|
+
|
|
|
/**查询导出的人员绩效*/
|
|
|
public List<Map<String,String>> exportPersonJX(JixiaoPersonPriceExportDTO dto){
|
|
|
List<List<Map>> list = jixiaoPersonPriceMapper.exportPersonJX(dto);
|
|
|
- List<Map> mapList = list.get(1);
|
|
|
+ List<Map> mapList = list.get(2);
|
|
|
List<Map<String,String>> mapList1 = mapList.stream().map(i->{
|
|
|
//todo 遍历map转化成Map<String,String>优化?
|
|
|
Map<String,String> map = new HashMap<>();
|
|
@@ -76,9 +78,10 @@ public class JixiaoPersonPriceServiceImpl extends ServiceImpl<JixiaoPersonPriceM
|
|
|
// 打印键集合
|
|
|
for (Object key : map.keySet()) {
|
|
|
System.out.println((String) key);
|
|
|
- if(key.equals("weituo_no") || key.equals("TOTAL")) continue;
|
|
|
+ if(key.equals("weituo_no") || key.equals("TOTAL") || key.equals("create_time")) continue;
|
|
|
filedsList.add(new ExcelExportEntity((String) key, (String)key));
|
|
|
}
|
|
|
+ filedsList.add(new ExcelExportEntity("完结时间", "create_time"));
|
|
|
filedsList.add(new ExcelExportEntity("总计", "TOTAL"));
|
|
|
}
|
|
|
|