/** * 根据查询参数来设置查询的sql条件语句 * * @param parameter QueryParameter 查询参数 */ @Override public void setQuerySql(QueryParameter parameter) { // TODO Auto-generated method stub super.businessDataCondition = new StringBuffer(""); super.joinDataCondition = new StringBuffer(""); super.putQueryCondition(parameter); // 工单状态查询条件 parameter.setAlias("wt"); parameter.setColumnName("task_state"); parameter.setValue(WorkOrder.WORKORDER_CANCELED_STATE); super.businessDataCondition.append( ConditionGenerateUtils.getConditionEqualByAndLogicOperator(parameter)); // 当前用户查询条件 UserInfo user = parameter.getUser(); super.businessDataCondition.append(super.getSelfCreatedCondition(user)); }