zhanghua
2022-10-10 afbc1b29cd2ce92484f1be1e533ee075dbe08ff2
ycl-platform/src/main/resources/mapper/caseHandler/WorkflowConfigStepMapper.xml
@@ -17,7 +17,7 @@
    </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" />
@@ -33,12 +33,11 @@
    <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>