|
@@ -9,10 +9,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="companyName" column="company_name" />
|
|
<result property="companyName" column="company_name" />
|
|
<result property="template" column="template" />
|
|
<result property="template" column="template" />
|
|
<result property="companyId" column="company_id" />
|
|
<result property="companyId" column="company_id" />
|
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysCompanyTemplateVo">
|
|
<sql id="selectSysCompanyTemplateVo">
|
|
- select id, company_name, template, company_id from sys_company_template
|
|
|
|
|
|
+ select id, company_name, template, company_id, update_time, update_by from sys_company_template
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysCompanyTemplateList" parameterType="SysCompanyTemplate" resultMap="SysCompanyTemplateResult">
|
|
<select id="selectSysCompanyTemplateList" parameterType="SysCompanyTemplate" resultMap="SysCompanyTemplateResult">
|
|
@@ -21,6 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
|
<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="template != null and template != ''"> and template = #{template}</if>
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
|
|
+ <if test="updateTime != null"> and update_time = #{updateTime}</if>
|
|
|
|
+ <if test="updateBy != null and updateBy !=''"> and update_by = #{updateBy}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -35,11 +39,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="companyName != null and companyName != ''">company_name,</if>
|
|
<if test="companyName != null and companyName != ''">company_name,</if>
|
|
<if test="template != null">template,</if>
|
|
<if test="template != null">template,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
|
+ <if test="updateBy != null and updateBy !=''">update_by,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
|
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
|
<if test="template != null">#{template},</if>
|
|
<if test="template != null">#{template},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
|
+ <if test="updateBy != null and updateBy !=''">#{updateBy},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -49,6 +57,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
|
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
|
<if test="template != null">template = #{template},</if>
|
|
<if test="template != null">template = #{template},</if>
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
+ <if test="updateBy != null and updateBy !=''">update_by = #{updateBy},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -63,4 +73,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|