From f8143fe8addccd8ef25613c3fbea4cd2b2ad3ab8 Mon Sep 17 00:00:00 2001 From: “djh” <“3298565835@qq.com”> Date: 星期五, 27 六月 2025 17:08:31 +0800 Subject: [PATCH] 修改 --- multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml | 68 ++++++++++++++++++++++++++++++++++ 1 files changed, 68 insertions(+), 0 deletions(-) diff --git a/multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml b/multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml new file mode 100644 index 0000000..5dd47f1 --- /dev/null +++ b/multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.gkhy.exam.system.mapper.CompanyIndustryTemplateMapper"> + <update id="updateCompanyIndustryTemplateById" parameterType="com.gkhy.exam.system.domain.CompanyIndustryTemplate"> + UPDATE company_industry_template + <set> + <if test="companyId != null and companyId != ''" > + company_id = #{companyId}, + </if> + <if test="companyName != null and companyName != ''" > + company_name = #{companyName}, + </if> + <if test="templateName != null and templateName !=''" > + template_name = #{templateName}, + </if> + <if test="industryType != null " > + industry_type = #{industryType}, + </if> + <if test="filePath != null and filePath !=''" > + file_path = #{filePath}, + </if> + <if test="format != null and format !=''" > + format = #{format}, + </if> + <if test="delFlag != null and delFlag != ''" > + del_flag = #{delFlag}, + </if> + <if test="createBy != null" > + create_by = #{createBy}, + </if> + <if test="createTime != null" > + create_time = #{createTime}, + </if> + <if test="updateBy != null" > + update_by = #{updateBy}, + </if> + <if test="updateTime != null" > + update_time = #{updateTime} + </if> + </set> + where id = #{id} + </update> + + <select id="selectCompanyIndustryTemplateList" resultType="com.gkhy.exam.system.domain.CompanyIndustryTemplate"> + SELECT + `id`, + `company_id`, + `company_name`, + `template_name`, + `industry_type`, + `file_path`, + `format`, + `del_flag`, + `create_by`, + `create_time`, + `update_by`, + `update_time` + FROM + company_industry_template + WHERE + del_flag = 0 + <if test="companyId!=null and companyId!=''"> + and company_id = #{companyId} + </if> + ORDER BY + create_time DESC + </select> +</mapper> -- Gitblit v1.9.2