42 lines
2.5 KiB
XML
42 lines
2.5 KiB
XML
<?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.wuhansaga.server.mapper.CompanyInfoMapper">
|
|
|
|
<select id="selectById" resultType="com.wuhansaga.server.entity.CompanyInfo">
|
|
SELECT * FROM f_company_info WHERE company_info_id = #{id} AND del_flag = 0
|
|
</select>
|
|
|
|
<update id="update" parameterType="com.wuhansaga.server.entity.CompanyInfo">
|
|
UPDATE f_company_info
|
|
<set>
|
|
<if test="nameZh != null">name_zh = #{nameZh},</if>
|
|
<if test="nameEn != null">name_en = #{nameEn},</if>
|
|
<if test="establishedYear != null">established_year = #{establishedYear},</if>
|
|
<if test="businessScopeZh != null">business_scope_zh = #{businessScopeZh},</if>
|
|
<if test="businessScopeEn != null">business_scope_en = #{businessScopeEn},</if>
|
|
<if test="coreDataZh != null">core_data_zh = #{coreDataZh},</if>
|
|
<if test="coreDataEn != null">core_data_en = #{coreDataEn},</if>
|
|
<if test="technicalSourceZh != null">technical_source_zh = #{technicalSourceZh},</if>
|
|
<if test="technicalSourceEn != null">technical_source_en = #{technicalSourceEn},</if>
|
|
<if test="markets != null">markets = #{markets},</if>
|
|
<if test="visionZh != null">vision_zh = #{visionZh},</if>
|
|
<if test="visionEn != null">vision_en = #{visionEn},</if>
|
|
<if test="missionZh != null">mission_zh = #{missionZh},</if>
|
|
<if test="missionEn != null">mission_en = #{missionEn},</if>
|
|
<if test="valuesZh != null">values_zh = #{valuesZh},</if>
|
|
<if test="valuesEn != null">values_en = #{valuesEn},</if>
|
|
<if test="spiritZh != null">spirit_zh = #{spiritZh},</if>
|
|
<if test="spiritEn != null">spirit_en = #{spiritEn},</if>
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
<if test="email != null">email = #{email},</if>
|
|
<if test="addressZh != null">address_zh = #{addressZh},</if>
|
|
<if test="addressEn != null">address_en = #{addressEn},</if>
|
|
<if test="website != null">website = #{website},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
update_time = CURRENT_TIMESTAMP
|
|
</set>
|
|
WHERE company_info_id = #{companyInfoId} AND del_flag = 0
|
|
</update>
|
|
</mapper>
|