当前位置: 首页 > 编程日记 > 正文

存储过程处理错误数据

create or replace procedure ERR_REDUCEDATA is
--sx

--定义变量
v_realindiobjid VARCHAR2(100);
v_indiobjid VARCHAR2(32);
v_residuemoney number ;
v_reducemoney number ;
v_approbjid VARCHAR2(32);
-- v_indiecoid VARCHAR2(32);
--v_indiecocode VARCHAR2(32);
v_Apprecoid VARCHAR2(32);
--v_Apprecocode VARCHAR2(32);
v_divid VARCHAR2(32); --单位
v_acctcode VARCHAR2(32); --功能分类
v_sourcetypeid VARCHAR2(32); --来源类型
v_deptid VARCHAR2(32); --处室
v_paymodeid VARCHAR2(32); --支付方式
v_fundkindid VARCHAR2(32); --资金性质
v_projtypeid VARCHAR2(32); --项目类别
v_projid VARCHAR2(32); --项目
v_extendcol20 VARCHAR2(32); --政府经济分类
v_economicprop5 VARCHAR2(1);
v_fundprop5 VARCHAR2(1);
v_sourceprop5 VARCHAR2(1);
v_deptprop5 VARCHAR2(1);
v_divprop5 VARCHAR2(1);
v_acctprop5 VARCHAR2(1);
v_paymodprop5 VARCHAR2(1);
v_projtypeprop5 VARCHAR2(1);
v_projprop5 VARCHAR2(1);
v_extcol205 VARCHAR2(1); -- 政府经济分类是否一致
v_apprvchrtdate Indi_t_ApprBillDetail.apprvchrtdate%type;
v_sql VARCHAR2(8000);
--v_sql1 VARCHAR2(5000);
--v_sql2 VARCHAR2(5000);
v_cout number;
v_ct number ;
v_sumresiduemoney number;
TYPE ref_cursor_type IS REF CURSOR; --定义一个动态游标
indiinfo ref_cursor_type;
-- v_extct number ;
-----------------------------------存储的变量
v_reducetype VARCHAR2(32);
v_planobjid VARCHAR2(32);
v_vchrobjid VARCHAR2(32);

--定义游标
CURSOR emp_cursor IS
select --indiobjid,
--approbjid,
--indiecoid,
--indiecocode,
h.reducemoney,
l.approbjid,
l.economictypeid as Apprecoid,
-- Apprecocode,
l.divid,
l.acctcode, --功能分类
l.sourcetypeid, --来源类型
l.deptid, --处室
l.paymodeid, --支付方式
l.fundkindid, --资金性质
l.projtypeid, --项目类别
l.projid, --项目
l.extendcol20, --政府经济分类
substring(g.ColProp_4,5,1) as economicprop5,
substring(g.ColProp_5,5,1) as fundprop5,
substring(g.SourceProp,5,1) as sourceprop5,
substring(g.DeptProp,5,1) as deptprop5,
substring(g.DivProp,5,1) as divprop5,
substring(g.AcctProp,5,1) as acctprop5,
substring(g.PayModeProp,5,1) as paymodprop5,
substring(g.ProjTypeProp,5,1) as projtypeprop5,
substring(g.ProjProp,5,1) as projprop5,
substring(g.ExtCol20Prop,5,1) as extcol205,
f.billdate apprvchrtdate
from
(select approbjid,sum(reducemoney) reducemoney from temp_t_indireduce group by approbjid ) h
inner join Indi_t_ApprBillDetail l on h.approbjid = l.approbjid
inner join Indi_t_ApprBillmain f on l.billobjid = f.billobjid
inner join Indi_t_ApprBillType g on f.billtype = g.billtypeid ;

BEGIN
---创建一个临时表 ----存入错误数据
-- execute immediate ' create table temp_t_indireduce as (

-- select * from Indi_t_IndiReduce where approbjid in (select approbjid from
-- (select e.reducemoney,a.billobjid,b.indiobjid,a.approbjid,a.economictypeid as Apprecoid, (select acctcode from efm_t_acctitem k where k.acctid=a.economictypeid) as Apprecocode,
-- b.economictypeid as indiecoid ,(select acctcode from efm_t_acctitem k where k.acctid=b.economictypeid) as indiecocode
-- from Indi_t_ApprBillDetail a
-- inner join Indi_t_IndiReduce e on a.approbjid=e.approbjid
-- inner join indi_t_indibilldetail b on e.indiobjid=b.indiobjid

-- where a.economictypeid<>b.economictypeid) tt
-- where substr(Apprecocode,1,3)<>indiecocode)
-- )';

--删除核销表中错误数据 ()

--delete from Indi_t_IndiReduce where approbjid in (select approbjid from
-- (select e.reducemoney,a.billobjid,b.indiobjid,a.approbjid,a.economictypeid as Apprecoid, (select acctcode from efm_t_acctitem k where k.acctid=a.economictypeid) as Apprecocode,
-- b.economictypeid as indiecoid ,(select acctcode from efm_t_acctitem k where k.acctid=b.economictypeid) as indiecocode
-- from Indi_t_ApprBillDetail a --支付信息表 initmoney
-- inner join Indi_t_IndiReduce e on a.approbjid=e.approbjid --指标核销表
-- inner join indi_t_indibilldetail b on e.indiobjid=b.indiobjid --指标信息的表

-- where a.economictypeid<>b.economictypeid) tt
-- where substr(Apprecocode,1,3)<>indiecocode);
--
--commit;

v_cout := 0 ;
--循环开始
LOOP
-- v_sql1 :='select indiobjid,residuemoney ';
-- v_sql2 :='select count(*) ';--符合条件的指标
-- v_sql := 'select indiobjid, residuemoney from (select aa.*, aa.indimoney - nvl(reducemoney, 0) residuemoney, mm.saudittime from indi_t_indibilldetail aa join indi_t_indibillmain mm on aa.billobjid = mm.billobjid left join ( select indiobjid, sum(reducemoney) reducemoney from Indi_t_IndiReduce where approbjid not in ( select approbjid from (select e.reducemoney,a.billobjid,b.indiobjid,a.approbjid,a.economictypeid as Apprecoid, (select acctcode from efm_t_acctitem k where k.acctid=a.economictypeid) as Apprecocode, b.economictypeid as indiecoid ,(select acctcode from efm_t_acctitem k where k.acctid=b.economictypeid) as indiecocode from Indi_t_ApprBillDetail a inner join Indi_t_IndiReduce e on a.approbjid=e.approbjid inner join indi_t_indibilldetail b on e.indiobjid=b.indiobjid where a.economictypeid<>b.economictypeid) tt where substr(Apprecocode,1,3)<>indiecocode) group by indiobjid ) bb on aa.indiobjid = bb.indiobjid where (aa.indimoney - nvl(reducemoney, 0)) > 0 and aa.billtypeobjid in (SELECT billtypeid FROM Indi_t_Indibilltype where typeisuse = ''2'') and mm.auditstate = ''2'') where 1 = 1 ';
v_sql := ' select indiobjid, residuemoney from (select aa.*, aa.indimoney - nvl(aa.adjustmoney, 0) - nvl(aa.planmoney, 0) - nvl(aa.apprnmoney, 0) residuemoney, mm.saudittime from indi_t_indibilldetail aa join indi_t_indibillmain mm on aa.billobjid = mm.billobjid where aa.indimoney - nvl(aa.adjustmoney, 0) - nvl(aa.planmoney, 0) - nvl(aa.apprnmoney, 0) > 0 and aa.billtypeobjid in (SELECT billtypeid FROM Indi_t_Indibilltype where typeisuse = ''2'') and mm.auditstate = ''2'') where 1 = 1';
--v_sql := 'select indiobjid,residuemoney from (select aa.*,aa.indimoney - nvl(reducemoney, 0) residuemoney ,mm.saudittime from indi_t_indibilldetail aa join indi_t_indibillmain mm on aa.billobjid = mm.billobjid left join (select indiobjid,sum(reducemoney) reducemoney from (select (select acctcode from efm_t_acctitem k where k.acctid=a.economictypeid) as Appr2, (select acctcode from efm_t_acctitem k where k.acctid=b.economictypeid) as indi2, b.indiobjid,e.reducemoney from Indi_t_ApprBillDetail a inner join Indi_t_IndiReduce e on a.approbjid=e.approbjid inner join indi_t_indibilldetail b on e.indiobjid=b.indiobjid ) tt where substr(tt.appr2,1,3)= tt.indi2 or tt.appr2 = tt.indi2 group by indiobjid ) bb on aa.indiobjid = bb.indiobjid where (aa.indimoney - nvl(reducemoney,0))>0 and aa.billtypeobjid in(SELECT billtypeid FROM Indi_t_Indibilltype where typeisuse = ''2'' ) and mm.auditstate = ''2'' ) where 1 = 1 ';
--v_sql := 'select * from indi_t_indibilldetail where 1 = 1 ';
IF NOT emp_cursor%ISOPEN THEN
OPEN emp_cursor;
END IF;


FETCH emp_cursor INTO
-- v_indiobjid,
v_reducemoney,
v_approbjid,
-- v_indiecoid,
-- v_indiecocode,
v_Apprecoid ,
-- v_Apprecocode,
v_divid , --单位
v_acctcode , --功能分类
v_sourcetypeid , --来源类型
v_deptid , --处室
v_paymodeid , --支付方式
v_fundkindid , --资金性质
v_projtypeid , --项目类别
v_projid , --项目
v_extendcol20 , --政府经济分类
v_economicprop5 ,
v_fundprop5 ,
v_sourceprop5 ,
v_deptprop5 ,
v_divprop5 ,
v_acctprop5,
v_paymodprop5,
v_projtypeprop5,
v_projprop5,
v_extcol205,
v_apprvchrtdate;
--退出循环的条件
EXIT WHEN emp_cursor%NOTFOUND OR emp_cursor%NOTFOUND IS NULL;

v_cout := v_cout + 1 ;

IF v_economicprop5 = '1' then
v_sql := v_sql || ' and (economictypeid = '''||v_Apprecoid||''' or economictypeid = (select superid from pub_t_economictype where economictypeid = ''' ||v_Apprecoid||'''))';
END IF ;
IF v_fundprop5 = '1' then
v_sql := v_sql || ' and (fundkindid = '''||v_fundkindid||''' or fundkindid = (select superid from Pub_t_FundType where fundkindid = ''' ||v_fundkindid||'''))';
END IF ;
IF v_sourceprop5 = '1' then
v_sql := v_sql || ' and (sourcetypeid = '''||v_sourcetypeid||''' or sourcetypeid = (select superid from Indi_t_SourceType where sourcetypeid = ''' ||v_sourcetypeid||'''))';
END IF ;
IF v_deptprop5 = '1' then
v_sql := v_sql || ' and (deptid = '''||v_deptid ||''' or deptid = (select superid from Sys_t_Dept where deptid = ''' ||v_deptid||'''))';
END IF ;
IF v_divprop5 = '1' then
v_sql := v_sql || ' and (divid = '''||v_divid ||''' or divid = (select superid from Indi_v_Division where divid = ''' ||v_divid||'''))';
END IF ;
IF v_acctprop5 = '1' then
v_sql := v_sql || ' and (acctcode = '''||v_acctcode ||''' or acctcode = (select superid from indi_v_acctitem where acctid = '''||v_acctcode||'''))';
END IF ;
IF v_paymodprop5 = '1' then
v_sql := v_sql || ' and (paymodeid = '''||v_paymodeid||''' or paymodeid = (select superid from Indi_t_PayMode where paymodeid = '''||v_paymodeid||'''))';
END IF ;
IF v_projtypeprop5 = '1' then
v_sql := v_sql || ' and projtype = '''||v_projtypeid||''''; --Indi_t_ProjType
END IF ;
IF v_projprop5 = '1' then
v_sql := v_sql || ' and (projid = '''||v_projid ||''' or projid = (select superid from Indi_t_Project where projid = '''||v_projid||'''))';
END IF ;
IF v_extcol205 = '1' then
v_sql := v_sql || ' and (extendcol20 = '''||v_extendcol20||''' or extendcol20 = (select superid from pub_t_govecotype where govecotypeid = '''||v_extendcol20||'''))';
END IF ;


IF v_apprvchrtdate is not null then
v_sql := v_sql || ' and saudittime <= '''||v_apprvchrtdate||'''';
END IF ;

v_sql := v_sql || ' order by saudittime asc ';
--dbms_output.put_line(v_sql);

-- EXECUTE IMMEDIATE V_SQL INTO v_extct; --v_sql2||

--if true then --v_extct > 0 then --存在数据不判断 indiinfo 报错

--if len(v_realindiobjid) = 32 then

-----///--delete from Indi_t_IndiReduce where approbjid = :v_approbjid;

-- dbms_output.put_line('第'||v_cout||'行数据有一条--'||v_realindiobjid);
--elsif len(v_realindiobjid) > 32 then
-- dbms_output.put_line('第'||v_cout||'行有多条--'||v_realindiobjid);
-- else
-- dbms_output.put_line('第'||v_cout||'行无数据--'||v_realindiobjid);
-- end if ;
--v_sql := 'select * from dual where 1 = 2 ';
open indiinfo for v_sql ; --v_sql1||
v_ct :=0 ;
v_sumresiduemoney := 0 ;
v_realindiobjid := '' ;

loop

fetch indiinfo into v_indiobjid,v_residuemoney;
exit when indiinfo%notfound;
v_ct := v_ct + 1 ;
v_sumresiduemoney := v_sumresiduemoney + v_residuemoney ; -----有多少钱
v_realindiobjid := v_realindiobjid ||v_indiobjid ;

if v_ct = 1 then

--取出公用的数据
select reducetype,planobjid,vchrobjid into v_reducetype,v_planobjid,v_vchrobjid from temp_t_IndiReduce where approbjid = v_approbjid and rownum = 1 ;

--删掉原始数据
delete from temp_t_IndiReduce where approbjid = v_approbjid ;


end if ;

--插入新数据
if v_residuemoney >= v_reducemoney then
insert into Indi_t_IndiReduce(indiobjid,reducetype,planobjid,approbjid,reducemoney,remainmoney,vchrobjid) values ( v_indiobjid,v_reducetype,v_planobjid,v_approbjid,v_reducemoney,0,v_vchrobjid ) ;

commit ; --符合条件了提交
v_ct := -1 ;
exit;
else
insert into Indi_t_IndiReduce(indiobjid,reducetype,planobjid,approbjid,reducemoney,remainmoney,vchrobjid) values ( v_indiobjid,v_reducetype,v_planobjid,v_approbjid,v_residuemoney,0,v_vchrobjid ) ;
v_reducemoney := v_reducemoney - v_residuemoney ;
--剩余要和小的钱

end if ;

-- dbms_output.put_line('第'||v_cout||'行--');
--sql语句
--dbms_output.put_line('第'||v_cout||'行--'||v_indiobjid||'剩余'||v_residuemoney);
end loop;


-- if v_sumresiduemoney < v_reducemoney then
-- dbms_output.put_line(v_ct||'无匹配'||v_cout||v_approbjid);

-- end if ;


if v_ct = 0 then
dbms_output.put_line('第'||v_cout||'条无匹配,approbjid = '||v_approbjid);
elsif v_ct > 0 then
dbms_output.put_line('第'||v_cout||'条核销金额不够,approbjid = '||v_approbjid);
rollback ; --钱不够 回滚

end if ;


close indiinfo;
--commit;

END LOOP;



END;

转载于:https://www.cnblogs.com/sx2zx/p/9264507.html

相关文章:

[置顶] 面向业务开发应用

自从计算机出现后&#xff0c;快速便捷的从太平洋一样的文海中找到水滴大小的资料真正成为了可能&#xff0c;而能够帮助人们实现这一愿望的程序员就像中世纪的航海家一样用神秘的代码程序指引着计算机一步一步实现的需求。而他们所用的被称之为“程序”的序列组合&#xff0c;…

vector方法

借鉴网上资料&#xff0c;整理了vector使用的一些方法&#xff0c;记录下来&#xff0c;方便以后查阅 vector初始化 vector<int>a(10) //只定义长度 vector<int>a(10,1)//长度为10&#xff0c;初始值为1 vector<int>a(b); //用b向量来创建a向量&#xff0c;…

MyEclipse Enterprise Workbench 9.0 破解及注册机 注册码

MyEclipse 9.0的激活机制终于破解了&#xff0c;破解步骤比老版本要复杂一些&#xff0c;但是是绝对可以破解的&#xff0c;这个破解对主程序无任何修改&#xff0c;只替换公钥&#xff0c;如果有牛人会快速从公钥反推私钥&#xff0c;那就什么都不用改了&#xff0c;步骤如下&…

python字典一键多值_python字典中如何一键多值的写入?

python字典中如何一键多值的写入&#xff1f; python字典中一键多值写入的方法&#xff1a; 1、循环写入字典key、value、删除指定的键值对&#xff1a; 原文本‘jp_url.txt’每行元素以逗号分隔:host_key,product_id,product_name,cont_start,cont_end ah2.zhangyue.com,10000…

向实现细节低头

本来想搞明白所有的东西&#xff0c;然后自己集成&#xff0c;避免引入额外的组件&#xff0c;避免复杂的维护成本。 现在想想&#xff0c;相比于投入的巨大精力&#xff0c;其收益过小&#xff0c;还是要有所取舍。转载于:https://www.cnblogs.com/youge-OneSQL/p/9268924.htm…

Session丢值的问题

本来本地调试好好的,一上服务器session就非常容易丢失,表现在,用window.href跳转丢session,用httpmoulde丢session,在frame里面ifarme里面丢session,折磨了一天,才知道是因为应用程序池的原因,一个池里面放了太多网站,导致session丢失(系统还没有上线,光放那也不行), 还有应用程…

换发型app任性扣费?苹果app订阅任性扣费?怎么办?刚成功

2019年9月18日17:09:27 什么黑猫举报没用 先关闭订阅 账户中心自助申请试试&#xff0c;不通过再进行下面这步 https://getsupport.apple.com/?callerhome&PRKEYS 技术支持网址 然后就等电话吧&#xff0c;一般10秒钟就打过来了。 告诉原因&#xff0c;提供收费的订单号&a…

用eclipse阅读编辑android和kernel,uboot的源代码

from: http://hi.baidu.com/designhouse/blog/item/ff3f0df4a33571f37709d736.html 1. 用eclipse阅读编辑android源代码的配置方法有官方文档&#xff0c;非常详细&#xff0c;http://source.android.com/source/using-eclipse.html 阅读android代码用的是Eclipse IDE for Jav…

当一个序列满足对于任意的前 项和都满足不小于_时间序列分析第01讲--平稳序列(基本概念,线性平稳序列)...

第一章 平稳序列1.1平稳序列基本概念无论是从原序列中把趋势项去掉得到的随机波动项&#xff0c;还是用随机差分后得到残差序列&#xff0c;都会存在一种现象&#xff1a;随机项会沿着水平值波动&#xff0c;并且前后之间具有相关性&#xff0c;与独立序列不同。一、定义定义1.…

京医通如何删除临时卡,解绑

1、解绑的话&#xff0c;如果你是正式卡或者社保卡&#xff0c;可以在账户里面&#xff0c;点击卡进去详情页&#xff0c;里面会有一个解绑 2、重点就是临时卡了&#xff0c;挂号的时候很恶心。 目前唯一的解决办法就是&#xff0c;注销账户。 1&#xff09;、解绑所有正式卡 2…

T-SQL查询——详解公用表达式(CTE)

对于Select查询语句来说&#xff0c;通常情况下&#xff0c;为了是T-SQL代码更加简洁和刻度&#xff0c;在一个查询中应用另外的结果集都是通过视图而不是查询进行分解的&#xff0c;但是&#xff0c;视图作为系统对象存储在数据库中&#xff0c;那对于结果集仅仅需要在存储过程…

如何实现显示超过10个字符就显示省略号?

// 要展示的文本(nickName) this.nickName 风一样的女子凤一样的我&#xff0c;有想认识嘛~~ if (this.nickName.length > 10) {this.nickName this.nickName.substring(0, 10) "...";console.log(00, this.nickName)}备注&#xff1a;substring() 方法用于提取…

课程实验代码及动手动脑测试

枚举类型测试代码&#xff1a; public class EnumTest {public static void main(String[] args) {Size s Size.SMALL;Size t Size.LARGE;// s和t引用同一个对象&#xff1f;System.out.println(s t); //// 是原始数据类型吗&#xff1f;System.out.println(s.getClass().is…

python利用自动识别写模块_Python 利用pytesser模块识别图像文字

使用的是python的pytesser模块&#xff0c;原先想做的是图片中文识别&#xff0c;搞了一段时间了&#xff0c;在中文的识别上还是有很多问题&#xff0c;这里做记录分享。 可将图片中的文字转换成文本&#xff08;主要是英文&#xff09;。 1.pytesser安装 使用设备&#xff1a…

C02-程序设计基础提高班(C++)第9周上机任务-类和对象

第9周&#xff1a;阅读教材第8章&#xff08;p231-262&#xff09;&#xff0c;主要内容是类和对象&#xff0c;学会定义类和对象解决问题&#xff0c;完成第9周上机任务&#xff1b;(回到C02-程序设计基础提高班&#xff08;C&#xff09;学习安排)实践任务&#xff1a;【任务…

在不影响配置下,清除netscreen密码

在缺省情况下&#xff0c;设备恢复特征被启用。可通过输入 unset admin device-reset 命令禁用它。同样&#xff0c;如果NetScreen 设备处于 FIPS 模式&#xff0c;恢复特征被自动禁用。1. 在登录提示下&#xff0c;键入设备的序列号。2. 在密码提示下&#xff0c;再次键入序列…

如何删除一个CSDN上自己上传的资源

如何删除一个CSDN上自己上传的资源 第一步&#xff0c;找到你想删除的资源&#xff0c;其URL举例为&#xff1a;http://download.csdn.net/detail/ssergsw/9733040则删除的get请求为&#xff1a;http://download.csdn.net/index.php/user_console/del_my_source/9733040删除成功…

关于计算机中二进制原码,反码,补码的简要解释

原码&#xff0c;补码&#xff0c;反码的概念 正数原码&#xff1a;正数的原码为取绝对值的数转二进制&#xff0c;5的原码为 00000000 00000000 00000000 00000101 负数原码&#xff1a;负数的原码为取绝对值的数转二进制&#xff0c;然后符号位&#xff08;最高位&a…

python是一种面向对象的高级语言_爬了世纪佳缘后发现了一个秘密,世纪佳缘找对象靠谱吗?...

今天在知乎上看到一个关于【世纪佳缘找对象靠谱吗&#xff1f;】的讨论&#xff0c;其中关注的人有 1903&#xff0c;被浏览了 1940753 次&#xff0c;355 个回答中大多数都是不靠谱。用 Python 爬取世纪佳缘的数据是否能证明它的不靠谱&#xff1f;数据抓取 在 PC 端打开世纪佳…

使用邮件规则,将收到的邮件进行分类

随着工作的进行&#xff0c;我们经常会发现邮箱里一大堆各种各样的邮件&#xff0c;而要从中找到指定类型的邮件&#xff0c;只能每次都进行一次搜索。但是&#xff0c;经常这样搜索&#xff0c;先不说效率如何&#xff0c;它肯定会对我们的工作进行一些影响。 在这里&#xff…

多个CALayer的联动

在如何通过手势捕获CALayer基础上做了个示例&#xff0c;两个CALayer的联动&#xff0c;当拖动左侧的Layer的时候&#xff0c;右侧的Layer随动。因为右侧的动画没有关闭&#xff0c;有延迟&#xff0c;产生随动的效果。如果不想延迟&#xff0c;可参考拖动动画的问题及解决。 在…

在不允许新建对象的条件下,将list中指定条件的值去除

package com.liujianwang.learning;import java.util.LinkedList; import java.util.List;public class ListTest {public static void main(String[] args) {/** 在不允许新建对象的条件下&#xff0c;将list中指定条件的值去除。* 例如&#xff1a;移除list中值大于6的元素。…

openlayers map获取全部feature_tf2.0基础-tf.data与tf.feature_column

7.2.1 tf.data使用 tf.data API 可以轻松处理大量数据、不同的数据格式以及复杂的转换。tf.data API 在 TensorFlow 中引入了两个新的抽象类&#xff1a;tf.data.Dataset 表示一系列元素&#xff0c;其中每个元素包含一个或多个 Tensor 对象。&#xff1a;创建来源&#xff08;…

项目活动定义 概述

项目活动定义概述 项目活动定义是确认和描述项目的特定活动,它把项目的组成要素加以细分为可管理的更小部分&#xff0c;以便更好地管理和控制。 确定计划活动需要确定和记载计划完成的工作。活动定义过程识别处于工作分解结构&#xff08;WBS&#xff09;最下层&#xff0c;叫…

如何判断CPU、内存、磁盘的性能瓶颈?

1.如何判断CPU、内存、磁盘的瓶颈&#xff1f; CPU瓶颈 1) 查看CPU利用率。建议CPU指标如下 a) User Time&#xff1a;65%&#xff5e;70% b) System Time&#xff1a;30%&#xff5e;35% c) Idle&#xff1a;0%&#xff5e;5% 如果us,sy高于这个指标可以判断CPU有瓶颈 使用top…

一个苹果手机移动电源也能让他拽得跟二五八万似的

一个苹果手机移动电源也能让他拽得跟二五八万似的~~低调一定是美德&#xff0c;尤其是在见过各种JP人类之后&#xff0c;我真心在心里呐喊&#xff0c;你丫稍微低调一点会死啊&#xff01;&#xff01;&#xff01;是的&#xff0c;这个世界上不可能不存在拽得调子高的人&#…

Confluence 6 配置服务器基础地址

服务器基础地址&#xff08;Server Base URL&#xff09;是用户访问 Confluence 的 URL 地址。这个基础的 URL 地址必须与你在浏览器中访问 Confluence 中的地址。 Confluence 将会在安装的时候自动侦测基础的 URL&#xff0c;但是如果你的站点 URL 修改了&#xff0c;或者你的…

python gui编程框架添加工具栏_python gui编程,我是初学者。用tk,制作下拉菜单的command不分我想打开另一个界面。如和解决,求解!!...

展开全部 from tkinter import * def new_file(): print("Open new file") def open_file(): print("Open existing file") def stub_action(): print("Menu select") def makeCommandMenu(): CmdBtn Menubutton(mBar, textButton Commands, un…

这样在一个sql里完成更新和插入,只用一次数据库连接,效率提高了

代码如下&#xff0c;请给出具体修改代码 public void AddCategory(string nCategoryName, int nImgId, int nBelongToId, int nShopId, int nSortId) { int CategoryId 0; string cmdText "Select top 1 CategoryId from ProductCategory where Categ…