添加招标信息城市code

This commit is contained in:
邹宗楠
2022-04-11 11:41:31 +08:00
parent 5ca707fc30
commit 1ba220674b
3 changed files with 6 additions and 0 deletions

View File

@@ -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"]))

View File

@@ -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"`
}

View File

@@ -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 "页数"