|
@@ -32,10 +32,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="followDoctorIds" column="follow_doctor_ids" />
|
|
|
<result property="doctorIds" column="doctor_ids" />
|
|
|
<result property="restartTime" column="restart_time" />
|
|
|
+ <result property="packageCateIds" column="package_cate_ids" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCompanyVo">
|
|
|
- select company_id,follow_doctor_ids,doctor_ids, company_name,manager, company_mobile, company_address, create_time, update_time, status, start_time, limit_time, money ,tui_money, voice_api_id,company_type,user_id,app_id,app_key,remark,link_name,limit_user_count,is_del,voice_caller_number,oms_code,restart_time from company
|
|
|
+ select company_id,follow_doctor_ids,doctor_ids, company_name,manager, company_mobile, company_address, create_time, update_time, status, start_time, limit_time, money ,tui_money, voice_api_id,company_type,user_id,app_id,app_key,remark,link_name,limit_user_count,is_del,voice_caller_number,oms_code,restart_time,package_cate_ids from company
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
|
@@ -49,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
|
|
<if test="voiceApiId != null "> and voice_api_id = #{voiceApiId}</if>
|
|
|
<if test="restartTime != null "> and restart_time = #{restartTime}</if>
|
|
|
+ <if test="packageCateIds != null "> and package_cate_ids = #{packageCateIds}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -84,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="followDoctorIds != null">follow_doctor_ids,</if>
|
|
|
<if test="doctorIds != null">doctor_ids,</if>
|
|
|
<if test="restartTime != null">restart_time,</if>
|
|
|
+ <if test="packageCateIds != null">package_cate_ids,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyName != null">#{companyName},</if>
|
|
@@ -110,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="followDoctorIds != null">#{followDoctorIds},</if>
|
|
|
<if test="doctorIds != null">#{doctorIds},</if>
|
|
|
<if test="restartTime != null">#{restartTime},</if>
|
|
|
+ <if test="packageCateIds != null">#{packageCateIds},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -141,6 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="followDoctorIds != null">follow_doctor_ids = #{followDoctorIds},</if>
|
|
|
<if test="doctorIds != null">doctor_ids = #{doctorIds},</if>
|
|
|
<if test="restartTime != null">restart_time = #{restartTime},</if>
|
|
|
+ <if test="packageCateIds != null">package_cate_ids = #{packageCateIds},</if>
|
|
|
</trim>
|
|
|
where company_id = #{companyId}
|
|
|
</update>
|