1234567891011121314151617181920 |
- package yb_price_driven
- import "hongze/hongze_yb/global"
- // GetPriceDrivenByChartPermissionId 通过品种获取价格驱动
- func GetPriceDrivenByChartPermissionId(chartPermissionId int) (item *YbPriceDriven, err error) {
- err = global.DEFAULT_MYSQL.
- Where("chart_permission_id = ? AND publish_state = 1", chartPermissionId).
- Order("create_time DESC").
- First(&item).Error
- return
- }
- // GetPriceDrivenById 主键获取价格驱动
- func GetPriceDrivenById(priceDrivenId int) (item *YbPriceDriven, err error) {
- err = global.DEFAULT_MYSQL.
- Where("price_driven_id = ? AND publish_state = 1", priceDrivenId).
- First(&item).Error
- return
- }
|