|
|
@@ -115,7 +115,8 @@ func MerchantUpdate(c *gin.Context) { |
|
|
|
merchant.EnterpriseId = req.EnterpriseId |
|
|
|
merchant.Name = req.Name |
|
|
|
merchant.UpdateAt = now.Format("2006-01-02 15:04:05") |
|
|
|
_, err = merchantDb.MerchantUpdate(merchant, "name", "enterprise_id", "update_at") |
|
|
|
merchant.CreateAt = req.CreateAt |
|
|
|
_, err = merchantDb.MerchantUpdate(merchant, "name", "enterprise_id", "update_at", "create_at") |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
|