陈少旭 3 miesięcy temu
rodzic
commit
f51bb1b512

+ 11 - 0
controllers/admin_api_controllers/custom_api_controller.go Wyświetl plik

@@ -502,6 +502,8 @@ func (this *CustomAPIController) CheckPaymentCollection() {
502 502
 		return
503 503
 	}
504 504
 	cpc.IsCheck = 1
505
+	cpc.CheckPerson = this.GetAdminInfo().Name
506
+
505 507
 	err := service.SaveChargePaymentCollection(&cpc)
506 508
 	if err != nil {
507 509
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
@@ -623,6 +625,8 @@ func (this *CustomAPIController) CheckContactInfo() {
623 625
 		return
624 626
 	}
625 627
 	chargeContact.IsCheck = 1
628
+	chargeContact.CheckPerson = this.GetAdminInfo().Name
629
+
626 630
 	err := service.SaveChargeContact(&chargeContact)
627 631
 	if err != nil {
628 632
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
@@ -756,6 +760,8 @@ func (this *CustomAPIController) CheckContractInfo() {
756 760
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
757 761
 		return
758 762
 	}
763
+	chargeContract.CheckPerson = this.GetAdminInfo().Name
764
+
759 765
 	chargeContract.IsCheck = 1
760 766
 	err := service.SaveChargeContract(&chargeContract)
761 767
 	if err != nil {
@@ -971,6 +977,9 @@ func (this *CustomAPIController) CheckDemandInfo() {
971 977
 		return
972 978
 	}
973 979
 	cd.IsCheck = 1
980
+	//chargeContract
981
+	cd.CheckPerson = this.GetAdminInfo().Name
982
+
974 983
 	err := service.SaveChargeDemand(&cd)
975 984
 	if err != nil {
976 985
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
@@ -1094,6 +1103,8 @@ func (this *CustomAPIController) CheckRenewalInfo() {
1094 1103
 		return
1095 1104
 	}
1096 1105
 	cr.IsCheck = 1
1106
+	cr.CheckPerson = this.GetAdminInfo().Name
1107
+
1097 1108
 	err := service.SaveChargeRenewal(&cr)
1098 1109
 	if err != nil {
1099 1110
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)

+ 14 - 8
models/custom.go Wyświetl plik

@@ -204,6 +204,7 @@ type KyyChargePaymentCollection struct {
204 204
 	Modifier                int64  `gorm:"column:modifier" json:"modifier" form:"modifier"`
205 205
 	Status                  int64  `gorm:"column:status" json:"status" form:"status"`
206 206
 	IsCheck                 int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
207
+	CheckPerson             string `gorm:"column:check_person" json:"check_person" form:"check_person"`
207 208
 }
208 209
 
209 210
 func (KyyChargePaymentCollection) TableName() string {
@@ -226,6 +227,7 @@ type KyyChargeContact struct {
226 227
 	IsCheck       int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
227 228
 	Status        int64  `gorm:"column:status" json:"status" form:"status"`
228 229
 	ContactWay    string `gorm:"column:contact_way" json:"contact_way" form:"contact_way"`
230
+	CheckPerson   string `gorm:"column:check_person" json:"check_person" form:"check_person"`
229 231
 }
230 232
 
231 233
 func (KyyChargeContact) TableName() string {
@@ -253,6 +255,7 @@ type KyyChargeContract struct {
253 255
 	IsCheck       int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
254 256
 	Status        int64  `gorm:"column:status" json:"status" form:"status"`
255 257
 	SigningTime   string `gorm:"column:signing_time" json:"signing_time" form:"signing_time"`
258
+	CheckPerson   string `gorm:"column:check_person" json:"check_person" form:"check_person"`
256 259
 }
257 260
 
258 261
 func (KyyChargeContract) TableName() string {
@@ -274,6 +277,7 @@ type KyyChargeDemand struct {
274 277
 	DemandFinishDate string `gorm:"column:demand_finish_date" json:"demand_finish_date" form:"demand_finish_date"`
275 278
 	IsCheck          int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
276 279
 	DemandDetail     string `gorm:"column:demand_detail" json:"demand_detail" form:"demand_detail"`
280
+	CheckPerson      string `gorm:"column:check_person" json:"check_person" form:"check_person"`
277 281
 }
278 282
 
279 283
 func (KyyChargeDemand) TableName() string {
@@ -281,14 +285,15 @@ func (KyyChargeDemand) TableName() string {
281 285
 }
282 286
 
283 287
 type KyyChargeFollow struct {
284
-	ID       int64  `gorm:"column:id" json:"id" form:"id"`
285
-	Ctime    int64  `gorm:"column:ctime" json:"ctime" form:"ctime"`
286
-	Mtime    int64  `gorm:"column:mtime" json:"mtime" form:"mtime"`
287
-	Creator  int64  `gorm:"column:creator" json:"creator" form:"creator"`
288
-	CustomId int64  `gorm:"column:custom_id" json:"custom_id" form:"custom_id"`
289
-	Desc     string `gorm:"column:desc" json:"desc" form:"desc"`
290
-	Status   int64  `gorm:"column:status" json:"status" form:"status"`
291
-	IsCheck  int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
288
+	ID          int64  `gorm:"column:id" json:"id" form:"id"`
289
+	Ctime       int64  `gorm:"column:ctime" json:"ctime" form:"ctime"`
290
+	Mtime       int64  `gorm:"column:mtime" json:"mtime" form:"mtime"`
291
+	Creator     int64  `gorm:"column:creator" json:"creator" form:"creator"`
292
+	CustomId    int64  `gorm:"column:custom_id" json:"custom_id" form:"custom_id"`
293
+	Desc        string `gorm:"column:desc" json:"desc" form:"desc"`
294
+	Status      int64  `gorm:"column:status" json:"status" form:"status"`
295
+	IsCheck     int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
296
+	CheckPerson string `gorm:"column:check_person" json:"check_person" form:"check_person"`
292 297
 }
293 298
 
294 299
 func (KyyChargeFollow) TableName() string {
@@ -309,6 +314,7 @@ type KyyChargeRenewal struct {
309 314
 	Status          int64  `gorm:"column:status" json:"status" form:"status"`
310 315
 	Remark          string `gorm:"column:remark" json:"remark" form:"remark"`
311 316
 	IsCheck         int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
317
+	CheckPerson     string `gorm:"column:check_person" json:"check_person" form:"check_person"`
312 318
 }
313 319
 
314 320
 func (KyyChargeRenewal) TableName() string {