Ejemplo n.º 1
0
        /// <summary>
        /// 商品列表
        /// </summary>
        /// <returns></returns>
        public List <TT_Transaction> Transaction()
        {
            var mql = TT_TransactionSet.SelectAll().Where(TT_TransactionSet.ShopId.Equal(TT_ShopSet.Select(TT_ShopSet.ShopId).Where(TT_ShopSet.UserId.Equal(userId))));
            List <TT_Transaction> list = OPTranBiz.GetOwnList(mql);

            return(list);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 商品表
        /// </summary>
        /// <returns></returns>
        public ActionResult Transaction()
        {
            var mql = TT_TransactionSet.SelectAll().Where(TT_TransactionSet.ShopId.In(TT_ShopAppUserSet.Select(TT_ShopAppUserSet.ShopId).Where(TT_ShopAppUserSet.UserId.Equal(userId))));
            List <TT_Transaction> list = OPTranBiz.GetOwnList(mql);

            if (list != null)
            {
                return(View(list));
            }
            else
            {
                return(RedirectToAction("Index", "User"));
            }
        }