| | |
| | | </sql> |
| | | <resultMap type="com.ycl.entity.caseHandler.WorkflowConfigStep" id="RecordResultMap" extends="BaseResultMap"> |
| | | <collection property="disposeRecords" javaType="ArrayList" ofType="com.ycl.entity.caseHandler.DisposeRecord"> |
| | | <id column="id" property="id" /> |
| | | <id column="record_id" property="id" /> |
| | | <result column="base_case_id" property="baseCaseId" /> |
| | | <result column="workflow_config_step_id" property="workflowConfigStepId" /> |
| | | <result column="step_name" property="stepName" /> |
| | |
| | | |
| | | <select id="selectRecordByWorkflowConfigStepId" parameterType="map" resultMap="RecordResultMap"> |
| | | SELECT |
| | | * |
| | | uwcs.*,udr.*,udr.id record_id |
| | | FROM |
| | | ums_workflow_config_step uwcs |
| | | LEFT JOIN ums_dispose_record udr ON uwcs.id = udr.workflow_config_step_id |
| | | LEFT JOIN ums_dispose_record udr ON uwcs.id = udr.workflow_config_step_id AND udr.base_case_id = #{baseCaseId} |
| | | WHERE |
| | | uwcs.workflow_config_id = #{workflowConfigId} |
| | | AND udr.base_case_id = #{baseCaseId} |
| | | </select> |
| | | </mapper> |