|
@ -33,8 +33,8 @@ func (t *ModuleServiceHistory) GetByModuleIdAndName(id int, name string) (bool, |
|
|
return core.GetXormAuto().Where("is_delete=0 and service_module_id=? and name=?", id, name).Get(t) |
|
|
return core.GetXormAuto().Where("is_delete=0 and service_module_id=? and name=?", id, name).Get(t) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (t *ModuleServiceHistory) ExistSignModule(ids []interface{}) (bool, error) { |
|
|
|
|
|
return core.GetXormAuto().Where("is_delete=0 and name=?", "签到").In("id", ids...).Exist(t) |
|
|
|
|
|
|
|
|
func (t *ModuleServiceHistory) ExistSignModule(ids interface{}) (bool, error) { |
|
|
|
|
|
return core.GetXormAuto().Where("is_delete=0 and name=?", "签到").In("id", ids).Exist(t) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func GetModuleServiceHistoryIdsByIdAndName(serviceId, serviceName interface{}) ([]int, error) { |
|
|
func GetModuleServiceHistoryIdsByIdAndName(serviceId, serviceName interface{}) ([]int, error) { |
|
|