结算导出
This commit is contained in:
parent
b9c5fe133c
commit
0e69f27259
File diff suppressed because it is too large
Load Diff
|
|
@ -1,9 +1,19 @@
|
||||||
package com.bonus.sgzb.material.controller;
|
package com.bonus.sgzb.material.controller;
|
||||||
|
|
||||||
|
import java.io.OutputStream;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.net.URLEncoder;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import cn.hutool.core.convert.Convert;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.bonus.sgzb.base.api.domain.SltAgreementInfo;
|
||||||
|
import com.bonus.sgzb.common.security.annotation.PreventRepeatSubmit;
|
||||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.bonus.sgzb.material.config.PoiOutPage;
|
||||||
import com.bonus.sgzb.material.domain.PurchaseInput;
|
import com.bonus.sgzb.material.domain.PurchaseInput;
|
||||||
import com.bonus.sgzb.material.service.IPurchaseCheckInfoService;
|
import com.bonus.sgzb.material.service.IPurchaseCheckInfoService;
|
||||||
import com.bonus.sgzb.material.domain.PurchaseCheckInfo;
|
import com.bonus.sgzb.material.domain.PurchaseCheckInfo;
|
||||||
|
|
@ -11,6 +21,8 @@ import com.bonus.sgzb.material.service.PurchaseCheckServiceCenterService;
|
||||||
import com.bonus.sgzb.material.vo.NoticeInfoVO;
|
import com.bonus.sgzb.material.vo.NoticeInfoVO;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||||
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import com.bonus.sgzb.common.log.annotation.Log;
|
import com.bonus.sgzb.common.log.annotation.Log;
|
||||||
|
|
@ -19,7 +31,6 @@ import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新购验收任务
|
* 新购验收任务
|
||||||
*
|
*
|
||||||
|
|
@ -149,4 +160,43 @@ public class PurchaseCheckInfoController extends BaseController {
|
||||||
public AjaxResult remove(@PathVariable Long taskId) {
|
public AjaxResult remove(@PathVariable Long taskId) {
|
||||||
return toAjax(purchaseCheckInfoService.deletePurchaseCheckInfoByTaskId(taskId));
|
return toAjax(purchaseCheckInfoService.deletePurchaseCheckInfoByTaskId(taskId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机具模板下载--all
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "机具模板下载")
|
||||||
|
@PreventRepeatSubmit
|
||||||
|
// @RequiresPermissions("settlement:info:export")
|
||||||
|
@Log(title = "机具模板下载")
|
||||||
|
|
||||||
|
@PostMapping("/downLoadTypeModel")
|
||||||
|
public void downLoadTypeModel(HttpServletResponse response, @RequestParam("params") String params) {
|
||||||
|
// try {
|
||||||
|
// List<SltAgreementInfo> sltAgreementInfo = JSONObject.parseArray(params,SltAgreementInfo.class);
|
||||||
|
// // 创建工作簿
|
||||||
|
// HSSFWorkbook workbook = new HSSFWorkbook();
|
||||||
|
// int sheetIndex = 1;
|
||||||
|
//
|
||||||
|
// // 创建工作表
|
||||||
|
// HSSFSheet sheet = workbook.createSheet("机具新增" + sheetIndex);
|
||||||
|
//
|
||||||
|
// // 创建工作簿和工作表
|
||||||
|
// PoiOutPage.excelForcheckEach(workbook, sheet, resultsLease,resultsLose,resultsRepair,resultsScrap,resultsReduction, headersLease,headersLose,headersRepair,headersScrap,headersReduction,projectName,unitName,totalCostLease,totalCostLose,totalCostRepair,totalCostScrap,totalCostReduction);
|
||||||
|
//
|
||||||
|
// sheetIndex++;
|
||||||
|
//
|
||||||
|
// OutputStream out = null;
|
||||||
|
// response.setContentType("application/vnd.ms-excel;charset=UTF-8");
|
||||||
|
// response.addHeader("Content-Disposition",
|
||||||
|
// "attachment;filename=" + URLEncoder.encode("各结算明细", "UTF-8") + ".xls");
|
||||||
|
// response.setHeader("Pragma", "No-cache");
|
||||||
|
// out = response.getOutputStream();
|
||||||
|
// workbook.write(out);
|
||||||
|
// out.flush();
|
||||||
|
// out.close();
|
||||||
|
//
|
||||||
|
// } catch (Exception e) {
|
||||||
|
// log.error(e.toString(), e);
|
||||||
|
// }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,12 @@ import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||||
import com.bonus.sgzb.common.log.annotation.Log;
|
import com.bonus.sgzb.common.log.annotation.Log;
|
||||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.bonus.sgzb.material.config.PoiOutPage;
|
||||||
import com.bonus.sgzb.material.domain.*;
|
import com.bonus.sgzb.material.domain.*;
|
||||||
import com.bonus.sgzb.material.service.SltAgreementInfoService;
|
import com.bonus.sgzb.material.service.SltAgreementInfoService;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
@ -27,9 +29,12 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.io.OutputStream;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.RoundingMode;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.util.ArrayList;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.List;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author c liu
|
* @author c liu
|
||||||
|
|
@ -140,13 +145,317 @@ public class SltAgreementInfoController extends BaseController {
|
||||||
@Log(title = "租赁明细导出", businessType = BusinessType.EXPORT)
|
@Log(title = "租赁明细导出", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/exportLeaseOne")
|
@PostMapping("/exportLeaseOne")
|
||||||
@RequiresPermissions("ndertake:export_1")
|
@RequiresPermissions("ndertake:export_1")
|
||||||
public void exportLeaseOne(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
public void exportLeaseOne(HttpServletResponse response, @RequestBody List<AgreementInfo> list) throws Exception {
|
||||||
|
List<String> projectNames = new ArrayList<>();
|
||||||
|
List<String> unitNames = new ArrayList<>();
|
||||||
|
String fileName = "重庆市送变电工程有限公司设备租赁结算单";
|
||||||
|
//设置单位和工程名称
|
||||||
|
for (AgreementInfo info : list) {
|
||||||
|
projectNames.add(info.getProjectName());
|
||||||
|
unitNames.add(info.getUnitName());
|
||||||
|
}
|
||||||
List<SltAgreementInfo> explist = sltAgreementInfoService.getLeaseListOne(list);
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getLeaseListOne(list);
|
||||||
|
String projectName = handleData(projectNames);
|
||||||
|
String unitName = handleData(unitNames);
|
||||||
|
BigDecimal totalCost = BigDecimal.valueOf(0.00);
|
||||||
|
for (SltAgreementInfo sltAgreementInfo : explist) {
|
||||||
|
totalCost = totalCost.add(sltAgreementInfo.getRealCosts());
|
||||||
|
}
|
||||||
List<LeaseInfo> leaseInfoList = Convert.toList(LeaseInfo.class, explist);
|
List<LeaseInfo> leaseInfoList = Convert.toList(LeaseInfo.class, explist);
|
||||||
|
expOutExcel(response,leaseInfoList,fileName,projectName,unitName,totalCost,1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ExcelUtil<LeaseInfo> util = new ExcelUtil<LeaseInfo>(LeaseInfo.class);
|
ExcelUtil<LeaseInfo> util = new ExcelUtil<LeaseInfo>(LeaseInfo.class);
|
||||||
util.exportExcel(response, leaseInfoList, "租赁明细导出");
|
util.exportExcel(response, leaseInfoList, "租赁明细导出");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 去重单位和工程名称
|
||||||
|
*/
|
||||||
|
public String handleData(List<String> list){
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
Set<String> set = new HashSet<>(list);
|
||||||
|
for (String str : set) {
|
||||||
|
sb.append(str).append("、");
|
||||||
|
}
|
||||||
|
return StringUtils.removeEnd(sb.toString(), "、");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出结算单
|
||||||
|
* @param response
|
||||||
|
* @param list
|
||||||
|
* @param filename
|
||||||
|
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
private void expOutExcel(HttpServletResponse response, List<LeaseInfo> list, String filename,String projectName,String unitName,BigDecimal totalCost,int type)
|
||||||
|
throws Exception {
|
||||||
|
if (list != null) {
|
||||||
|
List<Map<String, Object>> results = new ArrayList<Map<String, Object>>();
|
||||||
|
int size = list.size();
|
||||||
|
for (int i = 0; i < size; i++) {
|
||||||
|
LeaseInfo bean = list.get(i);
|
||||||
|
Map<String, Object> maps = outReceiveDetailsBeanToMap(bean,type,0);
|
||||||
|
results.add(maps);
|
||||||
|
}
|
||||||
|
List<String> headers = receiveDetailsHeader(type,0);
|
||||||
|
HSSFWorkbook workbook = PoiOutPage.excelForcheckTwo(results, headers, filename,projectName,unitName,totalCost);
|
||||||
|
OutputStream out = null;
|
||||||
|
response.setContentType("application/vnd.ms-excel;charset=UTF-8");
|
||||||
|
response.addHeader("Content-Disposition",
|
||||||
|
"attachment;filename=" + URLEncoder.encode(filename, "UTF-8") + ".xls");
|
||||||
|
response.setHeader("Pragma", "No-cache");
|
||||||
|
out = response.getOutputStream();
|
||||||
|
workbook.write(out);
|
||||||
|
out.flush();
|
||||||
|
out.close();
|
||||||
|
}else{
|
||||||
|
List<Map<String, Object>> results = new ArrayList<Map<String, Object>>();
|
||||||
|
List<String> headers = receiveDetailsHeader(type,0);
|
||||||
|
HSSFWorkbook workbook = PoiOutPage.excel(results, headers, filename);
|
||||||
|
OutputStream out = null;
|
||||||
|
response.setContentType("application/vnd.ms-excel;charset=UTF-8");
|
||||||
|
response.addHeader("Content-Disposition",
|
||||||
|
"attachment;filename=" + URLEncoder.encode(filename, "UTF-8") + ".xls");
|
||||||
|
response.setHeader("Pragma", "No-cache");
|
||||||
|
out = response.getOutputStream();
|
||||||
|
workbook.write(out);
|
||||||
|
out.flush();
|
||||||
|
out.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 租赁费用单数据转换
|
||||||
|
* @param bean
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private Map<String, Object> outReceiveDetailsBeanToMap(LeaseInfo bean,int type,int flag) {
|
||||||
|
// 创建一个SimpleDateFormat对象,定义日期格式
|
||||||
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
Map<String, Object> maps = new LinkedHashMap<String, Object>();
|
||||||
|
if(type==1){
|
||||||
|
// maps.put("unitName", bean.getUnitName());
|
||||||
|
// maps.put("projectName", bean.getProjectName());
|
||||||
|
if (flag==0){
|
||||||
|
maps.put("typeName", bean.getTypeName());
|
||||||
|
maps.put("modelName", bean.getModelName());
|
||||||
|
maps.put("nuitName", bean.getNuitName());
|
||||||
|
maps.put("num", bean.getNum());
|
||||||
|
maps.put("leasePrice", bean.getLeasePrice());
|
||||||
|
maps.put("startTime", bean.getStartTime());
|
||||||
|
maps.put("endTime", bean.getEndTime());
|
||||||
|
maps.put("leaseDays", bean.getLeaseDays());
|
||||||
|
maps.put("costs", bean.getCosts().setScale(2, RoundingMode.HALF_UP));
|
||||||
|
maps.put("trimDay", bean.getTrimDay());
|
||||||
|
maps.put("realDays", bean.getRealDays());
|
||||||
|
maps.put("realCosts", bean.getRealCosts());
|
||||||
|
maps.put("monthCosts", bean.getRealCosts());
|
||||||
|
maps.put("nowCosts", bean.getRealCosts());
|
||||||
|
maps.put("remark", bean.getRemark());
|
||||||
|
}else {
|
||||||
|
// maps.put("typeName", bean.getTypeName());
|
||||||
|
// maps.put("modelName", bean.getModelName());
|
||||||
|
// maps.put("mtUnitName", bean.getMtUnitName());
|
||||||
|
// maps.put("leasePrice", bean.getLeasePrice());
|
||||||
|
// maps.put("num", bean.getNum());
|
||||||
|
// maps.put("startTime", bean.getStartTime()==null ? null:dateFormat.format(bean.getStartTime()));
|
||||||
|
// maps.put("endTime", bean.getEndTime()==null ? null:dateFormat.format(bean.getEndTime()));
|
||||||
|
// maps.put("leaseDays", bean.getLeaseDays());
|
||||||
|
// maps.put("costs", bean.getCosts().setScale(2, RoundingMode.HALF_UP));
|
||||||
|
// maps.put("t1", "");
|
||||||
|
}
|
||||||
|
}else if(type==2) {
|
||||||
|
// if(flag==0){
|
||||||
|
// maps.put("typeName", bean.getTypeName());
|
||||||
|
// maps.put("modelName", bean.getModelName());
|
||||||
|
// maps.put("mtUnitName", bean.getMtUnitName());
|
||||||
|
// maps.put("num", bean.getNum());
|
||||||
|
// maps.put("costs", bean.getCosts());
|
||||||
|
// }else{
|
||||||
|
// maps.put("typeName", bean.getTypeName());
|
||||||
|
// maps.put("modelName", bean.getModelName());
|
||||||
|
// maps.put("mtUnitName", bean.getMtUnitName());
|
||||||
|
// maps.put("num", bean.getNum());
|
||||||
|
// maps.put("costs", bean.getCosts());
|
||||||
|
// maps.put("t1", "");
|
||||||
|
// maps.put("t2", "");
|
||||||
|
// maps.put("t3", "");
|
||||||
|
// maps.put("t4", "");
|
||||||
|
// maps.put("t5", "");
|
||||||
|
// }
|
||||||
|
}else if(type==3){
|
||||||
|
// if(flag==0){
|
||||||
|
// maps.put("typeName", bean.getTypeName());
|
||||||
|
// maps.put("modelName", bean.getModelName());
|
||||||
|
// maps.put("mtUnitName", bean.getMtUnitName());
|
||||||
|
// maps.put("num", bean.getNum());
|
||||||
|
// maps.put("partType", bean.getPartType());
|
||||||
|
// maps.put("costs", bean.getCosts());
|
||||||
|
// }else{
|
||||||
|
// maps.put("typeName", bean.getTypeName());
|
||||||
|
// maps.put("modelName", bean.getModelName());
|
||||||
|
// maps.put("mtUnitName", bean.getMtUnitName());
|
||||||
|
// maps.put("num", bean.getNum());
|
||||||
|
// maps.put("partType", bean.getPartType());
|
||||||
|
// maps.put("costs", bean.getCosts());
|
||||||
|
// maps.put("t1", "");
|
||||||
|
// maps.put("t2", "");
|
||||||
|
// maps.put("t3", "");
|
||||||
|
// maps.put("t4", "");
|
||||||
|
// }
|
||||||
|
}else if(type==4){
|
||||||
|
// if(flag==0){
|
||||||
|
// maps.put("typeName", bean.getTypeName());
|
||||||
|
// maps.put("modelName", bean.getModelName());
|
||||||
|
// maps.put("mtUnitName", bean.getMtUnitName());
|
||||||
|
// maps.put("num", bean.getNum());
|
||||||
|
// maps.put("partType", bean.getPartType());
|
||||||
|
// maps.put("costs", bean.getCosts());
|
||||||
|
// }else{
|
||||||
|
// maps.put("typeName", bean.getTypeName());
|
||||||
|
// maps.put("modelName", bean.getModelName());
|
||||||
|
// maps.put("mtUnitName", bean.getMtUnitName());
|
||||||
|
// maps.put("num", bean.getNum());
|
||||||
|
// maps.put("partType", bean.getPartType());
|
||||||
|
// maps.put("costs", bean.getCosts());
|
||||||
|
// maps.put("t1", "");
|
||||||
|
// maps.put("t2", "");
|
||||||
|
// maps.put("t3", "");
|
||||||
|
// maps.put("t4", "");
|
||||||
|
// }
|
||||||
|
} else if(type==5){
|
||||||
|
// maps.put("typeName", bean.getTypeName());
|
||||||
|
// maps.put("modelName", bean.getModelName());
|
||||||
|
// maps.put("mtUnitName", bean.getUnitName());
|
||||||
|
// maps.put("leasePrice", bean.getLeasePrice());
|
||||||
|
// maps.put("num", bean.getReduceNum());
|
||||||
|
// maps.put("startTime", bean.getStartTime()==null ? null:dateFormat.format(bean.getStartTime()));
|
||||||
|
// maps.put("endTime", bean.getEndTime()==null ? null:dateFormat.format(bean.getEndTime()));
|
||||||
|
// maps.put("leaseDays", bean.getDays());
|
||||||
|
// maps.put("remark", bean.getRemark());
|
||||||
|
// maps.put("costs", bean.getLeaseMoney().setScale(2, RoundingMode.HALF_UP));
|
||||||
|
}
|
||||||
|
return maps;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 租赁费用单表头
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private List<String> receiveDetailsHeader(int type,int flag) {
|
||||||
|
ArrayList<String> list = new ArrayList<String>();
|
||||||
|
if(type==1){
|
||||||
|
// list.add("结算单位");
|
||||||
|
// list.add("结算工程");
|
||||||
|
|
||||||
|
if (flag==0){
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("单位");
|
||||||
|
list.add("数量");
|
||||||
|
list.add("台班费单价(元/天)");
|
||||||
|
list.add("起租日期");
|
||||||
|
list.add("终止日期");
|
||||||
|
list.add("应结算天数");
|
||||||
|
list.add("应结算金额(元)");
|
||||||
|
list.add("调整天数");
|
||||||
|
list.add("实际结算天数");
|
||||||
|
list.add("实际结算金额(元)");
|
||||||
|
list.add("月结已入账金额(元)");
|
||||||
|
list.add("本次结算金额(元)");
|
||||||
|
list.add("备注");
|
||||||
|
}else {
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("计量单位");
|
||||||
|
list.add("租赁单价");
|
||||||
|
list.add("租赁数量");
|
||||||
|
list.add("租赁日期");
|
||||||
|
list.add("归还日期");
|
||||||
|
list.add("租赁天数");
|
||||||
|
list.add("租赁费用(元)");
|
||||||
|
list.add(" ");
|
||||||
|
}
|
||||||
|
}else if(type==2){
|
||||||
|
if(flag==0){
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("计量单位");
|
||||||
|
list.add("丢失数量");
|
||||||
|
list.add("丢失费用(元)");
|
||||||
|
}else{
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("计量单位");
|
||||||
|
list.add("丢失数量");
|
||||||
|
list.add("丢失费用(元)");
|
||||||
|
list.add(" ");
|
||||||
|
list.add(" ");
|
||||||
|
list.add(" ");
|
||||||
|
list.add(" ");
|
||||||
|
list.add(" ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}else if(type==3){
|
||||||
|
if(flag==0){
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("计量单位");
|
||||||
|
list.add("维修数量");
|
||||||
|
list.add("是否收费");
|
||||||
|
list.add("维修费用(元)");
|
||||||
|
}else{
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("计量单位");
|
||||||
|
list.add("维修数量");
|
||||||
|
list.add("是否收费");
|
||||||
|
list.add("维修费用(元)");
|
||||||
|
list.add("");
|
||||||
|
list.add("");
|
||||||
|
list.add("");
|
||||||
|
list.add(" ");
|
||||||
|
}
|
||||||
|
}else if(type==4){
|
||||||
|
if(flag==0){
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("计量单位");
|
||||||
|
list.add("报废数量");
|
||||||
|
list.add("是否收费");
|
||||||
|
list.add("报废费用(元)");
|
||||||
|
}else{
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("计量单位");
|
||||||
|
list.add("报废数量");
|
||||||
|
list.add("是否收费");
|
||||||
|
list.add("报废费用(元)");
|
||||||
|
list.add("");
|
||||||
|
list.add("");
|
||||||
|
list.add("");
|
||||||
|
list.add(" ");
|
||||||
|
}
|
||||||
|
}else if (type==5){
|
||||||
|
list.add("设备名称");
|
||||||
|
list.add("规格型号");
|
||||||
|
list.add("单位");
|
||||||
|
list.add("租赁单价");
|
||||||
|
list.add("减免数量");
|
||||||
|
list.add("减免开始日期");
|
||||||
|
list.add("减免结束日期");
|
||||||
|
list.add("减免天数");
|
||||||
|
list.add("减免原因");
|
||||||
|
list.add("减免费用(元)");
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 租赁明细导出
|
* 租赁明细导出
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -95,12 +95,12 @@ public class LeaseInfo {
|
||||||
/**
|
/**
|
||||||
*领料时间
|
*领料时间
|
||||||
*/
|
*/
|
||||||
@Excel(name = "起租日期")
|
@Excel(name = "起租日期",width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
private String startTime;
|
private String startTime;
|
||||||
/**
|
/**
|
||||||
*退料时间
|
*退料时间
|
||||||
*/
|
*/
|
||||||
@Excel(name = "终止日期")
|
@Excel(name = "终止日期",width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
private String endTime;
|
private String endTime;
|
||||||
/**
|
/**
|
||||||
* 租赁天数
|
* 租赁天数
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue