iferr=impl.DBService.Model(&models.WalletRecord{}).Select("sum(money)").Where("passport_id=? AND trans_type=? AND ymd=?",auth.ID,transIn,ymd).Scan(&stat).Error;err!=nil{
iferr=impl.DBService.Model(&models.WalletRecord{}).Select("sum(money)").Where("passport_id=? AND trans_type=? AND ymd=?",auth.ID,transOut,ymd).Scan(&stat).Error;err!=nil{
iferr=impl.DBService.Model(&models.WalletRecord{}).Select("sum(money)").Where("passport_id=? AND trans_type=? AND ym=?",auth.ID,transIn,ym).Scan(&stat).Error;err!=nil{
iferr=impl.DBService.Model(&models.WalletRecord{}).Select("sum(money)").Where("passport_id=? AND trans_type=? AND ym=?",auth.ID,transOut,ym).Scan(&stat).Error;err!=nil{
iferr=impl.DBService.Model(&models.WalletRecord{}).Select("sum(money)").Where("passport_id=? AND trans_type=? ",auth.ID,transIn).Scan(&stat).Error;err!=nil{
iferr=impl.DBService.Model(&models.WalletRecord{}).Select("sum(money)").Where("passport_id=? AND trans_type=? ",auth.ID,transOut).Scan(&stat).Error;err!=nil{