资产修改

main
dongdingding 2 weeks ago
parent 7a02168fab
commit f7fe75c855

@ -490,6 +490,10 @@ public class AssetTaskController extends BaseController {
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, AssetdwHcRequest req) { public void export(HttpServletResponse response, AssetdwHcRequest req) {
List<AssetdwHcResponse> list = assetTaskService.export(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); ExcelUtil<AssetdwHcResponse> util = new ExcelUtil<AssetdwHcResponse>(AssetdwHcResponse.class);
util.exportExcel(response, list, "单位完成情况"); util.exportExcel(response, list, "单位完成情况");

@ -27,7 +27,7 @@ public class AssetdwHcResponse {
/** /**
* *
*/ */
@Excel(name = "单位名称") @Excel(name = "核查资产数量")
@ApiModelProperty("核查资产数量") @ApiModelProperty("核查资产数量")
private Integer total; 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; private Integer taskStatus;
@ -58,8 +58,8 @@ public class AssetdwHcResponse {
/** /**
* *
*/ */
@Excel(name = "百分比") @Excel(name = "完成比例")
@ApiModelProperty("百分比") @ApiModelProperty("完成比例")
private double checkedRatio; private String checkedRatio;
} }

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

Loading…
Cancel
Save