Ver código fonte

设计弹框类型,图片url

njs 1 ano atrás
pai
commit
1b0d9f05a6

+ 26 - 1
suishenbang-system/src/main/java/com/dgtly/system/domain/AlertConfiguration.java

@@ -56,6 +56,15 @@ public class AlertConfiguration extends BaseEntity
     /** 组织机构名称 */
     private String orgName;
 
+
+    /** 弹框类型0文字1图片 */
+    private String alertType;
+
+    /** 弹框图片地址 */
+    private String photoUrl;
+
+
+
     public void setAlertId(Long alertId) 
     {
         this.alertId = alertId;
@@ -96,7 +105,23 @@ public class AlertConfiguration extends BaseEntity
         this.alertStartTime = alertStartTime;
     }
 
-    public Date getAlertStartTime() 
+    public String getAlertType() {
+        return alertType;
+    }
+
+    public void setAlertType(String alertType) {
+        this.alertType = alertType;
+    }
+
+    public String getPhotoUrl() {
+        return photoUrl;
+    }
+
+    public void setPhotoUrl(String photoUrl) {
+        this.photoUrl = photoUrl;
+    }
+
+    public Date getAlertStartTime()
     {
         return alertStartTime;
     }

+ 9 - 1
suishenbang-system/src/main/resources/mapper/system/AlertConfigurationMapper.xml

@@ -20,10 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="salesLevel"    column="sales_level"    />
         <result property="orgCode"    column="org_code"    />
         <result property="orgName"    column="org_name"    />
+        <result property="alertType"    column="alert_type"    />
+        <result property="photoUrl"    column="photo_url"    />
     </resultMap>
 
     <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>
 
     <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="orgCode != null  and orgCode != ''">org_code,</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 prefix="values (" suffix=")" suffixOverrides=",">
             <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="orgCode != null  and orgCode != ''">#{orgCode},</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>
     </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="orgCode != null  and orgCode != ''">org_code = #{orgCode},</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>
         where alert_id = #{alertId}
     </update>