|
@@ -274,6 +274,12 @@ func (this *EntInfo) Update() bool {
|
|
ok_1 := this.Mysql.UpdateByTx(tx, Entniche_info, map[string]interface{}{
|
|
ok_1 := this.Mysql.UpdateByTx(tx, Entniche_info, map[string]interface{}{
|
|
"id": this.Id,
|
|
"id": this.Id,
|
|
}, m)
|
|
}, m)
|
|
|
|
+ if this.Name != "" {
|
|
|
|
+ this.Mysql.UpdateByTx(tx, Entniche_department, map[string]interface{}{
|
|
|
|
+ "ent_id": this.Id,
|
|
|
|
+ "pid": 0,
|
|
|
|
+ }, map[string]interface{}{"name": this.Name})
|
|
|
|
+ }
|
|
AuthRecordId := this.Mysql.InsertByTx(tx, Auth_record, map[string]interface{}{
|
|
AuthRecordId := this.Mysql.InsertByTx(tx, Auth_record, map[string]interface{}{
|
|
"entId": this.Id,
|
|
"entId": this.Id,
|
|
"creditCode": this.Code,
|
|
"creditCode": this.Code,
|