| | |
| | | <include refid="selectDeviceLogVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectMaxDeviceLogId" resultType="java.lang.Integer"> |
| | | SELECT MAX(id) FROM js_device_log where project_id = #{projectId} |
| | | </select> |
| | | |
| | | <insert id="insertDeviceLog" parameterType="DeviceLog"> |
| | | insert into js_device_log |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="projectId != null and projectId != ''">project_id,</if> |
| | | <if test="projectName != null and projectName != ''">project_name,</if> |
| | |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="projectId != null and projectId != ''">#{projectId},</if> |
| | | <if test="projectName != null and projectName != ''">#{projectName},</if> |