C# 클래스 WareDealer.Helper.DBHelper

파일 보기 프로젝트 열기: hanksoft/KillJD 1 사용 예제들

공개 메소드들

메소드 설명
GetInstance ( ) : DBHelper
GetMinPrices ( ) : void
GetSysParams ( ) : List
GetWareArea ( int pid, int level ) : List

获取商品配送区域

GetWareArea ( string aid ) : string

根据编号获取商品区域

GetWareJDTypes ( string wherestr ) : List

获取京东商品分类数据

UpdateHistoryPriceBasebyID ( string pid ) : void

更新商品底价

UpdateSysParam ( string pKey, string pValue ) : void

更新系统参数值

UpdateSysParams ( List myParams ) : void

更新系统参数集合

WareClear ( ) : void

清空商品库

WareDelOne ( string pid ) : void

逻辑删除/启用商品

WareGetAll ( ) : List

获取所有商品信息

WareGetAll ( string typeid ) : List

获取某个类别商品数据

WareGetAll ( string typeid, string wName, string wStock, string wPriceTrend, string wAttach ) : List

获取某个类别商品数据

WareGetOne ( string pid ) : ProductInfo

获取某个商品信息

WareImageUpdate ( string pid, string imgPath, string imgWebPath ) : void

更新商品海报数据

WareInsert ( ProductInfo _myProduct ) : void

新增商品信息

WareIsExists ( string pid ) : bool

判断商品是否已存在

WareJDTypeAdd ( List _types ) : void

添加京东商品类别

WareJDTypeClear ( ) : void

清空京东商品类别数据

WareLastPriceGet ( string pid ) : double

获取某个商品当前日期前的最后价格

WareMessageAdd ( ProductMessage msg ) : void

添加评价信息

WareMessageGet ( string pid ) : List

获取评价信息

WareMessageUpdate ( string pid, int count, double good, double general, double poor, string tag ) : void

更新评价统计信息

WareMessagesAdd ( List msgs ) : void

添加商品评价信息

WarePriceDel ( System.Int64 id ) : void

删除商品价格

WarePriceHistoryGet ( string pid ) : List

获取商品历史价格

WarePriceHistoryGetMore ( string pid ) : List

获取商品历史价格 只取部分,重复的价格将抛弃部分点

WarePriceHistoryGetOne ( string pid, System.DateTime dt1, System.DateTime dt2, double price ) : ProductPriceHistory

判断某个商品当天是否有相同价格存在

WarePriceHistoryGetOne ( string pid, System.DateTime dt, double price ) : bool

判断某个商品当天是否有相同价格存在

WarePriceInsert ( ProductPriceHistory price ) : void

插入商品价格

WarePriceInsert ( string pid, double price ) : void

插入商品价格

WarePriceInsert ( string pid, double price, System.DateTime dt, string origin ) : void

插入商品价格

WarePriceTrend ( string pid, double price ) : string

获取商品价格趋势

WarePriceUpdate ( string pid, double price ) : void

更新商品价格

WarePriceUpdate ( string pid, double price, WarePriceType priceSrc ) : void
WarePromotionUpdate ( string pid, string tag, string promo, string copon ) : void
WareReloadOne ( string pid ) : void

逻辑删除/启用商品

WareRemoveOne ( string pid ) : void

删除单个商品

WareRepositoryUpdate ( string pid, double baseprice, double price1, double price2, double price3, double price4, string priceSrc ) : void

更新商品所有价格

WareRepositoryUpdate ( string pid, double price1, double price2, double price3, double price4, string priceSrc, int stock ) : void

更新商品价格及库存

WareRepositoryUpdate ( string pid, string dispatch ) : void
WareShopUpdate ( string pid, string vid, string sid, string cat ) : void

更新商品归属

WareTypeDelete ( string tid ) : void

删除商品类型

WareTypeGet ( ) : List
WareTypeInsert ( ProductType wType ) : void

增加商品类型

WareTypeUpdate ( ProductType wType ) : void

更新产品类型

WareTypeUpdate ( string pid, string typeid ) : void

更新产品属性类型

WareUpdate ( ProductInfo _myProduct ) : void

更新商品信息

비공개 메소드들

메소드 설명
DBHelper ( ) : Hank.ComLib
GetDb ( ) : OtDB

建立数据库连接

InsertSysParam ( string pKey, string PValue ) : void

添加系统参数

WareMessageClear ( string pid ) : void

清除商品评价信息

메소드 상세

GetInstance() 공개 정적인 메소드

public static GetInstance ( ) : DBHelper
리턴 DBHelper

GetMinPrices() 공개 메소드

public GetMinPrices ( ) : void
리턴 void

GetSysParams() 공개 메소드

public GetSysParams ( ) : List
리턴 List

GetWareArea() 공개 메소드

获取商品配送区域
public GetWareArea ( int pid, int level ) : List
pid int 上级编号
level int 等级
리턴 List

GetWareArea() 공개 메소드

根据编号获取商品区域
public GetWareArea ( string aid ) : string
aid string
리턴 string

GetWareJDTypes() 공개 메소드

获取京东商品分类数据
public GetWareJDTypes ( string wherestr ) : List
wherestr string
리턴 List

UpdateHistoryPriceBasebyID() 공개 메소드

更新商品底价
public UpdateHistoryPriceBasebyID ( string pid ) : void
pid string 商品编号
리턴 void

UpdateSysParam() 공개 메소드

更新系统参数值
public UpdateSysParam ( string pKey, string pValue ) : void
pKey string
pValue string
리턴 void

UpdateSysParams() 공개 메소드

更新系统参数集合
public UpdateSysParams ( List myParams ) : void
myParams List
리턴 void

WareClear() 공개 메소드

清空商品库
public WareClear ( ) : void
리턴 void

WareDelOne() 공개 메소드

逻辑删除/启用商品
public WareDelOne ( string pid ) : void
pid string
리턴 void

WareGetAll() 공개 메소드

获取所有商品信息
public WareGetAll ( ) : List
리턴 List

WareGetAll() 공개 메소드

获取某个类别商品数据
public WareGetAll ( string typeid ) : List
typeid string
리턴 List

WareGetAll() 공개 메소드

获取某个类别商品数据
public WareGetAll ( string typeid, string wName, string wStock, string wPriceTrend, string wAttach ) : List
typeid string
wName string
wStock string
wPriceTrend string
wAttach string
리턴 List

WareGetOne() 공개 메소드

获取某个商品信息
public WareGetOne ( string pid ) : ProductInfo
pid string 商品编号
리턴 WareDealer.Mode.ProductInfo

WareImageUpdate() 공개 메소드

更新商品海报数据
public WareImageUpdate ( string pid, string imgPath, string imgWebPath ) : void
pid string
imgPath string
imgWebPath string
리턴 void

WareInsert() 공개 메소드

新增商品信息
public WareInsert ( ProductInfo _myProduct ) : void
_myProduct WareDealer.Mode.ProductInfo
리턴 void

WareIsExists() 공개 메소드

判断商品是否已存在
public WareIsExists ( string pid ) : bool
pid string
리턴 bool

WareJDTypeAdd() 공개 메소드

添加京东商品类别
public WareJDTypeAdd ( List _types ) : void
_types List
리턴 void

WareJDTypeClear() 공개 메소드

清空京东商品类别数据
public WareJDTypeClear ( ) : void
리턴 void

WareLastPriceGet() 공개 메소드

获取某个商品当前日期前的最后价格
public WareLastPriceGet ( string pid ) : double
pid string
리턴 double

WareMessageAdd() 공개 메소드

添加评价信息
public WareMessageAdd ( ProductMessage msg ) : void
msg WareDealer.Mode.ProductMessage
리턴 void

WareMessageGet() 공개 메소드

获取评价信息
public WareMessageGet ( string pid ) : List
pid string
리턴 List

WareMessageUpdate() 공개 메소드

更新评价统计信息
public WareMessageUpdate ( string pid, int count, double good, double general, double poor, string tag ) : void
pid string 商品编号
count int 评价总数
good double 好评
general double 中评
poor double 差评
tag string 印象
리턴 void

WareMessagesAdd() 공개 메소드

添加商品评价信息
public WareMessagesAdd ( List msgs ) : void
msgs List
리턴 void

WarePriceDel() 공개 메소드

删除商品价格
public WarePriceDel ( System.Int64 id ) : void
id System.Int64 商品序号
리턴 void

WarePriceHistoryGet() 공개 메소드

获取商品历史价格
public WarePriceHistoryGet ( string pid ) : List
pid string 商品编号
리턴 List

WarePriceHistoryGetMore() 공개 메소드

获取商品历史价格 只取部分,重复的价格将抛弃部分点
public WarePriceHistoryGetMore ( string pid ) : List
pid string
리턴 List

WarePriceHistoryGetOne() 공개 메소드

判断某个商品当天是否有相同价格存在
public WarePriceHistoryGetOne ( string pid, System.DateTime dt1, System.DateTime dt2, double price ) : ProductPriceHistory
pid string 商品编号
dt1 System.DateTime 开始日期
dt2 System.DateTime 结束日期
price double 价格
리턴 WareDealer.Mode.ProductPriceHistory

WarePriceHistoryGetOne() 공개 메소드

判断某个商品当天是否有相同价格存在
public WarePriceHistoryGetOne ( string pid, System.DateTime dt, double price ) : bool
pid string 商品编号
dt System.DateTime 日期
price double 价格
리턴 bool

WarePriceInsert() 공개 메소드

插入商品价格
public WarePriceInsert ( ProductPriceHistory price ) : void
price WareDealer.Mode.ProductPriceHistory 历史价格对象
리턴 void

WarePriceInsert() 공개 메소드

插入商品价格
public WarePriceInsert ( string pid, double price ) : void
pid string 商品编号
price double 商品价格
리턴 void

WarePriceInsert() 공개 메소드

插入商品价格
public WarePriceInsert ( string pid, double price, System.DateTime dt, string origin ) : void
pid string 商品编号
price double 商品价格
dt System.DateTime 入库时间
origin string 数据来源 如京东、手机、超市
리턴 void

WarePriceTrend() 공개 메소드

获取商品价格趋势
public WarePriceTrend ( string pid, double price ) : string
pid string 商品编号
price double 商品对比价格
리턴 string

WarePriceUpdate() 공개 메소드

更新商品价格
public WarePriceUpdate ( string pid, double price ) : void
pid string 商品编号
price double 网页价格
리턴 void

WarePriceUpdate() 공개 메소드

public WarePriceUpdate ( string pid, double price, WarePriceType priceSrc ) : void
pid string
price double
priceSrc WarePriceType
리턴 void

WarePromotionUpdate() 공개 메소드

public WarePromotionUpdate ( string pid, string tag, string promo, string copon ) : void
pid string
tag string
promo string
copon string
리턴 void

WareReloadOne() 공개 메소드

逻辑删除/启用商品
public WareReloadOne ( string pid ) : void
pid string
리턴 void

WareRemoveOne() 공개 메소드

删除单个商品
public WareRemoveOne ( string pid ) : void
pid string
리턴 void

WareRepositoryUpdate() 공개 메소드

更新商品所有价格
public WareRepositoryUpdate ( string pid, double baseprice, double price1, double price2, double price3, double price4, string priceSrc ) : void
pid string
baseprice double
price1 double
price2 double
price3 double
price4 double
priceSrc string
리턴 void

WareRepositoryUpdate() 공개 메소드

更新商品价格及库存
public WareRepositoryUpdate ( string pid, double price1, double price2, double price3, double price4, string priceSrc, int stock ) : void
pid string 商品编号
price1 double 网页价格
price2 double 手机价格
price3 double QQ价格
price4 double 微信价格
priceSrc string 价格来源
stock int 库存
리턴 void

WareRepositoryUpdate() 공개 메소드

public WareRepositoryUpdate ( string pid, string dispatch ) : void
pid string
dispatch string
리턴 void

WareShopUpdate() 공개 메소드

更新商品归属
public WareShopUpdate ( string pid, string vid, string sid, string cat ) : void
pid string 编号
vid string 商店编号
sid string 厂商编号
cat string 配送区域
리턴 void

WareTypeDelete() 공개 메소드

删除商品类型
public WareTypeDelete ( string tid ) : void
tid string
리턴 void

WareTypeGet() 공개 메소드

public WareTypeGet ( ) : List
리턴 List

WareTypeInsert() 공개 메소드

增加商品类型
public WareTypeInsert ( ProductType wType ) : void
wType WareDealer.Mode.ProductType
리턴 void

WareTypeUpdate() 공개 메소드

更新产品类型
public WareTypeUpdate ( ProductType wType ) : void
wType WareDealer.Mode.ProductType
리턴 void

WareTypeUpdate() 공개 메소드

更新产品属性类型
public WareTypeUpdate ( string pid, string typeid ) : void
pid string
typeid string
리턴 void

WareUpdate() 공개 메소드

更新商品信息
public WareUpdate ( ProductInfo _myProduct ) : void
_myProduct WareDealer.Mode.ProductInfo
리턴 void