| | |
| | | <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> |