“djh”
5 days ago 9abc6588d464269024d3e680b98cfd71e2acc84e
multi-system/src/main/resources/mapper/system/TrainPlanMapper.xml
@@ -30,6 +30,36 @@
          <if test="companyId!=null">
              and tp.company_id = #{companyId}
          </if>
        <if test="trainTime != null and trainTime != ''">
            and YEAR(tp.train_time) = #{trainTime}
        </if>
        ORDER BY tp.create_time ASC
    </select>
    <select id="selectByCompanyId" resultType="com.gkhy.exam.system.domain.TrainPlan">
        SELECT
        `id`,
        `company_id`,
        `train_name`,
        `train_time`,
        `dept_id`,
        `train_object`,
        `num`,
        `hour`,
        `money`,
        `modality`,
        `status`,
        `del_flag`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`
        FROM
        `train_plan`
        WHERE
        del_flag = 1
        AND `status` = 0
        <if test="companyId!=null">
            and company_id = #{companyId}
        </if>
    </select>
</mapper>