|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<resultMap type="CompanyHonour" id="CompanyHonourResult">
|
|
<resultMap type="CompanyHonour" id="CompanyHonourResult">
|
|
<result property="honourId" column="honour_id" />
|
|
<result property="honourId" column="honour_id" />
|
|
<result property="companyId" column="company_id" />
|
|
<result property="companyId" column="company_id" />
|
|
|
|
+ <result property="title" column="title" />
|
|
<result property="des" column="des" />
|
|
<result property="des" column="des" />
|
|
<result property="img" column="img" />
|
|
<result property="img" column="img" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
@@ -17,15 +18,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCompanyHonourVo">
|
|
<sql id="selectCompanyHonourVo">
|
|
- select honour_id, company_id, des, img, create_by, create_time, update_by, update_time, remark from company_honour
|
|
|
|
|
|
+ select honour_id, company_id, title,des, img, create_by, create_time, update_by, update_time, remark from company_honour
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectCompanyHonourList" parameterType="CompanyHonour" resultMap="CompanyHonourResult">
|
|
<select id="selectCompanyHonourList" parameterType="CompanyHonour" resultMap="CompanyHonourResult">
|
|
<include refid="selectCompanyHonourVo"/>
|
|
<include refid="selectCompanyHonourVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
- <if test="des != null and des != ''"> and des = #{des}</if>
|
|
|
|
- <if test="img != null and img != ''"> and img = #{img}</if>
|
|
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -38,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
insert into company_honour
|
|
insert into company_honour
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="companyId != null ">company_id,</if>
|
|
<if test="companyId != null ">company_id,</if>
|
|
|
|
+ <if test="title != null and title != ''">title,</if>
|
|
<if test="des != null and des != ''">des,</if>
|
|
<if test="des != null and des != ''">des,</if>
|
|
<if test="img != null and img != ''">img,</if>
|
|
<if test="img != null and img != ''">img,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
@@ -48,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="companyId != null ">#{companyId},</if>
|
|
<if test="companyId != null ">#{companyId},</if>
|
|
|
|
+ <if test="title != null and title != ''">#{title},</if>
|
|
<if test="des != null and des != ''">#{des},</if>
|
|
<if test="des != null and des != ''">#{des},</if>
|
|
<if test="img != null and img != ''">#{img},</if>
|
|
<if test="img != null and img != ''">#{img},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
@@ -62,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update company_honour
|
|
update company_honour
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="companyId != null ">company_id = #{companyId},</if>
|
|
<if test="companyId != null ">company_id = #{companyId},</if>
|
|
|
|
+ <if test="title != null and title != ''">title = #{title},</if>
|
|
<if test="des != null and des != ''">des = #{des},</if>
|
|
<if test="des != null and des != ''">des = #{des},</if>
|
|
<if test="img != null and img != ''">img = #{img},</if>
|
|
<if test="img != null and img != ''">img = #{img},</if>
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|