Пример #1
0
        /// <summary>
        /// 会员积分明细查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button8_Click(object sender, EventArgs e)
        {
            dt_Dyn_GetPointDetail_req req = new dt_Dyn_GetPointDetail_req();

            req.LOYALTY_BRAND = AppConfig.LOYALTY_BRAND; //忠诚度品牌
            req.SOURCE_SYSTEM = AppConfig.SOURCE_SYSTEM; //来源系统
            req.VGROUP        = AppConfig.VGROUP;        //销售组织

            req.DATA_SOURCE = AppConfig.DATA_SOURCE;

            //得到一个月之内的历史记录
            req.ZSTART_DATE = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd");
            req.ZEND_DATE   = DateTime.Now.ToString("yyyy-MM-dd");
            //req.POINT_TYPE = "ZHMJF01";
            req.ACCOUNT_ID = "18952435467";

            ZCRMT402_Dyn[] lists = WebHmjApiHelp.GetPointDetail(req, true).ZCRMT402;
        }
Пример #2
0
        /// <summary>
        /// 得到积分详情
        /// </summary>
        /// <param name="arg"></param>
        /// <returns></returns>
        private dynamic GetPointDetail(dynamic arg)
        {
            try
            {
                //得到请求参数
                string OPENOD = base.GetValue <string>("OPENID");

                string mobile = _hmjMember.GetMemberMobileByOpenId(OPENOD);

                if (string.IsNullOrEmpty(mobile))
                {
                    return(ResponseJson(false, "对不起没有该会员"));
                }

                dt_Dyn_GetPointDetail_req req = new dt_Dyn_GetPointDetail_req();
                req.LOYALTY_BRAND = AppConfig.LOYALTY_BRAND; //忠诚度品牌
                req.SOURCE_SYSTEM = AppConfig.SOURCE_SYSTEM; //来源系统
                req.VGROUP        = AppConfig.VGROUP;        //销售组织

                req.DATA_SOURCE = AppConfig.DATA_SOURCE;

                //得到一个年之内的历史记录
                req.ZSTART_DATE = DateTime.Now.AddYears(-1).ToString("yyyy-MM-dd");
                req.ZEND_DATE   = DateTime.Now.ToString("yyyy-MM-dd");
                //req.POINT_TYPE = "ZHMJF01";
                req.ACCOUNT_ID = mobile;

                ZCRMT402_Dyn[] lists = WebHmjApiHelp.GetPointDetail(req).ZCRMT402;

                List <PointDetailResDTO> list = new List <PointDetailResDTO>();

                foreach (ZCRMT402_Dyn model in lists)
                {
                    list.Add(model.MapTo <PointDetailResDTO>());
                }

                return(ResponseJson(true, "成功", list));
            }
            catch (Exception ex)
            {
                WriteLog("得到品牌积分", ex);
                return(ResponseJsonError(false, error_message, ex));
            }
        }