Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-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
雷紫添
xzxt-api-report
Commits
feef0c0e
Commit
feef0c0e
authored
Aug 24, 2022
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图侦、电诈现勘相关表数量查询接口
parent
4288fb78
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
487 additions
and
0 deletions
+487
-0
src/main/java/com/founder/config/DataSourceTzConfig.java
+41
-0
src/main/java/com/founder/config/DataSourceXkxtConfig.java
+41
-0
src/main/java/com/founder/zyfw/controller/ZyfwController.java
+154
-0
src/main/java/com/founder/zyfw/mysqldao/XzZyfwMapper.java
+2
-0
src/main/java/com/founder/zyfw/service/ZyfwService.java
+26
-0
src/main/java/com/founder/zyfw/service/impl/ZyfwServiceImpl.java
+69
-0
src/main/java/com/founder/zyfw/tzdao/TzZyfwMapper.java
+19
-0
src/main/java/com/founder/zyfw/xkxtdao/XkxtZyfwMapper.java
+34
-0
src/main/resources/application-dev.yml
+12
-0
src/main/resources/mybatis/mysqlMapper/XzZyfwMapper.xml
+7
-0
src/main/resources/mybatis/tzMapper/TzZyfwMapper.xml
+17
-0
src/main/resources/mybatis/xkxtMapper/XkxtZyfwMapper.xml
+65
-0
No files found.
src/main/java/com/founder/config/DataSourceTzConfig.java
0 → 100644
View file @
feef0c0e
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.Qualifier
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.jdbc.DataSourceBuilder
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.io.support.PathMatchingResourcePatternResolver
;
import
javax.sql.DataSource
;
/**
* Created by summer on 2016/11/25.
*/
@Configuration
@MapperScan
(
basePackages
=
"com.founder.*.tzdao"
,
sqlSessionTemplateRef
=
"tzSqlSessionTemplate"
)
public
class
DataSourceTzConfig
{
@Bean
(
name
=
"tzDataSource"
)
@ConfigurationProperties
(
prefix
=
"spring.datasource.tz"
)
public
DataSource
tzDataSource
()
{
return
DataSourceBuilder
.
create
().
build
();
}
@Bean
(
name
=
"tzSqlSessionFactory"
)
public
SqlSessionFactory
tzSqlSessionFactory
(
@Qualifier
(
"tzDataSource"
)
DataSource
dataSource
)
throws
Exception
{
SqlSessionFactoryBean
bean
=
new
SqlSessionFactoryBean
();
bean
.
setDataSource
(
dataSource
);
bean
.
setMapperLocations
(
new
PathMatchingResourcePatternResolver
().
getResources
(
"classpath:mybatis/tzMapper/*.xml"
));
return
bean
.
getObject
();
}
@Bean
(
name
=
"tzSqlSessionTemplate"
)
public
SqlSessionTemplate
tzSqlSessionTemplate
(
@Qualifier
(
"tzSqlSessionFactory"
)
SqlSessionFactory
sqlSessionFactory
)
throws
Exception
{
return
new
SqlSessionTemplate
(
sqlSessionFactory
);
}
}
src/main/java/com/founder/config/DataSourceXkxtConfig.java
0 → 100644
View file @
feef0c0e
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.Qualifier
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.jdbc.DataSourceBuilder
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.io.support.PathMatchingResourcePatternResolver
;
import
javax.sql.DataSource
;
/**
* Created by summer on 2016/11/25.
*/
@Configuration
@MapperScan
(
basePackages
=
"com.founder.*.xkxtdao"
,
sqlSessionTemplateRef
=
"xkxtSqlSessionTemplate"
)
public
class
DataSourceXkxtConfig
{
@Bean
(
name
=
"xkxtDataSource"
)
@ConfigurationProperties
(
prefix
=
"spring.datasource.xkxt"
)
public
DataSource
xkxtDataSource
()
{
return
DataSourceBuilder
.
create
().
build
();
}
@Bean
(
name
=
"xkxtSqlSessionFactory"
)
public
SqlSessionFactory
xkxtSqlSessionFactory
(
@Qualifier
(
"xkxtDataSource"
)
DataSource
dataSource
)
throws
Exception
{
SqlSessionFactoryBean
bean
=
new
SqlSessionFactoryBean
();
bean
.
setDataSource
(
dataSource
);
bean
.
setMapperLocations
(
new
PathMatchingResourcePatternResolver
().
getResources
(
"classpath:mybatis/xkxtMapper/*.xml"
));
return
bean
.
getObject
();
}
@Bean
(
name
=
"xkxtSqlSessionTemplate"
)
public
SqlSessionTemplate
xkxtSqlSessionTemplate
(
@Qualifier
(
"xkxtSqlSessionFactory"
)
SqlSessionFactory
sqlSessionFactory
)
throws
Exception
{
return
new
SqlSessionTemplate
(
sqlSessionFactory
);
}
}
src/main/java/com/founder/zyfw/controller/ZyfwController.java
View file @
feef0c0e
...
...
@@ -454,5 +454,159 @@ public class ZyfwController {
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getXcspCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getXcspCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getXcspCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getXctpCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getXctpCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getXctpCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/zd/getFlwsCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getFlwsCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getFlwsCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkFjCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkFjCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkFjCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkDwbCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkDwbCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkDwbCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkTpxxCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkTpxxCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkTpxxCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkZjlCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkZjlCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkZjlCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkDzfjCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkDzfjCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkDzfjCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkWllCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkWllCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkWllCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkDhtxlCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkDhtxlCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkDhtxlCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkXckyCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkXckyCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkXckyCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkXcajCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkXcajCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkXcajCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/tj/getDzXkXcsaryCount"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getDzXkXcsaryCount
(
@RequestBody
ZyfwQueryParam
zyfwQueryParam
)
{
try
{
int
total
=
zyfwService
.
getDzXkXcsaryCount
(
zyfwQueryParam
.
getIsZl
());
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
}
src/main/java/com/founder/zyfw/mysqldao/XzZyfwMapper.java
View file @
feef0c0e
...
...
@@ -46,4 +46,6 @@ public interface XzZyfwMapper {
int
getCbypCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getCbajCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getFlwsCount
(
@Param
(
"isZl"
)
String
isZl
);
}
src/main/java/com/founder/zyfw/service/ZyfwService.java
View file @
feef0c0e
...
...
@@ -78,4 +78,30 @@ public interface ZyfwService {
int
getXczwCount
(
String
isZl
);
int
getZwbzCount
(
String
isZl
);
int
getXcspCount
(
String
isZl
);
int
getXctpCount
(
String
isZl
);
int
getFlwsCount
(
String
isZl
);
int
getDzXkFjCount
(
String
isZl
);
int
getDzXkDwbCount
(
String
isZl
);
int
getDzXkTpxxCount
(
String
isZl
);
int
getDzXkZjlCount
(
String
isZl
);
int
getDzXkDzfjCount
(
String
isZl
);
int
getDzXkWllCount
(
String
isZl
);
int
getDzXkDhtxlCount
(
String
isZl
);
int
getDzXkXckyCount
(
String
isZl
);
int
getDzXkXcajCount
(
String
isZl
);
int
getDzXkXcsaryCount
(
String
isZl
);
}
src/main/java/com/founder/zyfw/service/impl/ZyfwServiceImpl.java
View file @
feef0c0e
...
...
@@ -4,6 +4,8 @@ import com.founder.zyfw.ajzwdao.AjzwZyfwMapper;
import
com.founder.zyfw.mysqldao.XzZyfwMapper
;
import
com.founder.zyfw.service.ZyfwService
;
import
com.founder.zyfw.shcedao.ShceZyfwMapper
;
import
com.founder.zyfw.tzdao.TzZyfwMapper
;
import
com.founder.zyfw.xkxtdao.XkxtZyfwMapper
;
import
com.founder.zyfw.ythcjdao.YthcjZyfwMapper
;
import
com.founder.zyfw.zwbzdao.ZwbzZyfwMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -27,6 +29,10 @@ public class ZyfwServiceImpl implements ZyfwService {
private
AjzwZyfwMapper
ajzwZyfwMapper
;
@Autowired
private
ZwbzZyfwMapper
zwbzZyfwMapper
;
@Autowired
private
TzZyfwMapper
tzZyfwMapper
;
@Autowired
private
XkxtZyfwMapper
xkxtZyfwMapper
;
@Override
public
int
getAsjCount
(
String
isZl
)
{
...
...
@@ -207,4 +213,67 @@ public class ZyfwServiceImpl implements ZyfwService {
public
int
getZwbzCount
(
String
isZl
)
{
return
"1"
.
equals
(
isZl
)
?
0
:
zwbzZyfwMapper
.
getZwbzCount
();
}
@Override
public
int
getXcspCount
(
String
isZl
)
{
return
tzZyfwMapper
.
getXcspCount
(
isZl
);
}
@Override
public
int
getXctpCount
(
String
isZl
)
{
return
tzZyfwMapper
.
getXctpCount
(
isZl
);
}
@Override
public
int
getFlwsCount
(
String
isZl
)
{
return
xzZyfwMapper
.
getFlwsCount
(
isZl
);
}
@Override
public
int
getDzXkFjCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkFjCount
(
isZl
);
}
@Override
public
int
getDzXkDwbCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkDwbCount
(
isZl
);
}
@Override
public
int
getDzXkTpxxCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkTpxxCount
(
isZl
);
}
@Override
public
int
getDzXkZjlCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkZjlCount
(
isZl
);
}
@Override
public
int
getDzXkDzfjCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkDzfjCount
(
isZl
);
}
@Override
public
int
getDzXkWllCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkWllCount
(
isZl
);
}
@Override
public
int
getDzXkDhtxlCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkDhtxlCount
(
isZl
);
}
@Override
public
int
getDzXkXckyCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkXckyCount
(
isZl
);
}
@Override
public
int
getDzXkXcajCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkXcajCount
(
isZl
);
}
@Override
public
int
getDzXkXcsaryCount
(
String
isZl
)
{
return
xkxtZyfwMapper
.
getDzXkXcsaryCount
(
isZl
);
}
}
src/main/java/com/founder/zyfw/tzdao/TzZyfwMapper.java
0 → 100644
View file @
feef0c0e
package
com
.
founder
.
zyfw
.
tzdao
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
/**
*
* @author create by lystar
* @date 2022/8/23 16:36
*/
@Mapper
@Repository
public
interface
TzZyfwMapper
{
int
getXcspCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getXctpCount
(
@Param
(
"isZl"
)
String
isZl
);
}
src/main/java/com/founder/zyfw/xkxtdao/XkxtZyfwMapper.java
0 → 100644
View file @
feef0c0e
package
com
.
founder
.
zyfw
.
xkxtdao
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
/**
* @author create by lystar
* @date 2022/8/24 09:14
*/
@Mapper
@Repository
public
interface
XkxtZyfwMapper
{
int
getDzXkFjCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkDwbCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkTpxxCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkZjlCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkDzfjCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkWllCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkDhtxlCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkXckyCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkXcajCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getDzXkXcsaryCount
(
@Param
(
"isZl"
)
String
isZl
);
}
src/main/resources/application-dev.yml
View file @
feef0c0e
...
...
@@ -67,6 +67,18 @@ spring:
password
:
founder2022
jdbc-url
:
jdbc:oracle:thin:@47.92.129.99:1560:orcl
type
:
com.alibaba.druid.pool.DruidDataSource
tz
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
hnstxz
password
:
hnstxzasdf!234
jdbc-url
:
jdbc:mysql://65.26.2.141:3306/hn_eis?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
type
:
com.alibaba.druid.pool.DruidDataSource
xkxt
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
xiankan3_zjk
password
:
xcky.0216
jdbc-url
:
jdbc:mysql://65.26.2.215:3306/csims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
type
:
com.alibaba.druid.pool.DruidDataSource
#配置jpa 使其展示sql语句
jpa
:
...
...
src/main/resources/mybatis/mysqlMapper/XzZyfwMapper.xml
View file @
feef0c0e
...
...
@@ -111,4 +111,10 @@
and gxsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getFlwsCount"
resultType=
"java.lang.Integer"
>
select count(xxzjbh) from tb_st_asj_flws where xxsc_pdbz = '0'
<if
test=
"isZl == '1'.toString()"
>
and djsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/tzMapper/TzZyfwMapper.xml
0 → 100644
View file @
feef0c0e
<?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.zyfw.tzdao.TzZyfwMapper"
>
<select
id=
"getXcspCount"
resultType=
"java.lang.Integer"
>
select count(*) from view_app_camera_media
<if
test=
"isZl == '1'.toString()"
>
and create_time >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getXctpCount"
resultType=
"java.lang.Integer"
>
select count(*) from view_app_lawcase_objext_result
<if
test=
"isZl == '1'.toString()"
>
and createtime >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/xkxtMapper/XkxtZyfwMapper.xml
0 → 100644
View file @
feef0c0e
<?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.zyfw.xkxtdao.XkxtZyfwMapper"
>
<select
id=
"getDzXkFjCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_common_attachment where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkDwbCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_common_bigtext where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkTpxxCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_common_picture where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkZjlCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_cyberscene_capital_flow where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkDzfjCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_cyberscene_common_file where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkWllCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_cyberscene_cyber_flow where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkDhtxlCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_cyberscene_telcontact where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkXckyCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_scene_investigation where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkXcajCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_scene_investigation_dispatch where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select
id=
"getDzXkXcsaryCount"
resultType=
"java.lang.Integer"
>
select count(*) from v_scene_offender where scbz = 0
<if
test=
"isZl == '1'.toString()"
>
and cjsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
</mapper>
\ No newline at end of file
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