|
@@ -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
|