Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
ac8609a1
Commit
ac8609a1
authored
Feb 24, 2025
by
朱翔
Browse files
优化
parent
89409cea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/service/impl/ReportDataInfoServiceImpl.java
View file @
ac8609a1
...
...
@@ -5,11 +5,14 @@ import com.alibaba.fastjson.JSONArray;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruzhoukj.sms.dao.ReportDataInfoDao
;
import
com.ruzhoukj.sms.entity.ReportDataInfoEntity
;
import
com.ruzhoukj.sms.entity.UserEntity
;
import
com.ruzhoukj.sms.model.dto.ReportDataInfoDTO
;
import
com.ruzhoukj.sms.model.vo.ReportDataInfoVO
;
import
com.ruzhoukj.sms.service.ReportDataInfoService
;
import
com.ruzhoukj.sms.service.UserService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
...
...
@@ -22,6 +25,9 @@ import java.util.List;
*/
@Service
public
class
ReportDataInfoServiceImpl
extends
ServiceImpl
<
ReportDataInfoDao
,
ReportDataInfoEntity
>
implements
ReportDataInfoService
{
@Resource
private
UserService
userService
;
@Override
public
List
<
ReportDataInfoVO
>
queryList
(
ReportDataInfoDTO
reportDataInfoDTO
)
{
return
baseMapper
.
queryList
(
reportDataInfoDTO
);
...
...
@@ -50,6 +56,9 @@ public class ReportDataInfoServiceImpl extends ServiceImpl<ReportDataInfoDao, Re
@Override
public
boolean
saveOrUpdateReportData
(
ReportDataInfoDTO
reportDataInfoDTO
)
{
//查看当前用户所属部门
UserEntity
user
=
userService
.
getById
(
reportDataInfoDTO
.
getLoginUserId
());
reportDataInfoDTO
.
setDeptId
(
user
.
getDeptId
());
return
saveOrUpdate
(
reportDataInfoDTO
);
}
}
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