月度费用审核开发

This commit is contained in:
bonus 2025-03-21 17:01:10 +08:00
parent 0abb17dbde
commit e48cfda3f0
3 changed files with 17 additions and 2 deletions

View File

@ -66,4 +66,17 @@ public class SltMonthInfoController extends BaseController {
return AjaxResult.success("审核成功");
}
/**
* 导出
*/
@ApiOperation("费用导出")
@Log(title = "费用导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SltMonthInfo bean) {
List<SltMonthInfo> list = sltMonthInfoService.getSltMonthInfo(bean);
ExcelUtil<SltMonthInfo> util = new ExcelUtil<>(SltMonthInfo.class);
util.exportExcel(response, list, "月度租赁费用");
}
}

View File

@ -37,7 +37,6 @@ public class SltMonthInfo extends BaseEntity {
/**
* 合同
*/
@Excel(name = "合同编号")
@ApiModelProperty(value = "合同")
private String contractCode;
@ -85,7 +84,7 @@ public class SltMonthInfo extends BaseEntity {
/**
* 租赁费用月份
*/
@Excel(name = "状态")
@Excel(name = "状态", readConverterExp = "0=未审核,1=已审核")
@ApiModelProperty(value = "状态")
private String status;

View File

@ -38,6 +38,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN bm_project_lot bp ON bp.lot_id = bai.project_id
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
WHERE pmc.`month` =#{month}
<if test="status != null and status != ''">
and pmc.status = #{status}
</if>
<if test="unitId != null and unitId != ''">
and bai.unit_id = #{unitId}
</if>