Browse Source

feat:更改工单id

dev
zhaobing’ 1 year ago
parent
commit
8515504d92
  1. 5
      api/app/lib/controllers/form/index.js

5
api/app/lib/controllers/form/index.js

@ -13,6 +13,7 @@ async function getUnfinished (ctx) {
const AfterAssignUser='fsAfterAssignUser'+userInfo.pepUserId const AfterAssignUser='fsAfterAssignUser'+userInfo.pepUserId
// and pro.business_key_ in ('831') // and pro.business_key_ in ('831')
// and pro.business_key_ in ('840','834','831') 测试环境的对应的business_key_(运维中台技术申请工单),(运维中台售后问题处理工单),(运维中台工单) // and pro.business_key_ in ('840','834','831') 测试环境的对应的business_key_(运维中台技术申请工单),(运维中台售后问题处理工单),(运维中台工单)
// and pro.business_key_ in ('865','903') 商用工单的id
try{ try{
let all=await clickHouse.camWorkflow.query(` let all=await clickHouse.camWorkflow.query(`
@ -23,7 +24,7 @@ async function getUnfinished (ctx) {
WHERE RES.end_time_ is null WHERE RES.end_time_ is null
and RES.assignee_ = '${assignee}' and RES.assignee_ = '${assignee}'
and pro.proc_inst_id_=RES.proc_inst_id_ and pro.proc_inst_id_=RES.proc_inst_id_
and pro.business_key_ in ('840','834','831') and pro.business_key_ in ('865','903')
) RES ) RES
union all union all
select * from ( select * from (
@ -33,7 +34,7 @@ async function getUnfinished (ctx) {
and VAR.name_ in ('${AfterAssignUser}', '${BeforeAssignUser}') and VAR.name_ in ('${AfterAssignUser}', '${BeforeAssignUser}')
and VAR.task_id_ = RES.id_ and VAR.task_id_ = RES.id_
and pro.proc_inst_id_=RES.proc_inst_id_ and pro.proc_inst_id_=RES.proc_inst_id_
and pro.business_key_ in ('840','834','831') and pro.business_key_ in ('865','903')
and (( VAR.var_type_ is not null and VAR.var_type_ = 'string' and VAR.text_ is not null and VAR.text_ = 'pending' )) and (( VAR.var_type_ is not null and VAR.var_type_ = 'string' and VAR.text_ is not null and VAR.text_ = 'pending' ))
) RES ) as res,act_hi_varinst t ) RES ) as res,act_hi_varinst t

Loading…
Cancel
Save