62700d04 康伟

kangwei : 能环保态势大屏-后端,添加新水使用量

           考试记录,拦截器
1 个父辈 c415d7d7
...@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableId; ...@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
7 import com.baomidou.mybatisplus.annotation.TableName; 7 import com.baomidou.mybatisplus.annotation.TableName;
8 import com.baomidou.mybatisplus.annotation.TableField; 8 import com.baomidou.mybatisplus.annotation.TableField;
9 import com.skua.core.aspect.annotation.Dict; 9 import com.skua.core.aspect.annotation.Dict;
10 import com.skua.modules.quartz.util.BaseUtil;
10 import io.swagger.annotations.ApiModel; 11 import io.swagger.annotations.ApiModel;
11 import io.swagger.annotations.ApiModelProperty; 12 import io.swagger.annotations.ApiModelProperty;
12 import lombok.Data; 13 import lombok.Data;
...@@ -64,7 +65,6 @@ public class AjhMeetingSend { ...@@ -64,7 +65,6 @@ public class AjhMeetingSend {
64 @ApiModelProperty(value = "会议地点") 65 @ApiModelProperty(value = "会议地点")
65 private String meetLocation; 66 private String meetLocation;
66 /**会议内容*/ 67 /**会议内容*/
67 @Excel(name = "会议内容", width = 15,orderNum = "11")
68 @ApiModelProperty(value = "会议内容") 68 @ApiModelProperty(value = "会议内容")
69 private String meetContent; 69 private String meetContent;
70 /**回执二维码*/ 70 /**回执二维码*/
...@@ -141,4 +141,13 @@ public class AjhMeetingSend { ...@@ -141,4 +141,13 @@ public class AjhMeetingSend {
141 @ApiModelProperty(value = "参与人数") 141 @ApiModelProperty(value = "参与人数")
142 private java.lang.String particNum; 142 private java.lang.String particNum;
143 143
144 @TableField(exist = false)
145 @Excel(name = "会议内容", width = 15,orderNum = "11")
146 @ApiModelProperty(value = "会议内容")
147 private String meetContentHtml;
148
149 public String getMeetContentHtml() {
150 meetContentHtml = BaseUtil.delHTMLTag( this.getMeetContent());
151 return meetContentHtml;
152 }
144 } 153 }
......
...@@ -63,8 +63,6 @@ public class QuestionDBController { ...@@ -63,8 +63,6 @@ public class QuestionDBController {
63 * 分页列表查询 63 * 分页列表查询
64 * </pre> 64 * </pre>
65 * @param questionDB 65 * @param questionDB
66 * @param pageNo
67 * @param pageSize
68 * @param req 66 * @param req
69 * @return 67 * @return
70 * @author 开发者姓名, 开发时间 68 * @author 开发者姓名, 开发时间
......
...@@ -81,7 +81,6 @@ public class PurchasePlanController { ...@@ -81,7 +81,6 @@ public class PurchasePlanController {
81 if(StringUtils.isNotEmpty( purchasePlan.getStatus() ) ){ 81 if(StringUtils.isNotEmpty( purchasePlan.getStatus() ) ){
82 queryWrapper.eq("status", purchasePlan.getStatus()); 82 queryWrapper.eq("status", purchasePlan.getStatus());
83 } 83 }
84
85 if( StringUtils.isNotEmpty( purchasePlan.getApplyYear() ) ){ 84 if( StringUtils.isNotEmpty( purchasePlan.getApplyYear() ) ){
86 queryWrapper.eq("apply_year", purchasePlan.getApplyYear()); 85 queryWrapper.eq("apply_year", purchasePlan.getApplyYear());
87 } 86 }
......
...@@ -10,6 +10,8 @@ import java.time.LocalDate; ...@@ -10,6 +10,8 @@ import java.time.LocalDate;
10 import java.time.format.DateTimeFormatter; 10 import java.time.format.DateTimeFormatter;
11 import java.util.Calendar; 11 import java.util.Calendar;
12 import java.util.Date; 12 import java.util.Date;
13 import java.util.regex.Matcher;
14 import java.util.regex.Pattern;
13 15
14 public class BaseUtil { 16 public class BaseUtil {
15 /** 17 /**
...@@ -395,6 +397,31 @@ public class BaseUtil { ...@@ -395,6 +397,31 @@ public class BaseUtil {
395 return calendar.get(Calendar.SECOND); 397 return calendar.get(Calendar.SECOND);
396 } 398 }
397 399
400 /**
401 * 过滤html标签
402 * @param htmlStr
403 * @return
404 */
405 public synchronized static String delHTMLTag(String htmlStr){
406 String regEx_script="<script[^>]*?>[\\s\\S]*?<\\/script>"; //定义script的正则表达式
407 String regEx_style="<style[^>]*?>[\\s\\S]*?<\\/style>"; //定义style的正则表达式
408 String regEx_html="<[^>]+>"; //定义HTML标签的正则表达式
409
410 Pattern p_script=Pattern.compile(regEx_script,Pattern.CASE_INSENSITIVE);
411 Matcher m_script=p_script.matcher(htmlStr);
412 htmlStr=m_script.replaceAll(""); //过滤script标签
413
414 Pattern p_style=Pattern.compile(regEx_style,Pattern.CASE_INSENSITIVE);
415 Matcher m_style=p_style.matcher(htmlStr);
416 htmlStr=m_style.replaceAll(""); //过滤style标签
417
418 Pattern p_html=Pattern.compile(regEx_html,Pattern.CASE_INSENSITIVE);
419 Matcher m_html=p_html.matcher(htmlStr);
420 htmlStr=m_html.replaceAll(""); //过滤html标签
421
422 return htmlStr.trim(); //返回文本字符串
423 }
424
398 public static void main(String[] args) { 425 public static void main(String[] args) {
399 // System.out.println(dateTostring(new Date(), "yyyy-MM-dd HH")); 426 // System.out.println(dateTostring(new Date(), "yyyy-MM-dd HH"));
400 // System.out.println(timeStampDate("1471493776", "yyyy-MM-dd HH:mm:ss")); 427 // System.out.println(timeStampDate("1471493776", "yyyy-MM-dd HH:mm:ss"));
......
...@@ -15,8 +15,8 @@ public interface SafetyOffenceRecordMapper extends BaseMapper<SafetyOffenceRecor ...@@ -15,8 +15,8 @@ public interface SafetyOffenceRecordMapper extends BaseMapper<SafetyOffenceRecor
15 /*** 15 /***
16 * 统计数量:全部、未处理、已处理 16 * 统计数量:全部、未处理、已处理
17 * @param departId 17 * @param departId
18 * @param handleStatus 18 * @param status
19 * @return 19 * @return
20 */ 20 */
21 public Integer statisticsSafetyOffenceRecord(@Param("reportType") String reportType, @Param("departId") String departId, @Param("handleStatus") String handleStatus); 21 public Integer statisticsSafetyOffenceRecord(@Param("reportType") String reportType, @Param("departId") String departId, @Param("status") String status);
22 } 22 }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 AND depart_id in ( ${departId}) 15 AND depart_id in ( ${departId})
16 </if> 16 </if>
17 <if test="handleStatus != null "> 17 <if test="handleStatus != null ">
18 AND handle_status = #{handleStatus} 18 AND status = #{status}
19 </if> 19 </if>
20 </where> 20 </where>
21 </select> 21 </select>
......
...@@ -127,7 +127,7 @@ mybatis-plus: ...@@ -127,7 +127,7 @@ mybatis-plus:
127 configuration: 127 configuration:
128 call-setters-on-nulls: true 128 call-setters-on-nulls: true
129 # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 129 # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
130 # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 130 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
131 #数矿专用配置 131 #数矿专用配置
132 skua: 132 skua:
133 web-url: http://103.85.171.27:8096 133 web-url: http://103.85.171.27:8096
......
...@@ -54,7 +54,7 @@ public class JnhbLargeScreenVO { ...@@ -54,7 +54,7 @@ public class JnhbLargeScreenVO {
54 this.getHeadStatisticsList().get(1).setValue( reportData.getWsfhl() ); 54 this.getHeadStatisticsList().get(1).setValue( reportData.getWsfhl() );
55 this.getHeadStatisticsList().get(2).setValue( reportData.getDh() ); 55 this.getHeadStatisticsList().get(2).setValue( reportData.getDh() );
56 this.getHeadStatisticsList().get(3).setValue( reportData.getQy() ); 56 this.getHeadStatisticsList().get(3).setValue( reportData.getQy() );
57 //this.getHeadStatisticsList().get(4).setValue( reportData.getWssjcll() ); 57 this.getHeadStatisticsList().get(4).setValue( reportData.getXssyl() );
58 this.getHeadStatisticsList().get(5).setValue( reportData.getZhnyxhl() ); 58 this.getHeadStatisticsList().get(5).setValue( reportData.getZhnyxhl() );
59 this.getHeadStatisticsList().get(6).setValue( reportData.getEyhtpfl() ); 59 this.getHeadStatisticsList().get(6).setValue( reportData.getEyhtpfl() );
60 this.getHeadStatisticsList().get(7).setValue( reportData.getDsdh() ); 60 this.getHeadStatisticsList().get(7).setValue( reportData.getDsdh() );
...@@ -66,7 +66,7 @@ public class JnhbLargeScreenVO { ...@@ -66,7 +66,7 @@ public class JnhbLargeScreenVO {
66 this.getHeadStatisticsList().get(1).setValueTb( reportData.getWsfhl() ); 66 this.getHeadStatisticsList().get(1).setValueTb( reportData.getWsfhl() );
67 this.getHeadStatisticsList().get(2).setValueTb( reportData.getDh() ); 67 this.getHeadStatisticsList().get(2).setValueTb( reportData.getDh() );
68 this.getHeadStatisticsList().get(3).setValueTb( reportData.getQy() ); 68 this.getHeadStatisticsList().get(3).setValueTb( reportData.getQy() );
69 //this.getHeadStatisticsList().get(4).setValueTb( reportData.getWssjcll() ); 69 this.getHeadStatisticsList().get(4).setValueTb( reportData.getXssyl() );
70 this.getHeadStatisticsList().get(5).setValueTb( reportData.getZhnyxhl() ); 70 this.getHeadStatisticsList().get(5).setValueTb( reportData.getZhnyxhl() );
71 this.getHeadStatisticsList().get(6).setValueTb( reportData.getEyhtpfl() ); 71 this.getHeadStatisticsList().get(6).setValueTb( reportData.getEyhtpfl() );
72 this.getHeadStatisticsList().get(7).setValueTb( reportData.getDsdh() ); 72 this.getHeadStatisticsList().get(7).setValueTb( reportData.getDsdh() );
...@@ -78,7 +78,7 @@ public class JnhbLargeScreenVO { ...@@ -78,7 +78,7 @@ public class JnhbLargeScreenVO {
78 this.getHeadStatisticsList().get(1).setValueHb( reportData.getWsfhl() ); 78 this.getHeadStatisticsList().get(1).setValueHb( reportData.getWsfhl() );
79 this.getHeadStatisticsList().get(2).setValueHb( reportData.getDh() ); 79 this.getHeadStatisticsList().get(2).setValueHb( reportData.getDh() );
80 this.getHeadStatisticsList().get(3).setValueHb( reportData.getQy() ); 80 this.getHeadStatisticsList().get(3).setValueHb( reportData.getQy() );
81 //this.getHeadStatisticsList().get(4).setValueHb( reportData.getWssjcll() ); 81 this.getHeadStatisticsList().get(4).setValueHb( reportData.getXssyl() );
82 this.getHeadStatisticsList().get(5).setValueHb( reportData.getZhnyxhl() ); 82 this.getHeadStatisticsList().get(5).setValueHb( reportData.getZhnyxhl() );
83 this.getHeadStatisticsList().get(6).setValueHb( reportData.getEyhtpfl() ); 83 this.getHeadStatisticsList().get(6).setValueHb( reportData.getEyhtpfl() );
84 this.getHeadStatisticsList().get(7).setValueHb( reportData.getDsdh() ); 84 this.getHeadStatisticsList().get(7).setValueHb( reportData.getDsdh() );
......
...@@ -84,6 +84,10 @@ public class MybatisInterceptor implements Interceptor { ...@@ -84,6 +84,10 @@ public class MybatisInterceptor implements Interceptor {
84 //巡检触发方式卡片配置 84 //巡检触发方式卡片配置
85 add("inspection_point_trigger_config"); 85 add("inspection_point_trigger_config");
86 86
87 //用户试卷
88 add("edu_user_paper");
89 add("edu_paper");
90
87 }}; 91 }};
88 92
89 //过滤不需要走部门ID查询的URL 93 //过滤不需要走部门ID查询的URL
...@@ -121,6 +125,7 @@ public class MybatisInterceptor implements Interceptor { ...@@ -121,6 +125,7 @@ public class MybatisInterceptor implements Interceptor {
121 || "com.skua.modules.ajh.mapper.AjhMeetingMinutesMapper.getDataById".equalsIgnoreCase(sqlId) 125 || "com.skua.modules.ajh.mapper.AjhMeetingMinutesMapper.getDataById".equalsIgnoreCase(sqlId)
122 || "com.skua.modules.system.mapper.SysDepartMapper.queryUserDeparts".equalsIgnoreCase(sqlId) 126 || "com.skua.modules.system.mapper.SysDepartMapper.queryUserDeparts".equalsIgnoreCase(sqlId)
123 || "com.skua.modules.system.mapper.SysAnnouncementMapper.querySysCementListByUserId".equals(sqlId) 127 || "com.skua.modules.system.mapper.SysAnnouncementMapper.querySysCementListByUserId".equals(sqlId)
128 || "com.skua.modules.supplies.mapper.EquipmentSparepartSuppliesMapper.selectPageByOut".equals(sqlId)
124 || "com.skua.modules.product.equipRemoteControl.mapper.RemoteControlMapper.queryEquipListDetail".equals(sqlId)) { 129 || "com.skua.modules.product.equipRemoteControl.mapper.RemoteControlMapper.queryEquipListDetail".equals(sqlId)) {
125 return invocation.proceed(); 130 return invocation.proceed();
126 } 131 }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!