multi-system/src/main/resources/mapper/system/TrainPlanMapper.xml
@@ -32,4 +32,31 @@ </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>