| | |
| | | |
| | | |
| | | <update id="updateJtype"> |
| | | update sys_alarm SET jtype=#{jtype},bz=#{bz},securityArr =#{securityArr} where id=#{id} |
| | | update sys_alarm SET jtype=#{jtype},bz=#{bz} |
| | | |
| | | <if test="securityArr!=null and id!=''"> |
| | | ,securityArr =#{securityArr} |
| | | </if> |
| | | |
| | | where id=#{id} |
| | | </update> |
| | | |
| | | <update id="updatePoliceStatus"> |
| | |
| | | AND role_id = "1370562810882502657" |
| | | </select> |
| | | |
| | | <select id="getAlarm" resultType="java.util.HashMap"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | sys_alarm |
| | | WHERE |
| | | securityId IS NULL |
| | | AND securityArr LIKE concat('%',#{alarm.securityArr},'%') |
| | | |
| | | </select> |
| | | |
| | | <update id="updateVaddress"> |
| | | update sys_alarm SET vaddress=#{vaddress},uids=#{uids} where id=#{jid} |
| | | </update> |