//添加 public int BrandSpecialityStoreInsert(SWfsBrandSpecialityStore obj) { //判断是否存在重复 int count = DapperUtil.Query <int>("ComBeziWfs_SWfsBrandSpecialityStore_IsExistBrandNo", new { BrandNo = obj.BrandNo }).FirstOrDefault(); if (count == 0) { return(DapperUtil.Insert <SWfsBrandSpecialityStore>(obj, true)); } return(1); }
public bool BrandSpecialityStoreUpdate(SWfsBrandSpecialityStore obj) { return(DapperUtil.Update <SWfsBrandSpecialityStore>(obj)); }