yl
2023-01-28 2c1c4c3fe1d25d2476bbbe7702d89b086ddd5b29
VueWebApi/DLL/DAL/AppDeviceManageDAL.cs
@@ -149,7 +149,7 @@
            try
            {
                list.Clear();
                mes = SeachEncode.EncodingSeach("2040");  //生成单号
                mes = SeachEncode.EncodingSeach("1027");  //PC端设备点检记录生成单号
                if (mes.code == "300")
                {
                    return mes;
@@ -204,9 +204,6 @@
                        }
                    }); ;
                }
                //回写字典表,更新当前流水号
                sql = @"update T_CodeRules set value=@cunm2  where rightcode=@RightCode";
                list.Add(new { str = sql, parm = new { cunm2 = numvalue, RightCode = "1027" } });
                bool aa = DapperHelper.DoTransaction(list);
                if (aa)
@@ -366,7 +363,7 @@
            try
            {
                list.Clear();
                mes = SeachEncode.EncodingSeach("2041");  //生成单号
                mes = SeachEncode.EncodingSeach("1028");  //PC端保养记录生成单号
                if (mes.code == "300")
                {
                    return mes;
@@ -422,9 +419,7 @@
                        }
                    }); ;
                }
                //回写字典表,更新当前流水号
                sql = @"update T_CodeRules set value=@cunm2  where rightcode=@RightCode";
                list.Add(new { str = sql, parm = new { cunm2 = numvalue, RightCode = "1028" } });
                bool aa = DapperHelper.DoTransaction(list);
                if (aa)
                {
@@ -526,10 +521,9 @@
            try
            {
                list.Clear();
                mes = SeachEncode.EncodingSeach("2042");  //生成单号
                mes = SeachEncode.EncodingSeach("1019");  //PC端维修申请记录生成单号
                if (mes.code == "300")
                {
                    mes.Message = "生成单号失败,请设置编码为【2042】的编码规则";
                    return mes;
                }
                else
@@ -583,9 +577,6 @@
                        source = faultsourcecode
                    }
                });
                //回写字典表,更新当前流水号
                sql = @"update T_CodeRules set value=@cunm2  where rightcode=@RightCode";
                list.Add(new { str = sql, parm = new { cunm2 = numvalue, RightCode = "2042" } });
                bool aa = DapperHelper.DoTransaction(list);
                if (aa)
@@ -665,10 +656,9 @@
            try
            {
                list.Clear();
                mes = SeachEncode.EncodingSeach("2043");  //生成单号
                mes = SeachEncode.EncodingSeach("1029");  //PC设备维修记录生成单号
                if (mes.code == "300")
                {
                    mes.Message = "生成单号失败,请设置编码为【2043】的编码规则";
                    return mes;
                }
                else
@@ -738,10 +728,6 @@
                //更新维修申请单状态
                sql = @"update TEqp_RepairRequest set status=@status  where docu_code=@docu_code and wksp_code=@wkshpcode  and eqp_code=@eqpcode";
                list.Add(new { str = sql, parm = new { docu_code = docu_code, wkshpcode = wkshpcode, eqpcode = eqpcode, status = "COMP" } });
                //回写字典表,更新当前流水号
                sql = @"update T_CodeRules set value=@cunm2  where rightcode=@RightCode";
                list.Add(new { str = sql, parm = new { cunm2 = numvalue, RightCode = "2043" } });
                bool aa = DapperHelper.DoTransaction(list);
                if (aa)