|
@@ -20,10 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="salesLevel" column="sales_level" />
|
|
<result property="salesLevel" column="sales_level" />
|
|
<result property="orgCode" column="org_code" />
|
|
<result property="orgCode" column="org_code" />
|
|
<result property="orgName" column="org_name" />
|
|
<result property="orgName" column="org_name" />
|
|
|
|
+ <result property="alertType" column="alert_type" />
|
|
|
|
+ <result property="photoUrl" column="photo_url" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAlertConfigurationVo">
|
|
<sql id="selectAlertConfigurationVo">
|
|
- select alert_id, create_by, create_time, update_by, update_time, is_delete, alert_content, alert_start_time, alert_end_time, alert_num, user_type, alert_status,sales_level,org_code,org_name from alert_configuration
|
|
|
|
|
|
+ select alert_id, create_by, create_time, update_by, update_time, is_delete, alert_content, alert_start_time, alert_end_time, alert_num, user_type, alert_status,sales_level,org_code,org_name,alert_type,photo_url from alert_configuration
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectAlertConfigurationList" parameterType="AlertConfiguration" resultMap="AlertConfigurationResult">
|
|
<select id="selectAlertConfigurationList" parameterType="AlertConfiguration" resultMap="AlertConfigurationResult">
|
|
@@ -77,6 +79,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="salesLevel != null and salesLevel != ''">sales_level,</if>
|
|
<if test="salesLevel != null and salesLevel != ''">sales_level,</if>
|
|
<if test="orgCode != null and orgCode != ''">org_code,</if>
|
|
<if test="orgCode != null and orgCode != ''">org_code,</if>
|
|
<if test="orgName != null and orgName != ''">org_name,</if>
|
|
<if test="orgName != null and orgName != ''">org_name,</if>
|
|
|
|
+ <if test="alertType != null and alertType != ''">alert_type,</if>
|
|
|
|
+ <if test="photoUrl != null and photoUrl != ''">photo_url,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
@@ -93,6 +97,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="salesLevel != null and salesLevel != ''">#{salesLevel},</if>
|
|
<if test="salesLevel != null and salesLevel != ''">#{salesLevel},</if>
|
|
<if test="orgCode != null and orgCode != ''">#{orgCode},</if>
|
|
<if test="orgCode != null and orgCode != ''">#{orgCode},</if>
|
|
<if test="orgName != null and orgName != ''">#{orgName},</if>
|
|
<if test="orgName != null and orgName != ''">#{orgName},</if>
|
|
|
|
+ <if test="alertType != null and alertType != ''">#{alertType},</if>
|
|
|
|
+ <if test="photoUrl != null and photoUrl != ''">#{photoUrl},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -113,6 +119,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="salesLevel != null and salesLevel != ''">sales_level = #{salesLevel},</if>
|
|
<if test="salesLevel != null and salesLevel != ''">sales_level = #{salesLevel},</if>
|
|
<if test="orgCode != null and orgCode != ''">org_code = #{orgCode},</if>
|
|
<if test="orgCode != null and orgCode != ''">org_code = #{orgCode},</if>
|
|
<if test="orgName != null and orgName != ''">org_name = #{orgName},</if>
|
|
<if test="orgName != null and orgName != ''">org_name = #{orgName},</if>
|
|
|
|
+ <if test="alertType != null and alertType != ''">alert_type = #{alertType},</if>
|
|
|
|
+ <if test="photoUrl != null and photoUrl != ''">photo_url = #{photoUrl},</if>
|
|
</trim>
|
|
</trim>
|
|
where alert_id = #{alertId}
|
|
where alert_id = #{alertId}
|
|
</update>
|
|
</update>
|