|
|
@@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="maxPadNum" column="max_pad_num" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="isOpenStoredPay" column="is_open_stored_pay" />
|
|
|
+ <result property="businessDomain" column="business_domain" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCompanyVo">
|
|
|
@@ -53,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectCompanyVo"/>
|
|
|
<where>
|
|
|
<if test="companyId != null"> and company_id = #{companyId}</if>
|
|
|
+ <if test="businessDomain != null"> and business_domain = #{businessDomain}</if>
|
|
|
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
|
|
<if test="companyMobile != null and companyMobile != ''"> and company_mobile = #{companyMobile}</if>
|
|
|
<if test="companyAddress != null and companyAddress != ''"> and company_address = #{companyAddress}</if>
|
|
|
@@ -91,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into company
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyName != null">company_name,</if>
|
|
|
+ <if test="businessDomain != null">business_domain,</if>
|
|
|
<if test="companyMobile != null">company_mobile,</if>
|
|
|
<if test="companyAddress != null">company_address,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
@@ -129,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyName != null">#{companyName},</if>
|
|
|
+ <if test="businessDomain != null">#{businessDomain},</if>
|
|
|
<if test="companyMobile != null">#{companyMobile},</if>
|
|
|
<if test="companyAddress != null">#{companyAddress},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
@@ -171,6 +175,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update company
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="companyName != null">company_name = #{companyName},</if>
|
|
|
+ <if test="businessDomain != null">business_domain = #{businessDomain},</if>
|
|
|
<if test="companyMobile != null">company_mobile = #{companyMobile},</if>
|
|
|
<if test="companyAddress != null">company_address = #{companyAddress},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|