|
|
@@ -11,112 +11,112 @@ type PGHr struct {
|
|
|
}
|
|
|
|
|
|
func (PGHr) PublicSensorQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_public_sensors_query(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_public_sensors_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) PrivateSensorQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_private_sensors_query(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_private_sensors_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) PublicSensorsAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_public_sensors_add(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_public_sensors_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) PrivateSensorsAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_private_sensors_add(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_private_sensors_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) SensorsEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_sensors_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_sensors_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) SensorsDel(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_sensors_del(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_sensors_del(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) PkGroupChg(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_pk_group_chg(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_pk_group_chg(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) CrBind(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_cr_bind(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_cr_bind(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) CrUnBind(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_cr_unbind(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_cr_unbind(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) UnBindSensorsQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_sensors_unbind_sensors_query(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_sensors_unbind_sensors_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) HrClassDetailStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_class_detail_status_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_class_detail_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) HrClassStartPrepare(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_class_start_prepare(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_class_start_prepare(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) HrClassDetailAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_class_detail_add(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_class_detail_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) HrClassDetailDel(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_class_detail_del(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_class_detail_del(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) HrClassStartConfirm(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_class_start_confirm(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_class_start_confirm(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (PGHr) HrClassGiveUpConfirm(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
|
|
|
- err = getClient().Raw("select fn_hr_class_give_up_confirm(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
+ err = getClient().Raw("select fn_hr_class_give_up_confirm(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
|
|
|
Scan(&result).Error
|
|
|
|
|
|
return
|