heheng
14 hours ago a3d63a4a7199d346e63039a8fd6490b12387fa4e
multi-system/src/main/resources/mapper/system/ItemMapper.xml
@@ -23,13 +23,18 @@
            `create_by`,
            `create_time`,
            `update_by`,
            `update_time`
            `update_time`,
            `year`
        FROM
            `item`
        where del_flag = 1
        <if test="companyId!=null">
            and company_id = #{companyId}
        </if>
        <if test="year != null and year != ''">
            and year = #{year}
        </if>
    </select>
    <select id="selectItemListAll" resultType="com.gkhy.exam.system.domain.Item">
        SELECT
@@ -40,7 +45,8 @@
            i.`create_by`,
            i.`create_time`,
            i.`update_by`,
            i.`update_time`
            i.`update_time`,
            i.`year`
        FROM
            `item` i
            LEFT JOIN item_user iu ON i.id = iu.item_id
@@ -52,6 +58,9 @@
            <if test="userId!=null">
                and iu.user_id = #{userId}
            </if>
        <if test="year != null and year != ''">
            and i.year = #{year}
        </if>
        GROUP BY
            i.id