资产修改

main
dongdingding 2 weeks ago
parent 7a02168fab
commit f7fe75c855

@ -490,6 +490,10 @@ public class AssetTaskController extends BaseController {
@PostMapping("/export")
public void export(HttpServletResponse response, AssetdwHcRequest req) {
List<AssetdwHcResponse> list = assetTaskService.export(req);
list.forEach(x -> {
String formattedRatio = x.getCheckedRatio() + "%";
x.setCheckedRatio(formattedRatio);
});
ExcelUtil<AssetdwHcResponse> util = new ExcelUtil<AssetdwHcResponse>(AssetdwHcResponse.class);
util.exportExcel(response, list, "单位完成情况");

@ -27,7 +27,7 @@ public class AssetdwHcResponse {
/**
*
*/
@Excel(name = "单位名称")
@Excel(name = "核查资产数量")
@ApiModelProperty("核查资产数量")
private Integer total;
@ -42,7 +42,7 @@ public class AssetdwHcResponse {
/**
*
*/
@Excel(name = "完成状态",readConverterExp = "1=进行中,2=正常完成3=超期完成")
@Excel(name = "完成状态",readConverterExp = "1=进行中,2=正常完成,3=超期完成")
private Integer taskStatus;
@ -58,8 +58,8 @@ public class AssetdwHcResponse {
/**
*
*/
@Excel(name = "百分比")
@ApiModelProperty("百分比")
private double checkedRatio;
@Excel(name = "完成比例")
@ApiModelProperty("完成比例")
private String checkedRatio;
}

@ -234,7 +234,13 @@
and b.xtlx = #{req.xtlx}
</if>
</where>
order by b.status asc
ORDER BY
CASE
WHEN b.STATUS = 1 THEN
0 ELSE 1
END,
b.STATUS ASC
</select>
<select id="findBytaskIdandAssestId" resultType="com.ruoyi.tc.entity.po.AssetCurrentCpPo">
select *
@ -458,7 +464,13 @@
</if>
</where>
order by b.status asc
ORDER BY
CASE
WHEN b.STATUS = 1 THEN
0 ELSE 1
END,
b.STATUS ASC
</select>
<select id="gzhZcHc" resultType="com.ruoyi.tc.entity.response.AssestTaskXqresponse">
select
@ -485,7 +497,13 @@
and b.status =#{req.status}
</if>
</where>
order by b.status asc
ORDER BY
CASE
WHEN b.STATUS = 1 THEN
0 ELSE 1
END,
b.STATUS ASC
</select>
<select id="emailZcHc" resultType="com.ruoyi.tc.entity.response.AssestTaskXqresponse">
select
@ -512,7 +530,13 @@
and b.status =#{req.status}
</if>
</where>
order by b.status asc
ORDER BY
CASE
WHEN b.STATUS = 1 THEN
0 ELSE 1
END,
b.STATUS ASC
</select>
<select id="appZcHc" resultType="com.ruoyi.tc.entity.response.AssestTaskXqresponse">
@ -541,7 +565,13 @@
and b.status =#{req.status}
</if>
</where>
order by b.status asc
ORDER BY
CASE
WHEN b.STATUS = 1 THEN
0 ELSE 1
END,
b.STATUS ASC
</select>
<select id="getByTaskId" resultType="com.ruoyi.tc.entity.AssetTask" parameterType="int">
select * from asset_task where id=#{taskId}

Loading…
Cancel
Save