|
@@ -8,11 +8,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="id" column="id" />
|
|
|
<result property="companyName" column="company_name" />
|
|
|
<result property="template" column="template" />
|
|
|
- <result property="companyId" column="company_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysCompanyTemplateVo">
|
|
|
- select id, company_name, template, company_id from sys_company_template
|
|
|
+ select id, company_name, template from sys_company_template
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysCompanyTemplateList" parameterType="SysCompanyTemplate" resultMap="SysCompanyTemplateResult">
|
|
@@ -20,7 +19,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
|
|
<if test="template != null and template != ''"> and template = #{template}</if>
|
|
|
- <if test="companyId != null"> and company_id = #{companyId}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -34,12 +32,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyName != null and companyName != ''">company_name,</if>
|
|
|
<if test="template != null">template,</if>
|
|
|
- <if test="companyId != null">company_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
|
|
<if test="template != null">#{template},</if>
|
|
|
- <if test="companyId != null">#{companyId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -48,7 +44,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
|
|
<if test="template != null">template = #{template},</if>
|
|
|
- <if test="companyId != null">company_id = #{companyId},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|