alsmanager_lib 3.0.225 → 3.0.226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules.js +8 -0
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -4421,6 +4421,13 @@ function getDeviceAnnotationsByIdDevice(id_device) {
|
|
|
4421
4421
|
query += "order by date_annotation";
|
|
4422
4422
|
return query;
|
|
4423
4423
|
}
|
|
4424
|
+
|
|
4425
|
+
function selectDeviceAnnotationsById(id_annot) {
|
|
4426
|
+
var query = "select da.id, da.date_annotation, da.annotation, da.annotation_type from device_annotations da ";
|
|
4427
|
+
query += "where id = " + id_annot;
|
|
4428
|
+
return query;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4424
4431
|
function insertDeviceAnnotation(id_device, date_annot, annot, annot_type) {
|
|
4425
4432
|
var query = "insert into device_annotations (id_device, date_annotation, annotation, annotation_type) values (";
|
|
4426
4433
|
var dt_str = convertDateToStringDB(date_annot);
|
|
@@ -17378,6 +17385,7 @@ module.exports = {
|
|
|
17378
17385
|
queryDeviceById,
|
|
17379
17386
|
queryDeviceByIdentificativo,
|
|
17380
17387
|
getDeviceAnnotationsByIdDevice,
|
|
17388
|
+
selectDeviceAnnotationsById,
|
|
17381
17389
|
insertDeviceAnnotation,
|
|
17382
17390
|
updateDeviceAnnotation,
|
|
17383
17391
|
removeDeviceAnnotation,
|