Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
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
杨亮
hnxtbaboot
Commits
9bd3c1c8
Commit
9bd3c1c8
authored
Jun 22, 2020
by
焦荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增全省案件接口
parent
4aa47734
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
209 additions
and
4 deletions
+209
-4
src/main/java/com/founder/config/DataSourceConfig.java
+14
-0
src/main/java/com/founder/config/MybatisHnxzxtDbConfig.java
+41
-0
src/main/java/com/founder/controller/RyfkController.java
+6
-0
src/main/java/com/founder/hnxzasj/TbStasjService.java
+14
-0
src/main/java/com/founder/hnxzasj/impl/TbStasjServiceImpl.java
+30
-0
src/main/java/com/founder/hnxzxtDao/TbstAsjMapper.java
+17
-0
src/main/resources/application-dev.properties
+7
-0
src/main/resources/mapper/Tbstasj.xml
+37
-0
src/main/resources/templates/ryfk/ryfk.html
+43
-4
No files found.
src/main/java/com/founder/config/DataSourceConfig.java
View file @
9bd3c1c8
...
@@ -139,4 +139,18 @@ public class DataSourceConfig {
...
@@ -139,4 +139,18 @@ public class DataSourceConfig {
public
DataSource
nineDataSource
(){
public
DataSource
nineDataSource
(){
return
ninethDbProperties
().
initializeDataSourceBuilder
().
build
();
return
ninethDbProperties
().
initializeDataSourceBuilder
().
build
();
}
}
@Bean
(
name
=
"hnxzxtdbProperties"
)
@Qualifier
(
"hnxzxtdb"
)
@ConfigurationProperties
(
prefix
=
"spring.datasource.hnxzxtdb"
)
public
DataSourceProperties
tenthDbProperties
(){
return
new
DataSourceProperties
();
}
@Bean
(
name
=
"hnxzxtdb"
)
@Qualifier
(
"hnxzxtdb"
)
@ConfigurationProperties
(
prefix
=
"spring.datasource.hnxzxtdb"
)
public
DataSource
tenthDataSource
(){
return
tenthDbProperties
().
initializeDataSourceBuilder
().
build
();
}
}
}
src/main/java/com/founder/config/MybatisHnxzxtDbConfig.java
0 → 100644
View file @
9bd3c1c8
package
com
.
founder
.
config
;
import
org.apache.ibatis.session.SqlSessionFactory
;
import
org.mybatis.spring.SqlSessionFactoryBean
;
import
org.mybatis.spring.SqlSessionTemplate
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.core.io.support.PathMatchingResourcePatternResolver
;
import
javax.sql.DataSource
;
@Configuration
@MapperScan
(
basePackages
=
{
"com.founder.hnxzxtDao"
},
sqlSessionFactoryRef
=
"hnxzxtSqlSessionFactory"
)
public
class
MybatisHnxzxtDbConfig
{
static
final
String
MAPPER_LOCATION
=
"classpath:mapper/*.xml"
;
@Autowired
@Qualifier
(
"hnxzxtdb"
)
private
DataSource
hnxzxtdb
;
@Bean
(
name
=
"hnxzxtSqlSessionFactory"
)
@Primary
public
SqlSessionFactory
baseSqlSessionFactory
()
throws
Exception
{
SqlSessionFactoryBean
factoryBean
=
new
SqlSessionFactoryBean
();
factoryBean
.
setDataSource
(
hnxzxtdb
);
factoryBean
.
setMapperLocations
(
new
PathMatchingResourcePatternResolver
().
getResources
(
MybatisHnxzxtDbConfig
.
MAPPER_LOCATION
));
return
factoryBean
.
getObject
();
}
@Bean
(
name
=
"hnxzxtSqlSessionTemplate"
)
@Primary
public
SqlSessionTemplate
baseSqlSessionTemplate
()
throws
Exception
{
return
new
SqlSessionTemplate
(
baseSqlSessionFactory
());
}
}
src/main/java/com/founder/controller/RyfkController.java
View file @
9bd3c1c8
...
@@ -2,6 +2,7 @@ package com.founder.controller;
...
@@ -2,6 +2,7 @@ package com.founder.controller;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.founder.hnxzasj.TbStasjService
;
import
com.founder.model.*
;
import
com.founder.model.*
;
import
com.founder.model.amsis.Plainimg
;
import
com.founder.model.amsis.Plainimg
;
import
com.founder.model.amsis.Rollimg
;
import
com.founder.model.amsis.Rollimg
;
...
@@ -54,6 +55,8 @@ public class RyfkController {
...
@@ -54,6 +55,8 @@ public class RyfkController {
private
IYhkCjService
yhkCjService
;
private
IYhkCjService
yhkCjService
;
@Autowired
@Autowired
private
TbywztryService
tbywztryService
;
private
TbywztryService
tbywztryService
;
@Autowired
private
TbStasjService
tbStasjServiceImpl
;
...
@@ -90,12 +93,15 @@ public class RyfkController {
...
@@ -90,12 +93,15 @@ public class RyfkController {
bzcs
=
1
;
bzcs
=
1
;
}
}
List
<
TbStAsj
>
qsasjxxlist
=
tbStasjServiceImpl
.
getAsjByzjhm
(
zjhm
);
// ryjbxx = rycjService.getRycjInfoByzjhm(zjhm);
// ryjbxx = rycjService.getRycjInfoByzjhm(zjhm);
// List qgajxxlist = this.getQgajxx2(zjhm);
// List qgajxxlist = this.getQgajxx2(zjhm);
//List ztryxxlist = new ArrayList();
//List ztryxxlist = new ArrayList();
model
.
addAttribute
(
"ryjbxx"
,
ryjbxx
);
//常口
model
.
addAttribute
(
"ryjbxx"
,
ryjbxx
);
//常口
model
.
addAttribute
(
"qgajxxlist"
,
qgajxxlist
);
//全国案件信息
model
.
addAttribute
(
"qgajxxlist"
,
qgajxxlist
);
//全国案件信息
model
.
addAttribute
(
"qsasjxxlist"
,
qsasjxxlist
);
//全国案件信息
model
.
addAttribute
(
"ztryxxlist"
,
ztryxxlist
);
//在逃人员信息
model
.
addAttribute
(
"ztryxxlist"
,
ztryxxlist
);
//在逃人员信息
model
.
addAttribute
(
"bzcs"
,
bzcs
);
//比中次数
model
.
addAttribute
(
"bzcs"
,
bzcs
);
//比中次数
model
.
addAttribute
(
"tbZwbzxx"
,
tbZwbzxx
);
//比中信息
model
.
addAttribute
(
"tbZwbzxx"
,
tbZwbzxx
);
//比中信息
...
...
src/main/java/com/founder/hnxzasj/TbStasjService.java
0 → 100644
View file @
9bd3c1c8
package
com
.
founder
.
hnxzasj
;
import
com.founder.model.TbStAsj
;
import
com.founder.model.TbStZtryxx
;
import
java.util.List
;
/**
* Created by libin on 2018/4/12.
*/
public
interface
TbStasjService
{
TbStZtryxx
getZtryByztbh
(
String
zjhm
);
List
<
TbStAsj
>
getAsjByzjhm
(
String
zjhm
);
}
src/main/java/com/founder/hnxzasj/impl/TbStasjServiceImpl.java
0 → 100644
View file @
9bd3c1c8
package
com
.
founder
.
hnxzasj
.
impl
;
import
com.founder.hnxzasj.TbStasjService
;
import
com.founder.hnxzxtDao.TbstAsjMapper
;
import
com.founder.model.TbStAsj
;
import
com.founder.model.TbStZtryxx
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
@Service
public
class
TbStasjServiceImpl
implements
TbStasjService
{
@Autowired
private
TbstAsjMapper
tbstAsjMapper
;
@Override
public
TbStZtryxx
getZtryByztbh
(
String
zjhm
)
{
return
null
;
}
@Override
public
List
<
TbStAsj
>
getAsjByzjhm
(
String
zjhm
)
{
List
<
TbStAsj
>
ztrylist
=
new
ArrayList
<
TbStAsj
>();
ztrylist
=
tbstAsjMapper
.
getAsjByzjhm
(
zjhm
);
return
ztrylist
;
}
}
src/main/java/com/founder/hnxzxtDao/TbstAsjMapper.java
0 → 100644
View file @
9bd3c1c8
package
com
.
founder
.
hnxzxtDao
;
import
com.founder.model.TbStAsj
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
@Component
@Mapper
public
interface
TbstAsjMapper
{
TbStAsj
getAsj
(
String
ASJBH
);
List
<
TbStAsj
>
getAsjByzjhm
(
@Param
(
"zjhm"
)
String
zjhm
);
}
\ No newline at end of file
src/main/resources/application-dev.properties
View file @
9bd3c1c8
...
@@ -72,6 +72,13 @@ spring.datasource.ztrydb.password=XZXT
...
@@ -72,6 +72,13 @@ spring.datasource.ztrydb.password=XZXT
spring.datasource.ztrydb.driver-class-name
=
oracle.jdbc.driver.OracleDriver
spring.datasource.ztrydb.driver-class-name
=
oracle.jdbc.driver.OracleDriver
spring.datasource.ztrydb.type
:
com.alibaba.druid.pool.DruidDataSource
spring.datasource.ztrydb.type
:
com.alibaba.druid.pool.DruidDataSource
#海南刑专数据源配置
spring.datasource.hnxzxtdb.url
=
jdbc:oracle:thin:@47.92.129.99:1600:ORCL
spring.datasource.hnxzxtdb.username
=
XZXT
spring.datasource.hnxzxtdb.password
=
XZXT
spring.datasource.hnxzxtdb.driver-class-name
=
oracle.jdbc.driver.OracleDriver
spring.datasource.hnxzxtdb.type
:
com.alibaba.druid.pool.DruidDataSource
mapper.mappers
=
com.founder.util.MyMapper
mapper.mappers
=
com.founder.util.MyMapper
mapper.not-empty
=
false
mapper.not-empty
=
false
mapper.identity
=
oracle
mapper.identity
=
oracle
...
...
src/main/resources/mapper/Tbstasj.xml
0 → 100644
View file @
9bd3c1c8
<?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=
"com.founder.hnxzxtDao.TbstAsjMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.founder.model.TbStAsj"
>
<result
column=
"ASJBH"
jdbcType=
"VARCHAR"
property=
"ASJBH"
/>
<result
column=
"XCKYBH"
jdbcType=
"INTEGER"
property=
"XCKYBH"
/>
<result
column=
"ZCJDDM"
jdbcType=
"VARCHAR"
property=
"ZCJDDM"
/>
<result
column=
"AJLBDM"
jdbcType=
"DATE"
property=
"AJLBDM"
/>
<result
column=
"AJMC"
jdbcType=
"VARCHAR"
property=
"AJMC"
/>
<result
column=
"FXASJSJ"
jdbcType=
"VARCHAR"
property=
"FXASJSJ"
/>
<result
column=
"FXASJDD_XZQHDM"
jdbcType=
"VARCHAR"
property=
"FXASJDD_XZQHDM"
/>
<result
column=
"FXASJDD_DZMC"
jdbcType=
"INTEGER"
property=
"FXASJDD_DZMC"
/>
<result
column=
"JYAQ"
jdbcType=
"VARCHAR"
property=
"JYAQ"
/>
<result
column=
"FZXYRTZ_JYQK"
jdbcType=
"DATE"
property=
"FZXYRTZ_JYQK"
/>
<result
column=
"ZAGJ_JYQK"
jdbcType=
"VARCHAR"
property=
"ZAGJ_JYQK"
/>
<result
column=
"ZADJMS"
jdbcType=
"VARCHAR"
property=
"ZADJMS"
/>
<result
column=
"ZAMDMS"
jdbcType=
"VARCHAR"
property=
"ZAMDMS"
/>
<result
column=
"SLSJ"
jdbcType=
"DATE"
property=
"SLSJ"
/>
<result
column=
"LARQ"
jdbcType=
"VARCHAR"
property=
"LARQ"
/>
<result
column=
"LADW_GAJGMC"
jdbcType=
"VARCHAR"
property=
"LADW_GAJGMC"
/>
<result
column=
"ZARY_RS"
jdbcType=
"VARCHAR"
property=
"ZARY_RS"
/>
<result
column=
"ZCZJ_ZXSJ01"
jdbcType=
"INTEGER"
property=
"ZCZJ_ZXSJ01"
/>
<result
column=
"ZCZJDW_GAJGMC"
jdbcType=
"VARCHAR"
property=
"ZCZJDW_GAJGMC"
/>
</resultMap>
<!-- 通过条件联合分页查询,返回数据集 -->
<select
id=
"getAsjByzjhm"
parameterType=
"String"
resultMap=
"BaseResultMap"
>
select * from tb_st_asj where asjbh in (select asjbh from tb_gl_asj_ry gl where cyzj_zjhm = #{zjhm})
</select>
</mapper>
\ No newline at end of file
src/main/resources/templates/ryfk/ryfk.html
View file @
9bd3c1c8
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<a
href=
"#qgsaxx"
>
全国涉案信息
<span
class=
"count"
><p
th:text=
"${qgajxxlist.size()}"
></p></span></a>
<a
href=
"#qgsaxx"
>
全国涉案信息
<span
class=
"count"
><p
th:text=
"${qgajxxlist.size()}"
></p></span></a>
</li>
</li>
<li>
<li>
<a
href=
"#qssaxx"
>
全省涉案信息
<span
class=
"count"
>
0
</span></a>
<a
href=
"#qssaxx"
>
全省涉案信息
<span
class=
"count"
>
<p
th:text=
"${qsasjxxlist.size()}"
></p>
</span></a>
</li>
</li>
<li>
<li>
<a
href=
"#ztryxx"
>
在逃人员信息
<span
class=
"count"
><p
th:text=
"${ztryxxlist.size()}"
></p></span></a>
<a
href=
"#ztryxx"
>
在逃人员信息
<span
class=
"count"
><p
th:text=
"${ztryxxlist.size()}"
></p></span></a>
...
@@ -155,8 +155,47 @@
...
@@ -155,8 +155,47 @@
<div
class=
"line1"
id=
"qssaxx"
>
<div
class=
"line1"
id=
"qssaxx"
>
<div
class=
"centerbox"
>
<div
class=
"centerbox"
>
<h1><span
class=
"boder-left"
style=
"top:7px;"
></span><p>
全省涉案信息
<i
class=
"fa fa-angle-double-up iconsq"
title=
"收起"
onclick=
"toggleXx(this)"
></i></p></h1>
<h1><span
class=
"boder-left"
style=
"top:7px;"
></span><p>
全省涉案信息
<i
class=
"fa fa-angle-double-up iconsq"
title=
"收起"
onclick=
"toggleXx(this)"
></i></p></h1>
<div
class=
"bsh"
>
<div
class=
"bsh"
th:each=
"stasj,stasjStat:${qsasjxxlist}"
>
<table
class=
"jbxxTableWrap"
width=
"100%"
>
<tr
class=
"empty"
>
<td
width=
"5%"
></td><td
width=
"10%"
></td><td
width=
"23%"
></td><td
width=
"10%"
></td><td
width=
"23%"
></td><td
width=
"10%"
></td><td
width=
"23%"
></td>
</tr>
<tr>
<td
style=
"width:15%;"
th:text=
"案件 + ${stasjStat.index+1}"
></td>
<td
class=
"ar"
>
案件编号:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.ASJBH}"
></td>
<td
class=
"ar"
>
案件名称:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.AJMC}"
></td>
<td
class=
"ar"
>
现场勘验编号:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.XCKYBH}"
></td>
</tr>
<tr>
<td
style=
"width:15%;"
></td>
<td
class=
"ar"
>
发案时间:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.FXASJSJ}"
></td>
<td
class=
"ar"
>
发案地点:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.FXASJDD_DZMC}"
></td>
<td
class=
"ar"
>
立案日期:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.LARQ}"
></td>
</tr>
<tr>
<td
style=
"width:15%;"
></td>
<td
class=
"ar"
>
立案单位:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.LADW_GAJGMC}"
></td>
<td
class=
"ar"
>
侦查终结时间:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.ZCZJ_ZXSJ01}"
></td>
<td
class=
"ar"
>
侦查终结单位:
</td>
<td
style=
"width:15%;"
th:text=
"${stasj.ZCZJDW_GAJGMC}"
></td>
</tr>
<tr>
<td
style=
"width:15%;"
></td>
<td
class=
"ar"
>
简要案情:
</td>
<td
style=
"width:15%;"
colspan=
"5"
th:text=
"${stasj.JYAQ}"
></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -219,7 +258,7 @@
...
@@ -219,7 +258,7 @@
<div
class=
"line1"
id=
"zwbzxx"
>
<div
class=
"line1"
id=
"zwbzxx"
>
<div
class=
"centerbox"
>
<div
class=
"centerbox"
>
<h1><span
class=
"boder-left"
style=
"top:7px;"
></span><p>
指纹比中信息
<i
class=
"fa fa-angle-double-up iconsq"
title=
"收起"
onclick=
"toggleXx(this)"
></i></p></h1>
<h1><span
class=
"boder-left"
style=
"top:7px;"
></span><p>
指纹比中信息
<i
class=
"fa fa-angle-double-up iconsq"
title=
"收起"
onclick=
"toggleXx(this)"
></i></p></h1>
<div
class=
"bsh"
>
<div
class=
"bsh"
th:if=
"${tbZwbzxx.rwbh} ne null "
>
<table
class=
"jbxxTableWrap"
width=
"100%"
>
<table
class=
"jbxxTableWrap"
width=
"100%"
>
<tr
class=
"empty"
>
<tr
class=
"empty"
>
<td
width=
"10%"
></td><td
width=
"23%"
></td><td
width=
"10%"
></td><td
width=
"23%"
></td><td
width=
"10%"
></td><td
width=
"23%"
></td>
<td
width=
"10%"
></td><td
width=
"23%"
></td><td
width=
"10%"
></td><td
width=
"23%"
></td><td
width=
"10%"
></td><td
width=
"23%"
></td>
...
...
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