rez_core 5.0.162 → 5.0.164
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/module/filter/service/filter.service.js +1 -1
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/listmaster/entity/list-master.entity.d.ts +0 -1
- package/dist/module/listmaster/entity/list-master.entity.js +0 -4
- package/dist/module/listmaster/entity/list-master.entity.js.map +1 -1
- package/dist/module/meta/service/entity-dynamic.service.js +5 -7
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/filter/service/filter.service.ts +1 -1
- package/src/module/listmaster/entity/list-master.entity.ts +0 -3
- package/src/module/meta/service/entity-dynamic.service.ts +12 -12
package/package.json
CHANGED
|
@@ -551,7 +551,7 @@ export class FilterService {
|
|
|
551
551
|
const countQb = this.entityManager
|
|
552
552
|
.createQueryBuilder()
|
|
553
553
|
.select('COUNT(*)', 'count')
|
|
554
|
-
.from(tableName
|
|
554
|
+
.from(`${this.schema}.${tableName}`, 'e');
|
|
555
555
|
dataWhere.forEach((clause) =>
|
|
556
556
|
countQb.andWhere(clause.query, clause.params),
|
|
557
557
|
);
|
|
@@ -595,19 +595,19 @@ export class EntityDynamicService {
|
|
|
595
595
|
|
|
596
596
|
const entityRepo = this.reflectionHelper.getRepoService(entityMaster?.entity_data_class);
|
|
597
597
|
|
|
598
|
-
const columns = validAttributes.map(attr =>
|
|
599
|
-
|
|
600
|
-
const result = await entityRepo.find({
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
});
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
598
|
+
const columns = validAttributes.map(attr => `t.${attr.attribute_key}`);
|
|
599
|
+
|
|
600
|
+
// const result = await entityRepo.find({
|
|
601
|
+
// where: {
|
|
602
|
+
// id: id
|
|
603
|
+
// },
|
|
604
|
+
// select: columns
|
|
605
|
+
// });
|
|
606
|
+
const selectQuery = `SELECT ${columns}
|
|
607
|
+
FROM ${this.schema}.${entityMaster.db_table_name} t
|
|
608
|
+
WHERE id = $1`;
|
|
609
609
|
|
|
610
|
-
|
|
610
|
+
const result = await this.entityManager.query(selectQuery, [id]);
|
|
611
611
|
if (!result.length) return null;
|
|
612
612
|
|
|
613
613
|
const row = result[0];
|