|
@@ -162,6 +162,14 @@ func (this *EtaBusinessController) PageList() {
|
|
|
cond += fmt.Sprintf(` AND %s = ?`, eta_business.EtaBusinessColumns.IndustryId)
|
|
|
pars = append(pars, industryId)
|
|
|
}
|
|
|
+
|
|
|
+ // 国家
|
|
|
+ nation := this.GetString("Nation", "")
|
|
|
+ nation = strings.TrimSpace(nation)
|
|
|
+ if nation != "" {
|
|
|
+ cond += ` AND nation = ? `
|
|
|
+ pars = append(pars, nation)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
order := ``
|
|
@@ -228,6 +236,7 @@ func (this *EtaBusinessController) PageList() {
|
|
|
b.ExpiredTime = utils.TimeTransferString(utils.FormatDate, v.ExpiredTime)
|
|
|
b.CreateTime = v.CreateTime.Format(utils.FormatDateTime)
|
|
|
b.ModifyTime = v.ModifyTime.Format(utils.FormatDateTime)
|
|
|
+ b.Nation = v.Nation
|
|
|
items = append(items, b)
|
|
|
}
|
|
|
|
|
@@ -431,6 +440,7 @@ func (this *EtaBusinessController) Add() {
|
|
|
businessItem.ExpiredTime = expiredTime
|
|
|
businessItem.CreateTime = now
|
|
|
businessItem.ModifyTime = now
|
|
|
+ businessItem.Nation = req.Nation
|
|
|
contractItem := new(eta_business.EtaBusinessContract)
|
|
|
if !signTime.IsZero() && !expiredTime.IsZero() {
|
|
|
contractItem.SigningTime = signTime
|
|
@@ -566,6 +576,7 @@ func (this *EtaBusinessController) Edit() {
|
|
|
item.CapitalScale = req.CapitalScale
|
|
|
item.ResearchTeamSize = req.ResearchTeamSize
|
|
|
item.UserMax = req.UserMax
|
|
|
+ item.Nation = req.Nation
|
|
|
item.ModifyTime = time.Now().Local()
|
|
|
cols := []string{
|
|
|
"Province", "City", "Address", "Leader", "IndustryId", "IndustryName", "CapitalScale", "ResearchTeamSize", "UserMax", "ModifyTime",
|