Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
4bb8c2e2
提交
4bb8c2e2
authored
3月 09, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[用户] 添加代码提交
上级
cbf43d57
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
12 行增加
和
6 行删除
+12
-6
RepelBusinessServiceImpl.java
...evice/sendback/service/impl/RepelBusinessServiceImpl.java
+3
-3
RepelQueryServiceImpl.java
...v/device/sendback/service/impl/RepelQueryServiceImpl.java
+4
-1
UserDao.java
...in/java/com/tykj/dev/device/user/subject/dao/UserDao.java
+3
-1
User.java
...in/java/com/tykj/dev/device/user/subject/entity/User.java
+1
-1
UserServiceImpl.java
...dev/device/user/subject/service/impl/UserServiceImpl.java
+1
-0
没有找到文件。
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelBusinessServiceImpl.java
浏览文件 @
4bb8c2e2
...
@@ -126,7 +126,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -126,7 +126,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
DeviceRepelDetail
deviceRepelDetail
=
new
DeviceRepelDetail
();
DeviceRepelDetail
deviceRepelDetail
=
new
DeviceRepelDetail
();
deviceRepelDetail
.
setRepelId
(
deviceRepel1
.
getId
());
deviceRepelDetail
.
setRepelId
(
deviceRepel1
.
getId
());
deviceRepelDetail
.
setRepelStatus
(
1
);
deviceRepelDetail
.
setRepelStatus
(
1
);
TaskBto
taskBto
=
statsXTask
(
units
.
getUnitId
(),
deviceRepel
DetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
)
.
getId
(),
deviceRepel
.
getTitle
());
TaskBto
taskBto
=
statsXTask
(
units
.
getUnitId
(),
deviceRepel
1
.
getId
(),
deviceRepel
.
getTitle
());
//给本单位其他专管员阅知
//给本单位其他专管员阅知
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
user
.
getName
()+
"发起清退任务["
+
deviceRepel1
.
getTitle
()+
"]"
,
gainThisUser
(
userId
,
units
.
getUnitId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
user
.
getName
()+
"发起清退任务["
+
deviceRepel1
.
getTitle
()+
"]"
,
gainThisUser
(
userId
,
units
.
getUnitId
())));
...
@@ -220,7 +220,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -220,7 +220,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
DeviceRepelDetail
deviceRepelDetail
=
new
DeviceRepelDetail
();
DeviceRepelDetail
deviceRepelDetail
=
new
DeviceRepelDetail
();
deviceRepelDetail
.
setRepelId
(
deviceRepel1
.
getId
());
deviceRepelDetail
.
setRepelId
(
deviceRepel1
.
getId
());
deviceRepelDetail
.
setRepelStatus
(
1
);
deviceRepelDetail
.
setRepelStatus
(
1
);
TaskBto
taskBto
=
cityTotalTask
(
units
.
getUnitId
(),
deviceRepel
DetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
)
.
getId
(),
deviceRepel
.
getTitle
());
TaskBto
taskBto
=
cityTotalTask
(
units
.
getUnitId
(),
deviceRepel
1
.
getId
(),
deviceRepel
.
getTitle
());
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
user
.
getName
()+
"转发清退任务["
+
deviceRepel1
.
getTitle
()+
"]"
,
gainThisUser
(
userId
,
units
.
getUnitId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
user
.
getName
()+
"转发清退任务["
+
deviceRepel1
.
getTitle
()+
"]"
,
gainThisUser
(
userId
,
units
.
getUnitId
())));
// repelTaskStatisticalService.saveRepelTaskStatistical(new RepelTaskStatistical(deviceRepel1.getId(),null,taskBto.getId(),null,area.getName()));
// repelTaskStatisticalService.saveRepelTaskStatistical(new RepelTaskStatistical(deviceRepel1.getId(),null,taskBto.getId(),null,area.getName()));
...
@@ -274,7 +274,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -274,7 +274,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
DeviceRepelDetail
deviceRepelDetail
=
new
DeviceRepelDetail
();
DeviceRepelDetail
deviceRepelDetail
=
new
DeviceRepelDetail
();
deviceRepelDetail
.
setRepelId
(
deviceRepel1
.
getId
());
deviceRepelDetail
.
setRepelId
(
deviceRepel1
.
getId
());
deviceRepelDetail
.
setRepelStatus
(
1
);
deviceRepelDetail
.
setRepelStatus
(
1
);
TaskBto
taskBto
=
cityInitiateTask
(
unitsFather
.
getUnitId
(),
deviceRepel
DetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
)
.
getId
(),
deviceRepel
.
getTitle
(),
userId
);
TaskBto
taskBto
=
cityInitiateTask
(
unitsFather
.
getUnitId
(),
deviceRepel
1
.
getId
(),
deviceRepel
.
getTitle
(),
userId
);
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
user
.
getName
()+
"发起清退任务["
+
deviceRepel1
.
getTitle
()+
"]"
,
gainThisUser
(
userId
,
units
.
getUnitId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
user
.
getName
()+
"发起清退任务["
+
deviceRepel1
.
getTitle
()+
"]"
,
gainThisUser
(
userId
,
units
.
getUnitId
())));
// repelTaskStatisticalService.saveRepelTaskStatistical(new RepelTaskStatistical(deviceRepel1.getId(),null,taskBto.getId(),null,area.getName()));
// repelTaskStatisticalService.saveRepelTaskStatistical(new RepelTaskStatistical(deviceRepel1.getId(),null,taskBto.getId(),null,area.getName()));
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelQueryServiceImpl.java
浏览文件 @
4bb8c2e2
...
@@ -61,7 +61,10 @@ public class RepelQueryServiceImpl implements RepelQueryService {
...
@@ -61,7 +61,10 @@ public class RepelQueryServiceImpl implements RepelQueryService {
@Override
@Override
public
DeviceRepel
findDeviceRepel
(
Integer
taskId
)
{
public
DeviceRepel
findDeviceRepel
(
Integer
taskId
)
{
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
DeviceRepelDetail
deviceRepelDetail
=
repelDetailService
.
findDeviceRepelDetailNoDev
(
taskBto
.
getBillId
());
if
(
taskBto
.
getBusinessType
()==
18
){
return
deviceRepelService
.
findDeviceRepel
(
taskBto
.
getBillId
());
}
DeviceRepelDetail
deviceRepelDetail
=
repelDetailService
.
findDeviceRepelDetailNoDev
(
taskBto
.
getBillId
());
return
deviceRepelService
.
findDeviceRepel
(
deviceRepelDetail
.
getRepelId
());
return
deviceRepelService
.
findDeviceRepel
(
deviceRepelDetail
.
getRepelId
());
}
}
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/dao/UserDao.java
浏览文件 @
4bb8c2e2
...
@@ -3,6 +3,7 @@ package com.tykj.dev.device.user.subject.dao;
...
@@ -3,6 +3,7 @@ package com.tykj.dev.device.user.subject.dao;
import
com.tykj.dev.device.user.subject.entity.User
;
import
com.tykj.dev.device.user.subject.entity.User
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -17,5 +18,6 @@ public interface UserDao extends JpaRepository<User, Integer>, JpaSpecificationE
...
@@ -17,5 +18,6 @@ public interface UserDao extends JpaRepository<User, Integer>, JpaSpecificationE
List
<
User
>
findAllByUserIdIn
(
List
<
Integer
>
userIds
);
List
<
User
>
findAllByUserIdIn
(
List
<
Integer
>
userIds
);
@Query
(
"select max(o.showOrder) from User o where o.unitsId = ?1"
)
int
maxShowOrder
(
Integer
unitsId
);
}
}
dev-user/src/main/java/com/tykj/dev/device/user/subject/entity/User.java
浏览文件 @
4bb8c2e2
...
@@ -132,7 +132,7 @@ public class User {
...
@@ -132,7 +132,7 @@ public class User {
/**
/**
* 培训状态 0.已培训 1.已过期 2.未培训 3.快过期
* 培训状态 0.已培训 1.已过期 2.未培训 3.快过期
*/
*/
private
Integer
trainStatus
;
private
Integer
trainStatus
=
2
;
/**
/**
* 单位对象
* 单位对象
*/
*/
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/UserServiceImpl.java
浏览文件 @
4bb8c2e2
...
@@ -70,6 +70,7 @@ public class UserServiceImpl implements UserService {
...
@@ -70,6 +70,7 @@ public class UserServiceImpl implements UserService {
user
.
setPassword
(
encode
);
user
.
setPassword
(
encode
);
user
.
setNoPassword
(
"qwer1234"
);
user
.
setNoPassword
(
"qwer1234"
);
Units
units
=
unitsService
.
findById
(
user
.
getUnitsId
());
Units
units
=
unitsService
.
findById
(
user
.
getUnitsId
());
user
.
setShowOrder
(
userDao
.
maxShowOrder
(
units
.
getUnitId
())+
1
);
User
user1
=
userDao
.
save
(
user
);
User
user1
=
userDao
.
save
(
user
);
switch
(
units
.
getLevel
()){
switch
(
units
.
getLevel
()){
case
1
:
case
1
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论