| | |
| | | |
| | | <update id="updateClinent" parameterType="org.springblade.modules.equipment.entity.Equipment"> |
| | | update sys_equipment SET deviceName=#{deviceName},deviceNumber=#{deviceNumber},deviceType=#{deviceType}, |
| | | ownership=#{ownership},devicestate=#{devicestate},stime=#{stime}, |
| | | addvcd=#{addvcd},street=#{street},dtype=#{dtype},pay=#{pay},expireTime=#{expireTime},heartbeat=#{heartbeat} where id=#{id} |
| | | ownership=#{ownership},devicestate=#{devicestate}, |
| | | addvcd=#{addvcd},street=#{street},dtype=#{dtype},pay=#{pay} |
| | | |
| | | <choose> |
| | | <when test="expireTime!=null and expireTime!=''"> |
| | | ,expireTime=#{expireTime} |
| | | </when> |
| | | <otherwise> |
| | | ,expireTime= null |
| | | </otherwise> |
| | | </choose> |
| | | |
| | | <choose> |
| | | <when test="heartbeat!=null and heartbeat!=''"> |
| | | ,heartbeat=#{heartbeat} |
| | | </when> |
| | | <otherwise> |
| | | ,heartbeat= null |
| | | </otherwise> |
| | | </choose> |
| | | |
| | | <choose> |
| | | <when test="stime!=null and stime!=''"> |
| | | ,stime=#{stime} |
| | | </when> |
| | | <otherwise> |
| | | ,stime= null |
| | | </otherwise> |
| | | </choose> |
| | | |
| | | where id=#{id} |
| | | </update> |
| | | |
| | | |