Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
280a9852
Commit
280a9852
authored
Nov 12, 2020
by
mobh
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息记录处理
parent
7d9c6b46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
src/main/java/cn/timer/api/controller/LoginController.java
+1
-1
src/main/java/cn/timer/api/controller/admin/AdminAssoTxjlbcontroller.java
+4
-1
src/main/resources/mapping/admin/AdminAssoTxjlbMapper.xml
+3
-0
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
280a9852
...
...
@@ -821,7 +821,7 @@ public class LoginController {
}
YgglMainEmp
userInfo
=
ygglMainEmpMapper
.
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
()
.
select
(
YgglMainEmp:
:
get
Name
,
YgglMainEmp:
:
getPhone
,
YgglMainEmp:
:
getBmgwId
)
.
select
(
YgglMainEmp:
:
get
EmpNum
,
YgglMainEmp:
:
getName
,
YgglMainEmp:
:
getPhone
,
YgglMainEmp:
:
getBmgwId
,
YgglMainEmp:
:
getOrgCode
)
.
eq
(
YgglMainEmp:
:
getEmpNum
,
qyzxEmpLogin1
.
getId
())
.
eq
(
YgglMainEmp:
:
getOrgCode
,
qyzxEmpLogin1
.
getOrgId
()));
if
(
userInfo
==
null
)
{
...
...
src/main/java/cn/timer/api/controller/admin/AdminAssoTxjlbcontroller.java
View file @
280a9852
...
...
@@ -6,6 +6,7 @@ import javax.annotation.Resource;
import
javax.transaction.Transactional
;
import
cn.timer.api.dao.admin.AdminAssoTxjlbMapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -66,7 +67,9 @@ public class AdminAssoTxjlbcontroller {
@ApiOperation
(
value
=
"未读记录标记已读"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
recordmodification
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
AdminAssoTxjlb
.
builder
().
id
(
id
).
build
()
.
update
(
new
QueryWrapper
<
AdminAssoTxjlb
>().
lambda
().
eq
(
AdminAssoTxjlb:
:
getTxstate
,
1
));
.
update
(
new
UpdateWrapper
<
AdminAssoTxjlb
>().
lambda
().
set
(
AdminAssoTxjlb:
:
getTxstate
,
1
)
.
eq
(
AdminAssoTxjlb:
:
getId
,
id
)
);
return
ResultUtil
.
success
(
"修改成功"
);
}
...
...
src/main/resources/mapping/admin/AdminAssoTxjlbMapper.xml
View file @
280a9852
...
...
@@ -37,6 +37,9 @@
<if
test=
"param.txstate != null"
>
and txjlb.txstate = #{param.txstate}
</if>
<if
test=
"param.empNum != null"
>
and txjlb.emp_num = #{param.empNum}
</if>
<if
test=
"param.orgCode != null"
>
and txjlb.org_code = #{param.orgCode}
</if>
...
...
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