添加招标信息城市code
This commit is contained in:
@@ -16,6 +16,10 @@ func GetBiddingMsg(ctx *jxcontext.Context, param map[string]interface{}) (result
|
||||
sql += " and a.title like ?"
|
||||
sqlParam = append(sqlParam, "%"+utils.Interface2String(param["title"])+"%")
|
||||
}
|
||||
if param["city"] != nil {
|
||||
sql += " and a.city like ?"
|
||||
sqlParam = append(sqlParam, "%"+utils.Interface2String(param["city"])+"%")
|
||||
}
|
||||
if param["startTime"] != nil {
|
||||
sql += " and a.cg_time > ?"
|
||||
sqlParam = append(sqlParam, utils.Interface2String(param["startTime"]))
|
||||
|
||||
@@ -7,4 +7,5 @@ type BiddingInfo struct {
|
||||
Title string `orm:"size(512);column(title)" json:"title"`
|
||||
CgUrl string `orm:"size(512);column(cg_url)" json:"cgUrl"`
|
||||
CgTime time.Time `orm:"cg_time;type(datetime)" json:"cgTime"`
|
||||
City string `orm:"size(512);column(city)" json:"city"`
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ type BiddingController struct {
|
||||
// @Description 获取招标信息
|
||||
// @Param token header string false "认证token"
|
||||
// @Param title query string false "标题"
|
||||
// @Param city query string false "标题"
|
||||
// @Param startTime query string false "开始时间"
|
||||
// @Param endTime query string false "结束时间"
|
||||
// @Param pageSize query int false "页数"
|
||||
|
||||
Reference in New Issue
Block a user