Commit 062d544e authored by 周昊's avatar 周昊

1、修改app端删除固有风险、现有风险逻辑删除

parent c6e45ac6
...@@ -450,7 +450,10 @@ public class RiskPlanAppController extends BaseController { ...@@ -450,7 +450,10 @@ public class RiskPlanAppController extends BaseController {
*/ */
@GetMapping("/inherent/delete/{inherentId}") @GetMapping("/inherent/delete/{inherentId}")
public R<Boolean> deleteRiskPlanAppInherentByInherentId(@PathVariable("inherentId") Long inherentId) { public R<Boolean> deleteRiskPlanAppInherentByInherentId(@PathVariable("inherentId") Long inherentId) {
return R.ok(riskPlanInherentListService.removeById(inherentId)); RiskPlanInherentList riskPlanInherentList = new RiskPlanInherentList();
riskPlanInherentList.setId(inherentId);
riskPlanInherentList.setDelFlag("1");
return R.ok(riskPlanInherentListService.updateRiskPlanInherentList(riskPlanInherentList)>0);
} }
/** /**
...@@ -563,7 +566,10 @@ public class RiskPlanAppController extends BaseController { ...@@ -563,7 +566,10 @@ public class RiskPlanAppController extends BaseController {
*/ */
@GetMapping("/existing/delete/{existingId}") @GetMapping("/existing/delete/{existingId}")
public R<Boolean> deleteRiskPlanAppExistingByExistingId(@PathVariable("existingId") Long existingId) { public R<Boolean> deleteRiskPlanAppExistingByExistingId(@PathVariable("existingId") Long existingId) {
return R.ok(riskPlanExistingListService.removeById(existingId)); RiskPlanExistingList existingList = new RiskPlanExistingList();
existingList.setId(existingId);
existingList.setDelFlag("1");
return R.ok(riskPlanExistingListService.updateById(existingList));
} }
/** /**
......
...@@ -379,6 +379,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -379,6 +379,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ledger_building lb ON lb.id = lf.building_id LEFT JOIN ledger_building lb ON lb.id = lf.building_id
WHERE WHERE
reil.inherent_id = #{inherentId} reil.inherent_id = #{inherentId}
AND reil.del_flag = '0'
AND rpil.del_flag = '0'
AND lr.del_flag = '0'
AND lr.`status` = '0'
AND lf.del_flag = '0'
AND lf.`status` = '0'
AND lb.del_flag = '0'
AND lb.`status` = '0'
</select> </select>
<select id="getRiskNotificationExportWordDto" <select id="getRiskNotificationExportWordDto"
resultType="com.censoft.censoftrongtong.domain.dto.RiskNotificationExportWordDto"> resultType="com.censoft.censoftrongtong.domain.dto.RiskNotificationExportWordDto">
......
...@@ -21,5 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -21,5 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ledger_building lb ON lb.id = rpub.building_id LEFT JOIN ledger_building lb ON lb.id = rpub.building_id
WHERE WHERE
rp.id = #{planId} rp.id = #{planId}
AND lb.del_flag = '0'
AND lb.`status` = '0'
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment