数据分析平台 记录部分参数筛选补充
This commit is contained in:
parent
1657b11b6f
commit
6b16e4ab5a
@ -104,6 +104,13 @@ func ABList(r *request.ABList) ([]*model.ABList, int64) {
|
|||||||
sql += "pbi LIKE '%" + r.PBI + "%'"
|
sql += "pbi LIKE '%" + r.PBI + "%'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if r.OutsourcingPBI != "" {
|
||||||
|
if sql != "" {
|
||||||
|
sql += " AND outsourcing_pbi LIKE '%" + r.OutsourcingPBI + "%'"
|
||||||
|
} else {
|
||||||
|
sql += "outsourcing_pbi LIKE '%" + r.OutsourcingPBI + "%'"
|
||||||
|
}
|
||||||
|
}
|
||||||
if r.Product != "" {
|
if r.Product != "" {
|
||||||
if sql != "" {
|
if sql != "" {
|
||||||
sql += " AND product LIKE '%" + r.Product + "%'"
|
sql += " AND product LIKE '%" + r.Product + "%'"
|
||||||
@ -232,6 +239,13 @@ func BPList(r *request.BPList) ([]*model.BPList, int64) {
|
|||||||
sql += "pbi LIKE '%" + r.PBI + "%'"
|
sql += "pbi LIKE '%" + r.PBI + "%'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if r.OutsourcingPBI != "" {
|
||||||
|
if sql != "" {
|
||||||
|
sql += " AND outsourcing_pbi LIKE '%" + r.OutsourcingPBI + "%'"
|
||||||
|
} else {
|
||||||
|
sql += "outsourcing_pbi LIKE '%" + r.OutsourcingPBI + "%'"
|
||||||
|
}
|
||||||
|
}
|
||||||
if r.Product != "" {
|
if r.Product != "" {
|
||||||
if sql != "" {
|
if sql != "" {
|
||||||
sql += " AND product LIKE '%" + r.Product + "%'"
|
sql += " AND product LIKE '%" + r.Product + "%'"
|
||||||
@ -889,6 +903,13 @@ func FTList(r *request.FTList) ([]*model.FTShowList, int64) {
|
|||||||
sql += " AND pbi LIKE '%" + r.PBI + "%'"
|
sql += " AND pbi LIKE '%" + r.PBI + "%'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if r.OutsourcingPBI != "" {
|
||||||
|
if sql != "" {
|
||||||
|
sql += " AND outsourcing_pbi LIKE '%" + r.OutsourcingPBI + "%'"
|
||||||
|
} else {
|
||||||
|
sql += "outsourcing_pbi LIKE '%" + r.OutsourcingPBI + "%'"
|
||||||
|
}
|
||||||
|
}
|
||||||
if r.Product != "" {
|
if r.Product != "" {
|
||||||
if sql == "" {
|
if sql == "" {
|
||||||
sql += "product LIKE '%" + r.Product + "%'"
|
sql += "product LIKE '%" + r.Product + "%'"
|
||||||
@ -1597,6 +1618,13 @@ func TRList(r *request.TRList) ([]*model.TRList, int64) {
|
|||||||
sql += "pbi LIKE '%" + r.PBI + "%'"
|
sql += "pbi LIKE '%" + r.PBI + "%'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if r.OutsourcingPBI != "" {
|
||||||
|
if sql != "" {
|
||||||
|
sql += " AND outsourcing_pbi LIKE '%" + r.OutsourcingPBI + "%'"
|
||||||
|
} else {
|
||||||
|
sql += "outsourcing_pbi LIKE '%" + r.OutsourcingPBI + "%'"
|
||||||
|
}
|
||||||
|
}
|
||||||
if r.Product != "" {
|
if r.Product != "" {
|
||||||
if sql != "" {
|
if sql != "" {
|
||||||
sql += " AND product LIKE '%" + r.Product + "%'"
|
sql += " AND product LIKE '%" + r.Product + "%'"
|
||||||
|
Loading…
Reference in New Issue
Block a user