diff --git a/repository/test.data/report.list.go b/repository/test.data/report.list.go index 16f89ab..7ad0c26 100644 --- a/repository/test.data/report.list.go +++ b/repository/test.data/report.list.go @@ -104,6 +104,13 @@ func ABList(r *request.ABList) ([]*model.ABList, int64) { 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 sql != "" { sql += " AND product LIKE '%" + r.Product + "%'" @@ -232,6 +239,13 @@ func BPList(r *request.BPList) ([]*model.BPList, int64) { 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 sql != "" { sql += " AND product LIKE '%" + r.Product + "%'" @@ -889,6 +903,13 @@ func FTList(r *request.FTList) ([]*model.FTShowList, int64) { 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 sql == "" { sql += "product LIKE '%" + r.Product + "%'" @@ -1597,6 +1618,13 @@ func TRList(r *request.TRList) ([]*model.TRList, int64) { 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 sql != "" { sql += " AND product LIKE '%" + r.Product + "%'"