Fancy
2024-08-27 5e75ef24e5dd45ae934dc7f03f6c7736ca73c9ff
pms-parent/pms-global/src/main/resources/mapper/PrOrderMapper.xml
@@ -21,6 +21,9 @@
    <resultMap id="BaseResultMap2" type="com.dy.pmsGlobal.pojoPr.PrOrder" extends="BaseResultMap">
        <collection property="items" ofType="com.dy.pmsGlobal.pojoPr.PrOrderItem" fetchType="eager" select="com.dy.pmsGlobal.daoPr.PrOrderItemMapper.selectItems" column="id" />
    </resultMap>
    <resultMap id="BaseResultMap3" type="com.dy.pmsGlobal.pojoPr.PrOrder" extends="BaseResultMap">
        <collection property="items" ofType="com.dy.pmsGlobal.pojoPr.PrOrderItem" fetchType="eager" select="com.dy.pmsGlobal.daoPr.PrOrderItemMapper.selectDistinctPro" column="id" />
    </resultMap>
    <sql id="Base_Column_List">
        id,`name`,customer_name,project_name,
        director,d_mobile,delivery_date,
@@ -107,7 +110,8 @@
            </if>
        </trim>
    </select>
    <select id="selectAll" resultMap="BaseResultMap2">
    <!--下拉菜单 实现订单 产品联动效果-->
    <select id="selectAll" resultMap="BaseResultMap3">
        select
        <include refid="Base_Column_List" />
        from pr_order p