insert 会所收入导出功能
This commit is contained in:
+18
-1
@@ -3,6 +3,7 @@ package com.jero.statistics.controller;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.system.api.ISysBaseAPI;
|
||||
import com.jero.common.util.oConvertUtils;
|
||||
import com.jero.modules.system.mapper.SysUserMapper;
|
||||
@@ -10,8 +11,10 @@ import com.jero.modules.system.service.ISysDepartService;
|
||||
import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.project.service.IPayWorkingGroupService;
|
||||
import com.jero.statistics.entity.AllMoney;
|
||||
import com.jero.statistics.entity.AllProjectMoneyExcel;
|
||||
import com.jero.statistics.entity.AllProjectStatistics;
|
||||
import com.jero.statistics.entity.AllProjectStatisticsSearch;
|
||||
import com.jero.util.AmountUtil;
|
||||
import com.mchange.lang.IntegerUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -23,6 +26,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.text.DecimalFormat;
|
||||
@@ -57,7 +61,7 @@ public class AllProjectMoneyStatisticsController {
|
||||
*
|
||||
* @param allProjectStatisticsSearch 全所收入统计搜索
|
||||
*/
|
||||
@ApiOperation(value = "全所收入统计搜索-分页列表查询", notes = "全所收入统计搜索-详情分页列表查询")
|
||||
@ApiOperation(value = "全所收入统计搜索-列表查询", notes = "全所收入统计搜索-详情列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<?> list(AllProjectStatisticsSearch allProjectStatisticsSearch) {
|
||||
|
||||
@@ -74,4 +78,17 @@ public class AllProjectMoneyStatisticsController {
|
||||
return Result.OK(hashMap);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 所领导统计导出
|
||||
*/
|
||||
@AutoLog(value = "全所收入统计导出-导出统计")
|
||||
@GetMapping(value = "/excel")
|
||||
@ApiOperation(value = "全所收入统计导出-导出统计", notes = "全所收入统计导出-导出统计")
|
||||
public ModelAndView excel(AllProjectStatisticsSearch allProjectStatisticsSearch,
|
||||
@RequestParam(name = "selections", required = false) String selections) {
|
||||
List<AllProjectMoneyExcel> list = payWorkingGroupService.queryListAllProjectMoneyExcel(allProjectStatisticsSearch, null);
|
||||
return AmountUtil.exportListXls(list, AllProjectMoneyExcel.class, "收入统计");
|
||||
}
|
||||
}
|
||||
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
package com.jero.statistics.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Description: 全所收入Excel
|
||||
* @author: Kuang Kaixing
|
||||
* @date: 2022/07/29 14:21
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AllProjectMoneyExcel {
|
||||
|
||||
@Excel(name = "类型名称")
|
||||
private String category;
|
||||
|
||||
@Excel(name="一月")
|
||||
private String january;
|
||||
|
||||
@Excel(name="二月")
|
||||
private String february;
|
||||
|
||||
@Excel(name="三月")
|
||||
private String march;
|
||||
|
||||
@Excel(name="四月")
|
||||
private String april;
|
||||
|
||||
@Excel(name="五月")
|
||||
private String may;
|
||||
|
||||
@Excel(name="六月")
|
||||
private String june;
|
||||
|
||||
@Excel(name="七月")
|
||||
private String july;
|
||||
|
||||
@Excel(name="八月")
|
||||
private String august;
|
||||
|
||||
@Excel(name="九月")
|
||||
private String september;
|
||||
|
||||
@Excel(name="十月")
|
||||
private String october;
|
||||
|
||||
@Excel(name="十一月")
|
||||
private String november;
|
||||
|
||||
@Excel(name="十二月")
|
||||
private String december ;
|
||||
|
||||
@Excel(name="总计")
|
||||
private String total;
|
||||
|
||||
public AllProjectMoneyExcel(String category, String total) {
|
||||
this.category=category;
|
||||
this.total=total;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user