code/Athena0.0.1/dal/DAL/workflowEx.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Athena.model;
using Athena.Idal;
using SqlSugar;
using Athena.tool.ACEPagination;

//项目名称:Athena标准开发框架
//版本:0.0.1
//开发团队成员:周庆 王露 张婷婷 陈祚松 张梦丽 艾美珍 胡凯雨 陈兰兰 夏萍萍 康文洋 易传佳
//模块及代码页功能描述:对workflow表的数据处理
//最后修改时间:2018-01-25
//修改日志:

namespace Athena.dal
{
    public class workflowEx : RepositoryBase<workflow>, IworkflowEx
    {
        private static workflowEx _instance;
        public static workflowEx Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new workflowEx();
                }
                return _instance;
            }
        }
        /// 张婷婷接口方法添加
        ///最后更新时间:2017/4/10

        /// <summary>
        /// 差异更新
        /// </summary>
        /// <param name="id">跟新数据主码</param>
        /// <param name="dictionary">需要更新的数据</param>
        /// <returns>返回更新结果(true/false)</returns>
        public bool update(int id, Dictionary<string, object> dictionary)
        {
            try
            {
                db.Update<workflow>(dictionary, p => p.id == id);
                return true;
            }
            catch (Exception)
            {
                return false;
            }


        }
        /// <summary>
        /// 通过id获取工作流对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
后面还有 106 行代码,解锁后查看完整代码

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

AI 解读

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

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