月度费用审核开发
This commit is contained in:
parent
0abb17dbde
commit
e48cfda3f0
|
|
@ -66,4 +66,17 @@ public class SltMonthInfoController extends BaseController {
|
||||||
return AjaxResult.success("审核成功");
|
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, "月度租赁费用");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ public class SltMonthInfo extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 合同
|
* 合同
|
||||||
*/
|
*/
|
||||||
@Excel(name = "合同编号")
|
|
||||||
@ApiModelProperty(value = "合同")
|
@ApiModelProperty(value = "合同")
|
||||||
private String contractCode;
|
private String contractCode;
|
||||||
|
|
||||||
|
|
@ -85,7 +84,7 @@ public class SltMonthInfo extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 租赁费用月份
|
* 租赁费用月份
|
||||||
*/
|
*/
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态", readConverterExp = "0=未审核,1=已审核")
|
||||||
@ApiModelProperty(value = "状态")
|
@ApiModelProperty(value = "状态")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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_project_lot bp ON bp.lot_id = bai.project_id
|
||||||
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
|
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
|
||||||
WHERE pmc.`month` =#{month}
|
WHERE pmc.`month` =#{month}
|
||||||
|
<if test="status != null and status != ''">
|
||||||
|
and pmc.status = #{status}
|
||||||
|
</if>
|
||||||
<if test="unitId != null and unitId != ''">
|
<if test="unitId != null and unitId != ''">
|
||||||
and bai.unit_id = #{unitId}
|
and bai.unit_id = #{unitId}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue