|
@@ -1012,12 +1012,12 @@ export default {
|
|
|
if (!isOpen) {
|
|
if (!isOpen) {
|
|
|
return null
|
|
return null
|
|
|
}
|
|
}
|
|
|
- const sql = `select proc_inst_id_, businesskey_ from ibps_bpm_bus_rel where def_id_ = '${defId}' and start_id_ = '${userId}' order by create_date_ desc limit 1`
|
|
|
|
|
|
|
+ const sql = `select id_, biz_key_ from ibps_bpm_inst where proc_def_id_ = '${defId}' and create_by_ = '${userId}' and status_ = 'draft' order by create_time_ desc limit 1`
|
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
|
this.$common.request('sql', sql).then(res => {
|
|
this.$common.request('sql', sql).then(res => {
|
|
|
const { data = [] } = res.variables || {}
|
|
const { data = [] } = res.variables || {}
|
|
|
if (data.length) {
|
|
if (data.length) {
|
|
|
- resolve(data[0].proc_inst_id_)
|
|
|
|
|
|
|
+ resolve(data[0].id_)
|
|
|
} else {
|
|
} else {
|
|
|
resolve(null)
|
|
resolve(null)
|
|
|
}
|
|
}
|