完成字典模块改造
This commit is contained in:
1 parent
e04b5559bd
commit
4979fd659f
21 files changed
+1176
-635
No files matched your search
@@ -18,13 +18,13 @@ func init() {
|
||||
func _1606579402398Test(db *gorm.DB, version string) error {
|
||||
return db.Transaction(func(tx *gorm.DB) error {
|
||||
|
||||
dicData := models.DictData{}
|
||||
dicData := DictData{}
|
||||
err := tx.Model(&dicData).Where("dict_code = ?", 1).Update("dict_value", 2).Error
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
dicType := models.DictType{}
|
||||
dicType := DictType{}
|
||||
err = tx.Model(&dicType).Where("status = ?", 0).Update("status", 2).Error
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user