|
|
@@ -25,8 +25,9 @@ type OrganizeModel struct {
|
|
|
Parentid int `json:"parentid"`
|
|
|
Fullname string `json:"fullname"`
|
|
|
Contacts string `json:"Contacts"`
|
|
|
- Phone string `json:"Phone"`
|
|
|
- Address string `json:"Address"`
|
|
|
+ Category string `json:"Category"`
|
|
|
+ Phone string `json:"Phone"`
|
|
|
+ Address string `json:"Address"`
|
|
|
Description string `json:"description"`
|
|
|
HaveChild int `json:"havechild"`
|
|
|
IsInnerOrganize int
|
|
|
@@ -157,6 +158,7 @@ func (this *OrganizesController) AddOrganize() {
|
|
|
entity.Fullname = model.Fullname
|
|
|
entity.Parentid = model.Parentid
|
|
|
entity.Contacts = model.Contacts
|
|
|
+ entity.Category = model.Category
|
|
|
entity.Phone = model.Phone
|
|
|
entity.Address = model.Address
|
|
|
entity.Description = model.Description
|
|
|
@@ -213,12 +215,13 @@ func (this *OrganizesController) EditOrganize() {
|
|
|
entity.Fullname = model.Fullname
|
|
|
entity.Parentid = model.Parentid
|
|
|
entity.Contacts = model.Contacts
|
|
|
+ entity.Category = model.Category
|
|
|
entity.Phone = model.Phone
|
|
|
entity.Address = model.Address
|
|
|
entity.Description = model.Description
|
|
|
entity.Modifieduserid, _ = utils.StrTo(this.User.Id).Int()
|
|
|
entity.Modifiedby = this.User.Realname
|
|
|
- var cols []string = []string{"Fullname", "Parentid", "Description","Contacts","Phone","Address","Modifieduserid", "Modifiedby"}
|
|
|
+ var cols []string = []string{"Fullname", "Parentid", "Description","Contacts","Phone","Category","Address","Modifieduserid", "Modifiedby"}
|
|
|
err := svc.UpdateEntityAndBackupByCols(id, &entity, &entityempty, cols, utils.ToStr(this.User.Id), this.User.Realname)
|
|
|
|
|
|
if err == nil {
|