SourceCode/RFrameGenerate.BLL/ApplyWeiXinHaiRecordManage.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using RFrameGenerate.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RFramework.SQLQuery;
using RFramework.SQLServer;
// 下载于www.51aspx.com
namespace RFrameGenerate.BLL
{
    public class ApplyWeiXinHaiRecordManage
    {
        public static Result ApplyMer(string userid, string password, string store, int type, int year)
        {
            if (string.IsNullOrEmpty(userid) == true)
                return new Result(false, "userid为空");
            if (string.IsNullOrEmpty(password) == true)
                return new Result(false, "password");
            if (string.IsNullOrEmpty(store) == true)
                return new Result(false, "store");
            if (year <= 0)
                return new Result(false, "year出错");

            if (type != DictionaryConst.Versionb.Syb && type != DictionaryConst.Versionb.Flagship)
                return new Result(false, "type值不正确[1.创业版,2.旗舰版]");

            if (type == DictionaryConst.Versionb.Flagship)
                return new Result(false, "旗舰版还未开放");

            using (var tran = new SqlRTransaction())
            {
                var query = Factory.CreateT_BAS_ApplyWeiXinHaiRecords(tran);
                var queryMer = Factory.CreateT_BAS_Merchants(tran);

                if (queryMer.IsExist(a => a.UserID == userid, false, false) != true)//商家
                {
                    if (query.IsExist(a => a.UserID == userid && a.ApplyState == DictionaryConst.AgentApplyState.Audit, false, false) != true)//未审核
                    {
                        query.Add(new T_BAS_ApplyWeiXinHaiRecords()
                        {
                            AgentGuid = Guid.Parse(RFrameGenerate.BLL.SystemParameters.ParameterConst.WeiXinHaiAgentGuid),
                            UserID = userid,
                            ApplyWeiXinHaiRecordsGuid = Guid.NewGuid(),
                            OpenType = type,
                            Password = RFrameGenerate.Common.Utils.Md5(password),
                            StoreTitle = store,
                            Year = year,
                            ApplyState = DictionaryConst.AgentApplyState.Audit,
                            ApplyDate = DateTime.Now
                        });
                        return new Result(true);
                    }
                }
                return new Result(false, userid + "已存在");
            }
        }

        public static List<T_BAS_ApplyWeiXinHaiRecords> GetPageList(GridModel gridModel, string userid)
        {
            using (var query = Factory.CreateT_BAS_ApplyWeiXinHaiRecords())
后面还有 73 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。