Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-app-report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xzxt-app-report
Commits
76e447ec
Commit
76e447ec
authored
Nov 08, 2023
by
Leslie1w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
App语音与视频相关接口
parent
ad36bc6d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
347 additions
and
9 deletions
+347
-9
src/main/java/org/springblade/founder/asj/controller/KyxsController.java
+3
-2
src/main/java/org/springblade/founder/asj/entity/TbXwKyxsSp.java
+57
-0
src/main/java/org/springblade/founder/asj/entity/TbXwKyxsYy.java
+57
-0
src/main/java/org/springblade/founder/asj/mapper/TbXwKyxsSpMapper.java
+19
-0
src/main/java/org/springblade/founder/asj/mapper/TbXwKyxsSpMapper.xml
+58
-0
src/main/java/org/springblade/founder/asj/mapper/TbXwKyxsYyMapper.java
+19
-0
src/main/java/org/springblade/founder/asj/mapper/TbXwKyxsYyMapper.xml
+58
-0
src/main/java/org/springblade/founder/asj/service/KyxsService.java
+1
-1
src/main/java/org/springblade/founder/asj/service/impl/KyxsServiceImpl.java
+75
-6
No files found.
src/main/java/org/springblade/founder/asj/controller/KyxsController.java
View file @
76e447ec
package
org
.
springblade
.
founder
.
asj
.
controller
;
package
org
.
springblade
.
founder
.
asj
.
controller
;
import
org.jasypt.util.text.BasicTextEncryptor
;
import
org.springblade.founder.asj.entity.AsjQueryParam
;
import
org.springblade.founder.asj.entity.AsjQueryParam
;
import
org.springblade.founder.asj.service.KyxsService
;
import
org.springblade.founder.asj.service.KyxsService
;
import
org.springblade.founder.log.LogOper
;
import
org.springblade.founder.log.LogOper
;
...
@@ -90,10 +91,10 @@ public class KyxsController {
...
@@ -90,10 +91,10 @@ public class KyxsController {
@RequestMapping
(
"/getFile/{xxzjbh}"
)
@RequestMapping
(
"/getFile/{xxzjbh}"
)
@LogOper
(
czxxLbdm
=
"07"
,
yymcJyqk
=
"0701"
,
czxxJyqk
=
"可疑线索附件下载"
)
@LogOper
(
czxxLbdm
=
"07"
,
yymcJyqk
=
"0701"
,
czxxJyqk
=
"可疑线索附件下载"
)
public
R
getFile
(
@PathVariable
String
xxzjbh
)
{
public
R
getFile
(
@PathVariable
String
xxzjbh
,
String
type
)
{
try
{
try
{
HttpServletResponse
response
=
((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
()).
getResponse
();
HttpServletResponse
response
=
((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
()).
getResponse
();
kyxsService
.
getFile
(
xxzjbh
,
response
);
kyxsService
.
getFile
(
xxzjbh
,
response
,
type
);
return
R
.
ok
();
return
R
.
ok
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
src/main/java/org/springblade/founder/asj/entity/TbXwKyxsSp.java
0 → 100644
View file @
76e447ec
package
org
.
springblade
.
founder
.
asj
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.springblade.founder.entity.BaseModel
;
import
java.util.List
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@TableName
(
"tb_xw_kyxs_sp"
)
public
class
TbXwKyxsSp
extends
BaseModel
{
//信息主键编号
@TableId
(
type
=
IdType
.
INPUT
)
private
String
xxzjbh
;
//案事件编号
private
String
asjbh
;
//拍摄设备
private
String
kyxsspPssb
;
//可以视频内容
private
byte
[]
kyxsspPpnr
;
//可疑依据
private
String
kyxstxKyyj
;
@TableField
(
exist
=
false
)
private
List
<
String
>
qgAsjbhList
;
//全国
@TableField
(
exist
=
false
)
private
Integer
qgAjsl
;
//全国
@TableField
(
exist
=
false
)
private
List
<
String
>
qsAsjbhList
;
//全省
@TableField
(
exist
=
false
)
private
Integer
qsAjsl
;
//全省
public
void
setQgAsjbhList
(
List
<
String
>
qgAsjbhList
)
{
if
(
qgAsjbhList
==
null
){
this
.
qgAsjbhList
=
null
;
this
.
qgAjsl
=
0
;
}
else
{
this
.
qgAsjbhList
=
qgAsjbhList
;
this
.
qgAjsl
=
qgAsjbhList
.
size
();
}
}
public
void
setQsAsjbhList
(
List
<
String
>
qsAsjbhList
)
{
if
(
qsAsjbhList
==
null
){
this
.
qsAsjbhList
=
null
;
this
.
qsAjsl
=
0
;
}
else
{
this
.
qsAsjbhList
=
qsAsjbhList
;
this
.
qsAjsl
=
qsAsjbhList
.
size
();
}
}
}
src/main/java/org/springblade/founder/asj/entity/TbXwKyxsYy.java
0 → 100644
View file @
76e447ec
package
org
.
springblade
.
founder
.
asj
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.springblade.founder.entity.BaseModel
;
import
java.util.List
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@TableName
(
"tb_xw_kyxs_yy"
)
public
class
TbXwKyxsYy
extends
BaseModel
{
//信息主键编号
@TableId
(
type
=
IdType
.
INPUT
)
private
String
xxzjbh
;
//案事件编号
private
String
asjbh
;
//录音语种
private
String
kyxsyyLyyz
;
//可疑语音内容
private
byte
[]
kyxsyyYynr
;
//可疑依据
private
String
kyxstxKyyj
;
@TableField
(
exist
=
false
)
private
List
<
String
>
qgAsjbhList
;
//全国
@TableField
(
exist
=
false
)
private
Integer
qgAjsl
;
//全国
@TableField
(
exist
=
false
)
private
List
<
String
>
qsAsjbhList
;
//全省
@TableField
(
exist
=
false
)
private
Integer
qsAjsl
;
//全省
public
void
setQgAsjbhList
(
List
<
String
>
qgAsjbhList
)
{
if
(
qgAsjbhList
==
null
){
this
.
qgAsjbhList
=
null
;
this
.
qgAjsl
=
0
;
}
else
{
this
.
qgAsjbhList
=
qgAsjbhList
;
this
.
qgAjsl
=
qgAsjbhList
.
size
();
}
}
public
void
setQsAsjbhList
(
List
<
String
>
qsAsjbhList
)
{
if
(
qsAsjbhList
==
null
){
this
.
qsAsjbhList
=
null
;
this
.
qsAjsl
=
0
;
}
else
{
this
.
qsAsjbhList
=
qsAsjbhList
;
this
.
qsAjsl
=
qsAsjbhList
.
size
();
}
}
}
src/main/java/org/springblade/founder/asj/mapper/TbXwKyxsSpMapper.java
0 → 100644
View file @
76e447ec
package
org
.
springblade
.
founder
.
asj
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springblade.founder.asj.entity.TbXwKyxsSp
;
import
org.springblade.founder.asj.entity.TbXwKyxsTx
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Mapper
@Repository
public
interface
TbXwKyxsSpMapper
extends
BaseMapper
<
TbXwKyxsSp
>
{
List
<
TbXwKyxsSp
>
selectListByAsjbh
(
String
asjbh
);
TbXwKyxsSp
selectOneByXxzjbh
(
String
xxzjbh
);
Integer
selectCountByAsjbh
(
String
asjbh
);
}
src/main/java/org/springblade/founder/asj/mapper/TbXwKyxsSpMapper.xml
0 → 100644
View file @
76e447ec
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"org.springblade.founder.asj.mapper.TbXwKyxsSpMapper"
>
<select
id=
"selectListByAsjbh"
resultType=
"org.springblade.founder.asj.entity.TbXwKyxsSp"
>
select xxzjbh,
asjbh,
kyxssp_pssb,
kyxssp_spnr,
kyxssp_kyyj,
djsj,
gxsj,
xxsc_pdbz,
xxdjdw_gajgjgdm,
xxdjdw_gajgmc,
xxdjry_xm,
xxdjry_gmsfhm,
xxdjry_lxdh,
xxczdw_gajgjgdm,
xxczdw_gajgmc,
xxczry_xm,
xxczry_gmsfhm,
xxlyms
from TB_XW_KYXS_SP
where asjbh = #{asjbh,jdbcType=VARCHAR}
and xxsc_pdbz = '0'
order by djsj desc
</select>
<select
id=
"selectOneByXxzjbh"
resultType=
"org.springblade.founder.asj.entity.TbXwKyxsSp"
>
select xxzjbh,
asjbh,
kyxssp_pssb,
kyxssp_spnr,
kyxssp_kyyj,
djsj,
gxsj,
xxsc_pdbz,
xxdjdw_gajgjgdm,
xxdjdw_gajgmc,
xxdjry_xm,
xxdjry_gmsfhm,
xxdjry_lxdh,
xxczdw_gajgjgdm,
xxczdw_gajgmc,
xxczry_xm,
xxczry_gmsfhm,
xxlyms
from TB_XW_KYXS_SP
where XXZJBH = #{xxzjbh,jdbcType=VARCHAR}
and xxsc_pdbz = '0'
</select>
<select
id=
"selectCountByAsjbh"
resultType=
"java.lang.Integer"
>
select count(1)
from TB_XW_KYXS_SP
where asjbh = #{asjbh,jdbcType=VARCHAR}
and xxsc_pdbz = '0'
</select>
</mapper>
src/main/java/org/springblade/founder/asj/mapper/TbXwKyxsYyMapper.java
0 → 100644
View file @
76e447ec
package
org
.
springblade
.
founder
.
asj
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springblade.founder.asj.entity.TbXwKyxsTx
;
import
org.springblade.founder.asj.entity.TbXwKyxsYy
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Mapper
@Repository
public
interface
TbXwKyxsYyMapper
extends
BaseMapper
<
TbXwKyxsYy
>
{
List
<
TbXwKyxsYy
>
selectListByAsjbh
(
String
asjbh
);
TbXwKyxsYy
selectOneByXxzjbh
(
String
xxzjbh
);
Integer
selectCountByAsjbh
(
String
asjbh
);
}
src/main/java/org/springblade/founder/asj/mapper/TbXwKyxsYyMapper.xml
0 → 100644
View file @
76e447ec
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"org.springblade.founder.asj.mapper.TbXwKyxsYyMapper"
>
<select
id=
"selectListByAsjbh"
resultType=
"org.springblade.founder.asj.entity.TbXwKyxsYy"
>
select xxzjbh,
asjbh,
kyxsyy_lyyz,
kyxsyy_yynr,
kyxsyy_kyyj,
djsj,
gxsj,
xxsc_pdbz,
xxdjdw_gajgjgdm,
xxdjdw_gajgmc,
xxdjry_xm,
xxdjry_gmsfhm,
xxdjry_lxdh,
xxczdw_gajgjgdm,
xxczdw_gajgmc,
xxczry_xm,
xxczry_gmsfhm,
xxlyms
from TB_XW_KYXS_YY
where asjbh = #{asjbh,jdbcType=VARCHAR}
and xxsc_pdbz = '0'
order by djsj desc
</select>
<select
id=
"selectOneByXxzjbh"
resultType=
"org.springblade.founder.asj.entity.TbXwKyxsYy"
>
select xxzjbh,
asjbh,
kyxsyy_lyyz,
kyxsyy_yynr,
kyxsyy_kyyj,
djsj,
gxsj,
xxsc_pdbz,
xxdjdw_gajgjgdm,
xxdjdw_gajgmc,
xxdjry_xm,
xxdjry_gmsfhm,
xxdjry_lxdh,
xxczdw_gajgjgdm,
xxczdw_gajgmc,
xxczry_xm,
xxczry_gmsfhm,
xxlyms
from TB_XW_KYXS_YY
where XXZJBH = #{xxzjbh,jdbcType=VARCHAR}
and xxsc_pdbz = '0'
</select>
<select
id=
"selectCountByAsjbh"
resultType=
"java.lang.Integer"
>
select count(1)
from TB_XW_KYXS_YY
where asjbh = #{asjbh,jdbcType=VARCHAR}
and xxsc_pdbz = '0'
</select>
</mapper>
src/main/java/org/springblade/founder/asj/service/KyxsService.java
View file @
76e447ec
...
@@ -58,7 +58,7 @@ public interface KyxsService {
...
@@ -58,7 +58,7 @@ public interface KyxsService {
* @author lystar
* @author lystar
* 2021/11/24 21:10
* 2021/11/24 21:10
*/
*/
void
getFile
(
String
xxzjbh
,
HttpServletResponse
response
)
throws
IOException
;
void
getFile
(
String
xxzjbh
,
HttpServletResponse
response
,
String
type
)
throws
IOException
;
/**
/**
* getKyxsCountByAsjbh 查询可疑线索总数
* getKyxsCountByAsjbh 查询可疑线索总数
...
...
src/main/java/org/springblade/founder/asj/service/impl/KyxsServiceImpl.java
View file @
76e447ec
...
@@ -49,6 +49,10 @@ public class KyxsServiceImpl implements KyxsService {
...
@@ -49,6 +49,10 @@ public class KyxsServiceImpl implements KyxsService {
@Autowired
@Autowired
private
TbXwKyxsTxMapper
tbXwKyxsTxMapper
;
private
TbXwKyxsTxMapper
tbXwKyxsTxMapper
;
@Autowired
@Autowired
private
TbXwKyxsYyMapper
tbXwKyxsYyMapper
;
@Autowired
private
TbXwKyxsSpMapper
tbXwKyxsSpMapper
;
@Autowired
private
HnJbAsjXsService
hnJbAsjXsService
;
private
HnJbAsjXsService
hnJbAsjXsService
;
@Autowired
@Autowired
private
QgJbAsjXsService
qgJbAsjXsService
;
private
QgJbAsjXsService
qgJbAsjXsService
;
...
@@ -119,6 +123,34 @@ public class KyxsServiceImpl implements KyxsService {
...
@@ -119,6 +123,34 @@ public class KyxsServiceImpl implements KyxsService {
Utils
.
setUserDjxxAndCzxx
(
kyxsTx
);
Utils
.
setUserDjxxAndCzxx
(
kyxsTx
);
tbXwKyxsTxMapper
.
insert
(
kyxsTx
);
tbXwKyxsTxMapper
.
insert
(
kyxsTx
);
break
;
break
;
case
"yy"
:
//可疑语音
if
(
file
==
null
){
return
null
;
}
TbXwKyxsYy
kyxsYy
=
new
TbXwKyxsYy
();
kyxsYy
.
setXxzjbh
(
xxzjbh
);
kyxsYy
.
setAsjbh
(
asjbh
);
kyxsYy
.
setKyxsyyYynr
(
file
.
getBytes
());
kyxsYy
.
setKyxsyyLyyz
(
kyhm
);
kyxsYy
.
setKyxstxKyyj
(
kyyj
);
kyxsYy
.
setXxscPdbz
(
"0"
);
Utils
.
setUserDjxxAndCzxx
(
kyxsYy
);
tbXwKyxsYyMapper
.
insert
(
kyxsYy
);
break
;
case
"sp"
:
//可疑视频
if
(
file
==
null
){
return
null
;
}
TbXwKyxsSp
kyxsSp
=
new
TbXwKyxsSp
();
kyxsSp
.
setXxzjbh
(
xxzjbh
);
kyxsSp
.
setAsjbh
(
asjbh
);
kyxsSp
.
setKyxsspPpnr
(
file
.
getBytes
());
kyxsSp
.
setKyxsspPssb
(
kyhm
);
kyxsSp
.
setKyxstxKyyj
(
kyyj
);
kyxsSp
.
setXxscPdbz
(
"0"
);
Utils
.
setUserDjxxAndCzxx
(
kyxsSp
);
tbXwKyxsSpMapper
.
insert
(
kyxsSp
);
break
;
}
}
return
xxzjbh
;
return
xxzjbh
;
}
}
...
@@ -222,6 +254,18 @@ public class KyxsServiceImpl implements KyxsService {
...
@@ -222,6 +254,18 @@ public class KyxsServiceImpl implements KyxsService {
resultMap
.
put
(
"txList"
,
txList
);
resultMap
.
put
(
"txList"
,
txList
);
resultMap
.
put
(
"txCount"
,
txList
.
size
());
resultMap
.
put
(
"txCount"
,
txList
.
size
());
}
}
//查询可疑语音
List
<
TbXwKyxsYy
>
yyList
=
tbXwKyxsYyMapper
.
selectListByAsjbh
(
asjbh
);
if
(
yyList
!=
null
)
{
resultMap
.
put
(
"yyList"
,
yyList
);
resultMap
.
put
(
"yyCount"
,
yyList
.
size
());
}
//查询可疑视频
List
<
TbXwKyxsSp
>
spList
=
tbXwKyxsSpMapper
.
selectListByAsjbh
(
asjbh
);
if
(
spList
!=
null
)
{
resultMap
.
put
(
"spList"
,
spList
);
resultMap
.
put
(
"spCount"
,
spList
.
size
());
}
//获取线程执行的结果
//获取线程执行的结果
List
<
TbXwKyxsRy
>
ryList
=
ryListTask
.
get
();
List
<
TbXwKyxsRy
>
ryList
=
ryListTask
.
get
();
...
@@ -258,12 +302,16 @@ public class KyxsServiceImpl implements KyxsService {
...
@@ -258,12 +302,16 @@ public class KyxsServiceImpl implements KyxsService {
jdcQueryWrapper
.
eq
(
"xxsc_pdbz"
,
"0"
);
jdcQueryWrapper
.
eq
(
"xxsc_pdbz"
,
"0"
);
Integer
kyjdcCount
=
tbXwKyxsJdcMapper
.
selectCount
(
jdcQueryWrapper
);
Integer
kyjdcCount
=
tbXwKyxsJdcMapper
.
selectCount
(
jdcQueryWrapper
);
Integer
kytxCount
=
tbXwKyxsTxMapper
.
selectCountByAsjbh
(
asjbh
);
Integer
kytxCount
=
tbXwKyxsTxMapper
.
selectCountByAsjbh
(
asjbh
);
Integer
kyyyCount
=
tbXwKyxsYyMapper
.
selectCountByAsjbh
(
asjbh
);
Integer
kyspCount
=
tbXwKyxsSpMapper
.
selectCountByAsjbh
(
asjbh
);
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"kyryCount"
,
kyryCount
);
resultMap
.
put
(
"kyryCount"
,
kyryCount
);
resultMap
.
put
(
"kyhmCount"
,
kyhmCount
);
resultMap
.
put
(
"kyhmCount"
,
kyhmCount
);
resultMap
.
put
(
"kyjdcCount"
,
kyjdcCount
);
resultMap
.
put
(
"kyjdcCount"
,
kyjdcCount
);
resultMap
.
put
(
"kytxCount"
,
kytxCount
);
resultMap
.
put
(
"kytxCount"
,
kytxCount
);
resultMap
.
put
(
"kyxsCount"
,
kyryCount
+
kyhmCount
+
kyjdcCount
+
kytxCount
);
resultMap
.
put
(
"kyyyCount"
,
kyyyCount
);
resultMap
.
put
(
"kyspCount"
,
kyspCount
);
resultMap
.
put
(
"kyxsCount"
,
kyryCount
+
kyhmCount
+
kyjdcCount
+
kytxCount
+
kyyyCount
+
kyspCount
);
return
resultMap
;
return
resultMap
;
}
}
...
@@ -310,6 +358,10 @@ public class KyxsServiceImpl implements KyxsService {
...
@@ -310,6 +358,10 @@ public class KyxsServiceImpl implements KyxsService {
return
tbXwKyxsJdc
;
return
tbXwKyxsJdc
;
case
"tx"
:
//图像
case
"tx"
:
//图像
return
tbXwKyxsTxMapper
.
selectOneByXxzjbh
(
xxzjbh
);
return
tbXwKyxsTxMapper
.
selectOneByXxzjbh
(
xxzjbh
);
case
"yy"
:
//语音
return
tbXwKyxsYyMapper
.
selectOneByXxzjbh
(
xxzjbh
);
case
"sp"
:
//视频
return
tbXwKyxsSpMapper
.
selectOneByXxzjbh
(
xxzjbh
);
}
}
}
}
return
null
;
return
null
;
...
@@ -342,17 +394,34 @@ public class KyxsServiceImpl implements KyxsService {
...
@@ -342,17 +394,34 @@ public class KyxsServiceImpl implements KyxsService {
}
}
@Override
@Override
public
void
getFile
(
String
xxzjbh
,
HttpServletResponse
response
)
throws
IOException
{
public
void
getFile
(
String
xxzjbh
,
HttpServletResponse
response
,
String
type
)
throws
IOException
{
TbXwKyxsTx
tx
=
tbXwKyxsTxMapper
.
selectById
(
xxzjbh
);
if
(
type
!=
null
){
InputStream
inputStream
=
new
ByteArrayInputStream
(
tx
.
getKyxstxTxnr
());
InputStream
inputStream
=
null
;
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
tx
.
getKyxstxTxbt
(),
"UTF-8"
));
switch
(
type
){
case
"tx"
:
TbXwKyxsTx
tx
=
tbXwKyxsTxMapper
.
selectById
(
xxzjbh
);
inputStream
=
new
ByteArrayInputStream
(
tx
.
getKyxstxTxnr
());
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
tx
.
getKyxstxTxbt
(),
"UTF-8"
));
break
;
case
"yy"
:
TbXwKyxsYy
yy
=
tbXwKyxsYyMapper
.
selectById
(
xxzjbh
);
inputStream
=
new
ByteArrayInputStream
(
yy
.
getKyxsyyYynr
());
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
xxzjbh
+
"语音"
,
"UTF-8"
));
break
;
case
"sp"
:
TbXwKyxsSp
sp
=
tbXwKyxsSpMapper
.
selectById
(
xxzjbh
);
inputStream
=
new
ByteArrayInputStream
(
sp
.
getKyxsspPpnr
());
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
xxzjbh
+
"视频"
,
"UTF-8"
));
break
;
}
ServletOutputStream
outputStream
=
response
.
getOutputStream
();
ServletOutputStream
outputStream
=
response
.
getOutputStream
();
IOUtils
.
copy
(
inputStream
,
outputStream
);
IOUtils
.
copy
(
inputStream
,
outputStream
);
try
{
try
{
IOUtils
.
closeQuietly
(
inputStream
);
IOUtils
.
closeQuietly
(
inputStream
);
IOUtils
.
closeQuietly
(
outputStream
);
IOUtils
.
closeQuietly
(
outputStream
);
}
catch
(
Exception
ignored
)
{
}
catch
(
Exception
ignored
)
{
}
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment