Lius
2024-07-25 9b015b51b72ba050b4c38a6ba79eb45b7065e67d
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcFeedbackMapper.xml
@@ -2,4 +2,13 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.mdc.mapper.MdcFeedbackMapper">
    <select id="getFeedbackList" resultType="org.jeecg.modules.mdc.entity.MdcFeedback">
        SELECT
            t1.*
        FROM
            mdc_feedback t1
                LEFT JOIN mdc_production t2 ON t1.production_id = t2.id
        WHERE
            (t2.id = #{ productionId } OR t2.parent_id = #{ productionId })
    </select>
</mapper>