| | |
| | | |
| | | <update id="updateCatalogueData"> |
| | | UPDATE `catalogue_data` |
| | | SET |
| | | <set> |
| | | <if test="companyId!=null"> |
| | | `company_id` = #{companyId}, |
| | | </if> |
| | |
| | | <if test="content!=null and content!=''"> |
| | | `content` = #{content}, |
| | | </if> |
| | | <if test="analysic!=null and analysic!=''"> |
| | | <if test="analysis!=null and analysis!=''"> |
| | | `analysis` = #{analysis}, |
| | | </if> |
| | | <if test="delFlag!=null and delFlag!=''"> |
| | | `del_flag` = #{delFlag}, |
| | | </if> |
| | | <if test="updateBy!=null and update!=''"> |
| | | <if test="updateBy!=null and updateBy!=''"> |
| | | `update_by` = #{updateBy}, |
| | | </if> |
| | | <if test="updateTime!=null"> |
| | | `update_time` = #{updateTime} |
| | | </if> |
| | | </set> |
| | | WHERE |
| | | `id` = #{id} |
| | | </update> |
| | | <update id="updateCatalogueDataFile"> |
| | | UPDATE `catalogue_data_file` |
| | | set |
| | | <set> |
| | | <if test="catalogueId!=null"> |
| | | `catalogue_id` = #{catalogueId}, |
| | | </if> |
| | |
| | | <if test="updateTime != null" > |
| | | update_time = #{updateTime} |
| | | </if> |
| | | </set> |
| | | where id = #{id} |
| | | </update> |
| | | <update id="updateCatalogueDataFileByCompanyId"> |
| | | UPDATE catalogue_data_file set del_flag = #{delFlag} ,update_by = #{updateBy} , update_time=#{updateTime} where company_id =#{companyId} and catalogue_id = #{catalogueId} |
| | | </update> |
| | | |
| | | <select id="selectCatalogueList" resultType="com.gkhy.exam.system.domain.vo.CatalogueVo"> |
| | |
| | | SELECT |
| | | `id`, |
| | | `company_id`, |
| | | name, |
| | | `catalogue_id`, |
| | | `content`, |
| | | `analysis`, |
| | |
| | | `update_time` |
| | | FROM |
| | | catalogue_data |
| | | where company_id = #{companyId} and del_flag = 1 |
| | | where company_id = #{companyId} and del_flag = 1 and catalogue_id = #{catalogueId} |
| | | |
| | | </select> |
| | | <select id="selectCatalogueDataById" resultType="com.gkhy.exam.system.domain.CatalogueData"> |
| | | SELECT |
| | | `id`, |
| | | `company_id`, |
| | | `catalogue_id`, |
| | | `content`, |
| | | `analysis`, |
| | | `del_flag`, |
| | | `create_by`, |
| | | `create_time`, |
| | | `update_by`, |
| | | `update_time` |
| | | FROM |
| | | catalogue_data where del_flag = 1 and id=#{catalogueDataId} |
| | | </select> |
| | | </mapper> |