Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
9b0abed6
Commit
9b0abed6
authored
Feb 02, 2023
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐患台账 指定整改人,选择部门筛选整改人,默认上报人当人登录人
parent
5d640131
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
149 additions
and
64 deletions
+149
-64
TStaningBookController.java
...g/web/controller/hiddenDanger/TStaningBookController.java
+6
-2
TStaningBook.java
.../src/main/java/com/zehong/system/domain/TStaningBook.java
+20
-0
ITStaningBookService.java
.../java/com/zehong/system/service/ITStaningBookService.java
+1
-1
LedserviceImpl.java
...n/java/com/zehong/system/service/impl/LedserviceImpl.java
+1
-1
TStaningBookServiceImpl.java
...m/zehong/system/service/impl/TStaningBookServiceImpl.java
+4
-6
TStaningBookMapper.xml
...m/src/main/resources/mapper/system/TStaningBookMapper.xml
+5
-3
index.vue
danger-manage-web/src/views/system/book/index.vue
+112
-51
No files found.
danger-manage-admin/src/main/java/com/zehong/web/controller/hiddenDanger/TStaningBookController.java
View file @
9b0abed6
...
...
@@ -44,8 +44,9 @@ public class TStaningBookController extends BaseController
{
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
SysUser
user
=
loginUser
.
getUser
();
tStaningBook
.
setUserId
(
user
.
getUserId
());
startPage
();
List
<
TStaningBook
>
list
=
tStaningBookService
.
selectTStaningBookList
(
tStaningBook
,
user
.
get
Dept
Id
());
List
<
TStaningBook
>
list
=
tStaningBookService
.
selectTStaningBookList
(
tStaningBook
,
user
.
get
Roles
().
get
(
0
).
getRole
Id
());
return
getDataTable
(
list
);
}
...
...
@@ -60,7 +61,7 @@ public class TStaningBookController extends BaseController
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
SysUser
user
=
loginUser
.
getUser
();
startPage
();
List
<
TStaningBook
>
list
=
tStaningBookService
.
selectTStaningBookList
(
tStaningBook
,
user
.
get
Dept
Id
());
List
<
TStaningBook
>
list
=
tStaningBookService
.
selectTStaningBookList
(
tStaningBook
,
user
.
get
Roles
().
get
(
0
).
getRole
Id
());
ExcelUtil
<
TStaningBook
>
util
=
new
ExcelUtil
<
TStaningBook
>(
TStaningBook
.
class
);
return
util
.
exportExcel
(
list
,
"隐患台账数据"
);
}
...
...
@@ -83,6 +84,9 @@ public class TStaningBookController extends BaseController
@PostMapping
public
AjaxResult
add
(
@RequestBody
TStaningBook
tStaningBook
)
{
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
SysUser
user
=
loginUser
.
getUser
();
tStaningBook
.
setCreateId
(
user
.
getUserId
());
return
toAjax
(
tStaningBookService
.
insertTStaningBook
(
tStaningBook
));
}
...
...
danger-manage-system/src/main/java/com/zehong/system/domain/TStaningBook.java
View file @
9b0abed6
...
...
@@ -145,6 +145,26 @@ public class TStaningBook extends BaseEntity
private
List
<
Long
>
deptList
;
private
Long
userId
;
private
Long
createId
;
public
Long
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
public
Long
getCreateId
()
{
return
createId
;
}
public
void
setCreateId
(
Long
createId
)
{
this
.
createId
=
createId
;
}
public
List
<
Long
>
getDeptList
()
{
return
deptList
;
}
...
...
danger-manage-system/src/main/java/com/zehong/system/service/ITStaningBookService.java
View file @
9b0abed6
...
...
@@ -28,7 +28,7 @@ public interface ITStaningBookService
* @param tStaningBook 隐患台账
* @return 隐患台账集合
*/
public
List
<
TStaningBook
>
selectTStaningBookList
(
TStaningBook
tStaningBook
,
Long
dept
Id
);
public
List
<
TStaningBook
>
selectTStaningBookList
(
TStaningBook
tStaningBook
,
Long
role
Id
);
/**
* 新增隐患台账
...
...
danger-manage-system/src/main/java/com/zehong/system/service/impl/LedserviceImpl.java
View file @
9b0abed6
...
...
@@ -239,7 +239,7 @@ public class LedserviceImpl {
led
.
AddSinglelineTextToImageTextArea
(
hProgram
,
0
,
1
,
0
,
"上海灵信视觉"
,
"宋体"
,
12
,
0xff
,
0
,
0
,
0
,
6
,
8
,
0
);
//添加数字时钟节目
led
.
AddProgram
(
hProgram
,
1
,
0
,
1
);
led
.
AddDigitalClockArea
(
hProgram
,
1
,
1
,
0
,
0
,
ledWidth
,
ledHeight
,
"宋体"
,
8
,
0xff
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
0
,
0xff
,
0
,
0xff
,
0
,
0xff
,
1
);
led
.
AddDigitalClockArea
(
hProgram
,
1
,
1
,
0
,
0
,
ledWidth
,
ledHeight
,
"宋体"
,
9
,
0xff
,
0
,
0
,
0
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0xff
,
0
,
0xff
,
3
,
0xff
,
0
);
int
errCode
=
led
.
NetWorkSend
(
strIp
,
hProgram
);
led
.
DeleteProgram
(
hProgram
);
...
...
danger-manage-system/src/main/java/com/zehong/system/service/impl/TStaningBookServiceImpl.java
View file @
9b0abed6
...
...
@@ -51,13 +51,11 @@ public class TStaningBookServiceImpl implements ITStaningBookService
* @return 隐患台账
*/
@Override
public
List
<
TStaningBook
>
selectTStaningBookList
(
TStaningBook
tStaningBook
,
Long
dept
Id
)
public
List
<
TStaningBook
>
selectTStaningBookList
(
TStaningBook
tStaningBook
,
Long
role
Id
)
{
List
<
Long
>
oneList
=
new
ArrayList
<>();
oneList
.
add
(
deptId
);
List
<
Long
>
deptIds
=
selectDeptIds
(
new
ArrayList
<>(),
oneList
);
deptIds
.
add
(
deptId
);
tStaningBook
.
setDeptList
(
deptIds
);
if
(
roleId
!=
3
){
//当角色是管理员时候查询全部
tStaningBook
.
setUserId
(
0
l
);
}
List
<
TStaningBook
>
list
=
tStaningBookMapper
.
selectTStaningBookList
(
tStaningBook
);
return
list
;
}
...
...
danger-manage-system/src/main/resources/mapper/system/TStaningBookMapper.xml
View file @
9b0abed6
...
...
@@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"workId"
column=
"work_id"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createId"
column=
"create_id"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"deptName"
column=
"deptName"
/>
</resultMap>
...
...
@@ -57,9 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_dept d ON d.`dept_id` = b.`dept_id`
<where>
<foreach
collection=
"deptList"
item=
"deptId"
open=
"AND b.dept_id in ("
separator=
","
close=
")"
>
#{deptId}
</foreach>
<if
test=
"userId != null and userId != 0"
>
and (b.escalation=#{userId}||b.rectification = #{userId}||b.create_id = #{userId} )
</if>
<if
test=
"troubleName != null and troubleName != ''"
>
and b.trouble_name like concat('%', #{troubleName}, '%')
</if>
<if
test=
"findTime != null "
>
and b.find_time
>
#{findTime}
</if>
<if
test=
"rectificationTime != null "
>
and b.find_time
<
#{rectificationTime}
</if>
...
...
@@ -103,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"workId != null"
>
work_id,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createId != null"
>
create_id,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -134,6 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"workId != null"
>
#{workId},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createId != null"
>
#{createId},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
</trim>
</insert>
...
...
@@ -169,6 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"workId != null"
>
work_id = #{workId},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createId != null"
>
create_id = #{createId},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
</trim>
where book_id = #{bookId}
...
...
danger-manage-web/src/views/system/book/index.vue
View file @
9b0abed6
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment