alsmanager_lib 1.0.46 → 1.0.48
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 +4 -8
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -5300,7 +5300,7 @@ function queryLastDismissioneId(db_used) {
|
|
|
5300
5300
|
}
|
|
5301
5301
|
|
|
5302
5302
|
function selectDocumentiByIdDismissioneSQLite(id_dismiss) {
|
|
5303
|
-
var query = "select distinct doc.
|
|
5303
|
+
var query = "select distinct doc.id, doc.descrizione, doc.data_emissione from device_dismissioni ds ";
|
|
5304
5304
|
query += "join devices d on d.id = ds.id_device ";
|
|
5305
5305
|
query += "join device_doc dc on dc.id_device = ds.id_device ";
|
|
5306
5306
|
query += "join dismissioni dm on dm.id = ds.id_dismissione ";
|
|
@@ -5682,16 +5682,12 @@ function getDocumentByIdDoc(db_used, id_doc) {
|
|
|
5682
5682
|
return query;
|
|
5683
5683
|
}
|
|
5684
5684
|
|
|
5685
|
-
function selectDocumentoByIdSQLite(id_doc) {
|
|
5686
|
-
|
|
5687
|
-
query += "where id = " + id_doc;
|
|
5688
|
-
return query;
|
|
5685
|
+
function selectDocumentoByIdSQLite(id_doc) {
|
|
5686
|
+
return getDocumentByIdDocSQLite(id_doc);
|
|
5689
5687
|
}
|
|
5690
5688
|
|
|
5691
5689
|
function selectDocumentoByIdMySQL(id_doc) {
|
|
5692
|
-
|
|
5693
|
-
query += "where id = :id_doc";
|
|
5694
|
-
return query;
|
|
5690
|
+
return getDocumentByIdDocMySQL(id_doc);
|
|
5695
5691
|
}
|
|
5696
5692
|
function selectDocumentoById(db_used, id_doc) {
|
|
5697
5693
|
var query = "";
|