Browse Source

在项目节点耗时补全数据时,project_staff与project_process的弱关联时间误差改小到五秒以内并加上orgId、gridId、departmentId的匹配。注:因为project_staff表关联到project_process是流转给当前staff的节点,这个staff处理之后生成的节点没有关联上所以只能弱关联。

master
wangchao 5 years ago
parent
commit
4d66292a4b
  1. 5
      epmet-module/gov-project/gov-project-server/src/main/resources/mapper/ProjectStaffDao.xml

5
epmet-module/gov-project/gov-project-server/src/main/resources/mapper/ProjectStaffDao.xml

@ -167,8 +167,11 @@
LEFT JOIN PROJECT_PROCESS process ON staff.PROCESS_ID = process.ID AND process.DEL_FLAG = '0'
LEFT JOIN PROJECT_PROCESS selfAction ON staff.PROJECT_ID = selfAction.PROJECT_ID AND selfAction.DEL_FLAG = '0'
AND selfAction.OPERATION <![CDATA[ <> ]]> 'created'
AND ABS(TIMESTAMPDIFF(SECOND,staff.UPDATED_TIME,selfAction.CREATED_TIME)) <![CDATA[ <= ]]> 30
AND ABS(TIMESTAMPDIFF(SECOND,staff.UPDATED_TIME,selfAction.CREATED_TIME)) <![CDATA[ <= ]]> 5
AND staff.STAFF_ID = selfAction.STAFF_ID
AND staff.GRID_ID = selfAction.GRID_ID
AND staff.DEPARTMENT_ID = selfAction.DEPARTMENT_ID
AND staff.ORG_ID = selfAction.AGENCY_ID
WHERE staff.DEL_FLAG = '0'
AND project.CUSTOMER_ID = #{customerId}
AND process.OPERATION <![CDATA[ <> ]]> 'response'

Loading…
Cancel
Save