Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
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
常超
map-parent
Commits
2155915c
Commit
2155915c
authored
Sep 27, 2022
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除t_gxc_entity和t_gxc_relation表对应的接口
parent
a0af05b7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
561 deletions
+0
-561
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/TgxcEntity/TGxcRelation.java
+0
-210
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/TgxcEntity/Tgentity.java
+0
-41
common/common_utils/src/main/java/com/founder/commonutils/model/vo/param/TGxcEntity.java
+0
-146
service/publicapi/src/main/java/com/founder/publicapi/controller/SkDataOperation/SkDataRelationSelectController.java
+0
-59
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/SkDataRelationSelectMapper.java
+0
-17
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/SkDataRelationSelectMapper.xml
+0
-18
service/publicapi/src/main/java/com/founder/publicapi/service/SkDataRelationSelectService.java
+0
-15
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/SkDataRelationSelectServiceImpl.java
+0
-55
No files found.
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/TgxcEntity/TGxcRelation.java
deleted
100644 → 0
View file @
a0af05b7
package
com
.
founder
.
commonutils
.
model
.
newPublicEntity
.
TgxcEntity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
@Data
@TableName
(
"t_gxc_relation"
)
public
class
TGxcRelation
{
@ApiModelProperty
(
"信息主键编号"
)
private
String
id
;
@ApiModelProperty
(
"实体1编号id"
)
private
String
entity1
;
@ApiModelProperty
(
"实体2编号id"
)
private
String
entity2
;
@ApiModelProperty
(
"关系来源哪个库"
)
private
String
gxly
;
@ApiModelProperty
(
"关系串号"
)
private
String
gxch
;
@ApiModelProperty
(
"创建时间"
)
private
Date
createdate
;
@ApiModelProperty
(
"更新时间"
)
private
Date
gxsj
;
@ApiModelProperty
(
"备用1"
)
private
String
rev1
;
@ApiModelProperty
(
"存id,指纹是key"
)
private
String
rev2
;
@ApiModelProperty
(
"存串并号,指纹是matched,注意取limit 1 指纹有几条重的"
)
private
String
rev3
;
@ApiModelProperty
(
"存表名"
)
private
String
rev4
;
@ApiModelProperty
(
"备用字段"
)
private
String
rev5
;
@ApiModelProperty
(
"备用"
)
private
String
rev6
;
@ApiModelProperty
(
"指纹现堪编号"
)
private
String
zwxkbh
;
@ApiModelProperty
(
"指纹身份证号"
)
private
String
zwsfzh
;
@ApiModelProperty
(
"是否删除,0代表未删除,1代表删除"
)
private
String
isdeleted
;
public
TGxcRelation
()
{
}
public
TGxcRelation
(
String
id
,
String
entity1
,
String
entity2
,
String
gxly
,
String
gxch
,
Date
createdate
,
Date
gxsj
,
String
rev1
,
String
rev2
,
String
rev3
,
String
rev4
,
String
rev5
,
String
rev6
,
String
zwxkbh
,
String
zwsfzh
,
String
isdeleted
)
{
this
.
id
=
id
;
this
.
entity1
=
entity1
;
this
.
entity2
=
entity2
;
this
.
gxly
=
gxly
;
this
.
gxch
=
gxch
;
this
.
createdate
=
createdate
;
this
.
gxsj
=
gxsj
;
this
.
rev1
=
rev1
;
this
.
rev2
=
rev2
;
this
.
rev3
=
rev3
;
this
.
rev4
=
rev4
;
this
.
rev5
=
rev5
;
this
.
rev6
=
rev6
;
this
.
zwxkbh
=
zwxkbh
;
this
.
zwsfzh
=
zwsfzh
;
this
.
isdeleted
=
isdeleted
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getEntity1
()
{
return
entity1
;
}
public
void
setEntity1
(
String
entity1
)
{
this
.
entity1
=
entity1
;
}
public
String
getEntity2
()
{
return
entity2
;
}
public
void
setEntity2
(
String
entity2
)
{
this
.
entity2
=
entity2
;
}
public
String
getGxly
()
{
return
gxly
;
}
public
void
setGxly
(
String
gxly
)
{
this
.
gxly
=
gxly
;
}
public
String
getGxch
()
{
return
gxch
;
}
public
void
setGxch
(
String
gxch
)
{
this
.
gxch
=
gxch
;
}
public
Date
getCreatedate
()
{
return
createdate
;
}
public
void
setCreatedate
(
Date
createdate
)
{
this
.
createdate
=
createdate
;
}
public
Date
getGxsj
()
{
return
gxsj
;
}
public
void
setGxsj
(
Date
gxsj
)
{
this
.
gxsj
=
gxsj
;
}
public
String
getRev1
()
{
return
rev1
;
}
public
void
setRev1
(
String
rev1
)
{
this
.
rev1
=
rev1
;
}
public
String
getRev2
()
{
return
rev2
;
}
public
void
setRev2
(
String
rev2
)
{
this
.
rev2
=
rev2
;
}
public
String
getRev3
()
{
return
rev3
;
}
public
void
setRev3
(
String
rev3
)
{
this
.
rev3
=
rev3
;
}
public
String
getRev4
()
{
return
rev4
;
}
public
void
setRev4
(
String
rev4
)
{
this
.
rev4
=
rev4
;
}
public
String
getRev5
()
{
return
rev5
;
}
public
void
setRev5
(
String
rev5
)
{
this
.
rev5
=
rev5
;
}
public
String
getRev6
()
{
return
rev6
;
}
public
void
setRev6
(
String
rev6
)
{
this
.
rev6
=
rev6
;
}
public
String
getZwxkbh
()
{
return
zwxkbh
;
}
public
void
setZwxkbh
(
String
zwxkbh
)
{
this
.
zwxkbh
=
zwxkbh
;
}
public
String
getZwsfzh
()
{
return
zwsfzh
;
}
public
void
setZwsfzh
(
String
zwsfzh
)
{
this
.
zwsfzh
=
zwsfzh
;
}
public
String
getIsdeleted
()
{
return
isdeleted
;
}
public
void
setIsdeleted
(
String
isdeleted
)
{
this
.
isdeleted
=
isdeleted
;
}
}
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/TgxcEntity/Tgentity.java
deleted
100644 → 0
View file @
a0af05b7
package
com
.
founder
.
commonutils
.
model
.
newPublicEntity
.
TgxcEntity
;
import
lombok.Data
;
@Data
public
class
Tgentity
{
private
String
stbh
;
private
String
asjbh
;
public
Tgentity
(
String
stbh
,
String
asjbh
)
{
this
.
stbh
=
stbh
;
this
.
asjbh
=
asjbh
;
}
public
Tgentity
()
{
}
public
String
getStbh
()
{
return
stbh
;
}
public
void
setStbh
(
String
stbh
)
{
this
.
stbh
=
stbh
;
}
public
String
getAsjbh
()
{
return
asjbh
;
}
public
void
setAsjbh
(
String
asjbh
)
{
this
.
asjbh
=
asjbh
;
}
@Override
public
String
toString
()
{
return
"entity{"
+
"stbh='"
+
stbh
+
'\''
+
", asjbh='"
+
asjbh
+
'\''
+
'}'
;
}
}
common/common_utils/src/main/java/com/founder/commonutils/model/vo/param/TGxcEntity.java
deleted
100644 → 0
View file @
a0af05b7
package
com
.
founder
.
commonutils
.
model
.
vo
.
param
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.List
;
@Data
@TableName
(
"t_gxc_entity"
)
public
class
TGxcEntity
{
@ApiModelProperty
(
"信息主键编号"
)
private
String
id
;
@ApiModelProperty
(
"各类实体编号k号身份证号物品编号"
)
private
String
stbh
;
@ApiModelProperty
(
"实体是哪一类(现勘号1,人2,物品3)"
)
private
String
stlb
;
@ApiModelProperty
(
"k号属性接警编号"
)
private
String
jjbh
;
@ApiModelProperty
(
"k号属性asjbh"
)
private
String
asjbh
;
@ApiModelProperty
(
"k号属性案件性质"
)
private
String
ajxz
;
@ApiModelProperty
(
"k号属性发案区划"
)
private
String
faqh
;
@ApiModelProperty
(
"k号属性发案起始时间"
)
private
Date
faqssj
;
@ApiModelProperty
(
"k号属性发案结束时间"
)
private
Date
fajssj
;
@ApiModelProperty
(
"k号属性发案地点"
)
private
String
fadd
;
@ApiModelProperty
(
"k号属性简要案情"
)
private
String
jyaq
;
@ApiModelProperty
(
"k号属性案件状态"
)
private
String
ajzt
;
@ApiModelProperty
(
"k号属性破案时间"
)
private
Date
pasj
;
@ApiModelProperty
(
"k号属性破案经过"
)
private
String
pajg
;
@ApiModelProperty
(
"k号属性asjbh"
)
private
String
ajfxgc
;
@ApiModelProperty
(
"k号属性损失人民币元"
)
private
String
sunshi
;
@ApiModelProperty
(
"k号属性做案手法"
)
private
String
zasf
;
@ApiModelProperty
(
"身份证号属性嫌疑人姓名"
)
private
String
xyrxm
;
@ApiModelProperty
(
"身份证号属性户籍"
)
private
String
huji
;
@ApiModelProperty
(
"物品编号属性物品类别"
)
private
String
wplb
;
@ApiModelProperty
(
"实体原来的比中或串并号(暂时归于k号属性或者其他属性)"
)
private
String
ybh
;
@ApiModelProperty
(
"物证名称"
)
private
String
wzmc
;
@ApiModelProperty
(
"原始系统"
)
private
String
ysxt
;
@ApiModelProperty
(
"关联关系串号"
)
private
String
glgxch
;
@ApiModelProperty
(
"串号更新时间 "
)
private
Date
chgxsj
;
@ApiModelProperty
(
"备用1"
)
private
String
rev1
;
@ApiModelProperty
(
"备用2"
)
private
String
rev2
;
@ApiModelProperty
(
"破案次数"
)
private
String
pacs
;
@ApiModelProperty
(
"来源库"
)
private
String
lyk
;
@ApiModelProperty
(
"原串和表名"
)
private
String
ychtab
;
@ApiModelProperty
(
"dan委托id"
)
private
String
dnawtid
;
@ApiModelProperty
(
"原库创建时间或案件为发案时间"
)
private
Date
createdate
;
@ApiModelProperty
(
"更新时间"
)
private
Date
ykcjsj
;
@ApiModelProperty
(
"指纹caseid"
)
private
String
rev3
;
@ApiModelProperty
(
"案件实体所属单位"
)
private
String
zwcaseid
;
@ApiModelProperty
(
"存串并号,指纹是matched,注意取limit 1 指纹有几条重的"
)
private
String
dwdm
;
@ApiModelProperty
(
"实体更新时间"
)
private
Date
updatedate
;
@ApiModelProperty
(
"是否关联案件状态"
)
private
String
isglajzt
;
@ApiModelProperty
(
"案件性质代码用于统计入室盗窃案"
)
private
String
ajxzdm
;
@ApiModelProperty
(
"1标识是入室盗窃"
)
private
String
rsdq
;
@ApiModelProperty
(
"用于标识只有一个案件的串的所有实体,0表示大于1个案子,不含等于1"
)
private
String
rev7
;
@ApiModelProperty
(
"用于指令线索关联使用主键"
)
private
String
xsglstzj
;
@ApiModelProperty
(
"临时统计用"
)
private
String
lstj
;
@ApiModelProperty
(
"是否删除,0代表未删除,1代表删除"
)
private
String
isdeleted
;
}
service/publicapi/src/main/java/com/founder/publicapi/controller/SkDataOperation/SkDataRelationSelectController.java
deleted
100644 → 0
View file @
a0af05b7
package
com
.
founder
.
publicapi
.
controller
.
SkDataOperation
;
import
com.founder.commonutils.model.newPublicEntity.MapRestResult
;
import
com.founder.commonutils.model.newPublicEntity.TgxcEntity.TGxcRelation
;
import
com.founder.commonutils.util.StringUtil
;
import
com.founder.publicapi.service.SkDataRelationSelectService
;
import
com.founder.servicebase.logs.OperLog
;
import
com.founder.servicebase.logs.OperationType
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
@RestController
@RequestMapping
(
"SKDataOne"
)
public
class
SkDataRelationSelectController
{
@Autowired
private
SkDataRelationSelectService
skDataRelationSelectService
;
/**
* 根据stbh或者asjbh查询关联关系列表信息
* @param
* @param
* @return
*/
@PostMapping
(
"query"
)
@ApiOperation
(
value
=
"根据stbh或者asjbh查询关联关系列表信息"
)
@OperLog
(
message
=
"根据stbh或者asjbh查询关联关系列表信息"
,
operation
=
OperationType
.
QUERY
)
public
MapRestResult
queryRegionals
(
@RequestParam
(
required
=
false
)
String
bh
)
{
String
tempId
;
if
(!
StringUtil
.
isEmpty
(
bh
)){
//获取id
tempId
=
skDataRelationSelectService
.
selectId
(
bh
);
}
else
{
return
new
MapRestResult
().
error
(
"输入有误"
);
}
//通过id去查询关系表
List
<
TGxcRelation
>
selectrelation
=
skDataRelationSelectService
.
selectrelation
(
tempId
);
//把编号更改为实体编号
for
(
TGxcRelation
selectrelation1:
selectrelation
)
{
//拿到entity1编号
String
entity1
=
selectrelation1
.
getEntity1
();
String
entity2
=
selectrelation1
.
getEntity2
();
//在entity表查对应的实体编号
String
relationentity1
=
skDataRelationSelectService
.
selectentity
(
entity1
);
String
relationentity2
=
skDataRelationSelectService
.
selectentity
(
entity2
);
//把实体编号赋值给entity1
selectrelation1
.
setEntity1
(
relationentity1
);
selectrelation1
.
setEntity2
(
relationentity2
);
}
return
new
MapRestResult
(
200
,
"ok"
,
selectrelation
.
size
(),
selectrelation
);
}
}
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/SkDataRelationSelectMapper.java
deleted
100644 → 0
View file @
a0af05b7
package
com
.
founder
.
publicapi
.
mapper
.
mysqlMapper
;
import
com.founder.commonutils.model.newPublicEntity.TgxcEntity.TGxcRelation
;
import
com.founder.commonutils.model.newPublicEntity.TgxcEntity.Tgentity
;
import
java.util.List
;
public
interface
SkDataRelationSelectMapper
{
String
selectId
(
String
bh
);
List
<
TGxcRelation
>
relation
(
String
id
);
List
<
Tgentity
>
selectentity
(
String
entity
);
}
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/SkDataRelationSelectMapper.xml
deleted
100644 → 0
View file @
a0af05b7
<?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.publicapi.mapper.mysqlMapper.SkDataRelationSelectMapper"
>
<select
id=
"selectId"
resultType=
"java.lang.String"
>
select id from t_gxc_entity where asjbh = #{bh,jdbcType=VARCHAR} or stbh = #{bh,jdbcType=VARCHAR}
</select>
<select
id=
"relation"
resultType=
"com.founder.commonutils.model.newPublicEntity.TgxcEntity.TGxcRelation"
>
select
*
from t_gxc_relation where entity1 = #{id,jdbcType=VARCHAR} or entity2 = #{id,jdbcType=VARCHAR};
</select>
<select
id=
"selectentity"
resultType=
"com.founder.commonutils.model.newPublicEntity.TgxcEntity.Tgentity"
>
select stbh,asjbh from t_gxc_entity where id = #{entity,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
service/publicapi/src/main/java/com/founder/publicapi/service/SkDataRelationSelectService.java
deleted
100644 → 0
View file @
a0af05b7
package
com
.
founder
.
publicapi
.
service
;
import
com.founder.commonutils.model.newPublicEntity.TgxcEntity.TGxcRelation
;
import
java.util.List
;
public
interface
SkDataRelationSelectService
{
public
String
selectId
(
String
bh
);
public
List
<
TGxcRelation
>
selectrelation
(
String
id
);
public
String
selectentity
(
String
entity
);
}
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/SkDataRelationSelectServiceImpl.java
deleted
100644 → 0
View file @
a0af05b7
package
com
.
founder
.
publicapi
.
service
.
serviceimpl
;
import
com.founder.commonutils.model.newPublicEntity.TgxcEntity.TGxcRelation
;
import
com.founder.commonutils.model.newPublicEntity.TgxcEntity.Tgentity
;
import
com.founder.commonutils.util.StringUtil
;
import
com.founder.publicapi.mapper.mysqlMapper.SkDataRelationSelectMapper
;
import
com.founder.publicapi.service.SkDataRelationSelectService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
SkDataRelationSelectServiceImpl
implements
SkDataRelationSelectService
{
@Autowired
private
SkDataRelationSelectMapper
skDataRelationSelectMapper
;
@Override
public
String
selectId
(
String
bh
)
{
return
skDataRelationSelectMapper
.
selectId
(
bh
);
}
@Override
public
List
<
TGxcRelation
>
selectrelation
(
String
id
)
{
List
<
TGxcRelation
>
relation
=
skDataRelationSelectMapper
.
relation
(
id
);
return
relation
;
}
@Override
public
String
selectentity
(
String
entity
)
{
/* sql校验:
SELECT stbh,asjbh,
case when asjbh is not null
then asjbh else stbh end bh from t_gxc_entity WHERE id = #{entity,jdbcType=VARCHAR}*/
List
<
Tgentity
>
selectentity
=
skDataRelationSelectMapper
.
selectentity
(
entity
);
String
temp
=
null
;
for
(
Tgentity
selectentity1
:
selectentity
)
{
if
(!
StringUtil
.
isEmpty
(
selectentity1
.
getAsjbh
())){
temp
=
selectentity1
.
getAsjbh
();
}
else
{
temp
=
selectentity1
.
getStbh
();
}
}
return
temp
;
}
}
\ 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