change according to connection from frontend
This commit is contained in:
parent
2609ecc1bf
commit
e3db523a0e
36 changed files with 611 additions and 173 deletions
|
@ -27,11 +27,16 @@ export default abstract class EquipmentService {
|
|||
.leftJoinAndSelect("equipment.equipmentType", "equipmenttype");
|
||||
|
||||
if (search != "") {
|
||||
query = query.where({
|
||||
code: Like(search),
|
||||
name: Like(search),
|
||||
location: Like(search),
|
||||
});
|
||||
query = query
|
||||
.where({
|
||||
code: Like(`%${search}%`),
|
||||
})
|
||||
.orWhere({
|
||||
name: Like(`%${search}%`),
|
||||
})
|
||||
.orWhere({
|
||||
location: Like(`%${search}%`),
|
||||
});
|
||||
}
|
||||
|
||||
if (ids.length != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue