Sysnet.EDP.HSE-Commerce.BLL/point_log.cs

(开头部分) 2KB

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

using System;
using System.Data;
using System.Collections.Generic;

namespace Sysnet.EDP.HSE_Commerce.BLL
{
    /// <summary>
    /// 积分记录日志
    /// </summary>
    public partial class point_log
    {
        private readonly DAL.point_log dal = new DAL.point_log();
        public point_log()
        { }
        #region  Method
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(int id)
        {
            return dal.Exists(id);
        }

        public int Add(int user_id, string user_name, int value, string remark)
        {
            Model.point_log model = new Model.point_log();
            model.user_id = user_id;
            model.user_name = user_name;
            model.value = value;
            model.remark = remark;
            int result = dal.Add(model);
            if (value > 0 && result > 0)
            {
                new BLL.users().Upgrade(user_id);
            }
            return result;
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.point_log GetModel(int id)
        {
            return dal.GetModel(id);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int id)
        {
            return dal.Delete(id);
        }
        public bool Delete(int id, string user_name)
        {
            return dal.Delete(id, user_name);
        }
        
        /// <summary>
        /// 获得前几行数据
后面还有 17 行代码,购买后查看完整代码

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

AI 解读

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

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