| | |
| | | </insert> |
| | | |
| | | <update id="updateCatalogueData"> |
| | | UPDATE `train_exam`.`catalogue_data` |
| | | UPDATE `catalogue_data` |
| | | SET |
| | | <if test="companyId!=null"> |
| | | `company_id` = #{companyId}, |
| | |
| | | `id` = #{id} |
| | | </update> |
| | | <update id="updateCatalogueDataFile"> |
| | | UPDATE `train_exam`.`catalogue_data_file` |
| | | UPDATE `catalogue_data_file` |
| | | set |
| | | <if test="catalogueId!=null"> |
| | | `catalogue_id` = #{catalogueId}, |
| | | </if> |
| | |
| | | `type` = #{type}, |
| | | </if> |
| | | <if test="delFlag != null and delFlag != ''" > |
| | | del_flag = #{item.delFlag}, |
| | | del_flag = #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by = #{updateBy}, |
| | |
| | | SELECT |
| | | id, |
| | | `catalogue_data_id`, |
| | | company_id, |
| | | catalogue_id, |
| | | `name`, |
| | | `file_path`, |
| | | file_name, |
| | | `type`, |
| | | `create_by`, |
| | | `create_time` |
| | | FROM |
| | | catalogue_data_file |
| | | WHERE |
| | | company_id = #{companyId} and catalogue_id = #{catalogueId} |
| | | company_id = #{companyId} and catalogue_id = #{catalogueId} and del_flag =1 |
| | | </select> |
| | | <select id="selectByCompanyId" resultType="com.gkhy.exam.system.domain.CatalogueData"> |
| | | SELECT |