|
@@ -49,15 +49,14 @@ func (l *PublishInfoLogic) PublishInfo(in *consumerinfo.PublishInfoReq) (*consum
|
|
|
} else {
|
|
|
publishData["city"] = in.City
|
|
|
} //项目城市
|
|
|
- publishData["detail"] = util.NewCut().ClearHtml(in.Detail) //正文信息
|
|
|
- publishData["create_time"] = time.Now().Format("2006-01-02 15:04:05") //申请时间
|
|
|
- publishData["attach"] = in.Attach //附件(多个附件逗号分割)
|
|
|
- publishData["contact_person"] = in.Contact.Person //联系人
|
|
|
- publishData["contact_phone"] = in.Contact.Phone //联系人电话
|
|
|
- publishData["contact_overt"] = mc.Int64All(mc.If(in.Contact.Overt == 0, 2, in.Contact.Overt)) //是否公开 默认不公开
|
|
|
- publishData["is_del"] = 1 // 0:全部;1:未删除;-1:删除
|
|
|
- publishData["published"] = 1 // 0:全部;1:未发布;2:已发布
|
|
|
- publishData["type"] = mc.IntAll(in.MsgType) //1:招标信息|2:采购信息|3:供应信息
|
|
|
+ publishData["detail"] = util.NewCut().ClearHtml(in.Detail) //正文信息
|
|
|
+ publishData["create_time"] = time.Now().Format("2006-01-02 15:04:05") //申请时间
|
|
|
+ publishData["attach"] = in.Attach //附件(多个附件逗号分割)
|
|
|
+ publishData["contact_person"] = in.Contact.Person //联系人
|
|
|
+ publishData["contact_phone"] = in.Contact.Phone //联系人电话
|
|
|
+ publishData["is_del"] = 1 // 0:全部;1:未删除;-1:删除
|
|
|
+ publishData["published"] = 1 // 0:全部;1:未发布;2:已发布
|
|
|
+ publishData["type"] = mc.IntAll(in.MsgType) //1:招标信息|2:采购信息|3:供应信息
|
|
|
publishData["ent_id"] = mc.IntAll(in.EntId)
|
|
|
publishData["app_id"] = in.AppId
|
|
|
publishData["ent_name"] = in.EntName
|
|
@@ -66,14 +65,16 @@ func (l *PublishInfoLogic) PublishInfo(in *consumerinfo.PublishInfoReq) (*consum
|
|
|
|
|
|
switch in.MsgType {
|
|
|
case 3:
|
|
|
+ publishData["contact_overt"] = mc.Int64All(mc.If(in.Contact.Overt == 0, 2, in.Contact.Overt)) //是否公开 默认不公开
|
|
|
if in.Deadline != "" {
|
|
|
publishData["validity_time"] = in.Deadline //信息有效期
|
|
|
}
|
|
|
id = model.Mysql.Insert("supply_info", publishData)
|
|
|
default:
|
|
|
if in.EntName == in.Buyer {
|
|
|
- publishData["publishing_media"] = in.JyPublishingMedia //是否同意剑鱼发布平台 1 是 -1 否
|
|
|
+ publishData["contact_overt"] = mc.Int64All(mc.If(in.Contact.Overt == 0, 2, in.Contact.Overt)) //是否公开 默认不公开
|
|
|
}
|
|
|
+ publishData["publishing_media"] = in.JyPublishingMedia //是否同意剑鱼发布平台 1 是 -1 否
|
|
|
publishData["recommended_service"] = in.RecommendedService //是否推荐供应商 1 是 -1 否
|
|
|
publishData["related_id"] = mc.IntAll(se.SE.DecodeString(in.RelatedId)) //关联公告id
|
|
|
publishData["project_code"] = in.Code //项目编号
|