feat:完善信息,增加socket

This commit is contained in:
henry
2022-01-27 14:50:52 +08:00
parent 0368be6f11
commit 4ae37b9b4d
30 changed files with 325 additions and 92 deletions

View File

@ -185,12 +185,14 @@ func (c *Examine) Launch(id uint64, identity, status int, remark string, params
}
return orm.GetDB().Transaction(func(tx *gorm.DB) error {
values := map[string]interface{}{
//"examine_status": status,
"examine_status": status,
"examine_remark": remark, "updated_at": time.Now()}
if identity == config.TenantUserIdentityForCompany {
for k, v := range params {
values[k] = v
if params != nil && len(params) > 0 {
if identity == config.TenantUserIdentityForCompany {
for k, v := range params {
values[k] = v
}
}
}
if err = model2.Updates(data.IModel, values, tx); err != nil {