Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
e8ba2df1
提交
e8ba2df1
authored
6月 28, 2023
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加外单位设备以及用户添加错误bug
上级
00bd4cd3
隐藏空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
25 行增加
和
5 行删除
+25
-5
ExternalUnitEquipController.java
...vice/matching/controller/ExternalUnitEquipController.java
+8
-0
ExternalUnitEquipDao.java
.../dev/device/matching/repository/ExternalUnitEquipDao.java
+2
-0
ExternalUnitEquipService.java
...dev/device/matching/service/ExternalUnitEquipService.java
+2
-0
ExternalUnitEquipServiceImpl.java
...e/matching/service/impl/ExternalUnitEquipServiceImpl.java
+5
-0
application-test.properties
dev-union/src/main/resources/application-test.properties
+2
-2
finger.png
dev-union/src/main/resources/img/finger.png
+0
-0
firefox.png
dev-union/src/main/resources/img/firefox.png
+0
-0
logImg.png
dev-union/src/main/resources/img/logImg.png
+0
-0
loginBg.png
dev-union/src/main/resources/img/loginBg.png
+0
-0
loginBg1.png
dev-union/src/main/resources/img/loginBg1.png
+0
-0
loginBg2.png
dev-union/src/main/resources/img/loginBg2.png
+0
-0
nofinger.png
dev-union/src/main/resources/img/nofinger.png
+0
-0
pwd.png
dev-union/src/main/resources/img/pwd.png
+0
-0
title.png
dev-union/src/main/resources/img/title.png
+0
-0
user.png
dev-union/src/main/resources/img/user.png
+0
-0
UserDao.java
...in/java/com/tykj/dev/device/user/subject/dao/UserDao.java
+2
-1
UserServiceImpl.java
...dev/device/user/subject/service/impl/UserServiceImpl.java
+1
-1
VenitalisServiceImpl.java
...evice/user/subject/service/impl/VenitalisServiceImpl.java
+3
-1
没有找到文件。
dev-matching/src/main/java/com/tykj/dev/device/matching/controller/ExternalUnitEquipController.java
浏览文件 @
e8ba2df1
...
@@ -73,6 +73,14 @@ public class ExternalUnitEquipController {
...
@@ -73,6 +73,14 @@ public class ExternalUnitEquipController {
}
}
@ApiOperation
(
value
=
"根据需要查询是否存在"
,
notes
=
"登记信息"
)
@GetMapping
(
"/selectNum/{num}"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
queryById
(
@PathVariable
String
num
)
{
return
ResponseEntity
.
ok
(
externalUnitEquipService
.
queryNum
(
num
));
}
@ApiOperation
(
value
=
"条件查询相关数据列表"
,
notes
=
"登记信息"
)
@ApiOperation
(
value
=
"条件查询相关数据列表"
,
notes
=
"登记信息"
)
@PostMapping
(
"/queryPage"
)
@PostMapping
(
"/queryPage"
)
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/repository/ExternalUnitEquipDao.java
浏览文件 @
e8ba2df1
...
@@ -20,4 +20,6 @@ public interface ExternalUnitEquipDao extends JpaRepository<ExternalUnitEquip,
...
@@ -20,4 +20,6 @@ public interface ExternalUnitEquipDao extends JpaRepository<ExternalUnitEquip,
List
<
ExternalUnitEquip
>
findAllByUnitName
(
String
name
);
List
<
ExternalUnitEquip
>
findAllByUnitName
(
String
name
);
boolean
existsByNum
(
String
num
);
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/service/ExternalUnitEquipService.java
浏览文件 @
e8ba2df1
...
@@ -30,6 +30,8 @@ public interface ExternalUnitEquipService {
...
@@ -30,6 +30,8 @@ public interface ExternalUnitEquipService {
ExternalUnitEquip
queryById
(
Integer
id
);
ExternalUnitEquip
queryById
(
Integer
id
);
boolean
queryNum
(
String
num
);
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/service/impl/ExternalUnitEquipServiceImpl.java
浏览文件 @
e8ba2df1
...
@@ -62,6 +62,11 @@ public class ExternalUnitEquipServiceImpl implements ExternalUnitEquipService {
...
@@ -62,6 +62,11 @@ public class ExternalUnitEquipServiceImpl implements ExternalUnitEquipService {
return
externalUnitEquipDao
.
findById
(
id
).
get
();
return
externalUnitEquipDao
.
findById
(
id
).
get
();
}
}
@Override
public
boolean
queryNum
(
String
num
)
{
return
externalUnitEquipDao
.
existsByNum
(
num
);
}
private
PredicateBuilder
<
ExternalUnitEquip
>
getPredicateBuilder
(
ExternalSelectVo
externalSelectVo
)
{
private
PredicateBuilder
<
ExternalUnitEquip
>
getPredicateBuilder
(
ExternalSelectVo
externalSelectVo
)
{
PredicateBuilder
<
ExternalUnitEquip
>
predicateBuilder
=
Specifications
.
and
();
PredicateBuilder
<
ExternalUnitEquip
>
predicateBuilder
=
Specifications
.
and
();
...
...
dev-union/src/main/resources/application-test.properties
浏览文件 @
e8ba2df1
...
@@ -5,7 +5,6 @@ spring.datasource.username=SYSDBA
...
@@ -5,7 +5,6 @@ spring.datasource.username=SYSDBA
spring.datasource.password
=
szoscar55
spring.datasource.password
=
szoscar55
spring.jpa.database-platform
=
org.hibernate.dialect.OscarDialect
spring.jpa.database-platform
=
org.hibernate.dialect.OscarDialect
file.path
=
/opt/zb/
file.path
=
/opt/zb/
#preview.path=http://10.153.4.11:8088/equip/file/
preview.path
=
http://10.153.4.80:8088/equip/file/
preview.path
=
http://10.153.4.80:8088/equip/file/
spring.boot.admin.client.url
=
http://localhost:8769
spring.boot.admin.client.url
=
http://localhost:8769
...
@@ -25,4 +24,5 @@ block.carrier.ip=http://10.153.4.80:8088/block
...
@@ -25,4 +24,5 @@ block.carrier.ip=http://10.153.4.80:8088/block
check.time.last
=
/opt/zb/check
check.time.last
=
/opt/zb/check
ven.http
=
http://10.153.4.80:8081
ven.http
=
http://10.153.4.81:8081
dev-union/src/main/resources/img/finger.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
11.5 KB
dev-union/src/main/resources/img/firefox.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
8.8 KB
dev-union/src/main/resources/img/logImg.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
590.2 KB
dev-union/src/main/resources/img/loginBg.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
456.2 KB
dev-union/src/main/resources/img/loginBg1.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
456.2 KB
dev-union/src/main/resources/img/loginBg2.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
461.7 KB
dev-union/src/main/resources/img/nofinger.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
8.7 KB
dev-union/src/main/resources/img/pwd.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
1004 Bytes
dev-union/src/main/resources/img/title.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
26.8 KB
dev-union/src/main/resources/img/user.png
deleted
100755 → 0
浏览文件 @
00bd4cd3
1014 Bytes
dev-user/src/main/java/com/tykj/dev/device/user/subject/dao/UserDao.java
浏览文件 @
e8ba2df1
...
@@ -33,7 +33,8 @@ public interface UserDao extends JpaRepository<User, Integer>, JpaSpecificationE
...
@@ -33,7 +33,8 @@ public interface UserDao extends JpaRepository<User, Integer>, JpaSpecificationE
User
findByName
(
String
name
);
User
findByName
(
String
name
);
User
findByNameAndUnitsId
(
String
name
,
Integer
unitsId
);
User
findByNameAndUnitsIdAndIsDel
(
String
name
,
Integer
unitsId
,
Integer
del
);
List
<
User
>
findBySubordinateId
(
Integer
userID
);
List
<
User
>
findBySubordinateId
(
Integer
userID
);
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/UserServiceImpl.java
浏览文件 @
e8ba2df1
...
@@ -93,7 +93,7 @@ public class UserServiceImpl implements UserService {
...
@@ -93,7 +93,7 @@ public class UserServiceImpl implements UserService {
}
}
user
.
setShowOrder
(
maxShowOrder
+
1
);
user
.
setShowOrder
(
maxShowOrder
+
1
);
//先判断用户名是否被注册
//先判断用户名是否被注册
User
byName
=
userDao
.
findByNameAndUnitsId
(
user
.
getName
(),
user
.
getUnitsId
()
);
User
byName
=
userDao
.
findByNameAndUnitsId
AndIsDel
(
user
.
getName
(),
user
.
getUnitsId
(),
0
);
if
(
byName
!=
null
){
if
(
byName
!=
null
){
if
(
byName
.
getTrainStatus
()==
5
&&
byName
.
getUsername
()==
null
){
if
(
byName
.
getTrainStatus
()==
5
&&
byName
.
getUsername
()==
null
){
user
.
setUserId
(
byName
.
getUserId
());
user
.
setUserId
(
byName
.
getUserId
());
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/VenitalisServiceImpl.java
浏览文件 @
e8ba2df1
...
@@ -16,6 +16,8 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -16,6 +16,8 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.security.authentication.BadCredentialsException
;
import
org.springframework.security.core.userdetails.UsernameNotFoundException
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -93,7 +95,7 @@ public class VenitalisServiceImpl implements VenitalisService {
...
@@ -93,7 +95,7 @@ public class VenitalisServiceImpl implements VenitalisService {
if
(
contrastRet
.
getResult_code
().
equals
(
"ok"
)
&&
contrastRet
.
getAuth_result
()){
if
(
contrastRet
.
getResult_code
().
equals
(
"ok"
)
&&
contrastRet
.
getAuth_result
()){
return
Integer
.
valueOf
(
contrastRet
.
getPersonVoList
().
get
(
0
).
getUid
());
return
Integer
.
valueOf
(
contrastRet
.
getPersonVoList
().
get
(
0
).
getUid
());
}
else
{
}
else
{
throw
new
ApiException
(
ResponseEntity
.
status
(
500
).
body
(
contrastRet
)
);
throw
new
BadCredentialsException
(
ret
);
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论