Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jyzb_platformV2
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
赵剑炜
jyzb_platformV2
Commits
672e1bb4
Commit
672e1bb4
authored
Aug 02, 2023
by
李小惠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改警员模块
parent
6a8b3429
隐藏空白字符变更
内嵌
并排
正在显示
47 个修改的文件
包含
968 行增加
和
1414 行删除
+968
-1414
.gitignore
.gitignore
+9
-0
modules.xml
.idea/modules.xml
+0
-2
CabinetDto.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/CabinetDto.java
+3
-0
PoliceDto.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/PoliceDto.java
+24
-0
PoliceFingerDto.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/PoliceFingerDto.java
+15
-0
PolicemanDto.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/PolicemanDto.java
+34
-0
CabinetReq.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/query/CabinetReq.java
+5
-8
PolicemanReq.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/query/PolicemanReq.java
+8
-8
UpdateCabinetReq.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/req/UpdateCabinetReq.java
+92
-0
UpdatePolicemanReq.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/req/UpdatePolicemanReq.java
+61
-0
jyzb-biz.iml
jyzb-biz/jyzb-biz.iml
+1
-119
CabinetDto.java
jyzb-biz/src/main/java/com/junmp/jyzb/Dto/CabinetDto.java
+0
-4
CabinetController.java
jyzb-biz/src/main/java/com/junmp/jyzb/controller/CabinetController.java
+8
-10
PoliceController.java
jyzb-biz/src/main/java/com/junmp/jyzb/controller/PoliceController.java
+106
-65
PolicemanFingerController.java
jyzb-biz/src/main/java/com/junmp/jyzb/controller/PolicemanFingerController.java
+1
-1
Cabinet.java
jyzb-biz/src/main/java/com/junmp/jyzb/entity/Cabinet.java
+1
-1
EquipmentType.java
jyzb-biz/src/main/java/com/junmp/jyzb/entity/EquipmentType.java
+0
-2
PoliceFinger.java
jyzb-biz/src/main/java/com/junmp/jyzb/entity/PoliceFinger.java
+4
-6
Policeman.java
jyzb-biz/src/main/java/com/junmp/jyzb/entity/Policeman.java
+9
-7
User.java
jyzb-biz/src/main/java/com/junmp/jyzb/entity/User.java
+50
-0
CabinetBoxExceptionEnum.java
jyzb-biz/src/main/java/com/junmp/jyzb/exception/enums/CabinetBoxExceptionEnum.java
+30
-0
CabinetExceptionEnum.java
jyzb-biz/src/main/java/com/junmp/jyzb/exception/enums/CabinetExceptionEnum.java
+1
-4
PolicemanExceptionEnum.java
jyzb-biz/src/main/java/com/junmp/jyzb/exception/enums/PolicemanExceptionEnum.java
+6
-1
PubOrgExceptionEnum.java
jyzb-biz/src/main/java/com/junmp/jyzb/exception/enums/PubOrgExceptionEnum.java
+28
-0
CabinetBoxMapper.java
jyzb-biz/src/main/java/com/junmp/jyzb/mapper/CabinetBoxMapper.java
+2
-1
CabinetMapper.java
jyzb-biz/src/main/java/com/junmp/jyzb/mapper/CabinetMapper.java
+3
-0
PolicemanMapper.java
jyzb-biz/src/main/java/com/junmp/jyzb/mapper/PolicemanMapper.java
+6
-6
SysuserMapper.java
jyzb-biz/src/main/java/com/junmp/jyzb/mapper/SysuserMapper.java
+7
-0
CabinetBoxService.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/CabinetBoxService.java
+3
-0
CabinetService.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/CabinetService.java
+4
-3
PolicemanService.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/PolicemanService.java
+34
-20
SysuserService.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/SysuserService.java
+8
-0
CabinetBoxServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/CabinetBoxServiceImpl.java
+10
-0
CabinetServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/CabinetServiceImpl.java
+32
-59
EquipmentTypeServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/EquipmentTypeServiceImpl.java
+1
-1
PoliceFingerServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/PoliceFingerServiceImpl.java
+8
-2
PolicemanServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/PolicemanServiceImpl.java
+278
-539
SysuserServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/SysuserServiceImpl.java
+13
-0
CabinetBoxMapper.xml
jyzb-biz/src/main/resources/mapper/CabinetBoxMapper.xml
+0
-5
CabinetMapper.xml
jyzb-biz/src/main/resources/mapper/CabinetMapper.xml
+3
-2
PolicemanMapper.xml
jyzb-biz/src/main/resources/mapper/PolicemanMapper.xml
+19
-35
SysuserMapper.xml
jyzb-biz/src/main/resources/mapper/SysuserMapper.xml
+33
-0
jyzb-boot.iml
jyzb-boot/jyzb-boot.iml
+1
-313
jyzb-common.iml
jyzb-common/jyzb-common.iml
+0
-18
jyzb-mq-consumer.iml
jyzb-mq/jyzb-mq-consumer/jyzb-mq-consumer.iml
+1
-86
jyzb-mq-producer.iml
jyzb-mq/jyzb-mq-producer/jyzb-mq-producer.iml
+1
-86
pom.xml
pom.xml
+5
-0
没有找到文件。
.gitignore
View file @
672e1bb4
...
@@ -62,3 +62,12 @@ Thumbs.db
...
@@ -62,3 +62,12 @@ Thumbs.db
/.idea/encodings.xml
/.idea/encodings.xml
/jyzb-api/jyzb-api.iml
/jyzb-api/jyzb-api.iml
/jyzb-boot/pom.xml
/jyzb-boot/pom.xml
/jyzb-boot/src/main/resources/application-local.yml
/.idea/modules.xml
/.idea/modules.xml
/jyzb-biz/jyzb-biz.iml
/.idea/modules.xml
/jyzb-boot/jyzb-boot.iml
/jyzb-mq/jyzb-mq-producer/jyzb-mq-producer.iml
/jyzb-mq/jyzb-mq-consumer/jyzb-mq-consumer.iml
/.idea/modules.xml
.idea/modules.xml
View file @
672e1bb4
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
<module
fileurl=
"file://$PROJECT_DIR$/jyzb-boot/jyzb-boot.iml"
filepath=
"$PROJECT_DIR$/jyzb-boot/jyzb-boot.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/jyzb-boot/jyzb-boot.iml"
filepath=
"$PROJECT_DIR$/jyzb-boot/jyzb-boot.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/jyzb-mq/jyzb-mq-consumer/jyzb-mq-consumer.iml"
filepath=
"$PROJECT_DIR$/jyzb-mq/jyzb-mq-consumer/jyzb-mq-consumer.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/jyzb-mq/jyzb-mq-consumer/jyzb-mq-consumer.iml"
filepath=
"$PROJECT_DIR$/jyzb-mq/jyzb-mq-consumer/jyzb-mq-consumer.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/jyzb-mq/jyzb-mq-producer/jyzb-mq-producer.iml"
filepath=
"$PROJECT_DIR$/jyzb-mq/jyzb-mq-producer/jyzb-mq-producer.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/jyzb-mq/jyzb-mq-producer/jyzb-mq-producer.iml"
filepath=
"$PROJECT_DIR$/jyzb-mq/jyzb-mq-producer/jyzb-mq-producer.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/jyzb-process/jyzb-process.iml"
filepath=
"$PROJECT_DIR$/jyzb-process/jyzb-process.iml"
/>
</modules>
</modules>
</component>
</component>
</project>
</project>
\ No newline at end of file
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/CabinetDto.java
View file @
672e1bb4
...
@@ -8,6 +8,7 @@ import lombok.EqualsAndHashCode;
...
@@ -8,6 +8,7 @@ import lombok.EqualsAndHashCode;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
@Data
@Data
...
@@ -74,5 +75,6 @@ public class CabinetDto implements Serializable {
...
@@ -74,5 +75,6 @@ public class CabinetDto implements Serializable {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/PoliceDto.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
api
.
bean
.
dto
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
PoliceDto
{
//单警柜编号
private
String
cabinetNum
;
//单警柜主柜名
private
String
cabinetName
;
//组织机构名称
private
String
orgName
;
//组织机构id
private
Long
orgId
;
//警员输出信息
private
List
<
PolicemanDto
>
policemanlist
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/PoliceFingerDto.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
api
.
bean
.
dto
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
PoliceFingerDto
implements
Serializable
{
private
String
name
;
private
String
fingerInfo
;
}
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/PolicemanDto.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
api
.
bean
.
dto
;
import
com.junmp.jyzb.api.bean.dto.PoliceFingerDto
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
PolicemanDto
{
private
String
id
;
private
String
name
;
private
String
cabinetBoxId
;
private
String
policeCode
;
private
String
sex
;
private
String
faceInfo
;
private
String
password
;
private
String
photo
;
private
String
phone
;
//指纹信息列表
private
List
<
PoliceFingerDto
>
fingersList
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/query/CabinetReq.java
View file @
672e1bb4
...
@@ -22,7 +22,6 @@ public class CabinetReq extends BaseRequest {
...
@@ -22,7 +22,6 @@ public class CabinetReq extends BaseRequest {
/**
/**
* 单警柜编号
* 单警柜编号
*/
*/
@NotNull
(
message
=
"单警柜编号不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"单警柜编号"
)
@ApiModelProperty
(
value
=
"单警柜编号"
)
private
String
cabinetNum
;
private
String
cabinetNum
;
...
@@ -35,14 +34,12 @@ public class CabinetReq extends BaseRequest {
...
@@ -35,14 +34,12 @@ public class CabinetReq extends BaseRequest {
/**
/**
* 单警柜名称
* 单警柜名称
*/
*/
@NotNull
(
message
=
"单警柜名称不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"单警柜名称"
)
@ApiModelProperty
(
value
=
"单警柜名称"
)
private
String
name
;
private
String
name
;
/**
/**
* 组织机构号
* 组织机构号
*/
*/
@NotNull
(
message
=
"组织机构号不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"组织机构号"
)
@ApiModelProperty
(
value
=
"组织机构号"
)
private
String
orgId
;
private
String
orgId
;
...
@@ -82,11 +79,10 @@ public class CabinetReq extends BaseRequest {
...
@@ -82,11 +79,10 @@ public class CabinetReq extends BaseRequest {
@ApiModelProperty
(
value
=
"本机及下级"
)
@ApiModelProperty
(
value
=
"本机及下级"
)
private
String
includeLowerLevel
;
private
String
includeLowerLevel
;
// /**
/**
// * 单警柜与箱门一对多关系
* 排序字段
// */
*/
// private List<CabinetBox> list;
private
String
sort
;
// private List<CabinetBox> a ;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/query/PolicemanReq.java
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
api
.
bean
.
query
;
package
com
.
junmp
.
jyzb
.
api
.
bean
.
query
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.junmp.v2.common.bean.request.BaseRequest
;
import
com.junmp.v2.common.bean.request.BaseRequest
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
javax.validation.constraints.Not
Null
;
import
javax.validation.constraints.Not
Blank
;
import
java.util.Date
;
import
java.util.Date
;
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
public
class
PolicemanReq
extends
BaseRequest
{
public
class
PolicemanReq
extends
BaseRequest
{
@Not
Null
(
message
=
"警员主键不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@Not
Blank
(
message
=
"警员主键不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
id
;
private
String
id
;
@NotNull
(
message
=
"警员名字不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
name
;
private
String
name
;
@NotBlank
(
message
=
"箱门id不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
cabinetBoxId
;
private
String
cabinetBoxId
;
@NotNull
(
message
=
"组织机构不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
Long
orgId
;
private
String
orgId
;
private
Long
orgIdInt
;
private
Long
departmentId
;
private
Long
departmentId
;
...
@@ -37,6 +33,10 @@ public class PolicemanReq extends BaseRequest {
...
@@ -37,6 +33,10 @@ public class PolicemanReq extends BaseRequest {
private
String
doorCode
;
private
String
doorCode
;
//账号
private
String
account
;
//密码
private
String
password
;
private
String
password
;
private
String
photo
;
private
String
photo
;
...
...
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/req/UpdateCabinetReq.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
api
.
bean
.
req
;
import
com.junmp.v2.common.bean.request.BaseRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
public
class
UpdateCabinetReq
extends
BaseRequest
{
/**
* 单警柜ID
*/
@NotNull
(
message
=
"单警柜ID主键不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"单警柜ID"
)
private
String
id
;
/**
* 单警柜编号
*/
@NotNull
(
message
=
"单警柜编号不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"单警柜编号"
)
private
String
cabinetNum
;
/**
* 箱数
*/
@ApiModelProperty
(
value
=
"箱数"
)
private
Integer
num
;
/**
* 单警柜名称
*/
@NotNull
(
message
=
"单警柜名称不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"单警柜名称"
)
private
String
name
;
/**
* 组织机构号
*/
@NotNull
(
message
=
"组织机构号不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"组织机构号"
)
private
String
orgId
;
/**
* 位置信息
*/
@ApiModelProperty
(
value
=
"位置信息"
)
private
String
location
;
/**
* 单警柜当前状态,0正常,1异常
*/
@ApiModelProperty
(
value
=
"单警柜当前状态,0正常,1异常"
)
private
Integer
state
;
/**
* 创建时间
*/
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
/**
* 更新人员
*/
@ApiModelProperty
(
value
=
"更新人员"
)
private
String
updateUser
;
/**
* 是否包含本级及下级,true为包含,false为不包含,只显示本级
*/
@ApiModelProperty
(
value
=
"本机及下级"
)
private
String
includeLowerLevel
;
// /**
// * 单警柜与箱门一对多关系
// */
// private List<CabinetBox> list;
// private List<CabinetBox> a ;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/req/UpdatePolicemanReq.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
api
.
bean
.
req
;
import
com.junmp.v2.common.bean.request.BaseRequest
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
public
class
UpdatePolicemanReq
extends
BaseRequest
{
@NotNull
(
message
=
"警员主键不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
id
;
@NotNull
(
message
=
"警员名字不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
name
;
private
String
cabinetBoxId
;
@NotNull
(
message
=
"组织机构不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
orgId
;
private
Long
orgIdInt
;
private
Long
departmentId
;
@NotNull
(
message
=
"警员编号不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
policeCode
;
@NotNull
(
message
=
"性别不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
sex
;
private
String
faceInfo
;
private
Boolean
isCreatedAccount
;
private
String
doorCode
;
private
String
password
;
@NotNull
(
message
=
"电话不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
photo
;
private
String
phone
;
private
Date
createTime
;
private
Date
updateTime
;
@NotNull
(
message
=
"身份证号不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
private
String
idCard
;
private
String
updateUser
;
private
Integer
state
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
jyzb-biz/jyzb-biz.iml
View file @
672e1bb4
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<module
version=
"4"
>
<component
name=
"FacetManager"
>
<component
name=
"FacetManager"
>
<facet
type=
"Spring"
name=
"Spring"
>
<facet
type=
"Spring"
name=
"Spring"
>
<configuration
/>
<configuration
/>
</facet>
</facet>
<facet
type=
"web"
name=
"Web"
>
<configuration>
<webroots
/>
</configuration>
</facet>
</component>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/resources"
type=
"java-resource"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"module"
module-name=
"jyzb-api"
/>
<orderEntry
type=
"library"
name=
"Maven: io.swagger:swagger-annotations:1.5.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: cn.hutool:hutool-all:5.6.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.projectlombok:lombok:1.18.20"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-web:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-autoconfigure:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-logging:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-classic:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-core:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-api:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:jul-to-slf4j:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.annotation:jakarta.annotation-api:1.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-core:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jcl:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.yaml:snakeyaml:1.27"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-json:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-tomcat:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.44"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.glassfish:jakarta.el:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.44"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-web:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-beans:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-webmvc:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aop:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-expression:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-db-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-config-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-boot-starter:3.5.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus:3.5.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-extension:3.5.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-core:3.5.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-annotation:3.5.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.jsqlparser:jsqlparser:4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis:3.5.10"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis-spring:2.0.7"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jetbrains.kotlin:kotlin-stdlib:1.4.31"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jetbrains.kotlin:kotlin-stdlib-common:1.4.31"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jetbrains:annotations:13.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.31"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-jdbc:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.zaxxer:HikariCP:3.4.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jdbc:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-tx:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.servlet:javax.servlet-api:4.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba:druid:1.2.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.annotation:javax.annotation-api:1.3.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:junmp-v2-common:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.oshi:oshi-core:6.3.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.java.dev.jna:jna:5.12.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.java.dev.jna:jna-platform:5.12.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:slf4j-api:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba.fastjson2:fastjson2:2.0.27"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.whvcse:easy-captcha:1.6.2"
level=
"project"
/>
<orderEntry
type=
"module"
module-name=
"jyzb-api"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-validator-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-validation:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hibernate.validator:hibernate-validator:6.1.7.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jboss.logging:jboss-logging:3.4.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml:classmate:1.5.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.jsonwebtoken:jjwt:0.9.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.validation:jakarta.validation-api:2.0.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:auth-sdk:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:auth-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-cache-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-cache-memory:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:security-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-cache-redis:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-data-redis:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-redis:2.4.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-keyvalue:2.4.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-commons:2.4.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-oxm:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context-support:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: redis.clients:jedis:3.3.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.commons:commons-pool2:2.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-jwt-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:scanner-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:message-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"module"
module-name=
"jyzb-common"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba:fastjson:1.2.83"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-log-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-job-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.guava:guava:31.1-jre"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.guava:failureaccess:1.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.findbugs:jsr305:3.0.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.checkerframework:checker-qual:3.12.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.errorprone:error_prone_annotations:2.11.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.j2objc:j2objc-annotations:1.3"
level=
"project"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
jyzb-biz/src/main/java/com/junmp/jyzb/Dto/CabinetDto.java
View file @
672e1bb4
...
@@ -16,14 +16,12 @@ public class CabinetDto extends BaseRequest {
...
@@ -16,14 +16,12 @@ public class CabinetDto extends BaseRequest {
/**
/**
* 单警柜ID
* 单警柜ID
*/
*/
@NotNull
(
message
=
"单警柜ID主键不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"单警柜ID"
)
@ApiModelProperty
(
value
=
"单警柜ID"
)
private
String
id
;
private
String
id
;
/**
/**
* 单警柜编号
* 单警柜编号
*/
*/
@NotNull
(
message
=
"单警柜编号不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"单警柜编号"
)
@ApiModelProperty
(
value
=
"单警柜编号"
)
private
String
cabinetNum
;
private
String
cabinetNum
;
...
@@ -36,14 +34,12 @@ public class CabinetDto extends BaseRequest {
...
@@ -36,14 +34,12 @@ public class CabinetDto extends BaseRequest {
/**
/**
* 单警柜名称
* 单警柜名称
*/
*/
@NotNull
(
message
=
"单警柜名称不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"单警柜名称"
)
@ApiModelProperty
(
value
=
"单警柜名称"
)
private
String
name
;
private
String
name
;
/**
/**
* 组织机构号
* 组织机构号
*/
*/
@NotNull
(
message
=
"组织机构号不能为空"
,
groups
=
{
edit
.
class
,
delete
.
class
,
detail
.
class
})
@ApiModelProperty
(
value
=
"组织机构号"
)
@ApiModelProperty
(
value
=
"组织机构号"
)
private
String
orgId
;
private
String
orgId
;
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/controller/CabinetController.java
View file @
672e1bb4
...
@@ -3,6 +3,7 @@ package com.junmp.jyzb.controller;
...
@@ -3,6 +3,7 @@ package com.junmp.jyzb.controller;
import
com.junmp.jyzb.Dto.CabinetDto
;
import
com.junmp.jyzb.Dto.CabinetDto
;
import
com.junmp.jyzb.api.bean.query.CabinetBoxReq
;
import
com.junmp.jyzb.api.bean.query.CabinetBoxReq
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.req.UpdateCabinetReq
;
import
com.junmp.jyzb.entity.Cabinet
;
import
com.junmp.jyzb.entity.Cabinet
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.service.CabinetBoxService
;
import
com.junmp.jyzb.service.CabinetBoxService
;
...
@@ -49,6 +50,8 @@ public class CabinetController {
...
@@ -49,6 +50,8 @@ public class CabinetController {
return
returnMsg
;
return
returnMsg
;
}
}
@PostMapping
(
"/GetCabinetDetail"
)
@PostMapping
(
"/GetCabinetDetail"
)
@ApiOperation
(
"查询单警柜及其箱号信息"
)
@ApiOperation
(
"查询单警柜及其箱号信息"
)
public
ResponseResult
getCabinetDetail
(
@RequestBody
Map
<
String
,
Object
>
msg
){
public
ResponseResult
getCabinetDetail
(
@RequestBody
Map
<
String
,
Object
>
msg
){
...
@@ -65,17 +68,14 @@ public class CabinetController {
...
@@ -65,17 +68,14 @@ public class CabinetController {
@PostMapping
(
"/AddCabinetInfo"
)
@PostMapping
(
"/AddCabinetInfo"
)
@ApiOperation
(
"添加单警柜信息(新)"
)
@ApiOperation
(
"添加单警柜信息(新)"
)
public
ApiRes
<
Boolean
>
addCabinetInfo
(
@RequestBody
CabinetReq
req
){
public
ApiRes
<
String
>
addCabinetInfo
(
@RequestBody
UpdateCabinetReq
req
){
boolean
result
=
cabinetService
.
addCabinetInfo
(
req
);
String
cabinetId
=
cabinetService
.
addCabinetInfo
(
req
);
if
(!
result
){
return
ApiRes
.
success
(
cabinetId
);
return
ApiRes
.
failure
(
"操作失败"
);
}
return
ApiRes
.
success
(
result
);
}
}
@PostMapping
(
"/DeleteCabinetInfo"
)
@PostMapping
(
"/DeleteCabinetInfo"
)
@ApiOperation
(
"删除单警柜信息(新)"
)
@ApiOperation
(
"删除单警柜信息(新)"
)
public
ApiRes
<
Boolean
>
deleteCabinetInfo
(
@RequestBody
CabinetReq
req
)
{
public
ApiRes
<
Boolean
>
deleteCabinetInfo
(
@RequestBody
Update
CabinetReq
req
)
{
return
ApiRes
.
success
(
cabinetService
.
deleteCabinetInfo
(
req
));
return
ApiRes
.
success
(
cabinetService
.
deleteCabinetInfo
(
req
));
}
}
...
@@ -89,8 +89,6 @@ public class CabinetController {
...
@@ -89,8 +89,6 @@ public class CabinetController {
return
ApiRes
.
success
(
allCabinetList
);
return
ApiRes
.
success
(
allCabinetList
);
}
}
//通过单警柜id查询单个箱门及其箱门信息
//通过单警柜id查询单个箱门及其箱门信息
@PostMapping
(
"/ShowOneCabinet"
)
@PostMapping
(
"/ShowOneCabinet"
)
@ApiOperation
(
"查询单个单警柜及其箱门信息(新)"
)
@ApiOperation
(
"查询单个单警柜及其箱门信息(新)"
)
...
@@ -107,7 +105,7 @@ public class CabinetController {
...
@@ -107,7 +105,7 @@ public class CabinetController {
@PostMapping
(
"/UpdateCabinetInfo"
)
@PostMapping
(
"/UpdateCabinetInfo"
)
@ApiOperation
(
"修改单警柜信息(新)"
)
@ApiOperation
(
"修改单警柜信息(新)"
)
public
ApiRes
<
Boolean
>
updateCabinetInfo
(
@RequestBody
CabinetReq
req
)
{
public
ApiRes
<
Boolean
>
updateCabinetInfo
(
@RequestBody
Update
CabinetReq
req
)
{
boolean
result
=
cabinetService
.
updateCabinetInfo
(
req
);
boolean
result
=
cabinetService
.
updateCabinetInfo
(
req
);
if
(!
result
){
if
(!
result
){
return
ApiRes
.
failure
(
"操作失败"
);
return
ApiRes
.
failure
(
"操作失败"
);
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/controller/PoliceController.java
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
controller
;
package
com
.
junmp
.
jyzb
.
controller
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.dto.PoliceDto
;
import
com.junmp.jyzb.api.bean.dto.PolicemanDto
;
import
com.junmp.jyzb.api.bean.query.PolicemanReq
;
import
com.junmp.jyzb.api.bean.query.PolicemanReq
;
import
com.junmp.jyzb.api.bean.req.UpdatePolicemanReq
;
import
com.junmp.jyzb.entity.Policeman
;
import
com.junmp.jyzb.entity.Policeman
;
import
com.junmp.jyzb.service.PolicemanService
;
import
com.junmp.jyzb.service.PolicemanService
;
import
com.junmp.jyzb.utils.ResponseResult
;
import
com.junmp.jyzb.utils.ResponseResult
;
import
com.junmp.v2.common.bean.request.ValidationApi
;
import
com.junmp.v2.common.bean.response.ApiRes
;
import
com.junmp.v2.common.bean.response.ApiRes
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
@RestController
@RestController
...
@@ -27,55 +30,40 @@ public class PoliceController {
...
@@ -27,55 +30,40 @@ public class PoliceController {
@PostMapping
(
"/AddPoliceman"
)
@PostMapping
(
"/AddPoliceman"
)
@ApiOperation
(
"添加警员信息"
)
@ApiOperation
(
"添加警员信息"
)
public
ResponseResult
addPoliceman
(
@RequestBody
Map
<
String
,
Object
>
msg
)
{
public
ApiRes
<
String
>
AddPoliceman
(
@RequestBody
UpdatePolicemanReq
req
)
{
ResponseResult
returnMsg
=
policemanService
.
addPoliceman
(
msg
);
String
policeId
=
policemanService
.
AddPoliceman
(
req
);
return
returnMsg
;
return
ApiRes
.
success
(
policeId
)
;
}
}
@PostMapping
(
"/DeletePolice"
)
@PostMapping
(
"/AddFaceInfo"
)
@ApiOperation
(
"删除警员信息"
)
@ApiOperation
(
"添加警员面部信息"
)
public
ApiRes
<
Boolean
>
DeletePolice
(
@RequestBody
UpdatePolicemanReq
req
)
{
public
ApiRes
<
Boolean
>
addFaceInfo
(
@RequestBody
PolicemanReq
req
)
{
boolean
b
=
policemanService
.
DeletePolice
(
req
);
boolean
b
=
policemanService
.
addFaceInfo
(
req
);
if
(!
b
){
if
(!
b
){
return
ApiRes
.
failure
(
"
添加
失败"
);
return
ApiRes
.
failure
(
"
删除
失败"
);
}
}
return
ApiRes
.
success
(
b
);
return
ApiRes
.
success
(
b
);
}
}
@PostMapping
(
"/updateFaceInfo"
)
@ApiOperation
(
"修改、删除人脸信息"
)
@PostMapping
(
"/ChangePoliceState"
)
public
ApiRes
<
Boolean
>
updateFaceInfo
(
@RequestBody
PolicemanReq
req
)
{
@ApiOperation
(
"修改警员状态"
)
boolean
b
=
policemanService
.
updateFaceInfo
(
req
);
public
ApiRes
<
Boolean
>
ChangePoliceState
(
@RequestBody
UpdatePolicemanReq
req
)
{
boolean
b
=
policemanService
.
ChangePoliceState
(
req
);
if
(!
b
){
if
(!
b
){
return
ApiRes
.
failure
(
"
操作
失败"
);
return
ApiRes
.
failure
(
"
修改
失败"
);
}
}
return
ApiRes
.
success
(
b
);
return
ApiRes
.
success
(
b
);
}
}
@PostMapping
(
"/
searchFaceInfo
"
)
@PostMapping
(
"/
UpdatePolice
"
)
@ApiOperation
(
"
查找人脸
信息"
)
@ApiOperation
(
"
修改警员
信息"
)
public
ApiRes
<
Policeman
>
searchFaceInfo
(
@RequestBody
PolicemanReq
req
)
{
public
ApiRes
<
Boolean
>
UpdatePolice
(
@RequestBody
Update
PolicemanReq
req
)
{
Policeman
policeman
=
policemanService
.
searchFaceInfo
(
req
);
boolean
b
=
policemanService
.
UpdatePolice
(
req
);
if
(
ObjectUtil
.
isEmpty
(
policeman
)
){
if
(
!
b
){
return
ApiRes
.
failure
(
"
未找到警员信息
"
);
return
ApiRes
.
failure
(
"
修改失败
"
);
}
}
return
ApiRes
.
success
(
policeman
);
return
ApiRes
.
success
(
b
);
}
@PostMapping
(
"/DeletePolice"
)
@ApiOperation
(
"删除警员信息"
)
public
ResponseResult
deletePolice
(
@RequestBody
Map
<
String
,
Object
>
msg
)
{
ResponseResult
returnMsg
=
policemanService
.
deletePolice
(
msg
);
return
returnMsg
;
}
@PostMapping
(
"/ChangePoliceState"
)
@ApiOperation
(
"修改警员状态"
)
public
ResponseResult
ChangePoliceState
(
@RequestBody
Map
<
String
,
Object
>
msg
)
{
ResponseResult
returnMsg
=
policemanService
.
changePoliceState
(
msg
);
return
returnMsg
;
}
}
@PostMapping
(
"/ShowPolice"
)
@PostMapping
(
"/ShowPolice"
)
...
@@ -85,50 +73,103 @@ public class PoliceController {
...
@@ -85,50 +73,103 @@ public class PoliceController {
return
returnMsg
;
return
returnMsg
;
}
}
//根据组织机构id查询,只查询本级,不包含下级
@PostMapping
(
"/ShowPoliceList"
)
@ApiOperation
(
"查询某个组织机构下的所有警员信息"
)
public
ApiRes
<
PoliceDto
>
GetAllPolicemanList
(
Long
orgId
){
PoliceDto
policeDto
=
policemanService
.
GetAllPolicemanList
(
orgId
);
return
ApiRes
.
success
(
policeDto
);
}
/**
* 通过警员id查询警员信息
* @param req
* @return
*/
@PostMapping
(
"/GetPoliceDetail"
)
@PostMapping
(
"/GetPoliceDetail"
)
@ApiOperation
(
"查询单个警员信息"
)
@ApiOperation
(
"查询单个警员信息"
)
public
ResponseResult
getOnePolice
(
@RequestBody
Map
<
String
,
Object
>
msg
)
{
public
ApiRes
<
PolicemanDto
>
GetOnePolice
(
@RequestBody
PolicemanReq
req
)
{
ResponseResult
returnMsg
=
policemanService
.
getOnePolice
(
msg
);
return
ApiRes
.
success
(
policemanService
.
GetOnePolice
(
req
));
return
returnMsg
;
}
}
@PostMapping
(
"/UpdatePolice"
)
@ApiOperation
(
"修改警员信息"
)
public
ResponseResult
updatePolice
(
@RequestBody
Map
<
String
,
Object
>
msg
)
{
ResponseResult
returnMsg
=
policemanService
.
updatePolice
(
msg
);
return
returnMsg
;
}
//todo 更新查询所有
/**
* 根据单警柜id查询出单警柜下面箱门绑定的警员信息
* @param
* @return
*/
@PostMapping
(
"/GetPoliceData"
)
@PostMapping
(
"/GetPoliceData"
)
@ApiOperation
(
"查询与单警柜绑定的警员信息"
)
//根据单警柜id查询
@ApiOperation
(
"查询与单警柜绑定的警员信息"
)
//根据单警柜id查询
public
ResponseResult
getPoliceData
(
@RequestBody
Map
<
String
,
Object
>
cabinetI
d
){
public
ApiRes
<
PoliceDto
>
GetPoliceData
(
String
i
d
){
//获取该组织机构下所有警员的id
//获取该组织机构下所有警员的id
ResponseResult
returnMsg
=
policemanService
.
getPoliceData
(
cabinetI
d
);
PoliceDto
policeDto
=
policemanService
.
GetPoliceData
(
i
d
);
return
returnMsg
;
return
ApiRes
.
success
(
policeDto
)
;
}
}
@PostMapping
(
"/ChangePoliceOrg"
)
@PostMapping
(
"/ChangePoliceOrg"
)
@ApiOperation
(
"警员调岗"
)
@ApiOperation
(
"警员调岗"
)
public
ResponseResult
changePoliceOrg
(
@RequestBody
Map
<
String
,
Object
>
cabinetId
){
public
ResponseResult
changePoliceOrg
(
@RequestBody
Map
<
String
,
Object
>
cabinetId
){
return
null
;
return
null
;
}
}
/**
* @author lxh
* @description 单警柜所在的单位下面所有的人员
@PostMapping
(
"/AddFaceInfo"
)
* @since 2023/7/19 10:10
@ApiOperation
(
"添加警员面部信息"
)
* @param
public
ApiRes
<
Boolean
>
AddFaceInfo
(
@RequestBody
PolicemanReq
req
)
{
* @return
boolean
b
=
policemanService
.
AddFaceInfo
(
req
);
**/
if
(!
b
){
@PostMapping
(
"/policeList"
)
return
ApiRes
.
failure
(
"添加失败"
);
@ApiOperation
(
"人员列表"
)
}
public
ApiRes
<
List
<
Policeman
>>
policeList
(
@RequestBody
CabinetReq
req
){
return
ApiRes
.
success
(
b
);
List
<
Policeman
>
orgPoliceman
=
policemanService
.
getOrgPoliceman
(
req
);
}
if
(
orgPoliceman
.
isEmpty
()){
return
ApiRes
.
failure
(
"未查到人员信息"
);
@PostMapping
(
"/UpdateFaceInfo"
)
@ApiOperation
(
"修改、删除人脸信息"
)
public
ApiRes
<
Boolean
>
UpdateFaceInfo
(
@RequestBody
UpdatePolicemanReq
req
)
{
boolean
b
=
policemanService
.
UpdateFaceInfo
(
req
);
if
(!
b
){
return
ApiRes
.
failure
(
"操作失败"
);
}
}
return
ApiRes
.
success
(
orgPoliceman
);
return
ApiRes
.
success
(
b
);
}
}
@PostMapping
(
"/SearchFaceInfo"
)
@ApiOperation
(
"查找人脸信息"
)
public
ApiRes
<
Policeman
>
SearchFaceInfo
(
@RequestBody
PolicemanReq
req
)
{
Policeman
policeman
=
policemanService
.
SearchFaceInfo
(
req
);
if
(
ObjectUtil
.
isEmpty
(
policeman
)){
return
ApiRes
.
failure
(
"未找到警员信息"
);
}
return
ApiRes
.
success
(
policeman
);
}
//警员绑定账号
@PostMapping
(
"/PoliceBindUser"
)
@ApiOperation
(
"警员绑定账号"
)
public
ApiRes
<
Boolean
>
PoliceBindUser
(
@RequestBody
PolicemanReq
req
){
boolean
b
=
policemanService
.
PoliceBindUser
(
req
);
if
(!
b
){
return
ApiRes
.
failure
(
"操作失败"
);
}
return
ApiRes
.
success
(
b
);
}
/**
* 人员绑定箱门
*/
@PostMapping
(
"/PoliceBindBox"
)
@ApiOperation
(
"人员绑定箱门"
)
public
ApiRes
<
Boolean
>
PoliceBindBox
(
@RequestBody
@Validated
(
ValidationApi
.
edit
.
class
)
PolicemanReq
req
){
boolean
b
=
policemanService
.
PoliceBindBox
(
req
);
if
(!
b
){
return
ApiRes
.
failure
(
"操作失败"
);
}
return
ApiRes
.
success
(
b
);
}
}
}
jyzb-biz/src/main/java/com/junmp/jyzb/controller/PolicemanFingerController.java
View file @
672e1bb4
...
@@ -31,7 +31,7 @@ public class PolicemanFingerController implements PolicemanFingerDoc {
...
@@ -31,7 +31,7 @@ public class PolicemanFingerController implements PolicemanFingerDoc {
}
}
@PostMapping
(
"/
u
pdateFingerInfo"
)
@PostMapping
(
"/
U
pdateFingerInfo"
)
@ApiOperation
(
"修改指纹信息"
)
@ApiOperation
(
"修改指纹信息"
)
public
ApiRes
<
Boolean
>
updateFingerInfo
(
@RequestBody
@Validated
(
PolicemanFingerReq
.
edit
.
class
)
PolicemanFingerReq
req
)
{
public
ApiRes
<
Boolean
>
updateFingerInfo
(
@RequestBody
@Validated
(
PolicemanFingerReq
.
edit
.
class
)
PolicemanFingerReq
req
)
{
return
ApiRes
.
success
(
policeFingerService
.
updateFingerInfo
(
req
))
;
return
ApiRes
.
success
(
policeFingerService
.
updateFingerInfo
(
req
))
;
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/entity/Cabinet.java
View file @
672e1bb4
...
@@ -42,7 +42,7 @@ public class Cabinet implements Serializable {
...
@@ -42,7 +42,7 @@ public class Cabinet implements Serializable {
*/
*/
@ApiModelProperty
(
value
=
"新版本组织机构号"
)
@ApiModelProperty
(
value
=
"新版本组织机构号"
)
@TableField
(
"org_id_int"
)
@TableField
(
"org_id_int"
)
private
l
ong
orgId
;
private
L
ong
orgId
;
/**
/**
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/entity/EquipmentType.java
View file @
672e1bb4
...
@@ -62,8 +62,6 @@ public class EquipmentType implements Serializable {
...
@@ -62,8 +62,6 @@ public class EquipmentType implements Serializable {
private
String
parentIds
;
private
String
parentIds
;
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
,
value
=
"create_time"
)
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
,
value
=
"create_time"
)
private
Date
createTime
;
private
Date
createTime
;
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/entity/PoliceFinger.java
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
entity
;
package
com
.
junmp
.
jyzb
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -19,6 +16,7 @@ import javax.validation.constraints.NotNull;
...
@@ -19,6 +16,7 @@ import javax.validation.constraints.NotNull;
@Data
@Data
@AllArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@NoArgsConstructor
@TableName
(
"base_police_finger"
)
public
class
PoliceFinger
implements
Serializable
{
public
class
PoliceFinger
implements
Serializable
{
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
...
@@ -32,10 +30,10 @@ public class PoliceFinger implements Serializable {
...
@@ -32,10 +30,10 @@ public class PoliceFinger implements Serializable {
@TableField
(
value
=
"finger_info"
)
@TableField
(
value
=
"finger_info"
)
private
String
fingerInfo
;
private
String
fingerInfo
;
@TableField
(
value
=
"create_time"
)
@TableField
(
fill
=
FieldFill
.
INSERT
,
value
=
"create_time"
)
private
Date
createTime
;
private
Date
createTime
;
@TableField
(
value
=
"update_time"
)
@TableField
(
fill
=
FieldFill
.
UPDATE
,
value
=
"update_time"
)
private
Date
updateTime
;
private
Date
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/entity/Policeman.java
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
entity
;
package
com
.
junmp
.
jyzb
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.junmp.jyzb.entity.Cabinet
;
import
com.junmp.jyzb.entity.Cabinet
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -22,7 +19,8 @@ import lombok.NoArgsConstructor;
...
@@ -22,7 +19,8 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@NoArgsConstructor
@TableName
(
"base_policeman"
)
@TableName
(
"base_policeman"
)
public
class
Policeman
implements
Serializable
{
public
class
Policeman
implements
Serializable
{
@TableId
(
value
=
"id"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
private
String
id
;
@TableField
(
value
=
"name"
)
@TableField
(
value
=
"name"
)
...
@@ -62,10 +60,10 @@ public class Policeman implements Serializable {
...
@@ -62,10 +60,10 @@ public class Policeman implements Serializable {
@TableField
(
value
=
"phone"
)
@TableField
(
value
=
"phone"
)
private
String
phone
;
private
String
phone
;
@TableField
(
value
=
"create_time"
)
@TableField
(
fill
=
FieldFill
.
INSERT
,
value
=
"create_time"
)
private
Date
createTime
;
private
Date
createTime
;
@TableField
(
value
=
"update_time"
)
@TableField
(
fill
=
FieldFill
.
UPDATE
,
value
=
"update_time"
)
private
Date
updateTime
;
private
Date
updateTime
;
@TableField
(
value
=
"id_card"
)
@TableField
(
value
=
"id_card"
)
...
@@ -77,5 +75,8 @@ public class Policeman implements Serializable {
...
@@ -77,5 +75,8 @@ public class Policeman implements Serializable {
@TableField
(
value
=
"state"
)
@TableField
(
value
=
"state"
)
private
Integer
state
;
private
Integer
state
;
@TableField
(
value
=
"user_id"
)
private
Long
UserId
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
jyzb-biz/src/main/java/com/junmp/jyzb/entity/User.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName
(
"sys_user"
)
public
class
User
implements
Serializable
{
private
Long
userId
;
@TableField
(
value
=
"real_name"
)
private
String
realName
;
private
String
nickName
;
private
String
account
;
private
String
password
;
//头像,存的为文件的id
private
Long
avatar
;
private
Date
birthday
;
private
String
sex
;
private
String
email
;
private
String
phone
;
private
String
tel
;
private
String
superAdminFlag
;
private
String
statusFlag
;
private
Integer
userType
;
private
String
lastLoginIp
;
private
Date
lastLoginTime
;
private
Integer
delFlag
;
@TableField
(
value
=
"create_time"
,
fill
=
FieldFill
.
INSERT
)
private
Date
createTime
;
private
Long
createUser
;
@TableField
(
value
=
"update_time"
,
fill
=
FieldFill
.
UPDATE
)
private
Date
updateTime
;
private
Long
updateUser
;
private
Integer
appFlag
;
}
jyzb-biz/src/main/java/com/junmp/jyzb/exception/enums/CabinetBoxExceptionEnum.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
exception
.
enums
;
import
com.junmp.v2.common.constant.CommonConstant
;
import
com.junmp.v2.common.exception.IExceptionEnum
;
import
lombok.Getter
;
@Getter
public
enum
CabinetBoxExceptionEnum
implements
IExceptionEnum
{
/**
* 箱子信息不存在,箱门id错误
*/
CABINETBOX_ISNOT_EXISTS
(
CommonConstant
.
DEFAULT_USER_ERROR_CODE
,
"箱子信息不存在,箱门id错误"
),
;
/**
* 错误编码
*/
private
final
Integer
code
;
/**
* 提示用户信息
*/
private
final
String
message
;
CabinetBoxExceptionEnum
(
Integer
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
}
jyzb-biz/src/main/java/com/junmp/jyzb/exception/enums/CabinetExceptionEnum.java
View file @
672e1bb4
...
@@ -19,10 +19,7 @@ import lombok.Getter;
...
@@ -19,10 +19,7 @@ import lombok.Getter;
*/
*/
@Getter
@Getter
public
enum
CabinetExceptionEnum
implements
IExceptionEnum
{
public
enum
CabinetExceptionEnum
implements
IExceptionEnum
{
/**
* 组织机构不存在
*/
PUBORG_NOT_EXIST
(
CommonConstant
.
DEFAULT_USER_ERROR_CODE
,
"组织机构不存在"
),
/**
/**
* 单警柜编号重复
* 单警柜编号重复
*/
*/
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/exception/enums/PolicemanExceptionEnum.java
View file @
672e1bb4
...
@@ -22,9 +22,14 @@ public enum PolicemanExceptionEnum implements IExceptionEnum {
...
@@ -22,9 +22,14 @@ public enum PolicemanExceptionEnum implements IExceptionEnum {
* 警员不存在
* 警员不存在
*/
*/
POLICEMAN_NOT_EXIST
(
CommonConstant
.
DEFAULT_USER_ERROR_CODE
,
"警员不存在"
),
POLICEMAN_NOT_EXIST
(
CommonConstant
.
DEFAULT_USER_ERROR_CODE
,
"警员不存在"
),
;
/**
* 警员编号已经存在,警员编号重复
*
*/
POLICECODE_IS_EXISTS
(
CommonConstant
.
DEFAULT_USER_ERROR_CODE
,
"警员编号已经存在,警员编号重复"
),
;
/**
/**
* 错误编码
* 错误编码
*/
*/
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/exception/enums/PubOrgExceptionEnum.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
exception
.
enums
;
import
com.junmp.v2.common.constant.CommonConstant
;
import
com.junmp.v2.common.exception.IExceptionEnum
;
import
lombok.Getter
;
@Getter
public
enum
PubOrgExceptionEnum
implements
IExceptionEnum
{
/**
* 组织机构不存在
*/
PUBORG_NOT_EXIST
(
CommonConstant
.
DEFAULT_USER_ERROR_CODE
,
"组织机构不存在"
),
;
/**
* 错误编码
*/
private
final
Integer
code
;
/**
* 提示用户信息
*/
private
final
String
message
;
PubOrgExceptionEnum
(
Integer
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
}
jyzb-biz/src/main/java/com/junmp/jyzb/mapper/CabinetBoxMapper.java
View file @
672e1bb4
...
@@ -14,9 +14,9 @@ public interface CabinetBoxMapper extends BaseMapper<CabinetBox> {
...
@@ -14,9 +14,9 @@ public interface CabinetBoxMapper extends BaseMapper<CabinetBox> {
void
changeCabinetState
(
CabinetBox
cabinetBox
);
void
changeCabinetState
(
CabinetBox
cabinetBox
);
String
getOneCabinetBox
(
String
cabinetBoxId
);
List
<
CabinetBox
>
selectByIdCabinetBoxes
(
String
id
);
List
<
CabinetBox
>
selectByIdCabinetBoxes
(
String
id
);
}
}
\ No newline at end of file
jyzb-biz/src/main/java/com/junmp/jyzb/mapper/CabinetMapper.java
View file @
672e1bb4
...
@@ -49,4 +49,6 @@ public interface CabinetMapper extends BaseMapper<Cabinet> {
...
@@ -49,4 +49,6 @@ public interface CabinetMapper extends BaseMapper<Cabinet> {
List
<
Map
<
String
,
Object
>>
getCabinetByOrgId
(
String
orgId
);
List
<
Map
<
String
,
Object
>>
getCabinetByOrgId
(
String
orgId
);
String
getOrgByCabinet
(
String
cabinetId
);
String
getOrgByCabinet
(
String
cabinetId
);
}
}
\ No newline at end of file
jyzb-biz/src/main/java/com/junmp/jyzb/mapper/PolicemanMapper.java
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
mapper
;
package
com
.
junmp
.
jyzb
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.entity.Policeman
;
import
com.junmp.jyzb.entity.Policeman
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
...
@@ -10,13 +11,9 @@ import java.util.Map;
...
@@ -10,13 +11,9 @@ import java.util.Map;
@Mapper
@Mapper
public
interface
PolicemanMapper
extends
BaseMapper
<
Policeman
>
{
public
interface
PolicemanMapper
extends
BaseMapper
<
Policeman
>
{
void
addPoliceman
(
Policeman
policeman
);
Map
<
String
,
Object
>
getOnePolice
(
String
id
);
Map
<
String
,
Object
>
getOnePolice
(
String
id
);
void
deletePolice
(
String
id
);
void
updatePolice
(
Policeman
police
);
List
<
String
>
getAllPoliceId
(
String
orgId
);
List
<
String
>
getAllPoliceId
(
String
orgId
);
...
@@ -26,13 +23,11 @@ public interface PolicemanMapper extends BaseMapper<Policeman> {
...
@@ -26,13 +23,11 @@ public interface PolicemanMapper extends BaseMapper<Policeman> {
void
addFaceInfo
(
Policeman
police
);
void
addFaceInfo
(
Policeman
police
);
void
changePoliceState
(
Policeman
police
);
List
<
String
>
getChildren
(
String
id
);
List
<
String
>
getChildren
(
String
id
);
List
<
String
>
getAllBoxIdByCabinet
(
String
cabinetId
);
List
<
String
>
getAllBoxIdByCabinet
(
String
cabinetId
);
List
<
String
>
getPoliceByPoliceCode
(
String
policeCode
);
List
<
Map
<
String
,
Object
>>
getAllPolice
();
List
<
Map
<
String
,
Object
>>
getAllPolice
();
...
@@ -43,4 +38,8 @@ public interface PolicemanMapper extends BaseMapper<Policeman> {
...
@@ -43,4 +38,8 @@ public interface PolicemanMapper extends BaseMapper<Policeman> {
List
<
Map
<
String
,
Object
>>
getAllPolicemanByOrg
(
String
orgId
);
List
<
Map
<
String
,
Object
>>
getAllPolicemanByOrg
(
String
orgId
);
List
<
Map
<
String
,
Object
>>
getAllPolicemanByOrgList
(
List
<
String
>
orgId
);
List
<
Map
<
String
,
Object
>>
getAllPolicemanByOrgList
(
List
<
String
>
orgId
);
List
<
Policeman
>
SearchBoxBindPolice
(
List
<
String
>
cabinetBoxes
);
List
<
Policeman
>
SearchPoliceList
(
String
id
);
}
}
\ No newline at end of file
jyzb-biz/src/main/java/com/junmp/jyzb/mapper/SysuserMapper.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.junmp.jyzb.entity.User
;
public
interface
SysuserMapper
extends
BaseMapper
<
User
>
{
}
jyzb-biz/src/main/java/com/junmp/jyzb/service/CabinetBoxService.java
View file @
672e1bb4
...
@@ -3,6 +3,7 @@ package com.junmp.jyzb.service;
...
@@ -3,6 +3,7 @@ package com.junmp.jyzb.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.entity.Policeman
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -12,4 +13,6 @@ public interface CabinetBoxService extends IService<CabinetBox> {
...
@@ -12,4 +13,6 @@ public interface CabinetBoxService extends IService<CabinetBox> {
List
<
Map
<
String
,
Object
>>
getAllBoxMsg
(
String
id
);
List
<
Map
<
String
,
Object
>>
getAllBoxMsg
(
String
id
);
List
<
CabinetBox
>
getCabinetBoxList
(
CabinetReq
req
);
List
<
CabinetBox
>
getCabinetBoxList
(
CabinetReq
req
);
}
}
jyzb-biz/src/main/java/com/junmp/jyzb/service/CabinetService.java
View file @
672e1bb4
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.junmp.jyzb.Dto.CabinetDto
;
import
com.junmp.jyzb.Dto.CabinetDto
;
import
com.junmp.jyzb.api.bean.query.CabinetBoxReq
;
import
com.junmp.jyzb.api.bean.query.CabinetBoxReq
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.req.UpdateCabinetReq
;
import
com.junmp.jyzb.entity.Cabinet
;
import
com.junmp.jyzb.entity.Cabinet
;
import
com.junmp.jyzb.utils.ResponseResult
;
import
com.junmp.jyzb.utils.ResponseResult
;
...
@@ -35,14 +36,14 @@ public interface CabinetService extends IService<Cabinet> {
...
@@ -35,14 +36,14 @@ public interface CabinetService extends IService<Cabinet> {
* @param req
* @param req
* @return
* @return
*/
*/
boolean
addCabinetInfo
(
CabinetReq
req
)
;
String
addCabinetInfo
(
Update
CabinetReq
req
)
;
/**
/**
* 删除单警柜
* 删除单警柜
* @param req
* @param req
* @return
* @return
*/
*/
boolean
deleteCabinetInfo
(
CabinetReq
req
);
boolean
deleteCabinetInfo
(
Update
CabinetReq
req
);
/**
/**
* 查询单警柜信息,通过组织机构id进行查询
* 查询单警柜信息,通过组织机构id进行查询
...
@@ -65,7 +66,7 @@ public interface CabinetService extends IService<Cabinet> {
...
@@ -65,7 +66,7 @@ public interface CabinetService extends IService<Cabinet> {
* @param req
* @param req
* @return
* @return
*/
*/
boolean
updateCabinetInfo
(
CabinetReq
req
);
boolean
updateCabinetInfo
(
Update
CabinetReq
req
);
/**
/**
* 箱门绑定人员
* 箱门绑定人员
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/service/PolicemanService.java
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
service
;
package
com
.
junmp
.
jyzb
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.dto.PoliceDto
;
import
com.junmp.jyzb.api.bean.dto.PolicemanDto
;
import
com.junmp.jyzb.api.bean.query.PolicemanReq
;
import
com.junmp.jyzb.api.bean.query.PolicemanReq
;
import
com.junmp.jyzb.
entity.PoliceFinger
;
import
com.junmp.jyzb.
api.bean.req.UpdatePolicemanReq
;
import
com.junmp.jyzb.entity.Policeman
;
import
com.junmp.jyzb.entity.Policeman
;
import
com.junmp.jyzb.utils.ResponseResult
;
import
com.junmp.jyzb.utils.ResponseResult
;
...
@@ -11,40 +12,53 @@ import java.util.List;
...
@@ -11,40 +12,53 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
public
interface
PolicemanService
extends
IService
<
Policeman
>
{
public
interface
PolicemanService
extends
IService
<
Policeman
>
{
ResponseResult
addPoliceman
(
Map
<
String
,
Object
>
msg
);
ResponseResult
getOnePolice
(
Map
<
String
,
Object
>
id
);
//添加警员
String
AddPoliceman
(
UpdatePolicemanReq
req
);
ResponseResult
deletePolice
(
Map
<
String
,
Object
>
msg
);
ResponseResult
updatePolice
(
Map
<
String
,
Object
>
msg
);
//获取单个警员信息
PolicemanDto
GetOnePolice
(
PolicemanReq
req
);
List
<
String
>
getAllPoliceId
(
Map
<
String
,
Object
>
orgId
);
ResponseResult
deleteFinger
(
Map
<
String
,
Object
>
msg
);
//删除警员
boolean
DeletePolice
(
UpdatePolicemanReq
req
);
//修改警员信息
boolean
UpdatePolice
(
UpdatePolicemanReq
req
);
List
<
String
>
getAllPoliceId
(
Map
<
String
,
Object
>
orgId
);
List
<
String
>
getAllPoliceIdByCabinet
(
Map
<
String
,
Object
>
cabinetId
);
List
<
String
>
getAllPoliceIdByCabinet
(
Map
<
String
,
Object
>
cabinetId
);
ResponseResult
addFingerInfo
(
Map
<
String
,
Object
>
msg
);
//修改指纹信息
boolean
updateFingerInfo
(
PoliceFinger
req
);
//查询指纹信息
ResponseResult
searchFingerInfo
(
Map
<
String
,
Object
>
msg
);
boolean
addFaceInfo
(
PolicemanReq
req
);
boolean
AddFaceInfo
(
PolicemanReq
req
);
ResponseResult
changePoliceState
(
Map
<
String
,
Object
>
msg
);
//修改警员状态
boolean
ChangePoliceState
(
UpdatePolicemanReq
req
);
//List<Map<String, Object>> getAllPoliceman(List<String> allPoliceId);
//List<Map<String, Object>> getAllPoliceman(List<String> allPoliceId);
ResponseResult
getAllPoliceman
(
Map
<
String
,
Object
>
orgId
);
ResponseResult
getAllPoliceman
(
Map
<
String
,
Object
>
orgId
);
ResponseResult
getPoliceData
(
Map
<
String
,
Object
>
cabinetId
);
//通过组织机构id查询警员列表
PoliceDto
GetAllPolicemanList
(
Long
orgId
);
//根据单警柜id查询警员列表
PoliceDto
GetPoliceData
(
String
id
);
boolean
UpdateFaceInfo
(
UpdatePolicemanReq
req
);
Policeman
SearchFaceInfo
(
PolicemanReq
req
);
boolean
PoliceBindUser
(
PolicemanReq
req
);
boolean
updateFaceInfo
(
PolicemanReq
req
);
boolean
PoliceBindBox
(
PolicemanReq
req
);
Policeman
searchFaceInfo
(
PolicemanReq
req
);
//通过单警柜获取组织机构id,再获取组织机构下的所有警员信息
List
<
Policeman
>
getOrgPoliceman
(
CabinetReq
req
);
}
}
jyzb-biz/src/main/java/com/junmp/jyzb/service/SysuserService.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.junmp.jyzb.entity.User
;
public
interface
SysuserService
extends
IService
<
User
>
{
}
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/CabinetBoxServiceImpl.java
View file @
672e1bb4
...
@@ -5,7 +5,10 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -5,7 +5,10 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.entity.Policeman
;
import
com.junmp.jyzb.mapper.CabinetBoxMapper
;
import
com.junmp.jyzb.mapper.CabinetBoxMapper
;
import
com.junmp.jyzb.mapper.PoliceFingerMapper
;
import
com.junmp.jyzb.mapper.PolicemanMapper
;
import
com.junmp.jyzb.service.CabinetBoxService
;
import
com.junmp.jyzb.service.CabinetBoxService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -22,6 +25,12 @@ public class CabinetBoxServiceImpl extends ServiceImpl<CabinetBoxMapper, Cabinet
...
@@ -22,6 +25,12 @@ public class CabinetBoxServiceImpl extends ServiceImpl<CabinetBoxMapper, Cabinet
@Resource
@Resource
private
CabinetBoxService
cabinetBoxService
;
private
CabinetBoxService
cabinetBoxService
;
@Resource
private
PolicemanMapper
policemanMapper
;
@Resource
private
PoliceFingerMapper
policeFingerMapper
;
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getAllBoxMsg
(
String
id
)
{
public
List
<
Map
<
String
,
Object
>>
getAllBoxMsg
(
String
id
)
{
return
cabinetBoxMapper
.
getBoxMsg
(
id
);
return
cabinetBoxMapper
.
getBoxMsg
(
id
);
...
@@ -40,4 +49,5 @@ public class CabinetBoxServiceImpl extends ServiceImpl<CabinetBoxMapper, Cabinet
...
@@ -40,4 +49,5 @@ public class CabinetBoxServiceImpl extends ServiceImpl<CabinetBoxMapper, Cabinet
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
CabinetBox:
:
getCabinetId
,
req
.
getId
()));
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
CabinetBox:
:
getCabinetId
,
req
.
getId
()));
return
cabinetBoxList
;
return
cabinetBoxList
;
}
}
}
}
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/CabinetServiceImpl.java
View file @
672e1bb4
...
@@ -6,12 +6,14 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -6,12 +6,14 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.junmp.jyzb.Dto.CabinetDto
;
import
com.junmp.jyzb.Dto.CabinetDto
;
import
com.junmp.jyzb.api.bean.query.CabinetBoxReq
;
import
com.junmp.jyzb.api.bean.query.CabinetBoxReq
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.req.UpdateCabinetReq
;
import
com.junmp.jyzb.entity.Cabinet
;
import
com.junmp.jyzb.entity.Cabinet
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.entity.CabinetBox
;
import
com.junmp.jyzb.entity.Policeman
;
import
com.junmp.jyzb.entity.Policeman
;
import
com.junmp.jyzb.entity.PubOrg
;
import
com.junmp.jyzb.entity.PubOrg
;
import
com.junmp.jyzb.exception.enums.CabinetExceptionEnum
;
import
com.junmp.jyzb.exception.enums.CabinetExceptionEnum
;
import
com.junmp.jyzb.exception.enums.PolicemanExceptionEnum
;
import
com.junmp.jyzb.exception.enums.PolicemanExceptionEnum
;
import
com.junmp.jyzb.exception.enums.PubOrgExceptionEnum
;
import
com.junmp.jyzb.mapper.*
;
import
com.junmp.jyzb.mapper.*
;
import
com.junmp.jyzb.service.CabinetBoxService
;
import
com.junmp.jyzb.service.CabinetBoxService
;
import
com.junmp.jyzb.service.CabinetService
;
import
com.junmp.jyzb.service.CabinetService
;
...
@@ -131,7 +133,6 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -131,7 +133,6 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
List
<
Map
<
String
,
Object
>>
allCabinet
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
allCabinet
=
new
ArrayList
<>();
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
allCabinet
);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
allCabinet
);
}
}
...
@@ -243,20 +244,18 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -243,20 +244,18 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
boolean
addCabinetInfo
(
CabinetReq
req
)
{
public
String
addCabinetInfo
(
Update
CabinetReq
req
)
{
Cabinet
cabinet
=
new
Cabinet
();
Cabinet
cabinet
=
new
Cabinet
();
//查询传入的组织机构id是否存在
//查询传入的组织机构id是否存在
LambdaQueryWrapper
<
PubOrg
>
pubOrgWrapper
=
PubOrgWrapper
(
Long
.
parseLong
(
req
.
getOrgId
()));
PubOrg
puborg
=
pubOrgService
.
getOne
(
new
LambdaQueryWrapper
<
PubOrg
>()
PubOrg
puborg
=
pubOrgService
.
getOne
(
pubOrgWrapper
);
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgId
()),
PubOrg:
:
getOrgId
,
req
.
getOrgId
()));
if
(
ObjectUtil
.
isEmpty
(
puborg
))
{
if
(
ObjectUtil
.
isEmpty
(
puborg
))
{
//抛出组织机构不存在异常
//抛出组织机构不存在异常
throw
new
ServiceException
(
Cabinet
ExceptionEnum
.
PUBORG_NOT_EXIST
);
throw
new
ServiceException
(
PubOrg
ExceptionEnum
.
PUBORG_NOT_EXIST
);
}
}
//查询是否有重复的单警柜编号
//查询是否有重复的单警柜编号
LambdaQueryWrapper
<
Cabinet
>
wrapper2
=
CabinetWrapper
(
req
);
List
<
Cabinet
>
list
=
this
.
list
(
new
LambdaQueryWrapper
<
Cabinet
>()
wrapper2
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getCabinetNum
()),
Cabinet:
:
getCabinetNum
,
req
.
getCabinetNum
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getCabinetNum
()),
Cabinet:
:
getCabinetNum
,
req
.
getCabinetNum
()));
List
<
Cabinet
>
list
=
this
.
list
(
wrapper2
);
if
(
list
.
size
()>
0
)
{
if
(
list
.
size
()>
0
)
{
//抛出单警柜重复异常
//抛出单警柜重复异常
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINETID_IS_EXISTS
);
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINETID_IS_EXISTS
);
...
@@ -264,12 +263,12 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -264,12 +263,12 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
BeanPlusUtil
.
copyProperties
(
req
,
cabinet
);
BeanPlusUtil
.
copyProperties
(
req
,
cabinet
);
cabinet
.
setCreateTime
(
DateTimeUtil
.
getCurrentDateTime
());
cabinet
.
setCreateTime
(
DateTimeUtil
.
getCurrentDateTime
());
cabinet
.
setUpdateTime
(
DateTimeUtil
.
getCurrentDateTime
());
cabinet
.
setUpdateTime
(
DateTimeUtil
.
getCurrentDateTime
());
boolean
result
=
save
(
cabinet
);
//添加单警柜
LambdaQueryWrapper
<
Cabinet
>
wrapper3
=
CabinetWrapper
(
req
);
save
(
cabinet
);
wrapper3
.
eq
(
ObjectUtil
.
isNotEmpty
(
ObjectUtil
.
isNotEmpty
(
req
.
getCabinetNum
())),
Cabinet:
:
getCabinetNum
,
req
.
getCabinetNum
())
Cabinet
one
=
getOne
(
new
LambdaQueryWrapper
<
Cabinet
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
ObjectUtil
.
isNotEmpty
(
req
.
getCabinetNum
())),
Cabinet:
:
getCabinetNum
,
req
.
getCabinetNum
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgId
())),
Cabinet:
:
getOrgId
,
req
.
getOrgId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgId
())),
Cabinet:
:
getOrgId
,
req
.
getOrgId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
ObjectUtil
.
isNotEmpty
(
req
.
getName
())),
Cabinet:
:
getName
,
req
.
getName
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
ObjectUtil
.
isNotEmpty
(
req
.
getName
())),
Cabinet:
:
getName
,
req
.
getName
()));
Cabinet
one
=
getOne
(
wrapper3
);
ArrayList
<
CabinetBox
>
objects
=
new
ArrayList
<>();
ArrayList
<
CabinetBox
>
objects
=
new
ArrayList
<>();
for
(
int
i
=
1
;
i
<=
req
.
getNum
();
i
++)
{
for
(
int
i
=
1
;
i
<=
req
.
getNum
();
i
++)
{
CabinetBox
cabinetBox
=
new
CabinetBox
();
CabinetBox
cabinetBox
=
new
CabinetBox
();
...
@@ -280,7 +279,7 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -280,7 +279,7 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
objects
.
add
(
cabinetBox
);
objects
.
add
(
cabinetBox
);
}
}
cabinetBoxService
.
saveBatch
(
objects
);
cabinetBoxService
.
saveBatch
(
objects
);
return
result
;
return
cabinet
.
getId
()
;
}
}
...
@@ -291,19 +290,17 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -291,19 +290,17 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
* @return
* @return
*/
*/
@Override
@Override
public
boolean
deleteCabinetInfo
(
CabinetReq
req
)
{
public
boolean
deleteCabinetInfo
(
Update
CabinetReq
req
)
{
//通过单警柜id查询出他的箱门数
//通过单警柜id查询出他的箱门数
LambdaQueryWrapper
<
Cabinet
>
wrapper
=
CabinetWrapper
(
req
)
Cabinet
cabinet
=
this
.
getOne
(
new
LambdaQueryWrapper
<
Cabinet
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Cabinet:
:
getId
,
req
.
getId
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Cabinet:
:
getId
,
req
.
getId
()));
Cabinet
cabinet
=
this
.
getOne
(
wrapper
);
//如果查询不到单警柜抛出异常
//如果查询不到单警柜抛出异常
if
(
ObjectUtil
.
isEmpty
(
cabinet
))
{
if
(
ObjectUtil
.
isEmpty
(
cabinet
))
{
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINET_ISNOT_EXISTS
);
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINET_ISNOT_EXISTS
);
}
}
//通过单警柜id循环遍历出并删除所有箱门信息
//通过单警柜id循环遍历出并删除所有箱门信息
LambdaQueryWrapper
<
CabinetBox
>
eq
=
CabinetboxWrapper
(
req
)
List
<
CabinetBox
>
list
=
cabinetBoxService
.
list
(
new
LambdaQueryWrapper
<
CabinetBox
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
CabinetBox:
:
getCabinetId
,
req
.
getId
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
CabinetBox:
:
getCabinetId
,
req
.
getId
()));
List
<
CabinetBox
>
list
=
cabinetBoxService
.
list
(
eq
);
for
(
CabinetBox
cabinetBox:
list
)
{
for
(
CabinetBox
cabinetBox:
list
)
{
//删除箱门信息的同时需要去判断箱门是否绑定警员,如果有,则解除绑定
//删除箱门信息的同时需要去判断箱门是否绑定警员,如果有,则解除绑定
Policeman
one
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
Policeman
one
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
...
@@ -338,7 +335,7 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -338,7 +335,7 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
List
<
String
>
allOrgId
=
getAllOrgId
(
req
,
req
.
getIncludeLowerLevel
());
List
<
String
>
allOrgId
=
getAllOrgId
(
req
,
req
.
getIncludeLowerLevel
());
if
(
allOrgId
.
isEmpty
())
{
if
(
allOrgId
.
isEmpty
())
{
//抛出组织机构不存在异常
//抛出组织机构不存在异常
throw
new
ServiceException
(
Cabinet
ExceptionEnum
.
PUBORG_NOT_EXIST
);
throw
new
ServiceException
(
PubOrg
ExceptionEnum
.
PUBORG_NOT_EXIST
);
}
}
cabinets
=
getAllCabinetByOrg
(
allOrgId
);
cabinets
=
getAllCabinetByOrg
(
allOrgId
);
return
cabinets
;
return
cabinets
;
...
@@ -357,16 +354,14 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -357,16 +354,14 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
@Override
@Override
public
CabinetDto
showOneCabinet
(
CabinetReq
req
)
{
public
CabinetDto
showOneCabinet
(
CabinetReq
req
)
{
//查询单警柜信息
//查询单警柜信息
LambdaQueryWrapper
<
Cabinet
>
eq
=
CabinetWrapper
(
req
)
Cabinet
one
=
getOne
(
new
LambdaQueryWrapper
<
Cabinet
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Cabinet:
:
getId
,
req
.
getId
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Cabinet:
:
getId
,
req
.
getId
()));
Cabinet
one
=
getOne
(
eq
);
if
(
ObjectUtil
.
isNull
(
one
)){
if
(
ObjectUtil
.
isNull
(
one
)){
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINET_ISNOT_EXISTS
);
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINET_ISNOT_EXISTS
);
}
}
//查询单警柜的箱门信息
//查询单警柜的箱门信息
LambdaQueryWrapper
<
CabinetBox
>
eq1
=
CabinetboxWrapper
(
req
)
List
<
CabinetBox
>
list
=
cabinetBoxService
.
list
(
new
LambdaQueryWrapper
<
CabinetBox
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
CabinetBox:
:
getCabinetId
,
req
.
getId
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
CabinetBox:
:
getCabinetId
,
req
.
getId
()));
List
<
CabinetBox
>
list
=
cabinetBoxService
.
list
(
eq1
);
//将单警柜的信息和它的箱门信息返回
//将单警柜的信息和它的箱门信息返回
CabinetDto
cabinetDto
=
new
CabinetDto
();
CabinetDto
cabinetDto
=
new
CabinetDto
();
BeanPlusUtil
.
copyProperties
(
one
,
cabinetDto
);
BeanPlusUtil
.
copyProperties
(
one
,
cabinetDto
);
...
@@ -381,18 +376,17 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -381,18 +376,17 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
* @return
* @return
*/
*/
@Override
@Override
public
boolean
updateCabinetInfo
(
CabinetReq
req
)
{
public
boolean
updateCabinetInfo
(
Update
CabinetReq
req
)
{
//查询传入的组织机构id是否存在
//查询传入的组织机构id是否存在
LambdaQueryWrapper
<
PubOrg
>
pubOrgwrapper
=
PubOrgWrapper
(
Long
.
parseLong
(
req
.
getOrgId
()));
PubOrg
puborg
=
pubOrgService
.
getOne
(
new
LambdaQueryWrapper
<
PubOrg
>()
PubOrg
puborg
=
pubOrgService
.
getOne
(
pubOrgwrapper
);
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgId
()),
PubOrg:
:
getOrgId
,
req
.
getOrgId
())
);
if
(
ObjectUtil
.
isEmpty
(
puborg
))
{
if
(
ObjectUtil
.
isEmpty
(
puborg
))
{
//抛出组织机构不存在异常
//抛出组织机构不存在异常
throw
new
ServiceException
(
Cabinet
ExceptionEnum
.
PUBORG_NOT_EXIST
);
throw
new
ServiceException
(
PubOrg
ExceptionEnum
.
PUBORG_NOT_EXIST
);
}
}
//查询是否有重复的单警柜编号
//查询是否有重复的单警柜编号
LambdaQueryWrapper
<
Cabinet
>
wrapper2
=
CabinetWrapper
(
req
);
List
<
Cabinet
>
list
=
this
.
list
(
new
LambdaQueryWrapper
<
Cabinet
>()
wrapper2
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getCabinetNum
()),
Cabinet:
:
getCabinetNum
,
req
.
getCabinetNum
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getCabinetNum
()),
Cabinet:
:
getCabinetNum
,
req
.
getCabinetNum
()));
List
<
Cabinet
>
list
=
this
.
list
(
wrapper2
);
if
(
list
.
size
()>
0
)
{
if
(
list
.
size
()>
0
)
{
//抛出单警柜重复异常
//抛出单警柜重复异常
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINETID_IS_EXISTS
);
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINETID_IS_EXISTS
);
...
@@ -400,10 +394,9 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -400,10 +394,9 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
Cabinet
cabinet
=
new
Cabinet
();
Cabinet
cabinet
=
new
Cabinet
();
BeanPlusUtil
.
copyProperties
(
req
,
cabinet
);
BeanPlusUtil
.
copyProperties
(
req
,
cabinet
);
//如果新增箱门个数,那么对应的箱门表中也需要插入对应对应数量的箱门记录条数
//如果新增箱门个数,那么对应的箱门表中也需要插入对应对应数量的箱门记录条数
LambdaQueryWrapper
<
Cabinet
>
eq
=
CabinetWrapper
(
req
)
Cabinet
cabinet1
=
this
.
getOne
(
new
LambdaQueryWrapper
<
Cabinet
>(
)
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgId
()),
Cabinet:
:
getOrgId
,
req
.
getOrgId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgId
()),
Cabinet:
:
getOrgId
,
req
.
getOrgId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getCabinetNum
()),
Cabinet:
:
getCabinetNum
,
req
.
getCabinetNum
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getCabinetNum
()),
Cabinet:
:
getCabinetNum
,
req
.
getCabinetNum
()));
Cabinet
cabinet1
=
this
.
getOne
(
eq
);
Integer
oldNum
=
cabinet1
.
getNum
();
Integer
oldNum
=
cabinet1
.
getNum
();
Integer
totalBoxNum
=
cabinet1
.
getNum
()+
req
.
getNum
();
Integer
totalBoxNum
=
cabinet1
.
getNum
()+
req
.
getNum
();
List
<
CabinetBox
>
objects
=
new
ArrayList
<>();
List
<
CabinetBox
>
objects
=
new
ArrayList
<>();
...
@@ -493,26 +486,6 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
...
@@ -493,26 +486,6 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
}
}
//查询的各种条件信息
//单警柜主柜查询条件
private
LambdaQueryWrapper
<
Cabinet
>
CabinetWrapper
(
CabinetReq
req
)
{
LambdaQueryWrapper
<
Cabinet
>
wrapper
=
new
LambdaQueryWrapper
<>();
//查询全部
if
(
ObjectUtil
.
isEmpty
(
req
))
{
return
wrapper
;
}
return
wrapper
;
}
//箱门的查询条件
private
LambdaQueryWrapper
<
CabinetBox
>
CabinetboxWrapper
(
CabinetReq
req
)
{
LambdaQueryWrapper
<
CabinetBox
>
wrapper
=
new
LambdaQueryWrapper
<>();
//查询全部
if
(
ObjectUtil
.
isEmpty
(
req
))
{
return
wrapper
;
}
return
wrapper
;
}
//查询机构id是否存在
//查询机构id是否存在
private
LambdaQueryWrapper
<
PubOrg
>
PubOrgWrapper
(
long
orgId
)
{
private
LambdaQueryWrapper
<
PubOrg
>
PubOrgWrapper
(
long
orgId
)
{
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/EquipmentTypeServiceImpl.java
View file @
672e1bb4
...
@@ -173,7 +173,7 @@ public class EquipmentTypeServiceImpl extends ServiceImpl<EquipmentTypeMapper, E
...
@@ -173,7 +173,7 @@ public class EquipmentTypeServiceImpl extends ServiceImpl<EquipmentTypeMapper, E
return
true
;
return
true
;
}
}
@Transactional
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
Boolean
updateEquipment
(
UpdateEquipmentTypeReq
req
)
{
public
Boolean
updateEquipment
(
UpdateEquipmentTypeReq
req
)
{
EquipmentType
type
=
this
.
queryEqType
(
req
);
EquipmentType
type
=
this
.
queryEqType
(
req
);
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/PoliceFingerServiceImpl.java
View file @
672e1bb4
...
@@ -80,8 +80,14 @@ public class PoliceFingerServiceImpl extends ServiceImpl<PoliceFingerMapper, Pol
...
@@ -80,8 +80,14 @@ public class PoliceFingerServiceImpl extends ServiceImpl<PoliceFingerMapper, Pol
// 删除指纹信息
// 删除指纹信息
@Override
@Override
public
boolean
deleteFinger
(
PolicemanFingerReq
req
)
{
public
boolean
deleteFinger
(
PolicemanFingerReq
req
)
{
this
.
removeById
(
req
.
getId
());
req
.
getId
();
return
true
;
PoliceFinger
one
=
getOne
(
new
LambdaQueryWrapper
<
PoliceFinger
>()
.
eq
(
ObjectUtil
.
isNotNull
(
req
.
getId
()),
PoliceFinger:
:
getId
,
req
.
getId
())
.
eq
(
ObjectUtil
.
isNotNull
(
req
.
getPoliceId
()),
PoliceFinger:
:
getPoliceId
,
req
.
getPoliceId
()));
if
(
ObjectUtil
.
isNull
(
one
)){
throw
new
ServiceException
(
PolicemanFingerExceptionEnum
.
POLICEMAN_FINGER_NOTEXISTS
);
}
return
removeById
(
one
);
}
}
/**
/**
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/PolicemanServiceImpl.java
View file @
672e1bb4
...
@@ -3,21 +3,25 @@ package com.junmp.jyzb.service.impl;
...
@@ -3,21 +3,25 @@ package com.junmp.jyzb.service.impl;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.junmp.jyzb.api.bean.query.CabinetReq
;
import
com.junmp.jyzb.api.bean.dto.PoliceDto
;
import
com.junmp.jyzb.api.bean.dto.PoliceFingerDto
;
import
com.junmp.jyzb.api.bean.dto.PolicemanDto
;
import
com.junmp.jyzb.api.bean.query.PolicemanReq
;
import
com.junmp.jyzb.api.bean.query.PolicemanReq
;
import
com.junmp.jyzb.entity.Cabinet
;
import
com.junmp.jyzb.api.bean.req.UpdatePolicemanReq
;
import
com.junmp.jyzb.entity.PoliceFinger
;
import
com.junmp.jyzb.entity.*
;
import
com.junmp.jyzb.exception.enums.CabinetBoxExceptionEnum
;
import
com.junmp.jyzb.exception.enums.CabinetExceptionEnum
;
import
com.junmp.jyzb.exception.enums.PolicemanExceptionEnum
;
import
com.junmp.jyzb.exception.enums.PolicemanExceptionEnum
;
import
com.junmp.jyzb.exception.enums.PubOrgExceptionEnum
;
import
com.junmp.jyzb.mapper.*
;
import
com.junmp.jyzb.mapper.*
;
import
com.junmp.jyzb.service.CabinetService
;
import
com.junmp.jyzb.service.*
;
import
com.junmp.jyzb.service.PolicemanService
;
import
com.junmp.jyzb.service.PubOrgService
;
import
com.junmp.jyzb.utils.*
;
import
com.junmp.jyzb.utils.*
;
import
com.junmp.v2.auth.password.BcryptPasswordStoredEncrypt
;
import
com.junmp.v2.common.exception.base.ServiceException
;
import
com.junmp.v2.common.exception.base.ServiceException
;
import
com.junmp.v2.common.util.BeanPlusUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.junmp.jyzb.entity.Policeman
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.*
;
import
java.util.*
;
...
@@ -56,98 +60,44 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -56,98 +60,44 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
@Resource
@Resource
private
PolicemanService
policemanService
;
private
PolicemanService
policemanService
;
@Resource
private
CabinetBoxService
cabinetBoxService
;
@Resource
private
PoliceFingerService
policeFingerService
;
@Resource
private
SysuserService
sysUserService
;
private
static
final
String
REDIS_POLICE
=
"Policeman_"
;
private
static
final
String
REDIS_POLICE
=
"Policeman_"
;
private
static
final
String
REDIS_ORG
=
"Organization_"
;
private
static
final
String
REDIS_ORG
=
"Organization_"
;
@Override
public
ResponseResult
addPoliceman
(
Map
<
String
,
Object
>
policeman
)
{
// 进行参数校验
try
{
checkNotBlank
(
policeman
.
get
(
"orgId"
),
"orgId不能为空"
);
checkNotBlank
(
policeman
.
get
(
"name"
),
"name不能为空"
);
checkNotBlank
(
policeman
.
get
(
"policeCode"
),
"policeCode不能为空"
);
checkNotBlank
(
policeman
.
get
(
"sex"
),
"sex不能为空"
);
//checkNotBlank((String) policeman.get("cabinetBoxId"), "cabinetBoxId不能为空");
checkNotBlank
(
policeman
.
get
(
"phone"
),
"phone不能为空"
);
checkNotBlank
(
policeman
.
get
(
"idCard"
),
"idCard不能为空"
);
//checkNotBlank((String) policeman.get("photo"), "photo不能为空");
}
catch
(
IllegalArgumentException
e
)
{
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
/**
* 添加警员信息
* @param req
* @return
*/
@Override
public
String
AddPoliceman
(
UpdatePolicemanReq
req
)
{
//查询传入的组织机构id是否存在
//查询传入的组织机构id是否存在
Long
onePubOrg
=
pubOrgMapper
.
getOnePubOrg
(
policeman
.
get
(
"orgId"
).
toString
());
PubOrg
puborg
=
pubOrgService
.
getOne
(
new
LambdaQueryWrapper
<
PubOrg
>()
if
(
onePubOrg
==
null
||
onePubOrg
.
equals
(
""
)){
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgId
()),
PubOrg:
:
getOrgId
,
req
.
getOrgId
()));
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"该组织机构不存在"
);
if
(
ObjectUtil
.
isEmpty
(
puborg
))
{
//抛出组织机构不存在异常
throw
new
ServiceException
(
PubOrgExceptionEnum
.
PUBORG_NOT_EXIST
);
}
}
//查询是否有重复的policeCode
//查询是否有重复的policeCode
List
<
String
>
policeCodeFlag
=
policemanMapper
.
getPoliceByPoliceCode
((
String
)
policeman
.
get
(
"policeCode"
));
List
<
Policeman
>
list
=
policemanService
.
list
(
new
LambdaQueryWrapper
<
Policeman
>()
if
(!
policeCodeFlag
.
isEmpty
()){
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getPoliceCode
()),
Policeman:
:
getPoliceCode
,
req
.
getPoliceCode
()));
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"警员编号已存在"
);
if
(
list
.
size
()>
0
){
}
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICECODE_IS_EXISTS
);
}
//todo cabinetBoxId能否重复
Policeman
policeman
=
new
Policeman
();
BeanPlusUtil
.
copyProperties
(
req
,
policeman
);
//添加警员绑定用户信息
//查询单警柜箱号是否存在
policemanService
.
save
(
policeman
);
if
(
policeman
.
containsKey
(
"cabinetBoxId"
)
&&
policeman
.
get
(
"cabinetBoxId"
).
toString
()!=
""
){
//如果cabinetBoxId的存在且值不为空
return
policeman
.
getId
();
String
oneCabinetBox
=
cabinetBoxMapper
.
getOneCabinetBox
(
policeman
.
get
(
"cabinetBoxId"
).
toString
());
if
(
oneCabinetBox
==
null
||
oneCabinetBox
.
equals
(
""
)){
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"该单警柜箱号不存在"
);
}
}
Policeman
police
=
new
Policeman
();
//将警员相关信息添加到警员表
//生成一个uuid
String
uuid
=
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
);
//生成当前时间
Date
currentDate
=
DateTimeUtil
.
getCurrentDateTime
();
police
.
setCreateTime
(
currentDate
);
police
.
setUpdateTime
(
currentDate
);
police
.
setId
(
uuid
);
police
.
setOrgId
((
Long
)
policeman
.
get
(
"orgId"
));
police
.
setName
((
String
)
policeman
.
get
(
"name"
));
police
.
setPoliceCode
((
String
)
policeman
.
get
(
"policeCode"
));
police
.
setSex
((
String
)
policeman
.
get
(
"sex"
));
police
.
setCabinetBoxId
((
String
)
policeman
.
get
(
"cabinetBoxId"
));
police
.
setPhone
((
String
)
policeman
.
get
(
"phone"
));
police
.
setIdCard
((
String
)
policeman
.
get
(
"idCard"
));
police
.
setPhoto
((
String
)
policeman
.
get
(
"photo"
));
policemanMapper
.
addPoliceman
(
police
);
// // 将uuid、创建时间、更新时间加入到policeman中
// policeman.put("id",uuid);
// long timestamp = currentDate.getTime(); // 将Date对象转换为long类型的时间戳
// policeman.put("updateTime",timestamp);
//
// /**
// * 更新缓存
// * */
// //构建Redis缓存键
// String redisKey = REDIS_ORG + "true" +'_'+ policeman.get("orgId").toString();
// // 从 Redis 中获取数据
// List<Map<String, Object>> cachedDataTrue = redisUtils.findCachedData(redisKey);
// if (cachedDataTrue != null) {
// cachedDataTrue.add(0,policeman);
// //将查询结果存入 Redis 中
// redisUtils.set(redisKey, cachedDataTrue);
// }
//
// //构建Redis缓存键
// redisKey = REDIS_ORG + "false" +'_'+ policeman.get("orgId").toString();
// // 从 Redis 中获取数据
// List<Map<String, Object>> cachedDataFalse = redisUtils.findCachedData(redisKey);
// if (cachedDataFalse != null) {
// cachedDataFalse.add(0,policeman);
// //将查询结果存入 Redis 中
// redisUtils.set(redisKey, cachedDataFalse);
// }
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
uuid
);
}
}
// 更新缓存的方法,新增警员信息时调用
// 更新缓存的方法,新增警员信息时调用
...
@@ -185,178 +135,102 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -185,178 +135,102 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
redisUtils
.
delete
(
redisKey
);
redisUtils
.
delete
(
redisKey
);
}
}
@Override
public
ResponseResult
getOnePolice
(
Map
<
String
,
Object
>
msg
){
// 进行参数校验
try
{
checkNotBlank
(
msg
.
get
(
"policeId"
),
"policeId不能为空"
);
}
catch
(
IllegalArgumentException
e
)
{
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
String
userId
=
msg
.
get
(
"policeId"
).
toString
();
/**
Map
<
String
,
Object
>
policeMsg
=
policemanMapper
.
getOnePolice
(
userId
);
*
//如果没有查找到信息,返回相关提示
* @param req
if
(
policeMsg
==
null
){
* @return
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
NO_DATA
,
ReturnData
.
NO_DATA
);
*/
@Override
public
PolicemanDto
GetOnePolice
(
PolicemanReq
req
)
{
Policeman
one
=
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
ObjectUtil
.
isNotNull
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
()));
if
(
ObjectUtil
.
isNull
(
one
)){
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
}
}
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
policeMsg
);
PolicemanDto
policemanDto
=
new
PolicemanDto
();
BeanPlusUtil
.
copyProperties
(
one
,
policemanDto
);
//将警员的指纹信息查询出来
List
<
PoliceFinger
>
list1
=
policeFingerService
.
list
(
new
LambdaQueryWrapper
<
PoliceFinger
>()
.
eq
(
ObjectUtil
.
isNotNull
(
req
.
getId
()),
PoliceFinger:
:
getPoliceId
,
req
.
getId
()));
List
<
PoliceFingerDto
>
fingerDtoList
=
new
ArrayList
<>();
for
(
PoliceFinger
policeFinger:
list1
)
{
PoliceFingerDto
policeFingerDto
=
new
PoliceFingerDto
();
BeanPlusUtil
.
copyProperties
(
policeFinger
,
policeFingerDto
);
fingerDtoList
.
add
(
policeFingerDto
);
}
policemanDto
.
setFingersList
(
fingerDtoList
);
return
policemanDto
;
}
}
/**
* 删除警员信息
* @param req
* @return
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
ResponseResult
deletePolice
(
Map
<
String
,
Object
>
msg
)
{
public
boolean
DeletePolice
(
UpdatePolicemanReq
req
)
{
// 进行参数校验
//通过警员id查询警员信息
try
{
Policeman
policeman
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
checkNotBlank
(
msg
.
get
(
"policeList"
),
"policeList不能为空"
);
.
eq
(
ObjectUtil
.
isNotNull
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
()));
}
catch
(
IllegalArgumentException
e
)
{
//查询不到警员信息则抛异常
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
if
(
ObjectUtil
.
isNull
(
policeman
)){
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
}
}
//如果查询出来的警员信息中没有绑定箱门而参数传递了箱门id,则抛出异常警员绑定箱门错误
//遍历要删除的警员id
//如果传递的箱门id参数与查询出来的箱门id不一致,则抛出异常警员绑定的箱门与实际绑定不符合
List
<
Object
>
policeList
=
(
List
<
Object
>)
msg
.
get
(
"policeList"
);
if
((
ObjectUtil
.
isNull
(
policeman
.
getCabinetBoxId
())
&&
ObjectUtil
.
isNotNull
(
req
.
getCabinetBoxId
()))){
for
(
Object
policeId:
policeList
){
throw
new
ServiceException
(
CabinetBoxExceptionEnum
.
CABINETBOX_ISNOT_EXISTS
);
policemanMapper
.
deletePolice
(
policeId
.
toString
());
}
}
//通过警员信息中的userId对账号进行删除
sysUserService
.
remove
(
new
LambdaQueryWrapper
<
User
>()
.
eq
(
User:
:
getUserId
,
policeman
.
getUserId
()));
return
policemanService
.
removeById
(
policeman
);
//todo 删除缓存中的警员信息
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
);
}
}
@Override
public
ResponseResult
updatePolice
(
Map
<
String
,
Object
>
policeman
)
{
// 进行参数校验
try
{
checkNotBlank
(
policeman
.
get
(
"id"
),
"id不能为空"
);
checkNotBlank
(
policeman
.
get
(
"orgId"
),
"orgId不能为空"
);
checkNotBlank
(
policeman
.
get
(
"name"
),
"name不能为空"
);
checkNotBlank
(
policeman
.
get
(
"policeCode"
),
"policeCode不能为空"
);
checkNotBlank
(
policeman
.
get
(
"sex"
),
"sex不能为空"
);
//checkNotBlank((String) policeman.get("cabinetBoxId"), "cabinetBoxId不能为空");
checkNotBlank
(
policeman
.
get
(
"phone"
),
"phone不能为空"
);
checkNotBlank
(
policeman
.
get
(
"idCard"
),
"idCard不能为空"
);
//checkNotBlank((String) policeman.get("photo"), "photo不能为空");
}
catch
(
IllegalArgumentException
e
)
{
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
/**
* 修改警员信息
* @param req
* @return
*/
@Override
public
boolean
UpdatePolice
(
UpdatePolicemanReq
req
)
{
Policeman
policeman
=
new
Policeman
();
BeanPlusUtil
.
copyProperties
(
req
,
policeman
);
//查询传入的组织机构id是否存在
//查询传入的组织机构id是否存在
Long
onePubOrg
=
pubOrgMapper
.
getOnePubOrg
(
policeman
.
get
(
"orgId"
).
toString
());
PubOrg
puborg
=
pubOrgService
.
getOne
(
new
LambdaQueryWrapper
<
PubOrg
>()
if
(
onePubOrg
==
null
||
onePubOrg
.
equals
(
""
)){
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgId
()),
PubOrg:
:
getOrgId
,
req
.
getOrgId
()));
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"该组织机构不存在"
);
if
(
ObjectUtil
.
isEmpty
(
puborg
))
{
}
//抛出组织机构不存在异常
throw
new
ServiceException
(
PubOrgExceptionEnum
.
PUBORG_NOT_EXIST
);
//获取map中的policeCode
}
String
policeCode
=
policeman
.
get
(
"policeCode"
).
toString
();
//判断传入的修改的警员编号与本身编号一致,如果一致则无所谓,如果不一致则需要判断修改的警员编号是否已经存在
Policeman
one
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
//查询是否有重复的policeCode
.
eq
(
ObjectUtil
.
isNotNull
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
()));
List
<
String
>
policeCodeFlag
=
policemanMapper
.
getPoliceByPoliceCode
(
policeCode
);
if
(!
req
.
getPoliceCode
().
equals
(
one
.
getPoliceCode
())){
//判断policeCode是否有变动
Policeman
one1
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
String
oldPoliceCode
=
policemanMapper
.
getPoliceCodeById
(
policeman
.
get
(
"id"
).
toString
());
.
eq
(
ObjectUtil
.
isNotNull
(
req
.
getPoliceCode
()),
Policeman:
:
getPoliceCode
,
req
.
getPoliceCode
()));
if
(
oldPoliceCode
!=
null
&&
!
oldPoliceCode
.
equals
(
policeCode
)){
if
(
ObjectUtil
.
isNotNull
(
one1
)){
if
(!
policeCodeFlag
.
isEmpty
()){
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICECODE_IS_EXISTS
);
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"警员编号已存在"
);
}
}
}
}
//查询单警柜箱号是否存在
//查询单警柜箱号是否存在,箱门不存在抛异常
if
(
policeman
.
containsKey
(
"cabinetBoxId"
)
&&
policeman
.
get
(
"cabinetBoxId"
).
toString
()!=
""
){
CabinetBox
cabinetBox
=
cabinetBoxService
.
getOne
(
new
LambdaQueryWrapper
<
CabinetBox
>()
String
oneCabinetBox
=
cabinetBoxMapper
.
getOneCabinetBox
(
policeman
.
get
(
"cabinetBoxId"
).
toString
());
.
eq
(
CabinetBox:
:
getId
,
req
.
getCabinetBoxId
()));
if
(
oneCabinetBox
==
null
||
oneCabinetBox
.
equals
(
""
)){
if
(
ObjectUtil
.
isNull
(
cabinetBox
)){
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"该单警柜箱号不存在"
);
throw
new
ServiceException
(
CabinetBoxExceptionEnum
.
CABINETBOX_ISNOT_EXISTS
);
}
}
}
policeman
.
setUpdateTime
(
DateTimeUtil
.
getCurrentDateTime
());
Policeman
police
=
new
Policeman
();
return
policemanService
.
updateById
(
policeman
);
//修改警员相关信息
//生成当前时间
Date
currentDate
=
DateTimeUtil
.
getCurrentDateTime
();
//police.setId(uuid);
String
id
=
policeman
.
get
(
"id"
).
toString
();
police
.
setId
(
id
);
police
.
setOrgId
((
Long
)
policeman
.
get
(
"orgId"
));
police
.
setName
((
String
)
policeman
.
get
(
"name"
));
police
.
setPoliceCode
((
String
)
policeman
.
get
(
"policeCode"
));
police
.
setSex
((
String
)
policeman
.
get
(
"sex"
));
//police.setIsCreatedAccount((Integer) policeman.get("isCreatedAccount"));
police
.
setCabinetBoxId
((
String
)
policeman
.
get
(
"cabinetBoxId"
));
police
.
setPhone
((
String
)
policeman
.
get
(
"phone"
));
police
.
setIdCard
((
String
)
policeman
.
get
(
"idCard"
));
police
.
setPhoto
((
String
)
policeman
.
get
(
"photo"
));
//police.setUpdateUser((String) policeman.get("updateUser"));
police
.
setUpdateTime
(
currentDate
);
policemanMapper
.
updatePolice
(
police
);
// //更新缓存中的信息
// long timestamp = currentDate.getTime(); // 将Date对象转换为long类型的时间戳
// policeman.put("updateTime",timestamp);
//
// /**
// * 更新缓存
// * */
// //构建Redis缓存键
// String redisKey = REDIS_ORG + "true" +'_'+ policeman.get("orgId").toString();
// // 从 Redis 中获取数据
// List<Map<String, Object>> cachedDataTrue = redisUtils.findCachedData(redisKey);
// if (cachedDataTrue != null) {
// //删除之前的缓存信息
// Iterator<Map<String, Object>> iterator = cachedDataTrue.iterator();
// while (iterator.hasNext()) {
// Map<String, Object> oneData = iterator.next();
// String redisId = oneData.get("id").toString();
// if (id.equals(redisId)) {
// iterator.remove(); // 删除当前循环中的元素
// break;
// }
// }
// //将最新的信息加入
// cachedDataTrue.add(0,policeman);
// //将查询结果存入 Redis 中
// redisUtils.set(redisKey, cachedDataTrue);
// }
//
//
// //构建Redis缓存键
// redisKey = REDIS_ORG + "false" +'_'+ policeman.get("orgId").toString();
// // 从 Redis 中获取数据
// List<Map<String, Object>> cachedDataFalse = redisUtils.findCachedData(redisKey);
// if (cachedDataFalse != null) {
// //删除之前的缓存信息
// Iterator<Map<String, Object>> iterator = cachedDataTrue.iterator();
// while (iterator.hasNext()) {
// Map<String, Object> oneData = iterator.next();
// String redisId = oneData.get("id").toString();
// if (id.equals(redisId)) {
// iterator.remove(); // 删除当前循环中的元素
// break;
// }
// }
// //将最新的信息加入
// cachedDataFalse.add(0,policeman);
// //将查询结果存入 Redis 中
// redisUtils.set(redisKey, cachedDataFalse);
// }
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
);
}
}
@Override
@Override
public
List
<
String
>
getAllPoliceId
(
Map
<
String
,
Object
>
msg
)
{
public
List
<
String
>
getAllPoliceId
(
Map
<
String
,
Object
>
msg
)
{
//如果组织机构是最高级的,获取所有id
// if (msg.get("orgId").toString().equals("1369509498032808905")){
// //构建 Redis 缓存键
// String redisKey = "getAllPoliceId_"+msg.get("orgId");
// // 从 Redis 中获取数据
// List<String> cachedData = redisUtils.findCachedData(redisKey);
// if (cachedData!=null){
// return cachedData;
// }
// List<String> allPoliceId = policemanMapper.getAllPoliceIdByHighest();
// //将查询结果存入 Redis 中
// redisUtils.set(redisKey, allPoliceId);
// return allPoliceId;
// }
//构建 Redis 缓存键
//构建 Redis 缓存键
String
redisKey
=
"getAllPoliceId_"
+
msg
.
get
(
"IncludeLowerLevel"
)+
'_'
+
msg
.
get
(
"orgId"
);
String
redisKey
=
"getAllPoliceId_"
+
msg
.
get
(
"IncludeLowerLevel"
)+
'_'
+
msg
.
get
(
"orgId"
);
...
@@ -398,17 +272,6 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -398,17 +272,6 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
return
subIds
;
return
subIds
;
}
}
@Override
public
ResponseResult
deleteFinger
(
Map
<
String
,
Object
>
msg
)
{
try
{
checkNotBlank
(
msg
.
get
(
"fingerId"
),
"fingerId不能为空"
);
}
catch
(
IllegalArgumentException
e
)
{
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
String
fingerId
=
msg
.
get
(
"fingerId"
).
toString
();
policemanMapper
.
deleteFinger
(
fingerId
);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
);
}
@Override
@Override
public
List
<
String
>
getAllPoliceIdByCabinet
(
Map
<
String
,
Object
>
cabinetId
)
{
public
List
<
String
>
getAllPoliceIdByCabinet
(
Map
<
String
,
Object
>
cabinetId
)
{
...
@@ -422,115 +285,24 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -422,115 +285,24 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
return
boxId
;
return
boxId
;
}
}
@Override
public
ResponseResult
addFingerInfo
(
Map
<
String
,
Object
>
msg
)
{
try
{
checkNotBlank
(
msg
.
get
(
"policeId"
),
"policeId不能为空"
);
checkNotBlank
(
msg
.
get
(
"name"
),
"name不能为空"
);
checkNotBlank
(
msg
.
get
(
"fingerInfo"
),
"fingerInfo不能为空"
);
}
catch
(
IllegalArgumentException
e
)
{
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
//指纹id是自增
Date
currentDate
=
DateTimeUtil
.
getCurrentDateTime
();
PoliceFinger
finger
=
new
PoliceFinger
();
finger
.
setPoliceId
(
msg
.
get
(
"policeId"
).
toString
());
finger
.
setName
(
msg
.
get
(
"name"
).
toString
());
finger
.
setFingerInfo
(
msg
.
get
(
"fingerInfo"
).
toString
());
finger
.
setCreateTime
(
currentDate
);
finger
.
setUpdateTime
(
currentDate
);
policeFingerMapper
.
addFingers
(
finger
);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
"操作成功"
);
}
/**
* @author lxh
* @description 更新警员的指纹信息
* @since 2023/7/18 14:21
* @param
* @return
**/
@Override
public
boolean
updateFingerInfo
(
PoliceFinger
req
)
{
//警员id,name,指纹信息不能为空
// PoliceFinger policeFinger = this.queryProduct(req);
// BeanPlusUtil.copyProperties(req, policeFinger);
// return this.updateById(policeFinger);
// try {
// checkNotBlank(msg.get("policeId"), "policeId不能为空");
// checkNotBlank(msg.get("name"), "name不能为空");
// checkNotBlank(msg.get("fingerInfo"), "fingerInfo不能为空");
// } catch (IllegalArgumentException e) {
// return new ResponseResult(HttpStatus.ERROR, ReturnMsg.ERROR,e.getMessage());
// }
// PoliceFinger policeFinger = new PoliceFinger();
// policeFinger.setId((Integer) msg.get("id"));
// policeFinger.setPoliceId((String) msg.get("policeId"));
// policeFinger.setUpdateTime(DateTimeUtil.getCurrentDateTime());
// policeFinger.setFingerInfo((String) msg.get("fingerInfo"));
// policeFinger.setName((String) msg.get("name"));
// policeFingerMapper.update(policeFinger, new LambdaQueryWrapper<PoliceFinger>()
// .eq(PoliceFinger::getId, msg.get("id")));
// return new ResponseResult(HttpStatus.SUCCESS,"操作成功");
return
false
;
}
/**
/**
* @author lxh
* 修改警员状态
* @description 查询警员的指纹信息
* @param req
* @since 2023/7/18 14:21
* @param msg (fingerId)
* @return
* @return
*
*
/
*/
@Override
@Override
public
ResponseResult
searchFingerInfo
(
Map
<
String
,
Object
>
msg
)
{
public
boolean
ChangePoliceState
(
UpdatePolicemanReq
req
)
{
//警员id不能为空
//通过警员id查询出警员信息
try
{
Policeman
one
=
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
checkNotBlank
(
msg
.
get
(
"policeId"
),
"policeId不能为空"
);
.
eq
(
ObjectUtil
.
isNotNull
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
()));
}
catch
(
IllegalArgumentException
e
)
{
if
(
ObjectUtil
.
isNull
(
one
)){
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
List
<
PoliceFinger
>
fingerList
=
policeFingerMapper
.
selectList
(
new
LambdaQueryWrapper
<
PoliceFinger
>()
.
eq
(
PoliceFinger:
:
getPoliceId
,
msg
.
get
(
"policeId"
)));
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
"操作成功"
,
fingerList
);
}
@Override
public
boolean
addFaceInfo
(
PolicemanReq
req
)
{
//面部信息为null或者为空
if
(
ObjectUtil
.
isNull
(
req
.
getFaceInfo
())
||
ObjectUtil
.
isEmpty
(
req
.
getFaceInfo
())){
return
false
;
}
Policeman
police
=
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
()));
if
(
ObjectUtil
.
isNull
(
police
)){
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
}
}
police
.
setFaceInfo
(
req
.
getFaceInfo
());
one
.
setState
(
req
.
getState
());
police
.
setUpdateTime
(
DateTimeUtil
.
getCurrentDateTime
());
return
policemanService
.
updateById
(
one
);
return
policemanService
.
updateById
(
police
);
}
@Override
public
ResponseResult
changePoliceState
(
Map
<
String
,
Object
>
msg
)
{
Policeman
police
=
new
Policeman
();
try
{
checkNotBlank
(
msg
.
get
(
"policeId"
),
"policeId不能为空"
);
checkNotBlank
(
msg
.
get
(
"state"
),
"state不能为空"
);
}
catch
(
IllegalArgumentException
e
)
{
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
police
.
setId
(
msg
.
get
(
"policeId"
).
toString
());
police
.
setState
((
Integer
)
msg
.
get
(
"state"
));
policemanMapper
.
changePoliceState
(
police
);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
);
}
}
public
List
<
Map
<
String
,
Object
>>
getAllPolicemanMsg
(
Map
<
String
,
Object
>
msg
,
List
<
String
>
allPoliceId
)
{
public
List
<
Map
<
String
,
Object
>>
getAllPolicemanMsg
(
Map
<
String
,
Object
>
msg
,
List
<
String
>
allPoliceId
)
{
...
@@ -568,31 +340,11 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -568,31 +340,11 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
}
catch
(
IllegalArgumentException
e
)
{
}
catch
(
IllegalArgumentException
e
)
{
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
}
List
<
Map
<
String
,
Object
>>
allPoliceman
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
allPoliceman
=
new
ArrayList
<>();
// // 构建 Redis 缓存键
// String redisKey = REDIS_ORG + msg.get("IncludeLowerLevel").toString() +'_'+ msg.get("orgId").toString();
// // 从 Redis 中获取数据
// List<Map<String, Object>> cachedData = redisUtils.findCachedData(redisKey);
// if (cachedData != null) {
// //将Long类型的数据转化为Date
// for (Map<String,Object> one:cachedData){
// //如果updateTime的类型为Long
// Long dataMsg = (Long) one.get("updateTime");
// one.put("updateTime", redisUtils.getDate(dataMsg));
// allPoliceman.add(one);
// }
// //按照updateTime降序排序
// //DateTimeUtil.timeSort(allPoliceman);
// return new ResponseResult(HttpStatus.SUCCESS,ReturnMsg.PASS,allPoliceman);
// }
//如果组织机构是浙江省公安厅
//如果组织机构是浙江省公安厅
if
(
msg
.
get
(
"orgId"
).
toString
().
equals
(
"1369509498032808905"
)
&&
msg
.
get
(
"IncludeLowerLevel"
).
toString
().
equals
(
"true"
)){
if
(
msg
.
get
(
"orgId"
).
toString
().
equals
(
"1369509498032808905"
)
&&
msg
.
get
(
"IncludeLowerLevel"
).
toString
().
equals
(
"true"
)){
allPoliceman
=
policemanMapper
.
getAllPolice
();
allPoliceman
=
policemanMapper
.
getAllPolice
();
//将查询结果存入 Redis 中
//redisUtils.set(redisKey, allPoliceman);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
allPoliceman
);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
allPoliceman
);
}
}
...
@@ -605,40 +357,54 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -605,40 +357,54 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
//根据获取的组织机构查询警员信息
//根据获取的组织机构查询警员信息
allPoliceman
=
getAllPolicemanByOrg
(
msg
,
allOrgId
);
allPoliceman
=
getAllPolicemanByOrg
(
msg
,
allOrgId
);
//将查询结果存入 Redis 中
//redisUtils.set(redisKey, allPoliceman);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
"操作成功"
,
allPoliceman
);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
"操作成功"
,
allPoliceman
);
}
}
/**
* 通过组织机构id查询警员列表
* @param orgId
*/
@Override
public
PoliceDto
GetAllPolicemanList
(
Long
orgId
)
{
//查询传入的组织机构id是否存在
PubOrg
puborg
=
pubOrgService
.
getOne
(
new
LambdaQueryWrapper
<
PubOrg
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
orgId
),
PubOrg:
:
getOrgId
,
orgId
));
if
(
ObjectUtil
.
isNull
(
puborg
))
{
//抛出组织机构不存在异常
throw
new
ServiceException
(
PubOrgExceptionEnum
.
PUBORG_NOT_EXIST
);
}
//查询出组织机构下的所有警员信息
List
<
Policeman
>
list
=
list
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
orgId
),
Policeman:
:
getOrgId
,
orgId
)
.
eq
(
Policeman:
:
getState
,
1
));
List
<
PolicemanDto
>
policeList
=
new
ArrayList
<>();
//查询出警员信息下的指纹列表信息
for
(
Policeman
p:
list
)
{
PolicemanDto
policemanDto
=
new
PolicemanDto
();
BeanPlusUtil
.
copyProperties
(
p
,
policemanDto
);
List
<
PoliceFinger
>
list1
=
policeFingerService
.
list
(
new
LambdaQueryWrapper
<
PoliceFinger
>()
.
eq
(
ObjectUtil
.
isNotNull
(
p
.
getId
()),
PoliceFinger:
:
getPoliceId
,
p
.
getId
()));
List
<
PoliceFingerDto
>
policeFingerDtoList
=
new
ArrayList
<>();
for
(
PoliceFinger
policeFinger:
list1
)
{
PoliceFingerDto
policeFingerDto
=
new
PoliceFingerDto
();
BeanPlusUtil
.
copyProperties
(
policeFinger
,
policeFingerDto
);
policeFingerDtoList
.
add
(
policeFingerDto
);
}
policemanDto
.
setFingersList
(
policeFingerDtoList
);
policeList
.
add
(
policemanDto
);
}
PoliceDto
policeDto
=
new
PoliceDto
();
policeDto
.
setPolicemanlist
(
policeList
);
//设置组织机构名
policeDto
.
setOrgName
(
puborg
.
getOrgName
());
policeDto
.
setOrgId
(
orgId
);
return
policeDto
;
}
private
List
<
Map
<
String
,
Object
>>
getAllPolicemanByOrg
(
Map
<
String
,
Object
>
msg
,
List
<
String
>
allOrgId
)
{
private
List
<
Map
<
String
,
Object
>>
getAllPolicemanByOrg
(
Map
<
String
,
Object
>
msg
,
List
<
String
>
allOrgId
)
{
List
<
Map
<
String
,
Object
>>
allPoliceman
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
allPoliceman
=
new
ArrayList
<>();
// // 构建 Redis 缓存键
// String redisKey = REDIS_ORG + msg.get("IncludeLowerLevel").toString() +'_'+ msg.get("orgId").toString();
// // 从 Redis 中获取数据
// List<Map<String, Object>> cachedData = redisUtils.findCachedData(redisKey);
// if (cachedData != null) {
// //将Long类型的数据转化为Date
// for (Map<String,Object> one:cachedData){
// Long dataMsg = (Long) one.get("updateTime");
// one.put("updateTime", redisUtils.getDate(dataMsg));
// allPoliceman.add(one);
// }
// return cachedData;
// }
// for (String orgId : allOrgId) {
// List<Map<String, Object>> policeMsg = policemanMapper.getAllPolicemanByOrg(orgId);
// allPoliceman.addAll(policeMsg);
// }
allPoliceman
=
policemanMapper
.
getAllPolicemanByOrgList
(
allOrgId
);
allPoliceman
=
policemanMapper
.
getAllPolicemanByOrgList
(
allOrgId
);
//按照updateTime降序排序
//DateTimeUtil.timeSort(allPoliceman);
// //将查询结果存入 Redis 中
// redisUtils.set(redisKey, allPoliceman);
return
allPoliceman
;
return
allPoliceman
;
}
}
...
@@ -653,116 +419,60 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -653,116 +419,60 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
return
allOrg
;
return
allOrg
;
}
}
@Override
public
ResponseResult
getPoliceData
(
Map
<
String
,
Object
>
msg
)
{
try
{
checkNotBlank
(
msg
.
get
(
"cabinetId"
),
"cabinetId不能为空"
);
checkNotBlank
(
msg
.
get
(
"type"
),
"type不能为空"
);
}
catch
(
IllegalArgumentException
e
)
{
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
e
.
getMessage
());
}
//如果没有找到该单警柜,返回对应信息
//根据单警柜id查询警员信息
String
cabinetMsg
=
msg
.
get
(
"cabinetId"
).
toString
();
@Override
Map
<
String
,
Object
>
oneCabinet
=
cabinetMapper
.
getOneCabinet
(
cabinetMsg
);
public
PoliceDto
GetPoliceData
(
String
id
)
{
if
(
oneCabinet
.
isEmpty
()){
PoliceDto
policeDto
=
new
PoliceDto
();
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
NO_DATA
,
ReturnData
.
NO_DATA
);
//判断单警柜id是否正确
}
Cabinet
cabinet
=
cabinetService
.
getOne
(
new
LambdaQueryWrapper
<
Cabinet
>()
.
eq
(
Cabinet:
:
getId
,
id
));
String
type
=
msg
.
get
(
"type"
).
toString
();
if
(
ObjectUtil
.
isNull
(
cabinet
)){
//存放返回的数据
throw
new
ServiceException
(
CabinetExceptionEnum
.
CABINET_ISNOT_EXISTS
);
Map
<
String
,
Object
>
allMsg
=
new
HashMap
<>();
}
//通过箱门id查询出警员
if
(
type
.
equals
(
"all"
)){
List
<
Policeman
>
policemenList
=
policemanMapper
.
SearchPoliceList
(
id
);
//根据单警柜id获取组织机构id
List
<
PolicemanDto
>
list
=
new
ArrayList
<>();
String
orgId
=
cabinetMapper
.
getOrgByCabinet
(
msg
.
get
(
"cabinetId"
).
toString
());
for
(
Policeman
policeman:
policemenList
)
{
PolicemanDto
policemanDto
=
new
PolicemanDto
();
//根据组织机构id,查询所有的警员
BeanPlusUtil
.
copyProperties
(
policeman
,
policemanDto
);
List
<
Map
<
String
,
Object
>>
allPolicemanByOrg
=
policemanMapper
.
getAllPolicemanByOrg
(
orgId
);
//指纹信息查找
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
allPolicemanByOrg
);
List
<
PoliceFinger
>
fingerList
=
policeFingerService
.
list
(
new
LambdaQueryWrapper
<
PoliceFinger
>()
.
eq
(
PoliceFinger:
:
getPoliceId
,
policeman
.
getId
()));
}
else
if
(
type
.
equals
(
"single"
)){
List
<
PoliceFingerDto
>
fingerDtoList
=
new
ArrayList
<>();
allMsg
.
put
(
"id"
,
oneCabinet
.
get
(
"id"
));
for
(
PoliceFinger
policeFinger:
fingerList
)
{
allMsg
.
put
(
"cabinetNum"
,
oneCabinet
.
get
(
"cabinetNum"
));
PoliceFingerDto
policeFingerDto
=
new
PoliceFingerDto
();
allMsg
.
put
(
"name"
,
oneCabinet
.
get
(
"name"
));
BeanPlusUtil
.
copyProperties
(
policeFinger
,
policeFingerDto
);
allMsg
.
put
(
"orgId"
,
oneCabinet
.
get
(
"orgId"
));
fingerDtoList
.
add
(
policeFingerDto
);
allMsg
.
put
(
"orgName"
,
oneCabinet
.
get
(
"orgName"
));
allMsg
.
put
(
"location"
,
oneCabinet
.
get
(
"location"
));
List
<
Map
<
String
,
Object
>>
allBoxMsg
=
cabinetBoxMapper
.
getBoxMsg
(
cabinetMsg
);
List
<
Map
<
String
,
Object
>>
policeMsg
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
boxMsg:
allBoxMsg
){
String
cabinetBoxId
=
boxMsg
.
get
(
"cabinetBoxId"
).
toString
();
List
<
String
>
allPoliceIdByBoxId
=
policemanMapper
.
getAllPoliceIdByBoxId
(
cabinetBoxId
);
for
(
String
policeId:
allPoliceIdByBoxId
){
Map
<
String
,
Object
>
onePolice
=
policemanMapper
.
getOnePolice
(
policeId
);
List
<
Map
<
String
,
Object
>>
fingerprints
=
policeFingerMapper
.
getFingersByUserId
(
policeId
);
onePolice
.
put
(
"fingerMsg"
,
fingerprints
);
policeMsg
.
add
(
onePolice
);
}
}
allMsg
.
put
(
"policeList"
,
policeMsg
);
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
allMsg
);
}
else
if
(
type
.
equals
(
"allBind"
)){
//构建存放返回信息的List
List
<
Map
<
String
,
Object
>>
returnMsg
=
new
ArrayList
<>();
//根据单警柜id获取组织机构id
String
orgId
=
cabinetMapper
.
getOrgByCabinet
(
msg
.
get
(
"cabinetId"
).
toString
());
//根据组织机构id获取下面的所有单警柜
List
<
Map
<
String
,
Object
>>
allCabinet
=
cabinetMapper
.
getCabinetByOrgId
(
orgId
);
//根据单警柜的List,查询所有绑定的警员信息
for
(
Map
<
String
,
Object
>
one:
allCabinet
){
//构建cabinet的map
Map
<
String
,
Object
>
cabinetMap
=
new
HashMap
<>();
cabinetMap
.
put
(
"id"
,
one
.
get
(
"id"
));
cabinetMap
.
put
(
"cabinetNum"
,
one
.
get
(
"cabinetNum"
));
cabinetMap
.
put
(
"name"
,
one
.
get
(
"name"
));
cabinetMap
.
put
(
"orgId"
,
one
.
get
(
"orgId"
));
cabinetMap
.
put
(
"orgName"
,
one
.
get
(
"orgName"
));
cabinetMap
.
put
(
"location"
,
one
.
get
(
"location"
));
List
<
Map
<
String
,
Object
>>
allBoxMsg
=
cabinetBoxMapper
.
getBoxMsg
(
one
.
get
(
"id"
).
toString
());
List
<
Map
<
String
,
Object
>>
policeMsg
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
boxMsg:
allBoxMsg
){
String
cabinetBoxId
=
boxMsg
.
get
(
"cabinetBoxId"
).
toString
();
List
<
String
>
allPoliceIdByBoxId
=
policemanMapper
.
getAllPoliceIdByBoxId
(
cabinetBoxId
);
for
(
String
policeId:
allPoliceIdByBoxId
){
Map
<
String
,
Object
>
onePolice
=
policemanMapper
.
getOnePolice
(
policeId
);
List
<
Map
<
String
,
Object
>>
fingerprints
=
policeFingerMapper
.
getFingersByUserId
(
policeId
);
onePolice
.
put
(
"fingerMsg"
,
fingerprints
);
policeMsg
.
add
(
onePolice
);
}
}
cabinetMap
.
put
(
"policeList"
,
policeMsg
);
//将cabinetMap放入list
returnMsg
.
add
(
cabinetMap
);
}
}
return
new
ResponseResult
(
HttpStatus
.
SUCCESS
,
ReturnMsg
.
PASS
,
returnMsg
);
policemanDto
.
setFingersList
(
fingerDtoList
);
}
else
{
list
.
add
(
policemanDto
);
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"传入的type有误"
);
}
}
policeDto
.
setPolicemanlist
(
list
);
// // 构建 Redis 缓存键
policeDto
.
setCabinetNum
(
cabinet
.
getCabinetNum
());
// String redisKey = "getPoliceData" + cabinetId.get("cabinetId").toString();
policeDto
.
setCabinetName
(
cabinet
.
getName
());
// // 从 Redis 中获取数据
PubOrg
pubOrg
=
pubOrgService
.
getOne
(
new
LambdaQueryWrapper
<
PubOrg
>()
// Map<String, Object> cachedData = redisUtils.findCachedData(redisKey);
.
eq
(
PubOrg:
:
getOrgId
,
cabinet
.
getOrgId
()));
// if (cachedData != null) {
policeDto
.
setOrgId
(
pubOrg
.
getOrgId
());
// //将Long类型的数据转化为Date
policeDto
.
setOrgName
(
pubOrg
.
getOrgName
());
//// for (Map<String,Object> one:cachedData){
return
policeDto
;
//// Long dataMsg = (Long) one.get("updateTime");
}
//// one.put("updateTime", redisUtils.getDate(dataMsg));
//// allPoliceman.add(one);
//// }
// return new ResponseResult(HttpStatus.SUCCESS,ReturnMsg.PASS,cachedData);
// }
//将查询结果存入 Redis 中
//添加人脸信息
//redisUtils.set(redisKey, allMsg);
@Override
public
boolean
AddFaceInfo
(
PolicemanReq
req
)
{
//面部信息为null或者为空
if
(
ObjectUtil
.
isNull
(
req
.
getFaceInfo
())
||
ObjectUtil
.
isEmpty
(
req
.
getFaceInfo
())){
return
false
;
}
Policeman
police
=
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
()));
if
(
ObjectUtil
.
isNull
(
police
)){
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
}
police
.
setFaceInfo
(
req
.
getFaceInfo
());
police
.
setUpdateTime
(
DateTimeUtil
.
getCurrentDateTime
());
return
policemanService
.
updateById
(
police
);
}
}
/**
/**
...
@@ -774,14 +484,13 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -774,14 +484,13 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
* @return
* @return
**/
**/
@Override
@Override
public
boolean
updateFaceInfo
(
PolicemanReq
req
)
{
public
boolean
UpdateFaceInfo
(
Update
PolicemanReq
req
)
{
//警员id不能为空
//警员id不能为空
if
(
ObjectUtil
.
isEmpty
(
req
.
getId
())
||
ObjectUtil
.
isNull
(
req
.
getId
())){
if
(
ObjectUtil
.
isEmpty
(
req
.
getId
())
||
ObjectUtil
.
isNull
(
req
.
getId
())){
return
false
;
return
false
;
}
}
LambdaQueryWrapper
<
Policeman
>
eq
=
PolicemanWrapper
(
req
)
Policeman
police
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
()));
Policeman
police
=
policemanService
.
getOne
(
eq
);
police
.
setFaceInfo
(
req
.
getFaceInfo
());
police
.
setFaceInfo
(
req
.
getFaceInfo
());
police
.
setUpdateTime
(
DateTimeUtil
.
getCurrentDateTime
());
police
.
setUpdateTime
(
DateTimeUtil
.
getCurrentDateTime
());
return
policemanService
.
updateById
(
police
);
return
policemanService
.
updateById
(
police
);
...
@@ -796,45 +505,75 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -796,45 +505,75 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
* @return
* @return
**/
**/
@Override
@Override
public
Policeman
s
earchFaceInfo
(
PolicemanReq
req
)
{
public
Policeman
S
earchFaceInfo
(
PolicemanReq
req
)
{
//警员id不能为空
//警员id不能为空
if
(
ObjectUtil
.
isEmpty
(
req
.
getId
())
||
ObjectUtil
.
isNull
(
req
.
getId
())){
if
(
ObjectUtil
.
isEmpty
(
req
.
getId
())
||
ObjectUtil
.
isNull
(
req
.
getId
())){
return
null
;
return
null
;
}
}
LambdaQueryWrapper
<
Policeman
>
eq
=
PolicemanWrapper
(
req
)
Policeman
policeman
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
());
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Policeman:
:
getId
,
req
.
getId
()));
Policeman
policeman
=
policemanService
.
getOne
(
eq
);
if
(
ObjectUtil
.
isNull
(
policeman
)){
if
(
ObjectUtil
.
isNull
(
policeman
)){
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
}
}
return
policeman
;
return
policeman
;
}
}
//通过单警柜获取组织机构id,再获取组织机构下的所有警员信息
@Override
public
List
<
Policeman
>
getOrgPoliceman
(
CabinetReq
req
)
{
//通过警柜id获取组织机构id
/**
Cabinet
cabinet
=
cabinetService
.
getOne
(
new
LambdaQueryWrapper
<
Cabinet
>()
* 警员绑定账号
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getId
()),
Cabinet:
:
getId
,
req
.
getId
()));
* @param req
if
(
ObjectUtil
.
isNull
(
cabinet
)){
* @return
return
null
;
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
boolean
PoliceBindUser
(
PolicemanReq
req
)
{
User
user
=
new
User
();
BeanPlusUtil
.
copyProperties
(
req
,
user
);
//密码加密,依赖注入错误
BcryptPasswordStoredEncrypt
passwordStoredEncrypt
=
new
BcryptPasswordStoredEncrypt
();
String
encrypt
=
passwordStoredEncrypt
.
encrypt
(
req
.
getPassword
());
user
.
setPassword
(
encrypt
);
//存储到数据库
//判断传入的sex是什么,需要做处理
if
(
req
.
getSex
().
equals
(
"男"
)){
user
.
setSex
(
"M"
);
}
else
{
user
.
setSex
(
"F"
);
}
user
.
setRealName
(
req
.
getName
());
user
.
setNickName
(
req
.
getName
());
sysUserService
.
save
(
user
);
//通过警员id将查询到的警员信息进行修改设置
Policeman
policeman
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
Policeman:
:
getId
,
req
.
getId
()));
if
(
ObjectUtil
.
isNull
(
policeman
)){
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
}
}
long
orgId
=
cabinet
.
getOrgId
();
policeman
.
setUserId
(
user
.
getUserId
());
//通过机构id获取机构下所有的警员信息
policeman
.
setIsCreatedAccount
(
true
);
List
<
Policeman
>
policemenList
=
policemanService
.
list
(
new
LambdaQueryWrapper
<
Policeman
>()
policeman
.
setPassword
(
encrypt
);
.
eq
(
Policeman:
:
getOrgId
,
orgId
));
return
policemanService
.
updateById
(
policeman
);
return
policemenList
;
}
}
private
LambdaQueryWrapper
<
Policeman
>
PolicemanWrapper
(
PolicemanReq
req
)
{
//人员绑定箱门
LambdaQueryWrapper
<
Policeman
>
wrapper
=
new
LambdaQueryWrapper
<>();
@Override
//查询全部
public
boolean
PoliceBindBox
(
PolicemanReq
req
)
{
if
(
ObjectUtil
.
isEmpty
(
req
))
{
Policeman
policeman
=
new
Policeman
();
return
wrapper
;
BeanPlusUtil
.
copyProperties
(
req
,
policeman
);
Policeman
one
=
policemanService
.
getOne
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
Policeman:
:
getId
,
req
.
getId
()));
if
(
ObjectUtil
.
isNull
(
one
)){
throw
new
ServiceException
(
PolicemanExceptionEnum
.
POLICEMAN_NOT_EXIST
);
}
}
return
wrapper
;
//判断箱子是否存在
CabinetBox
cabinetBox
=
cabinetBoxService
.
getOne
(
new
LambdaQueryWrapper
<
CabinetBox
>()
.
eq
(
CabinetBox:
:
getId
,
req
.
getCabinetBoxId
()));
if
(
ObjectUtil
.
isNull
(
cabinetBox
)){
throw
new
ServiceException
(
CabinetBoxExceptionEnum
.
CABINETBOX_ISNOT_EXISTS
);
}
return
policemanService
.
updateById
(
policeman
);
}
}
}
}
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/SysuserServiceImpl.java
0 → 100644
View file @
672e1bb4
package
com
.
junmp
.
jyzb
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.junmp.jyzb.entity.User
;
import
com.junmp.jyzb.mapper.SysuserMapper
;
import
com.junmp.jyzb.service.SysuserService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
@Service
@Slf4j
public
class
SysuserServiceImpl
extends
ServiceImpl
<
SysuserMapper
,
User
>
implements
SysuserService
{
}
jyzb-biz/src/main/resources/mapper/CabinetBoxMapper.xml
View file @
672e1bb4
...
@@ -28,11 +28,6 @@
...
@@ -28,11 +28,6 @@
where f.id =#{id}
where f.id =#{id}
</update>
</update>
<select
id=
"getOneCabinetBox"
resultType=
"String"
>
select id
from base_cabinet_box b
where b.id =#{cabinetBoxId}
</select>
<select
id=
"selectByIdCabinetBoxes"
resultType=
"com.junmp.jyzb.entity.CabinetBox"
<select
id=
"selectByIdCabinetBoxes"
resultType=
"com.junmp.jyzb.entity.CabinetBox"
parameterType=
"java.lang.String"
>
parameterType=
"java.lang.String"
>
select * from base_cabinet_box b where b.cabinet_id=#{id}
select * from base_cabinet_box b where b.cabinet_id=#{id}
...
...
jyzb-biz/src/main/resources/mapper/CabinetMapper.xml
View file @
672e1bb4
...
@@ -5,8 +5,7 @@
...
@@ -5,8 +5,7 @@
<id
property=
"id"
column=
"id"
/>
<id
property=
"id"
column=
"id"
/>
<result
property=
"cabinetNum"
column=
"cabinet_num"
/>
<result
property=
"cabinetNum"
column=
"cabinet_num"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"orgIdInt"
column=
"org_id_int"
/>
<result
property=
"orgId"
column=
"org_id_int"
/>
<result
property=
"orgId"
column=
"org_id"
/>
<result
property=
"departmentId"
column=
"department_id"
/>
<result
property=
"departmentId"
column=
"department_id"
/>
<result
property=
"location"
column=
"location"
/>
<result
property=
"location"
column=
"location"
/>
<result
property=
"state"
column=
"state"
/>
<result
property=
"state"
column=
"state"
/>
...
@@ -249,4 +248,5 @@ SET price_total = (
...
@@ -249,4 +248,5 @@ SET price_total = (
left join pub_org o on c.org_id_int =o.org_id
left join pub_org o on c.org_id_int =o.org_id
where c.org_id_int = #{orgId}
where c.org_id_int = #{orgId}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
jyzb-biz/src/main/resources/mapper/PolicemanMapper.xml
View file @
672e1bb4
...
@@ -21,14 +21,7 @@
...
@@ -21,14 +21,7 @@
<!-- </collection>-->
<!-- </collection>-->
<!--</resultMap>-->
<!--</resultMap>-->
<insert
id=
"addPoliceman"
parameterType=
"com.junmp.jyzb.entity.Policeman"
>
insert into base_policeman
(id,org_id_int,name,police_code,sex,
cabinet_box_id,phone,id_card,photo,create_time,update_time)
values
(#{id},#{orgId},#{name},#{policeCode},#{sex},
#{cabinetBoxId},#{phone},#{idCard},#{photo},#{createTime},#{updateTime})
</insert>
<select
id=
"getOnePolice"
resultType=
"Map"
>
<select
id=
"getOnePolice"
resultType=
"Map"
>
SELECT
SELECT
...
@@ -91,26 +84,7 @@
...
@@ -91,26 +84,7 @@
<!-- LEFT JOIN base_cabinet c ON p.cabinet_box_id = c.id-->
<!-- LEFT JOIN base_cabinet c ON p.cabinet_box_id = c.id-->
<!--</select>-->
<!--</select>-->
<delete
id=
"deletePolice"
>
DELETE FROM base_policeman p WHERE p.id =#{id};
</delete>
<update
id=
"updatePolice"
>
update base_policeman p
set
org_id=#{orgId},
name = #{name},
police_code=#{policeCode},
sex=#{sex},
isCreatedAccount=#{isCreatedAccount},
cabinet_box_id=#{cabinetBoxId},
phone=#{phone},
id_card=#{idCard},
update_user=#{updateUser},
photo=#{photo},
update_time=#{updateTime}
where p.id =#{id}
</update>
<!-- <select id="getAllPoliceman" resultType="Map">-->
<!-- <select id="getAllPoliceman" resultType="Map">-->
<!-- select p.id,p.name as police_name,cabinet_id,org_id,police_code,sex,face_info,photo ,f.name as finger_name,finger_info-->
<!-- select p.id,p.name as police_name,cabinet_id,org_id,police_code,sex,face_info,photo ,f.name as finger_name,finger_info-->
...
@@ -148,11 +122,6 @@
...
@@ -148,11 +122,6 @@
where p.id=#{id}
where p.id=#{id}
</update>
</update>
<update
id=
"changePoliceState"
>
update base_policeman p
set state = #{state}
where p.id =#{id}
</update>
<select
id=
"getChildren"
resultType=
"String"
>
<select
id=
"getChildren"
resultType=
"String"
>
select org_id from pub_org where org_parent_id = #{id}
select org_id from pub_org where org_parent_id = #{id}
...
@@ -164,9 +133,6 @@
...
@@ -164,9 +133,6 @@
where cabinet_id=#{cabinetId}
where cabinet_id=#{cabinetId}
</select>
</select>
<select
id=
"getPoliceByPoliceCode"
resultType=
"java.lang.String"
>
select police_code from base_policeman where police_code =#{policeCode}
</select>
<select
id=
"getPoliceCodeById"
resultType=
"java.lang.String"
>
<select
id=
"getPoliceCodeById"
resultType=
"java.lang.String"
>
select police_code from base_policeman where id =#{id}
select police_code from base_policeman where id =#{id}
...
@@ -219,4 +185,21 @@ WHERE o.org_id IN
...
@@ -219,4 +185,21 @@ WHERE o.org_id IN
</foreach>
</foreach>
</select>
</select>
<select
id=
"SearchBoxBindPolice"
resultType=
"com.junmp.jyzb.entity.Policeman"
>
select * from base_policeman p
left join base_Cabinet_box bc on p.cabinet_box_id = bc.id
where p.cabinet_box_id in
<foreach
item=
"item"
collection=
"list"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</select>
<select
id=
"SearchPoliceList"
resultType=
"com.junmp.jyzb.entity.Policeman"
>
select p.id,p.org_id_int,p.`name`,p.sex,p.phone,p.photo,p.police_code,p.cabinet_box_id,p.`password`,p.face_info from base_policeman p
left join base_Cabinet_box bc on p.cabinet_box_id = bc.id
where p.cabinet_box_id in
(SELECT bc.id as boxid FROM base_cabinet_box bc
LEFT JOIN base_cabinet b ON b.id=bc.cabinet_id
WHERE b.id=#{id}) and p.state=1
</select>
</mapper>
</mapper>
\ No newline at end of file
jyzb-biz/src/main/resources/mapper/SysuserMapper.xml
0 → 100644
View file @
672e1bb4
<?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.junmp.jyzb.mapper.SysuserMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.junmp.jyzb.entity.User"
>
<id
column=
"user_id"
property=
"userId"
/>
<result
column=
"real_name"
property=
"realName"
/>
<result
column=
"nick_name"
property=
"nickName"
/>
<result
column=
"account"
property=
"account"
/>
<result
column=
"password"
property=
"password"
/>
<result
column=
"avatar"
property=
"avatar"
/>
<result
column=
"birthday"
property=
"birthday"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"email"
property=
"email"
/>
<result
column=
"phone"
property=
"phone"
/>
<result
column=
"tel"
property=
"tel"
/>
<result
column=
"super_admin_flag"
property=
"superAdminFlag"
/>
<result
column=
"status_flag"
property=
"statusFlag"
/>
<result
column=
"user_type"
property=
"userType"
/>
<result
column=
"last_login_ip"
property=
"lastLoginIp"
/>
<result
column=
"last_login_time"
property=
"lastLoginTime"
/>
<result
column=
"del_flag"
property=
"delFlag"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"create_user"
property=
"createUser"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"update_user"
property=
"updateUser"
/>
<result
column=
"app_flag"
property=
"appFlag"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
user_id,real_name,nick_name,account,password,avatar,birthday,sex,email,phone,tel,super_admin_flag,
status_flag,user_type,last_login_ip,last_login_time,del_flag,create_time,create_user,update_time,update_user,app_flag
</sql>
</mapper>
\ No newline at end of file
jyzb-boot/jyzb-boot.iml
View file @
672e1bb4
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<module
version=
"4"
>
<component
name=
"FacetManager"
>
<component
name=
"FacetManager"
>
<facet
type=
"web"
name=
"Web"
>
<configuration>
<webroots>
<root
url=
"file://$MODULE_DIR$/src/main/webapp"
relative=
"/"
/>
</webroots>
</configuration>
</facet>
<facet
type=
"jpa"
name=
"JPA"
>
<facet
type=
"jpa"
name=
"JPA"
>
<configuration>
<configuration>
<setting
name=
"validation-enabled"
value=
"true"
/>
<setting
name=
"validation-enabled"
value=
"true"
/>
...
@@ -21,308 +14,4 @@
...
@@ -21,308 +14,4 @@
<configuration
/>
<configuration
/>
</facet>
</facet>
</component>
</component>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/resources"
type=
"java-resource"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"module"
module-name=
"jyzb-api"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: p6spy:p6spy:3.9.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: mysql:mysql-connector-java:8.0.21"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.protobuf:protobuf-java:3.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:log-biz-manage:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-web:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-logging:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-classic:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-core:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-api:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:jul-to-slf4j:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.annotation:jakarta.annotation-api:1.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.yaml:snakeyaml:1.27"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-json:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-tomcat:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.44"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.glassfish:jakarta.el:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.44"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:wrapper-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-log-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-config-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:scanner-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-log-db:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.swagger:swagger-annotations:1.5.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:junmp-v2-common:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.oshi:oshi-core:6.3.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.java.dev.jna:jna:5.12.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.java.dev.jna:jna-platform:5.12.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba.fastjson2:fastjson2:2.0.27"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.whvcse:easy-captcha:1.6.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-security-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-cache-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:security-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:security-captcha:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-cache-memory:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:security-xss:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:security-sdk-listing:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:security-count:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-config-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-config-biz:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:config-redis-sdk:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-config-sdk:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-db-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-db-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-db-mp:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-db-init:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-db-flyway:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flywaydb:flyway-core:7.1.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-log-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-log-file:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:log-biz-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:swagger2-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.guava:guava:31.0.1-jre"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.guava:failureaccess:1.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.findbugs:jsr305:3.0.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.checkerframework:checker-qual:3.12.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.errorprone:error_prone_annotations:2.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.j2objc:j2objc-annotations:1.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.xiaoymin:knife4j-spring-boot-starter:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.xiaoymin:knife4j-spring-boot-autoconfigure:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.xiaoymin:knife4j-spring:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.xiaoymin:knife4j-core:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.javassist:javassist:3.25.0-GA"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-swagger2:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-swagger-common:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-spring-webflux:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"RUNTIME"
name=
"Maven: org.mapstruct:mapstruct:1.3.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-oas:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.swagger.core.v3:swagger-models:2.1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-bean-validators:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.swagger:swagger-models:1.5.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.swagger:swagger-core:1.5.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.validation:validation-api:2.0.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-boot-starter:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-data-rest:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.xiaoymin:knife4j-spring-ui:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-autoconfigure:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:swagger2-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-configuration-processor:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-redis-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-cache-redis:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: redis.clients:jedis:3.3.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.commons:commons-pool2:2.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:file-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:file-biz:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:file-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:file-local:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:file-minio:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.minio:minio:3.0.10"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.http-client:google-http-client-xml:1.20.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.http-client:google-http-client:1.20.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.httpcomponents:httpclient:4.5.13"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.httpcomponents:httpcore:4.4.14"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.squareup.okhttp3:okhttp:3.14.9"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.squareup.okio:okio:1.12.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.findbugs:annotations:3.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.jcip:jcip-annotations:1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-biz-user:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-biz-resource:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-biz-role:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-biz-org:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-biz-menu:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-biz-app:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:system-biz-login-log:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:auth-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:auth-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:auth-sdk:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-jwt-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:message-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-jwt-sdk:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:validator-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-webmvc:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aop:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-beans:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-core:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jcl:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-expression:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-validator-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-validation:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hibernate.validator:hibernate-validator:6.1.7.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jboss.logging:jboss-logging:3.4.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:job-boot-starter:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-job-biz:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-job-hutool:1.0.0"
level=
"project"
/>
<orderEntry
type=
"module"
module-name=
"jyzb-biz"
/>
<orderEntry
type=
"library"
name=
"Maven: cn.hutool:hutool-all:5.6.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.projectlombok:lombok:1.18.20"
level=
"project"
/>
<orderEntry
type=
"module"
module-name=
"jyzb-api"
/>
<orderEntry
type=
"library"
name=
"Maven: io.jsonwebtoken:jjwt:0.9.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.validation:jakarta.validation-api:2.0.2"
level=
"project"
/>
<orderEntry
type=
"module"
module-name=
"jyzb-common"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.v2:v2-job-api:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.junmp.jyzb:jyzb-process:1.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.activation:jakarta.activation-api:1.2.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-web:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-data-redis:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-redis:2.4.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-keyvalue:2.4.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-commons:2.4.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-oxm:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context-support:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.lettuce:lettuce-core:6.0.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-common:4.1.73.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-handler:4.1.73.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-resolver:4.1.73.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-buffer:4.1.73.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-codec:4.1.73.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-tcnative-classes:2.0.46.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-transport:4.1.73.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba:fastjson:1.2.83"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-boot-starter:3.5.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus:3.5.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-extension:3.5.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-core:3.5.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-annotation:3.5.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.jsqlparser:jsqlparser:4.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis:3.5.9"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis-spring:2.0.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-jdbc:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.zaxxer:HikariCP:3.4.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jdbc:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.baomidou:mybatis-plus-generator:3.4.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring-boot-starter:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring-boot-autoconfigure:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring-security:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-idm-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring-boot-starter-process:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-engine:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-process-validation:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-image-generator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-engine-common:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-variable-service-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-event-registry-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-variable-service:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-identitylink-service:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-identitylink-service-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-entitylink-service:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-entitylink-service-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-event-registry:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-event-registry-model:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-event-registry-json-converter:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-eventsubscription-service-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-event-registry-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-eventsubscription-service:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-task-service:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-task-service-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-job-service:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-job-service-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-batch-service:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-batch-service-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-idm-engine:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-codec:commons-codec:1.15"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-idm-engine-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-cmmn-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-cmmn-model:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-dmn-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-form-model:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-form-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-content-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-http-common:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.commons:commons-email:1.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.sun.mail:javax.mail:1.5.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.activation:activation:1.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring-common:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-job-spring-service:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-event-registry-spring-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-event-registry-spring:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-orm:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring-boot-starter-cmmn:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-cmmn-engine:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-cmmn-image-generator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-cmmn-converter:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-case-validation:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.liquibase:liquibase-core:3.10.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.uuid:java-uuid-generator:3.3.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-cmmn-spring:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring-boot-starter-dmn:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-dmn-engine:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-dmn-model:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-dmn-xml-converter:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-dmn-image-generator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-io:commons-io:2.11.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-logging:commons-logging:1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-dmn-spring:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-spring-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-engine-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-cmmn-spring-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-cmmn-engine-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-dmn-spring-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-dmn-engine-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-content-spring-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-content-spring:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-content-engine:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-content-engine-configurator:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-bpmn-model:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.commons:commons-lang3:3.11"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-json-converter:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: joda-time:joda-time:2.10.10"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:slf4j-api:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:jcl-over-slf4j:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-bpmn-converter:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-engine-common-api:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.flowable:flowable-bpmn-layout:6.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.tinyjee.jgraphx:jgraphx:1.10.4.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.servlet:javax.servlet-api:4.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.xml.bind:jaxb-api:2.3.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.activation:javax.activation-api:1.2.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.sun.xml.bind:jaxb-core:2.3.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.sun.xml.bind:jaxb-impl:2.3.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-core:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.bytebuddy:byte-buddy:1.10.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml:classmate:1.5.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.plugin:spring-plugin-core:2.0.0.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.plugin:spring-plugin-metadata:2.0.0.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-spring-web:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-spi:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-schema:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.github.classgraph:classgraph:4.8.83"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-spring-webmvc:3.0.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba:druid:1.2.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.annotation:javax.annotation-api:1.3.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: xpp3:xpp3:1.1.4c"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.xiaoymin:knife4j-annotations:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.swagger.core.v3:swagger-annotations:2.1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-integration:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-aop:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.aspectj:aspectjweaver:1.9.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.integration:spring-integration-core:5.4.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-messaging:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-tx:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.retry:spring-retry:1.3.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.projectreactor:reactor-core:3.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.reactivestreams:reactive-streams:1.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.integration:spring-integration-stream:5.4.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.integration:spring-integration-mqtt:5.4.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5"
level=
"project"
/>
</component>
</module>
</module>
\ No newline at end of file
jyzb-common/jyzb-common.iml
deleted
100644 → 0
View file @
6a8b3429
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba:fastjson:1.2.83"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.jsonwebtoken:jjwt:0.9.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.11.4"
level=
"project"
/>
</component>
</module>
\ No newline at end of file
jyzb-mq/jyzb-mq-consumer/jyzb-mq-consumer.iml
View file @
672e1bb4
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<module
version=
"4"
>
<component
name=
"FacetManager"
>
<component
name=
"FacetManager"
>
<facet
type=
"Spring"
name=
"Spring"
>
<facet
type=
"Spring"
name=
"Spring"
>
<configuration
/>
<configuration
/>
</facet>
</facet>
<facet
type=
"web"
name=
"Web"
>
<configuration>
<webroots
/>
</configuration>
</facet>
</component>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/resources"
type=
"java-resource"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-amqp:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-autoconfigure:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-logging:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-classic:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-core:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-api:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:jul-to-slf4j:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.annotation:jakarta.annotation-api:1.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.yaml:snakeyaml:1.27"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-messaging:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-beans:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.amqp:spring-rabbit:2.3.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.amqp:spring-amqp:2.3.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.retry:spring-retry:1.3.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.annotation:javax.annotation-api:1.3.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.rabbitmq:amqp-client:5.10.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-tx:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-test:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-test:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.jayway.jsonpath:json-path:2.4.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.minidev:json-smart:2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.minidev:accessors-smart:1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.ow2.asm:asm:5.0.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:slf4j-api:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.activation:jakarta.activation-api:1.2.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.assertj:assertj-core:3.18.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hamcrest:hamcrest:2.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.junit.jupiter:junit-jupiter:5.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.junit.jupiter:junit-jupiter-api:5.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apiguardian:apiguardian-api:1.1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.opentest4j:opentest4j:1.2.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.junit.platform:junit-platform-commons:1.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.junit.jupiter:junit-jupiter-params:5.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"RUNTIME"
name=
"Maven: org.junit.jupiter:junit-jupiter-engine:5.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"RUNTIME"
name=
"Maven: org.junit.platform:junit-platform-engine:1.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mockito:mockito-core:3.6.28"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.bytebuddy:byte-buddy:1.10.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.bytebuddy:byte-buddy-agent:1.10.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.objenesis:objenesis:3.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mockito:mockito-junit-jupiter:3.6.28"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.skyscreamer:jsonassert:1.5.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-core:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jcl:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-test:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.xmlunit:xmlunit-core:2.7.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-web:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-json:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-tomcat:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.44"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.glassfish:jakarta.el:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.44"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-web:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-webmvc:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aop:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-expression:5.3.5"
level=
"project"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
jyzb-mq/jyzb-mq-producer/jyzb-mq-producer.iml
View file @
672e1bb4
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<module
version=
"4"
>
<component
name=
"FacetManager"
>
<component
name=
"FacetManager"
>
<facet
type=
"Spring"
name=
"Spring"
>
<facet
type=
"Spring"
name=
"Spring"
>
<configuration
/>
<configuration
/>
</facet>
</facet>
<facet
type=
"web"
name=
"Web"
>
<configuration>
<webroots
/>
</configuration>
</facet>
</component>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/resources"
type=
"java-resource"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-amqp:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-autoconfigure:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-logging:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-classic:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-core:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-api:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:jul-to-slf4j:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.annotation:jakarta.annotation-api:1.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.yaml:snakeyaml:1.27"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-messaging:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-beans:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.amqp:spring-rabbit:2.3.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.amqp:spring-amqp:2.3.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.retry:spring-retry:1.3.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.annotation:javax.annotation-api:1.3.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.rabbitmq:amqp-client:5.10.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-tx:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-test:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-test:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.jayway.jsonpath:json-path:2.4.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.minidev:json-smart:2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.minidev:accessors-smart:1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.ow2.asm:asm:5.0.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:slf4j-api:1.7.36"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.activation:jakarta.activation-api:1.2.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.assertj:assertj-core:3.18.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hamcrest:hamcrest:2.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.junit.jupiter:junit-jupiter:5.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.junit.jupiter:junit-jupiter-api:5.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apiguardian:apiguardian-api:1.1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.opentest4j:opentest4j:1.2.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.junit.platform:junit-platform-commons:1.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.junit.jupiter:junit-jupiter-params:5.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"RUNTIME"
name=
"Maven: org.junit.jupiter:junit-jupiter-engine:5.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"RUNTIME"
name=
"Maven: org.junit.platform:junit-platform-engine:1.7.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mockito:mockito-core:3.6.28"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.bytebuddy:byte-buddy:1.10.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.bytebuddy:byte-buddy-agent:1.10.22"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.objenesis:objenesis:3.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mockito:mockito-junit-jupiter:3.6.28"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.skyscreamer:jsonassert:1.5.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-core:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jcl:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-test:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.xmlunit:xmlunit-core:2.7.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-web:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-json:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.11.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-tomcat:2.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.44"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.glassfish:jakarta.el:3.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.44"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-web:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-webmvc:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aop:5.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-expression:5.3.5"
level=
"project"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
pom.xml
View file @
672e1bb4
...
@@ -262,6 +262,11 @@
...
@@ -262,6 +262,11 @@
<version>
3.0.3
</version>
<version>
3.0.3
</version>
</dependency>
</dependency>
<!-- bcrypt依赖 -->
<dependency>
<groupId>
org.springframework.security
</groupId>
<artifactId>
spring-security-web
</artifactId>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论