1. 实施常用

1.1. 常用SQL命令

序号 说明 命令
1 删除一个业务及相关记录 mps_delete_order cmpid,userid,bizid,ordid,reason
2 删除业务创建的数据表(危险操作) droptable bizid
3 使用SQL生成支撑业务相关的存储过程 mps_gen_biz_base_proc cmpid , bizid
4 删除自动生成的存储过程(通常用于存储过程找不到) drop_autogenedproc bizid
5 通过数据源生成新业务 sys_gen_newbizbysrc cmpid,bizid
6 生成节点与节点间连线上数据操作存储过程 sys_gen_joblink_updatedata_all cmpid,bizid
7 生成存储过程 mps_sys_gen_userfunc @cmpid,@tmpid,@parsesql (tmpid: select * from mps_template where tmp_type = 'biz' and tmp_objid = bizid)
8 删除业务单及相关存储过程(危险操作) mps_del_1biztype cmpid,bizid
9 根据字典表得到对order_xx的【表单】字段操作语句 mps_get_querycode_by_biz bizid,[0=不查明细,n=order_bizid_n],[0=系统字段,1=表单字段,2=0+1],【0=select语句,1=insert语句】
10 得到生成所有业务存储过程的SQL代码 declare @sql varchar(max) = '' select @sql+='exec mps_gen_biz_base_proc 1,'+convert(varchar,biz_id)+CHAR(10) +'go'+CHAR(10) from mps_biztype print @sql
11 重新提交某个步骤 --设置ordfinished=1
select ord_id,ord_finished,* from order
{bizid}
--jb_wsid =0 ,jb_wsstatus ='',jb_comfirm =1
select from mps_job where jb_ordid= {ordid} and jb_crmid = {bizid}
-- 删除这个表的记录这个人的记录
select
from mps_biztype_users where bp_bizid = {bizid} and bp_type='biznew' and bp_cuid = {cuid}
12 用于测试删除测试数据 exec mps_delete_order_data @cmpid,bizcategory,@subbizcategory,@bizid,@excludebizid,@topn,@cuid,@reason

1.2. 错误与调试

1.2.1. 前端调用报错

  1. 登陆
http://域名?debug=0
  1. 再次执行调用

  2. 查看调用代码

    http://域名/debug/sql/invokedetail
    1. 拷贝到数据库,调试执行返回结果

1.2.2. 后端调用报错

1.2.3. 查看SQL高频调用前n

http://域名/debug/sql/accessinfo?top=n

1.2.4. 重置连接

http://url/api/resetDBConnection

1.2.5. 获取request信息

http://url/debug/getRequestInfo

results matching ""

    No results matching ""