| | |
| | | <!-- PreventRiskUnitUuid getRiskUnitUuidById(Long id);--> |
| | | <select id="getRiskUnitUuidById" resultMap="BaseResultMap"> |
| | | select * from prevent_risk_unit_uuid |
| | | where risk_unit_id = #{id} |
| | | where risk_unit_id = #{id} |
| | | </select> |
| | | |
| | | <!-- int insertUuid(PreventRiskUnitUuid riskUnitUuid);--> |
| | |
| | | #{riskListId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | |
| | | <!-- List<PreventRiskUnitUuid> listRiskAnaUnit();--> |
| | | <select id="listRiskAnaUnit" resultMap="BaseResultMap"> |
| | | select * from prevent_risk_unit_uuid |
| | | where report_switch = 0 and (update_report_data_time > report_time or report_time is null) |
| | | </select> |
| | | <!-- int updateReportStatus(HandlerReportParam handlerReportParam);--> |
| | | <update id="updateReportStatus"> |
| | | update prevent_risk_unit_uuid set |
| | | report_status = #{reportStatus}, |
| | | report_time = #{reportTime} |
| | | where id = #{id} |
| | | </update> |
| | | </mapper> |