Quellcode durchsuchen

Merge branch 'pool_639' into debug

ziwen vor 1 Jahr
Ursprung
Commit
71b19c8dee
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      models/fms/contract_register.go

+ 1 - 1
models/fms/contract_register.go

@@ -936,7 +936,7 @@ type ContractServiceDuplicateItem struct {
 
 func CheckContractServiceDuplicate(registerIds []int) (list []*ContractServiceDuplicateItem, err error) {
 	err = global.DEFAULT_MYSQL.Table("contract_service").
-		Select("GROUP_CONCAT(service_template_id ORDER BY service_template_id)  AS ids ").
+		Select("GROUP_CONCAT(service_template_id ORDER BY service_template_id)  AS ids, contract_register_id ").
 		Where("contract_register_id IN (?)", registerIds).
 		Group("contract_register_id").Find(&list).Error
 	return