zhou.xiaoning %!s(int64=5) %!d(string=hai) anos
pai
achega
b19f5719d1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/wrTrade.go

+ 1 - 1
models/wrTrade.go

@@ -74,7 +74,7 @@ func GetWrstandards() ([]WRStandardInfo, error) {
 	if err := engine.Table("WRSTANDARD").Select("WRSTANDARD.*, E1.ENUMDICNAME UNITNAME, DG.DELIVERYGOODSNAME").
 		Join("LEFT", "ENUMDICITEM E1", "E1.ENUMITEMNAME = WRSTANDARD.UNITID and E1.ENUMDICCODE = 'GOODSUNIT'").
 		Join("LEFT", "DELIVERYGOODS DG", "DG.DELIVERYGOODSID = WRSTANDARD.DELIVERYGOODSID").
-		Where("ISVALID = 1").Find(&wrStandards); err != nil {
+		Where("WRSTANDARD.ISVALID = 1").Find(&wrStandards); err != nil {
 		return nil, err
 	}