feat:完善项目信息

This commit is contained in:
henry
2022-01-20 11:09:29 +08:00
parent bbbfab5b4d
commit 9348c8970c
7 changed files with 37 additions and 16 deletions

View File

@ -167,7 +167,7 @@ func examineAgent(id, tenantID uint64) (*ExamineManageInfo, error) {
}
// Launch 发起审核
func (c *Examine) Launch(id uint64, identity, status int, params map[string]interface{}) error {
func (c *Examine) Launch(id uint64, identity, status int, remark string, params map[string]interface{}) error {
_status := model2.ExamineStatusKind(status)
if _status != model2.ExamineStatusForRefuse && _status != model2.ExamineStatusForAgree {
@ -184,7 +184,7 @@ func (c *Examine) Launch(id uint64, identity, status int, params map[string]inte
return err
}
return orm.GetDB().Transaction(func(tx *gorm.DB) error {
values := map[string]interface{}{"examine_status": status, "updated_at": time.Now()}
values := map[string]interface{}{"examine_status": status, "examine_remark": remark, "updated_at": time.Now()}
if identity == config.TenantUserIdentityForCompany {
for k, v := range params {