|
@@ -8,14 +8,13 @@ import com.jpsoft.shinestar.modules.common.dto.MessageResult;
|
|
|
import com.jpsoft.shinestar.modules.common.dto.Sort;
|
|
|
import com.jpsoft.shinestar.modules.common.utils.OSSUtil;
|
|
|
import com.jpsoft.shinestar.modules.common.utils.PojoUtils;
|
|
|
-import com.jpsoft.shinestar.modules.sys.entity.DataDictionary;
|
|
|
+import com.jpsoft.shinestar.modules.common.utils.StringUtils;
|
|
|
import com.jpsoft.shinestar.modules.sys.entity.User;
|
|
|
import com.jpsoft.shinestar.modules.sys.service.DataDictionaryService;
|
|
|
import com.jpsoft.shinestar.modules.sys.service.UserCompanyService;
|
|
|
import com.jpsoft.shinestar.modules.sys.service.UserService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
import org.apache.poi.ss.usermodel.Cell;
|
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
@@ -503,8 +502,7 @@ public class CanteenDiningRecordController {
|
|
|
//表头
|
|
|
Row rowTitle = sheet.createRow(0);
|
|
|
|
|
|
- String[] titles = new String[]{"序号","部门","工号","姓名","时间","餐别",
|
|
|
- "地点"};
|
|
|
+ String[] titles = new String[]{"序号","部门","工号","姓名","时间","餐别","地点"};
|
|
|
|
|
|
for (int i=0;i<titles.length;i++) {
|
|
|
Cell cell = rowTitle.createCell(i);
|
|
@@ -958,7 +956,7 @@ public class CanteenDiningRecordController {
|
|
|
//表头
|
|
|
Row rowTitle = sheet.createRow(0);
|
|
|
|
|
|
- String[] titles = new String[]{"序号","部门名称","姓名","中餐就餐总数","晚餐就餐总数","宵夜就餐总数","就餐总次数"};
|
|
|
+ String[] titles = new String[]{"序号","部门名称","工号","姓名","中餐就餐总数","晚餐就餐总数","宵夜就餐总数","就餐总次数"};
|
|
|
|
|
|
for (int i=0;i<titles.length;i++) {
|
|
|
Cell cell = rowTitle.createCell(i);
|
|
@@ -974,6 +972,7 @@ public class CanteenDiningRecordController {
|
|
|
row.createCell(colIndex++).setCellValue(i+1);
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.shinestar.modules.common.utils.StringUtils.strValue(map.get("companyName"),""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.shinestar.modules.common.utils.StringUtils.strValue(map.get("name_"),""));
|
|
|
+ row.createCell(colIndex++).setCellValue(StringUtils.strValue(map.get("job_number"),""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.shinestar.modules.common.utils.StringUtils.strValue(map.get("lunch"),""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.shinestar.modules.common.utils.StringUtils.strValue(map.get("supper"),""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.shinestar.modules.common.utils.StringUtils.strValue(map.get("nightSnack"),""));
|