Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
lefull-lot-microservice
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
yangqi
lefull-lot-microservice
Commits
b20eb8b3
提交
b20eb8b3
authored
12月 20, 2022
作者:
yangqi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
acbb1b97
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
41 行增加
和
4 行删除
+41
-4
LisaController.java
...t-api-web/src/main/java/cn/lefull/api/LisaController.java
+8
-0
EntityListVO.java
...main/java/cn/lefull/interaction/vo/face/EntityListVO.java
+6
-0
EquipmentService.java
...rc/main/java/cn/lefull/service/lisa/EquipmentService.java
+3
-0
EquipmentServiceImpl.java
...ain/java/cn/lefull/service/lisa/EquipmentServiceImpl.java
+24
-4
没有找到文件。
lefull-lot-api-web/src/main/java/cn/lefull/api/LisaController.java
浏览文件 @
b20eb8b3
...
@@ -3,6 +3,7 @@ package cn.lefull.api;
...
@@ -3,6 +3,7 @@ package cn.lefull.api;
import
cn.lefull.common.annotation.NoAuth
;
import
cn.lefull.common.annotation.NoAuth
;
import
cn.lefull.common.response.ApiResponse
;
import
cn.lefull.common.response.ApiResponse
;
import
cn.lefull.interaction.pageresp.Pagination
;
import
cn.lefull.interaction.pageresp.Pagination
;
import
cn.lefull.interaction.vo.face.EntityListVO
;
import
cn.lefull.interaction.vo.face.EquipmentListVO
;
import
cn.lefull.interaction.vo.face.EquipmentListVO
;
import
cn.lefull.service.lisa.EquipmentService
;
import
cn.lefull.service.lisa.EquipmentService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -54,4 +55,11 @@ public class LisaController {
...
@@ -54,4 +55,11 @@ public class LisaController {
equipmentService
.
updateEntity
(
entityId
,
userName
,
sex
,
roomNumber
,
identity
,
mobile
,
idCard
,
imgUrl
,
employeeId
);
equipmentService
.
updateEntity
(
entityId
,
userName
,
sex
,
roomNumber
,
identity
,
mobile
,
idCard
,
imgUrl
,
employeeId
);
return
new
ApiResponse
<>();
return
new
ApiResponse
<>();
}
}
@NoAuth
@GetMapping
(
"/getEntityList"
)
public
ApiResponse
<
Object
>
getEntityList
(
int
apartmentId
,
int
page
,
int
pageSize
)
throws
Exception
{
Pagination
<
EntityListVO
>
entityListVOPageInfo
=
equipmentService
.
getEntityList
(
apartmentId
,
page
,
pageSize
);
return
new
ApiResponse
<>(
entityListVOPageInfo
);
}
}
}
lefull-lot-interaction/src/main/java/cn/lefull/interaction/vo/face/EntityListVO.java
浏览文件 @
b20eb8b3
...
@@ -26,11 +26,15 @@ public class EntityListVO implements Serializable {
...
@@ -26,11 +26,15 @@ public class EntityListVO implements Serializable {
*/
*/
private
Byte
sex
;
private
Byte
sex
;
private
String
sexStr
;
/**
/**
* 门店id
* 门店id
*/
*/
private
Integer
apartmentId
;
private
Integer
apartmentId
;
private
String
apartmentName
;
/**
/**
* 用户姓名
* 用户姓名
*/
*/
...
@@ -41,6 +45,8 @@ public class EntityListVO implements Serializable {
...
@@ -41,6 +45,8 @@ public class EntityListVO implements Serializable {
*/
*/
private
Byte
identity
;
private
Byte
identity
;
private
String
identityStr
;
/**
/**
* 手机号
* 手机号
*/
*/
...
...
lefull-lot-service/src/main/java/cn/lefull/service/lisa/EquipmentService.java
浏览文件 @
b20eb8b3
package
cn
.
lefull
.
service
.
lisa
;
package
cn
.
lefull
.
service
.
lisa
;
import
cn.lefull.interaction.pageresp.Pagination
;
import
cn.lefull.interaction.pageresp.Pagination
;
import
cn.lefull.interaction.vo.face.EntityListVO
;
import
cn.lefull.interaction.vo.face.EquipmentListVO
;
import
cn.lefull.interaction.vo.face.EquipmentListVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -22,4 +23,6 @@ public interface EquipmentService {
...
@@ -22,4 +23,6 @@ public interface EquipmentService {
void
addEntity
(
String
userName
,
Byte
sex
,
int
apartmentId
,
String
roomNumber
,
Byte
identity
,
String
mobile
,
String
idCard
,
String
imgUrl
,
int
employeeId
)
throws
Exception
;
void
addEntity
(
String
userName
,
Byte
sex
,
int
apartmentId
,
String
roomNumber
,
Byte
identity
,
String
mobile
,
String
idCard
,
String
imgUrl
,
int
employeeId
)
throws
Exception
;
void
updateEntity
(
int
entityId
,
String
userName
,
Byte
sex
,
String
roomNumber
,
Byte
identity
,
String
mobile
,
String
idCard
,
String
imgUrl
,
int
employeeId
)
throws
Exception
;
void
updateEntity
(
int
entityId
,
String
userName
,
Byte
sex
,
String
roomNumber
,
Byte
identity
,
String
mobile
,
String
idCard
,
String
imgUrl
,
int
employeeId
)
throws
Exception
;
Pagination
<
EntityListVO
>
getEntityList
(
int
apartmentId
,
int
page
,
int
pageSize
)
throws
Exception
;
}
}
lefull-lot-service/src/main/java/cn/lefull/service/lisa/EquipmentServiceImpl.java
浏览文件 @
b20eb8b3
...
@@ -217,8 +217,19 @@ public class EquipmentServiceImpl implements EquipmentService {
...
@@ -217,8 +217,19 @@ public class EquipmentServiceImpl implements EquipmentService {
}
}
}
}
//@Override
private
String
getSex
(
Byte
sex
)
public
Pagination
<
EquipmentListVO
>
getEntityList
(
int
apartmentId
,
int
page
,
int
pageSize
)
throws
Exception
{
{
switch
(
sex
){
case
1
:
return
"男"
;
case
2
:
return
"女"
;
case
3
:
return
"未知"
;
default
:
return
""
;
}
}
@Override
public
Pagination
<
EntityListVO
>
getEntityList
(
int
apartmentId
,
int
page
,
int
pageSize
)
throws
Exception
{
Utils
.
checkParamsNotEmpty
(
apartmentId
,
"apartmentId"
);
Utils
.
checkParamsNotEmpty
(
page
,
"page"
);
Utils
.
checkParamsNotEmpty
(
page
,
"page"
);
Utils
.
checkParamsNotEmpty
(
pageSize
,
"pageSize"
);
Utils
.
checkParamsNotEmpty
(
pageSize
,
"pageSize"
);
Page
<
Object
>
objects
=
PageHelper
.
startPage
(
page
,
pageSize
);
Page
<
Object
>
objects
=
PageHelper
.
startPage
(
page
,
pageSize
);
...
@@ -231,8 +242,17 @@ public class EquipmentServiceImpl implements EquipmentService {
...
@@ -231,8 +242,17 @@ public class EquipmentServiceImpl implements EquipmentService {
List
<
EntityListVO
>
entityListVOS
=
new
ArrayList
<>();
List
<
EntityListVO
>
entityListVOS
=
new
ArrayList
<>();
for
(
CameraEntityBO
entityBO
:
entityList
)
{
for
(
CameraEntityBO
entityBO
:
entityList
)
{
EntityListVO
vo
=
new
EntityListVO
();
EntityListVO
vo
=
new
EntityListVO
();
vo
.
setUserName
(
entityBO
.
getUserName
());
vo
.
setSex
(
entityBO
.
getSex
());
vo
.
setSexStr
(
this
.
getSex
(
entityBO
.
getSex
()));
vo
.
setApartmentId
(
entityBO
.
getApartmentId
());
vo
.
setApartmentName
(
entityBO
.
getApartmentName
());
vo
.
setRoomNumber
(
entityBO
.
getRoomNumber
());
vo
.
setIdentity
(
entityBO
.
getIdentity
());
vo
.
setIdentityStr
(
this
.
getLabels
(
entityBO
.
getIdentity
()));
vo
.
setMobile
(
entityBO
.
getMobile
());
vo
.
setIdCard
(
entityBO
.
getIdCard
());
vo
.
setImgUrl
(
entityBO
.
getImgUrl
());
entityListVOS
.
add
(
vo
);
entityListVOS
.
add
(
vo
);
}
}
return
PageBuilder
.
buildPageResult
(
objects
,
entityListVOS
);
return
PageBuilder
.
buildPageResult
(
objects
,
entityListVOS
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论