Selaa lähdekoodia

修正收单备注

icole 4 vuotta sitten
vanhempi
commit
f36b007198

+ 1 - 1
internal/logic/acquirer_student/acquirer_student_remark_logic.go

@@ -44,7 +44,7 @@ func (l *AcquirerStudentRemarkLogic) AcquirerStudentRemark(r *http.Request) (*ty
 		logx.Error(err.Error())
 		return &types.Response{500, err.Error(), nil}, nil
 	}
-	_, err = l.svcCtx.DB.Where("id = ? and user_id = ?", bean.Id).Cols("remark").Update(bean)
+	_, err = l.svcCtx.DB.Where("id = ?", bean.Id).Cols("remark").Update(bean)
 	if err != nil {
 		logx.Error(err.Error())
 		return &types.Response{500, err.Error(), nil}, nil

+ 1 - 1
model/i2bill_acquirer_student.sql

@@ -11,7 +11,7 @@ CREATE TABLE `i2bill_acquirer_student` (
   `sch_id` int DEFAULT NULL COMMENT '意向校区',
   `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '当前位置',
   `create_time` datetime DEFAULT NULL,
-  `del_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
+  `del_flag` int DEFAULT 0,
   `check_state` int DEFAULT NULL COMMENT '收单宝状态',
   `check_time` datetime DEFAULT NULL COMMENT '审核日期',
   `check_by` varchar(36) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '审核人',