String initorName = StringUtil.getString(filter.get("initorName"));
if (StringUtil.isNotEmpty(initorName)) {
initorName = initorName.replace("'", "");
ProcessEngine processEngine = ProcessEngineManagement
.getDefaultProcessEngine();
AllUserInfo userInfoConfig = processEngine
.getProcessEngineConfiguration().getUserDefinition()
.getUserInfoConfig();
leftJoinStr += " LEFT JOIN (" + userInfoConfig.getSqlText()
+ ") UT on UT." + userInfoConfig.getUserIdField()
+ " = P.INITIATOR ";
whereSql += " and (UT." + userInfoConfig.getUserNameField()
+ " LIKE '%" + initorName + "%' or UT."
+ userInfoConfig.getUserIdField() + " = '"
+ initorName + "')";
}
String bizKey = StringUtil.getString(filter.get("bizKey"));