完善季度
This commit is contained in:
@@ -19,11 +19,11 @@ type PeakValley struct {
|
||||
//选择时间段 设置电价
|
||||
//(将时间段 转化为十分钟区块 查找到对应十分钟区块 创建该规则的电价)
|
||||
|
||||
func (r *PeakValley) CreatePeakValleyRule(tx *gorm.DB, d *peak_valley_model.PeakValleyRule) error {
|
||||
func (r *PeakValley) CreatePeakValleyRuleTx(tx *gorm.DB, d *peak_valley_model.PeakValleyRule) error {
|
||||
return tx.Create(d).Error
|
||||
}
|
||||
|
||||
func (r *PeakValley) UpdatePeakValleyRule(tx *gorm.DB, d *peak_valley_model.PeakValleyRule) error {
|
||||
func (r *PeakValley) UpdatePeakValleyRuleTx(tx *gorm.DB, d *peak_valley_model.PeakValleyRule) error {
|
||||
return tx.Save(d).Error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user