@ -41,6 +41,8 @@ func (d *dictionaryDetail) Init() error {
{ global . GVA_MODEL { ID : 21 , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) } , "longblob" , 8 , status , 8 , 5 } ,
{ global . GVA_MODEL { ID : 21 , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) } , "longblob" , 8 , status , 8 , 5 } ,
{ global . GVA_MODEL { ID : 22 , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) } , "longtext" , 9 , status , 9 , 5 } ,
{ global . GVA_MODEL { ID : 22 , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) } , "longtext" , 9 , status , 9 , 5 } ,
{ global . GVA_MODEL { ID : 23 , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) } , "tinyint" , 0 , status , 0 , 6 } ,
{ global . GVA_MODEL { ID : 23 , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) } , "tinyint" , 0 , status , 0 , 6 } ,
{ global . GVA_MODEL { ID : 24 , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) } , "男" , 0 , status , 0 , 1 } ,
{ global . GVA_MODEL { ID : 25 , CreatedAt : time . Now ( ) , UpdatedAt : time . Now ( ) } , "女" , 1 , status , 1 , 1 } ,
}
}
return global . GVA_DB . Transaction ( func ( tx * gorm . DB ) error {
return global . GVA_DB . Transaction ( func ( tx * gorm . DB ) error {
if tx . Where ( "id IN ?" , [ ] int { 1 , 23 } ) . Find ( & [ ] system . SysDictionaryDetail { } ) . RowsAffected == 2 {
if tx . Where ( "id IN ?" , [ ] int { 1 , 23 } ) . Find ( & [ ] system . SysDictionaryDetail { } ) . RowsAffected == 2 {