Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
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
曹鹏
bigdatainterservice
Commits
68a73151
Commit
68a73151
authored
Jun 12, 2019
by
chang_chao@founder.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改时空回溯的表名
parent
c2aedeb2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
75 additions
and
89 deletions
+75
-89
src/main/java/com/founder/interservice/mapper/xzxt/SBTResultDetailMapper.java
+23
-0
src/main/java/com/founder/interservice/mapper/xzxt/SpatiotemporalBackTrackResultDetailMapper.java
+0
-23
src/main/java/com/founder/interservice/spatiotemporalBackTrack/controller/SpatiotemporalBackTrackController.java
+6
-9
src/main/java/com/founder/interservice/spatiotemporalBackTrack/model/SBTResultDetail.java
+1
-1
src/main/java/com/founder/interservice/spatiotemporalBackTrack/service/SpatiotemporalBackTrackService.java
+4
-4
src/main/java/com/founder/interservice/spatiotemporalBackTrack/service/impl/SpatiotemporalBackTrackScheduledService.java
+21
-22
src/main/java/com/founder/interservice/spatiotemporalBackTrack/service/impl/SpatiotemporalBackTrackServiceImpl.java
+9
-19
src/main/resources/mybatis/mapper/xzxt/SpatiotemporalBackTrackResultDetailMapper.xml
+11
-11
No files found.
src/main/java/com/founder/interservice/mapper/xzxt/SBTResultDetailMapper.java
0 → 100644
View file @
68a73151
package
com
.
founder
.
interservice
.
mapper
.
xzxt
;
import
com.founder.interservice.exception.InterServiceException
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SBTResultDetail
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Repository
public
interface
SBTResultDetailMapper
{
int
spatiotemporalBackTrackResultDetailIsExist
(
SBTResultDetail
results
);
int
saveSpatiotemporalBackTrackResultDetail
(
SBTResultDetail
detail
);
int
updateSpatiotemporalBackTrackResultDetail
(
SBTResultDetail
detail
);
List
<
SBTResultDetail
>
pageSBTResultDetail
(
SBTResultDetail
detail
)
throws
InterServiceException
;
Integer
pageSBTResultDetailTotalcount
(
SBTResultDetail
detail
)
throws
InterServiceException
;
}
src/main/java/com/founder/interservice/mapper/xzxt/SpatiotemporalBackTrackResultDetailMapper.java
deleted
100644 → 0
View file @
c2aedeb2
package
com
.
founder
.
interservice
.
mapper
.
xzxt
;
import
com.founder.interservice.exception.InterServiceException
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrackResultDetail
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Repository
public
interface
SpatiotemporalBackTrackResultDetailMapper
{
int
spatiotemporalBackTrackResultDetailIsExist
(
SpatiotemporalBackTrackResultDetail
results
);
int
saveSpatiotemporalBackTrackResultDetail
(
SpatiotemporalBackTrackResultDetail
detail
);
int
updateSpatiotemporalBackTrackResultDetail
(
SpatiotemporalBackTrackResultDetail
detail
);
List
<
SpatiotemporalBackTrackResultDetail
>
pageSpatiotemporalBackTrackResultDetail
(
SpatiotemporalBackTrackResultDetail
detail
)
throws
InterServiceException
;
Integer
pageSpatiotemporalBackTrackResultDetailTotalcount
(
SpatiotemporalBackTrackResultDetail
detail
)
throws
InterServiceException
;
}
src/main/java/com/founder/interservice/spatiotemporalBackTrack/controller/SpatiotemporalBackTrackController.java
View file @
68a73151
...
...
@@ -2,13 +2,11 @@ package com.founder.interservice.spatiotemporalBackTrack.controller;
import
com.alibaba.fastjson.JSONObject
;
import
com.founder.interservice.VO.ResultVO
;
import
com.founder.interservice.dzgz.model.DzgzTask
;
import
com.founder.interservice.enums.ResultEnum
;
import
com.founder.interservice.exception.InterServiceException
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrack
;
import
com.founder.interservice.spatiotemporalBackTrack.model.S
patiotemporalBackTrack
ResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.model.S
BT
ResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.service.SpatiotemporalBackTrackService
;
import
com.founder.interservice.spatiotemporalBackTrack.service.impl.SpatiotemporalBackTrackScheduledService
;
import
com.founder.interservice.user.controller.UserContoller
;
import
com.founder.interservice.user.model.User
;
import
com.founder.interservice.util.EasyUIPage
;
...
...
@@ -18,7 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.*
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -77,8 +74,8 @@ public class SpatiotemporalBackTrackController {
return
resultVO
;
}
@RequestMapping
(
value
=
"/pageS
patiotemporalBackTrack
ResultDetail"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
Map
<
String
,
Object
>
pageS
patiotemporalBackTrack
ResultDetail
(
String
taskResultId
,
@RequestParam
(
value
=
"page"
,
defaultValue
=
"0"
)
int
page
,
@RequestMapping
(
value
=
"/pageS
BT
ResultDetail"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
Map
<
String
,
Object
>
pageS
BT
ResultDetail
(
String
taskResultId
,
@RequestParam
(
value
=
"page"
,
defaultValue
=
"0"
)
int
page
,
@RequestParam
(
value
=
"rows"
,
defaultValue
=
"0"
)
int
rows
){
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
try
{
...
...
@@ -87,12 +84,12 @@ public class SpatiotemporalBackTrackController {
easyUIPage
.
setPagePara
(
rows
);
int
begin
=
easyUIPage
.
getBegin
();
int
end
=
easyUIPage
.
getEnd
();
S
patiotemporalBackTrackResultDetail
detail
=
new
SpatiotemporalBackTrack
ResultDetail
();
S
BTResultDetail
detail
=
new
SBT
ResultDetail
();
detail
.
setStartNum
(
begin
);
detail
.
setEndNum
(
end
);
detail
.
setTaskResultId
(
taskResultId
);
List
<
S
patiotemporalBackTrackResultDetail
>
resultList
=
spatiotemporalBackTrackService
.
pageSpatiotemporalBackTrack
ResultDetail
(
detail
);
Integer
total
=
spatiotemporalBackTrackService
.
pageS
patiotemporalBackTrack
ResultDetailTotalcount
(
detail
);
List
<
S
BTResultDetail
>
resultList
=
spatiotemporalBackTrackService
.
pageSBT
ResultDetail
(
detail
);
Integer
total
=
spatiotemporalBackTrackService
.
pageS
BT
ResultDetailTotalcount
(
detail
);
if
(
resultList
.
size
()>
0
&&
null
!=
resultList
){
resultMap
.
put
(
"msg"
,
ResultEnum
.
SUCCESS
.
getMessage
());
resultMap
.
put
(
"code"
,
ResultEnum
.
SUCCESS
.
getCode
());
...
...
src/main/java/com/founder/interservice/spatiotemporalBackTrack/model/S
patiotemporalBackTrack
ResultDetail.java
→
src/main/java/com/founder/interservice/spatiotemporalBackTrack/model/S
BT
ResultDetail.java
View file @
68a73151
...
...
@@ -7,7 +7,7 @@ import org.springframework.format.annotation.DateTimeFormat;
import
java.util.Date
;
@Data
public
class
S
patiotemporalBackTrack
ResultDetail
{
public
class
S
BT
ResultDetail
{
private
String
XXZJBH
;
private
String
taskResultId
;
//案件编号
private
String
objectType
;
...
...
src/main/java/com/founder/interservice/spatiotemporalBackTrack/service/SpatiotemporalBackTrackService.java
View file @
68a73151
...
...
@@ -3,20 +3,20 @@ package com.founder.interservice.spatiotemporalBackTrack.service;
import
com.founder.interservice.exception.InterServiceException
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrack
;
import
com.founder.interservice.spatiotemporalBackTrack.model.S
patiotemporalBackTrack
ResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.model.S
BT
ResultDetail
;
import
java.util.List
;
public
interface
SpatiotemporalBackTrackService
{
boolean
spatiotemporalBackTrackResultDetailIsExist
(
S
patiotemporalBackTrack
ResultDetail
results
);
boolean
spatiotemporalBackTrackResultDetailIsExist
(
S
BT
ResultDetail
results
);
String
getTaskId
(
String
asjbh
,
String
taskName
,
String
paramStr
)
throws
InterServiceException
;
void
saveSpatiotemporalBackTrack
(
SpatiotemporalBackTrack
spatiotemporalBackTrack
)
throws
InterServiceException
;
List
<
S
patiotemporalBackTrackResultDetail
>
pageSpatiotemporalBackTrackResultDetail
(
SpatiotemporalBackTrack
ResultDetail
detail
)
throws
InterServiceException
;
List
<
S
BTResultDetail
>
pageSBTResultDetail
(
SBT
ResultDetail
detail
)
throws
InterServiceException
;
Integer
pageS
patiotemporalBackTrackResultDetailTotalcount
(
SpatiotemporalBackTrack
ResultDetail
detail
)
throws
InterServiceException
;
Integer
pageS
BTResultDetailTotalcount
(
SBT
ResultDetail
detail
)
throws
InterServiceException
;
}
src/main/java/com/founder/interservice/spatiotemporalBackTrack/service/impl/SpatiotemporalBackTrackScheduledService.java
View file @
68a73151
...
...
@@ -5,14 +5,13 @@ import com.alibaba.fastjson.JSONObject;
import
com.founder.interservice.enums.ResultEnum
;
import
com.founder.interservice.exception.InterServiceException
;
import
com.founder.interservice.mapper.xzxt.SpatiotemporalBackTrackMapper
;
import
com.founder.interservice.mapper.xzxt.S
patiotemporalBackTrack
ResultDetailMapper
;
import
com.founder.interservice.mapper.xzxt.S
BT
ResultDetailMapper
;
import
com.founder.interservice.mapper.xzxt.SpatiotemporalBackTrackResultMapper
;
import
com.founder.interservice.model.AutoTbStRy
;
import
com.founder.interservice.regionalanalysis.model.RegionalTaskResultDetail
;
import
com.founder.interservice.service.PushWaDataService
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrack
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrackResult
;
import
com.founder.interservice.spatiotemporalBackTrack.model.S
patiotemporalBackTrack
ResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.model.S
BT
ResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.service.SpatiotemporalBackTrackService
;
import
com.founder.interservice.util.DateUtil
;
import
com.founder.interservice.util.KeyUtil
;
...
...
@@ -45,7 +44,7 @@ public class SpatiotemporalBackTrackScheduledService {
@Autowired
private
SpatiotemporalBackTrackService
spatiotemporalBackTrackService
;
@Autowired
private
S
patiotemporalBackTrackResultDetailMapper
spatiotemporalBackTrack
ResultDetailMapper
;
private
S
BTResultDetailMapper
sBT
ResultDetailMapper
;
/**
*
* @Description: 查取任务结果的定时方法
...
...
@@ -237,23 +236,23 @@ public class SpatiotemporalBackTrackScheduledService {
/**
* 通过身份证号获取二代证信息
*
* @param s
patiotemporalBackTrack
ResultDetail
* @param s
BT
ResultDetail
* @return
*/
private
S
patiotemporalBackTrackResultDetail
getEdzxxForSfzh
(
SpatiotemporalBackTrackResultDetail
spatiotemporalBackTrack
ResultDetail
)
{
AutoTbStRy
tbStRy
=
new
Qgckzp
().
getQgckAllxxXml
(
s
patiotemporalBackTrack
ResultDetail
.
getZjhm
());
s
patiotemporalBackTrack
ResultDetail
.
setXzzDzmc
(
tbStRy
.
getXzzDzmc
());
//现住址
s
patiotemporalBackTrack
ResultDetail
.
setCsdDzmc
(
tbStRy
.
getCsdDzmc
());
//出生地
private
S
BTResultDetail
getEdzxxForSfzh
(
SBTResultDetail
sBT
ResultDetail
)
{
AutoTbStRy
tbStRy
=
new
Qgckzp
().
getQgckAllxxXml
(
s
BT
ResultDetail
.
getZjhm
());
s
BT
ResultDetail
.
setXzzDzmc
(
tbStRy
.
getXzzDzmc
());
//现住址
s
BT
ResultDetail
.
setCsdDzmc
(
tbStRy
.
getCsdDzmc
());
//出生地
if
(
tbStRy
.
getCsrqRqgzxx
()
!=
null
)
{
s
patiotemporalBackTrack
ResultDetail
.
setBirthday
(
DateUtil
.
convertDateToChineseString
(
tbStRy
.
getCsrqRqgzxx
()));
//出生日期
s
patiotemporalBackTrack
ResultDetail
.
setAge
(
String
.
valueOf
(
DateUtil
.
getAge
(
tbStRy
.
getCsrqRqgzxx
())));
//age
s
BT
ResultDetail
.
setBirthday
(
DateUtil
.
convertDateToChineseString
(
tbStRy
.
getCsrqRqgzxx
()));
//出生日期
s
BT
ResultDetail
.
setAge
(
String
.
valueOf
(
DateUtil
.
getAge
(
tbStRy
.
getCsrqRqgzxx
())));
//age
}
s
patiotemporalBackTrack
ResultDetail
.
setName
(
tbStRy
.
getXm
());
//姓名
s
patiotemporalBackTrack
ResultDetail
.
setSex
(
tbStRy
.
getXbdm
());
//性别
s
BT
ResultDetail
.
setName
(
tbStRy
.
getXm
());
//姓名
s
BT
ResultDetail
.
setSex
(
tbStRy
.
getXbdm
());
//性别
if
(
tbStRy
.
getEdzzplj
()
!=
null
)
{
s
patiotemporalBackTrack
ResultDetail
.
setRyzp
(
tbStRy
.
getEdzzplj
().
getBytes
());
//人员照片
s
BT
ResultDetail
.
setRyzp
(
tbStRy
.
getEdzzplj
().
getBytes
());
//人员照片
}
return
s
patiotemporalBackTrack
ResultDetail
;
return
s
BT
ResultDetail
;
}
/**
...
...
@@ -352,7 +351,7 @@ public class SpatiotemporalBackTrackScheduledService {
jsonObj
=
json
.
getJSONObject
(
"data"
);
}
if
(
jsonObj
!=
null
&&
!
jsonObj
.
isEmpty
())
{
S
patiotemporalBackTrackResultDetail
detail
=
new
SpatiotemporalBackTrack
ResultDetail
();
S
BTResultDetail
detail
=
new
SBT
ResultDetail
();
detail
.
setTaskResultId
(
result
.
getXxzjbh
());
detail
.
setXXZJBH
(
KeyUtil
.
getUniqueKey
(
"HSD"
));
detail
.
setObjectType
(
objType
);
...
...
@@ -366,26 +365,26 @@ public class SpatiotemporalBackTrackScheduledService {
detail
.
setZjhm
(
objValue2
);
detail
=
getEdzxxForSfzh
(
detail
);
//获取二代证信息
//根据身份证判断是否存在 如果存在更新 不存在新增
S
patiotemporalBackTrackResultDetail
param
=
new
SpatiotemporalBackTrack
ResultDetail
();
S
BTResultDetail
param
=
new
SBT
ResultDetail
();
param
.
setObjectType
(
objType
);
param
.
setObjectValue
(
objValue
);
boolean
isExist
=
spatiotemporalBackTrackService
.
spatiotemporalBackTrackResultDetailIsExist
(
param
);
if
(!
isExist
)
{
s
patiotemporalBackTrack
ResultDetailMapper
.
saveSpatiotemporalBackTrackResultDetail
(
detail
);
s
BT
ResultDetailMapper
.
saveSpatiotemporalBackTrackResultDetail
(
detail
);
}
else
{
s
patiotemporalBackTrack
ResultDetailMapper
.
updateSpatiotemporalBackTrackResultDetail
(
detail
);
s
BT
ResultDetailMapper
.
updateSpatiotemporalBackTrackResultDetail
(
detail
);
}
}
else
if
(
Arrays
.
asList
(
"20"
,
"4394"
,
"3996"
,
"6003"
).
contains
(
objType2
)){
//手机号码
detail
.
setSjhm
(
objValue2
);
S
patiotemporalBackTrackResultDetail
param
=
new
SpatiotemporalBackTrack
ResultDetail
();
S
BTResultDetail
param
=
new
SBT
ResultDetail
();
param
.
setObjectType
(
objType
);
param
.
setObjectValue
(
objValue
);
boolean
isExist
=
spatiotemporalBackTrackService
.
spatiotemporalBackTrackResultDetailIsExist
(
param
);
if
(!
isExist
)
{
s
patiotemporalBackTrack
ResultDetailMapper
.
saveSpatiotemporalBackTrackResultDetail
(
detail
);
s
BT
ResultDetailMapper
.
saveSpatiotemporalBackTrackResultDetail
(
detail
);
}
else
{
s
patiotemporalBackTrack
ResultDetailMapper
.
updateSpatiotemporalBackTrackResultDetail
(
detail
);
s
BT
ResultDetailMapper
.
updateSpatiotemporalBackTrackResultDetail
(
detail
);
}
}
}
...
...
src/main/java/com/founder/interservice/spatiotemporalBackTrack/service/impl/SpatiotemporalBackTrackServiceImpl.java
View file @
68a73151
...
...
@@ -3,25 +3,15 @@ package com.founder.interservice.spatiotemporalBackTrack.service.impl;
import
com.founder.interservice.enums.ResultEnum
;
import
com.founder.interservice.exception.InterServiceException
;
import
com.founder.interservice.mapper.xzxt.*
;
import
com.founder.interservice.regionalanalysis.model.*
;
import
com.founder.interservice.regionalanalysis.repository.RegionalRepository
;
import
com.founder.interservice.regionalanalysis.repository.RegionalTaskRepository
;
import
com.founder.interservice.regionalanalysis.repository.RegionalTaskResultRepository
;
import
com.founder.interservice.regionalanalysis.repository.RegionalsTaskRepository
;
import
com.founder.interservice.regionalanalysis.service.RegionalAnalysisService
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrack
;
import
com.founder.interservice.spatiotemporalBackTrack.model.S
patiotemporalBackTrack
ResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.model.S
BT
ResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.service.SpatiotemporalBackTrackService
;
import
com.founder.interservice.util.HttpUtil
;
import
com.founder.interservice.util.StringUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.domain.*
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.persistence.criteria.*
;
import
java.util.*
;
@Transactional
...
...
@@ -31,14 +21,14 @@ public class SpatiotemporalBackTrackServiceImpl implements SpatiotemporalBackTra
@Autowired
private
SpatiotemporalBackTrackMapper
spatiotemporalBackTrackMapper
;
@Autowired
private
S
patiotemporalBackTrackResultDetailMapper
spatiotemporalBackTrack
ResultDetailMapper
;
private
S
BTResultDetailMapper
sBT
ResultDetailMapper
;
@Value
(
"${wabigdata.fixedEvidenceByRegionTask.url}"
)
private
String
DZGZ_COMMIT_URL
;
@Override
public
boolean
spatiotemporalBackTrackResultDetailIsExist
(
S
patiotemporalBackTrack
ResultDetail
results
)
{
public
boolean
spatiotemporalBackTrackResultDetailIsExist
(
S
BT
ResultDetail
results
)
{
boolean
flag
=
false
;
int
i
=
s
patiotemporalBackTrack
ResultDetailMapper
.
spatiotemporalBackTrackResultDetailIsExist
(
results
);
int
i
=
s
BT
ResultDetailMapper
.
spatiotemporalBackTrackResultDetailIsExist
(
results
);
if
(
i
>
0
){
flag
=
true
;
}
...
...
@@ -77,10 +67,10 @@ public class SpatiotemporalBackTrackServiceImpl implements SpatiotemporalBackTra
}
@Override
public
List
<
S
patiotemporalBackTrackResultDetail
>
pageSpatiotemporalBackTrackResultDetail
(
SpatiotemporalBackTrack
ResultDetail
detail
)
throws
InterServiceException
{
List
<
S
patiotemporalBackTrack
ResultDetail
>
lists
=
new
ArrayList
<>();
public
List
<
S
BTResultDetail
>
pageSBTResultDetail
(
SBT
ResultDetail
detail
)
throws
InterServiceException
{
List
<
S
BT
ResultDetail
>
lists
=
new
ArrayList
<>();
try
{
lists
=
s
patiotemporalBackTrackResultDetailMapper
.
pageSpatiotemporalBackTrack
ResultDetail
(
detail
);
lists
=
s
BTResultDetailMapper
.
pageSBT
ResultDetail
(
detail
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
throw
new
InterServiceException
(
ResultEnum
.
DB_QUERYERROR
.
getCode
(),
ResultEnum
.
DB_QUERYERROR
.
getMessage
(),
e
);
...
...
@@ -89,10 +79,10 @@ public class SpatiotemporalBackTrackServiceImpl implements SpatiotemporalBackTra
}
@Override
public
Integer
pageS
patiotemporalBackTrackResultDetailTotalcount
(
SpatiotemporalBackTrack
ResultDetail
detail
)
throws
InterServiceException
{
public
Integer
pageS
BTResultDetailTotalcount
(
SBT
ResultDetail
detail
)
throws
InterServiceException
{
Integer
total
=
0
;
try
{
total
=
s
patiotemporalBackTrackResultDetailMapper
.
pageSpatiotemporalBackTrack
ResultDetailTotalcount
(
detail
);
total
=
s
BTResultDetailMapper
.
pageSBT
ResultDetailTotalcount
(
detail
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
throw
new
InterServiceException
(
ResultEnum
.
DB_QUERYERROR
.
getCode
(),
ResultEnum
.
DB_QUERYERROR
.
getMessage
(),
e
);
...
...
src/main/resources/mybatis/mapper/xzxt/SpatiotemporalBackTrackResultDetailMapper.xml
View file @
68a73151
<?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.interservice.mapper.xzxt.S
patiotemporalBackTrack
ResultDetailMapper"
>
<mapper
namespace=
"com.founder.interservice.mapper.xzxt.S
BT
ResultDetailMapper"
>
<select
id=
"spatiotemporalBackTrackResultDetailIsExist"
resultType=
"int"
parameterType=
"com.founder.interservice.spatiotemporalBackTrack.model.S
patiotemporalBackTrack
ResultDetail"
>
<select
id=
"spatiotemporalBackTrackResultDetailIsExist"
resultType=
"int"
parameterType=
"com.founder.interservice.spatiotemporalBackTrack.model.S
BT
ResultDetail"
>
select count(*)
FROM S
PATIOTEMPORALBACKTRACKRESULT
DETAIL t
FROM S
BT_RESULT_
DETAIL t
WHERE t.OBJECT_TYPE = #{objectType} and
t.OBJECT_VALUE = #{objectValue}
</select>
<insert
id=
"saveSpatiotemporalBackTrackResultDetail"
parameterType=
"com.founder.interservice.spatiotemporalBackTrack.model.S
patiotemporalBackTrack
ResultDetail"
>
INSERT INTO S
PATIOTEMPORALBACKTRACKRESULT
DETAIL(
<insert
id=
"saveSpatiotemporalBackTrackResultDetail"
parameterType=
"com.founder.interservice.spatiotemporalBackTrack.model.S
BT
ResultDetail"
>
INSERT INTO S
BT_RESULT_
DETAIL(
XXZJBH,
TASK_RESULT_ID,
OBJECT_TYPE,
...
...
@@ -65,8 +65,8 @@
SYSDATE
)
</insert>
<update
id=
"updateSpatiotemporalBackTrackResultDetail"
parameterType=
"com.founder.interservice.spatiotemporalBackTrack.model.S
patiotemporalBackTrack
ResultDetail"
>
UPDATE S
PATIOTEMPORALBACKTRACKRESULT
DETAIL t
<update
id=
"updateSpatiotemporalBackTrackResultDetail"
parameterType=
"com.founder.interservice.spatiotemporalBackTrack.model.S
BT
ResultDetail"
>
UPDATE S
BT_RESULT_
DETAIL t
<set>
<if
test=
"objectType != null and objectType !=''"
>
t.OBJECT_TYPE = #{objectType},
</if>
<if
test=
"objectTypeName != null and objectTypeName !=''"
>
t.OBJECT_TYPE_NAME = #{objectTypeName},
</if>
...
...
@@ -88,7 +88,7 @@
t.OBJECT_TYPE = #{objectType}
and t.OBJECT_VALUE = #{objectValue}
</update>
<select
id =
"pageS
patiotemporalBackTrackResultDetail"
parameterType =
"com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrackResultDetail"
resultType=
"com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrack
ResultDetail"
>
<select
id =
"pageS
BTResultDetail"
parameterType =
"com.founder.interservice.spatiotemporalBackTrack.model.SBTResultDetail"
resultType=
"com.founder.interservice.spatiotemporalBackTrack.model.SBT
ResultDetail"
>
select t2.*
from (
select t1.*,
...
...
@@ -112,7 +112,7 @@
t.ZJLX as zjlx,
t.ZJLX_CODE as zjlxCode,
t.DJSJ as djsj
from S
PATIOTEMPORALBACKTRACKRESULT
DETAIL t
from S
BT_RESULT_
DETAIL t
where t.TASK_RESULT_ID = #{taskResultId}
order by t.DJSJ
) t1
...
...
@@ -121,9 +121,9 @@
where rn
<![CDATA[ > ]]>
#{startNum }
</select>
<select
id =
"pageS
patiotemporalBackTrackResultDetailTotalcount"
parameterType =
"com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrack
ResultDetail"
resultType=
"java.lang.Integer"
>
<select
id =
"pageS
BTResultDetailTotalcount"
parameterType =
"com.founder.interservice.spatiotemporalBackTrack.model.SBT
ResultDetail"
resultType=
"java.lang.Integer"
>
select count(*) from S
PATIOTEMPORALBACKTRACKRESULT
DETAIL
select count(*) from S
BT_RESULT_
DETAIL
where TASK_RESULT_ID = #{taskResultId}
</select>
...
...
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