陈少旭 5 months ago
parent
commit
f51bb1b512
2 changed files with 25 additions and 8 deletions
  1. 11 0
      controllers/admin_api_controllers/custom_api_controller.go
  2. 14 8
      models/custom.go

+ 11 - 0
controllers/admin_api_controllers/custom_api_controller.go View File

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

+ 14 - 8
models/custom.go View File

204
 	Modifier                int64  `gorm:"column:modifier" json:"modifier" form:"modifier"`
204
 	Modifier                int64  `gorm:"column:modifier" json:"modifier" form:"modifier"`
205
 	Status                  int64  `gorm:"column:status" json:"status" form:"status"`
205
 	Status                  int64  `gorm:"column:status" json:"status" form:"status"`
206
 	IsCheck                 int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
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
 func (KyyChargePaymentCollection) TableName() string {
210
 func (KyyChargePaymentCollection) TableName() string {
226
 	IsCheck       int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
227
 	IsCheck       int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
227
 	Status        int64  `gorm:"column:status" json:"status" form:"status"`
228
 	Status        int64  `gorm:"column:status" json:"status" form:"status"`
228
 	ContactWay    string `gorm:"column:contact_way" json:"contact_way" form:"contact_way"`
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
 func (KyyChargeContact) TableName() string {
233
 func (KyyChargeContact) TableName() string {
253
 	IsCheck       int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
255
 	IsCheck       int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
254
 	Status        int64  `gorm:"column:status" json:"status" form:"status"`
256
 	Status        int64  `gorm:"column:status" json:"status" form:"status"`
255
 	SigningTime   string `gorm:"column:signing_time" json:"signing_time" form:"signing_time"`
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
 func (KyyChargeContract) TableName() string {
261
 func (KyyChargeContract) TableName() string {
274
 	DemandFinishDate string `gorm:"column:demand_finish_date" json:"demand_finish_date" form:"demand_finish_date"`
277
 	DemandFinishDate string `gorm:"column:demand_finish_date" json:"demand_finish_date" form:"demand_finish_date"`
275
 	IsCheck          int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
278
 	IsCheck          int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
276
 	DemandDetail     string `gorm:"column:demand_detail" json:"demand_detail" form:"demand_detail"`
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
 func (KyyChargeDemand) TableName() string {
283
 func (KyyChargeDemand) TableName() string {
281
 }
285
 }
282
 
286
 
283
 type KyyChargeFollow struct {
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
 func (KyyChargeFollow) TableName() string {
299
 func (KyyChargeFollow) TableName() string {
309
 	Status          int64  `gorm:"column:status" json:"status" form:"status"`
314
 	Status          int64  `gorm:"column:status" json:"status" form:"status"`
310
 	Remark          string `gorm:"column:remark" json:"remark" form:"remark"`
315
 	Remark          string `gorm:"column:remark" json:"remark" form:"remark"`
311
 	IsCheck         int64  `gorm:"column:is_check" json:"is_check" form:"is_check"`
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
 func (KyyChargeRenewal) TableName() string {
320
 func (KyyChargeRenewal) TableName() string {