Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
RuoYi-Vue-master
Commits
e4cc4f12
Commit
e4cc4f12
authored
Dec 06, 2023
by
dlkong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
风险巡查
parent
ba596420
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/CurrentRiskPostController.java
...censoftrongtong/controller/CurrentRiskPostController.java
+1
-1
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/CurrentRiskUserHolidayController.java
...rongtong/controller/CurrentRiskUserHolidayController.java
+11
-3
censoft-rongtong/src/main/resources/mapper/system/CurrentRiskPostMapper.xml
...rc/main/resources/mapper/system/CurrentRiskPostMapper.xml
+1
-0
censoft-rongtong/src/main/resources/mapper/system/ProjectUserPostMapper.xml
...rc/main/resources/mapper/system/ProjectUserPostMapper.xml
+1
-1
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/CurrentRiskPostController.java
View file @
e4cc4f12
...
@@ -74,7 +74,7 @@ public class CurrentRiskPostController extends BaseController
...
@@ -74,7 +74,7 @@ public class CurrentRiskPostController extends BaseController
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:currentRiskPost:add')"
)
@PreAuthorize
(
"@ss.hasPermi('system:currentRiskPost:add')"
)
@Log
(
title
=
"现状风险岗位"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"现状风险岗位"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
(
"save"
)
public
AjaxResult
add
(
@RequestBody
CurrentRiskPost
currentRiskPost
)
public
AjaxResult
add
(
@RequestBody
CurrentRiskPost
currentRiskPost
)
{
{
if
(
currentRiskPost
.
getId
()
==
null
){
if
(
currentRiskPost
.
getId
()
==
null
){
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/CurrentRiskUserHolidayController.java
View file @
e4cc4f12
package
com
.
censoft
.
censoftrongtong
.
controller
;
package
com
.
censoft
.
censoftrongtong
.
controller
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
@@ -28,7 +29,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
...
@@ -28,7 +29,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-12-05
* @date 2023-12-05
*/
*/
@RestController
@RestController
@RequestMapping
(
"/risk/currentRiskHoliday"
)
@RequestMapping
(
value
=
{
"/risk/currentRiskHoliday"
,
"/app-api/risk/currentRiskHoliday"
}
)
public
class
CurrentRiskUserHolidayController
extends
BaseController
public
class
CurrentRiskUserHolidayController
extends
BaseController
{
{
@Autowired
@Autowired
...
@@ -74,10 +75,17 @@ public class CurrentRiskUserHolidayController extends BaseController
...
@@ -74,10 +75,17 @@ public class CurrentRiskUserHolidayController extends BaseController
*/
*/
@PreAuthorize
(
"@ss.hasPermi('risk:currentRiskHoliday:add')"
)
@PreAuthorize
(
"@ss.hasPermi('risk:currentRiskHoliday:add')"
)
@Log
(
title
=
"现状风险巡查用户请假"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"现状风险巡查用户请假"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
(
"/save"
)
public
AjaxResult
add
(
@RequestBody
CurrentRiskUserHoliday
currentRiskUserHoliday
)
public
AjaxResult
add
(
@RequestBody
CurrentRiskUserHoliday
currentRiskUserHoliday
)
{
{
return
toAjax
(
currentRiskUserHolidayService
.
insertCurrentRiskUserHoliday
(
currentRiskUserHoliday
));
if
(
null
==
currentRiskUserHoliday
.
getId
()){
currentRiskUserHoliday
.
setApplyTime
(
new
Date
());
currentRiskUserHolidayService
.
insertCurrentRiskUserHoliday
(
currentRiskUserHoliday
);
}
else
{
currentRiskUserHoliday
.
setApproveTime
(
new
Date
());
currentRiskUserHolidayService
.
updateCurrentRiskUserHoliday
(
currentRiskUserHoliday
);
}
return
AjaxResult
.
success
();
}
}
/**
/**
...
...
censoft-rongtong/src/main/resources/mapper/system/CurrentRiskPostMapper.xml
View file @
e4cc4f12
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
<if
test=
"userId != null and userId != ''"
>
and user_id = #{userId}
</if>
<if
test=
"userId != null and userId != ''"
>
and user_id = #{userId}
</if>
<if
test=
"sortNum != null "
>
and sort_num = #{sortNum}
</if>
<if
test=
"sortNum != null "
>
and sort_num = #{sortNum}
</if>
</where>
</where>
group by a.id
</select>
</select>
<select
id=
"selectCurrentRiskPostById"
parameterType=
"Long"
resultMap=
"CurrentRiskPostResult"
>
<select
id=
"selectCurrentRiskPostById"
parameterType=
"Long"
resultMap=
"CurrentRiskPostResult"
>
...
...
censoft-rongtong/src/main/resources/mapper/system/ProjectUserPostMapper.xml
View file @
e4cc4f12
...
@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_user c on a.user_id = c.user_id
LEFT JOIN sys_user c on a.user_id = c.user_id
<where>
<where>
<if
test=
"projectId != null "
>
and project_id = #{projectId}
</if>
<if
test=
"projectId != null "
>
and project_id = #{projectId}
</if>
<if
test=
"userId != null "
>
and user_id = #{userId}
</if>
<if
test=
"userId != null "
>
and
a.
user_id = #{userId}
</if>
<if
test=
"postId != null "
>
and post_id = #{postId}
</if>
<if
test=
"postId != null "
>
and post_id = #{postId}
</if>
<if
test=
"projectName != null "
>
and b.`name` like concat('%',#{projectName},'%')
</if>
<if
test=
"projectName != null "
>
and b.`name` like concat('%',#{projectName},'%')
</if>
</where>
</where>
...
...
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