示例#1
0
        public void AttendWish(WishTarget target)
        {
            var query =
                $"update transactions.wish " +
                $"set ownerid=@ownerid, spotid=@spotid, quantity=@quantity," +
                $" shelfid=@shelfid, status=2 where id=@wishid";
            var parameters = new DynamicParameters();

            parameters.Add("@wishid", target.wishid);
            parameters.Add("@ownerid", target.ownerid);
            parameters.Add("@spotid", target.spotid);
            parameters.Add("@quantity", target.quantity);
            parameters.Add("@shelfid", target.shelfid);

            ExecuteQuery(query, parameters);

            return;
        }
示例#2
0
 public void AttendWish(WishTarget target)
 {
     _wishBusiness.AttendWish(target);
     return;
 }
示例#3
0
 public void AttendWish(WishTarget target)
 {
     _wishRepository.AttendWish(target);
     return;
 }