test-entity-library-asm 2.3.6 → 2.3.7
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/dist/CustomRepository.js
CHANGED
|
@@ -69,6 +69,7 @@ var CustomRepository = /** @class */ (function (_super) {
|
|
|
69
69
|
queryBuilder = this.createQueryBuilder('verify_local')
|
|
70
70
|
.skip(lazyEvent.first)
|
|
71
71
|
.take(lazyEvent.rows);
|
|
72
|
+
// Filtro global
|
|
72
73
|
if (lazyEvent.filters['global'] && lazyEvent.filters['global'].value) {
|
|
73
74
|
globalValue = "%".concat(lazyEvent.filters['global'].value.toLowerCase(), "%");
|
|
74
75
|
queryBuilder.andWhere('LOWER(JSON_UNQUOTE(JSON_EXTRACT(verify_local.local_information, "$.name"))) LIKE :globalValue OR LOWER(JSON_UNQUOTE(JSON_EXTRACT(verify_local.local_information, "$.addressElement"))) LIKE :globalValue', { globalValue: globalValue });
|
package/dist/entities/Company.js
CHANGED
|
@@ -28,6 +28,10 @@ var Company = /** @class */ (function () {
|
|
|
28
28
|
}),
|
|
29
29
|
__metadata("design:type", Number)
|
|
30
30
|
], Company.prototype, "id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ length: 30, unique: true, comment: 'Código único de la empresa.' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Company.prototype, "code", void 0);
|
|
31
35
|
__decorate([
|
|
32
36
|
(0, typeorm_1.Column)({ length: 50, comment: 'Nombre de la empresa.' }),
|
|
33
37
|
__metadata("design:type", String)
|
package/package.json
CHANGED
package/src/CustomRepository.ts
CHANGED
|
@@ -12,6 +12,7 @@ export class CustomRepository<T extends ObjectLiteral> extends Repository<T> {
|
|
|
12
12
|
.skip(lazyEvent.first)
|
|
13
13
|
.take(lazyEvent.rows)
|
|
14
14
|
|
|
15
|
+
// Filtro global
|
|
15
16
|
if (lazyEvent.filters['global'] && lazyEvent.filters['global'].value) {
|
|
16
17
|
const globalValue = `%${lazyEvent.filters['global'].value.toLowerCase()}%`
|
|
17
18
|
queryBuilder.andWhere(
|
package/src/entities/Company.ts
CHANGED