From b3e1084ddebf92b2858706aca5ea7841942216fc Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 23 Jun 2021 14:25:22 +0800
Subject: [PATCH] 取证详情接口修改,新增接口修改
---
src/main/java/org/springblade/modules/wj/mapper/WjMapper.xml | 4 ++--
src/main/java/org/springblade/modules/feedback/controller/FeedbackController.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/springblade/modules/feedback/controller/FeedbackController.java b/src/main/java/org/springblade/modules/feedback/controller/FeedbackController.java
index e16fa5d..993de0b 100644
--- a/src/main/java/org/springblade/modules/feedback/controller/FeedbackController.java
+++ b/src/main/java/org/springblade/modules/feedback/controller/FeedbackController.java
@@ -346,7 +346,7 @@
if (feedback.getStatus()==1){
Wj wj = new Wj();
- if (feedback.getSpaddress() != null && feedback.getSpaddress()!="") {
+ if (feedback.getSpaddress().length()>0) {
//获取视频地址
String[] splitsp = feedback.getSpaddress().split(",");//以逗号分割
for (String string2 : splitsp) {
@@ -357,7 +357,7 @@
iWjService.insertfeed(wj);
}
}
- if (feedback.getTpaddress() != null && feedback.getTpaddress()!="") {
+ if (feedback.getTpaddress().length()>0) {
//图片
String[] splittp = feedback.getTpaddress().split(",");//以逗号分割
for (String string3 : splittp) {
diff --git a/src/main/java/org/springblade/modules/wj/mapper/WjMapper.xml b/src/main/java/org/springblade/modules/wj/mapper/WjMapper.xml
index f778474..cf7800c 100644
--- a/src/main/java/org/springblade/modules/wj/mapper/WjMapper.xml
+++ b/src/main/java/org/springblade/modules/wj/mapper/WjMapper.xml
@@ -20,7 +20,7 @@
<insert id="insertfeed" useGeneratedKeys="true" keyProperty="id" parameterType="org.springblade.modules.wj.entity.Wj">
- INSERT INTO sys_wj (jid,address,sid) VALUES (#{jid},#{address},#{sid})
+ INSERT INTO sys_wj (jid,address,sid,type) VALUES (#{jid},#{address},#{sid},#{type})
</insert>
<select id="selectInfo" resultMap="wjResultMap">
@@ -49,7 +49,7 @@
<!--获取资源 图片、视频-->
<select id="selectResouces" resultType="java.lang.String">
select address from sys_wj
- where 1=1
+ where sid = #{wj.sid}
<if test="wj.type!=null">
and type = #{wj.type}
</if>
--
Gitblit v1.9.3