Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-qyxzpt-report
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘良浪
xzxt-qyxzpt-report
Commits
2f80432f
Commit
2f80432f
authored
Mar 16, 2023
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入权限判断可看数据
parent
0340a4a2
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
0 deletions
+67
-0
src/main/java/org/springblade/founder/tjfx/mapper/DwTjfxMapper.java
+7
-0
src/main/java/org/springblade/founder/tjfx/mapper/DwTjfxMapper.xml
+20
-0
src/main/java/org/springblade/founder/tjfx/service/impl/DwAjlbTjfxServiceImpl.java
+8
-0
src/main/java/org/springblade/founder/tjfx/service/impl/DwTjfxServiceImpl.java
+8
-0
src/main/java/org/springblade/founder/tjfx/service/impl/NewDwAjlbServiceImpl.java
+8
-0
src/main/java/org/springblade/founder/tjfx/service/impl/WcnrfzShrTjServiceImpl.java
+8
-0
src/main/java/org/springblade/founder/tjfx/service/impl/WcnrfzTjServiceImpl.java
+8
-0
No files found.
src/main/java/org/springblade/founder/tjfx/mapper/DwTjfxMapper.java
View file @
2f80432f
...
...
@@ -3,6 +3,7 @@ package org.springblade.founder.tjfx.mapper;
import
com.baomidou.dynamic.datasource.annotation.DS
;
import
com.baomidou.mybatisplus.annotation.InterceptorIgnore
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springblade.founder.tjfx.entity.*
;
import
org.springframework.stereotype.Component
;
...
...
@@ -16,6 +17,12 @@ public interface DwTjfxMapper {
DictitemXz
getDwxxByDwdm
(
String
unitcode
);
List
<
DictitemXz
>
getXqdwList
(
Map
<
String
,
Object
>
levMap
);
//根据code获取该用户市级的单位
String
getDUnitcode
(
@Param
(
value
=
"code"
)
String
code
);
//根据code获取该用户县级的单位
String
getXUnitcode
(
@Param
(
value
=
"code"
)
String
code
);
@InterceptorIgnore
(
tenantLine
=
"1"
)
DwXnpgTj
getDwTjFx
(
Map
<
String
,
Object
>
paramMap
);
...
...
src/main/java/org/springblade/founder/tjfx/mapper/DwTjfxMapper.xml
View file @
2f80432f
...
...
@@ -21,6 +21,26 @@
</if>
</select>
<!-- 获取市级别单位 -->
<select
id=
"getDUnitcode"
resultType=
"string"
parameterType=
"string"
>
SELECT
CODE_LEV2
FROM
sys_dictitem_xz
WHERE
code = #{code}
</select>
<!-- 获取县级别单位 -->
<select
id=
"getXUnitcode"
resultType=
"string"
parameterType=
"string"
>
SELECT
CODE_LEV3
FROM
sys_dictitem_xz
WHERE
code = #{code}
</select>
<select
id=
"getSswpfltj"
resultType=
"org.springblade.founder.tjfx.entity.Sswpfltj"
>
select
(select count(1) zs from tb_st_asj ASJ left join tb_xw_ssdy sswp on sswp.asjbh = ASJ.asjbh where ASJ.xxsc_pdbz='0' and sswp.xxsc_pdbz = '0'
...
...
src/main/java/org/springblade/founder/tjfx/service/impl/DwAjlbTjfxServiceImpl.java
View file @
2f80432f
...
...
@@ -102,6 +102,14 @@ public class DwAjlbTjfxServiceImpl implements DwAjlbTjfxService {
if
(
StringUtils
.
isEmpty
(
unitcode
))
{
XzxtUser
xzxtUser
=
SecureUtil
.
getUserXzxt
();
unitcode
=
xzxtUser
.
getUnitcode
()
;
//获取对应用户的单位
String
userGrade
=
xzxtUser
.
getGrade
();
//用户等级
if
(
"S"
.
equals
(
userGrade
)){
unitcode
=
"460000000000"
;
}
else
if
(
"D"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getDUnitcode
(
unitcode
);
}
else
if
(
"X"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getXUnitcode
(
unitcode
);
}
}
//获取本单位信息
...
...
src/main/java/org/springblade/founder/tjfx/service/impl/DwTjfxServiceImpl.java
View file @
2f80432f
...
...
@@ -32,6 +32,14 @@ public class DwTjfxServiceImpl implements DwTjfxService {
if
(
StringUtils
.
isEmpty
(
unitcode
))
{
XzxtUser
xzxtUser
=
SecureUtil
.
getUserXzxt
();
unitcode
=
xzxtUser
.
getUnitcode
();
//获取对应用户的单位
String
userGrade
=
xzxtUser
.
getGrade
();
//用户等级
if
(
"S"
.
equals
(
userGrade
)){
unitcode
=
"460000000000"
;
}
else
if
(
"D"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getDUnitcode
(
unitcode
);
}
else
if
(
"X"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getXUnitcode
(
unitcode
);
}
}
System
.
out
.
println
(
unitcode
);
//获取本单位信息
...
...
src/main/java/org/springblade/founder/tjfx/service/impl/NewDwAjlbServiceImpl.java
View file @
2f80432f
...
...
@@ -47,6 +47,14 @@ public class NewDwAjlbServiceImpl implements NewDwAjlbService {
if
(
StringUtils
.
isEmpty
(
unitcode
))
{
XzxtUser
xzxtUser
=
SecureUtil
.
getUserXzxt
();
unitcode
=
xzxtUser
.
getUnitcode
()
;
//获取对应用户的单位
String
userGrade
=
xzxtUser
.
getGrade
();
//用户等级
if
(
"S"
.
equals
(
userGrade
)){
unitcode
=
"460000000000"
;
}
else
if
(
"D"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getDUnitcode
(
unitcode
);
}
else
if
(
"X"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getXUnitcode
(
unitcode
);
}
}
//获取本单位信息
...
...
src/main/java/org/springblade/founder/tjfx/service/impl/WcnrfzShrTjServiceImpl.java
View file @
2f80432f
...
...
@@ -48,6 +48,14 @@ public class WcnrfzShrTjServiceImpl implements WcnrfzShrTjService {
if
(
StringUtils
.
isEmpty
(
unitcode
))
{
XzxtUser
xzxtUser
=
SecureUtil
.
getUserXzxt
();
unitcode
=
xzxtUser
.
getUnitcode
()
;
//获取对应用户的单位
String
userGrade
=
xzxtUser
.
getGrade
();
//用户等级
if
(
"S"
.
equals
(
userGrade
)){
unitcode
=
"460000000000"
;
}
else
if
(
"D"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getDUnitcode
(
unitcode
);
}
else
if
(
"X"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getXUnitcode
(
unitcode
);
}
}
//获取本单位信息
...
...
src/main/java/org/springblade/founder/tjfx/service/impl/WcnrfzTjServiceImpl.java
View file @
2f80432f
...
...
@@ -45,6 +45,14 @@ public class WcnrfzTjServiceImpl implements WcnrfzTjService {
if
(
StringUtils
.
isEmpty
(
unitcode
))
{
XzxtUser
xzxtUser
=
SecureUtil
.
getUserXzxt
();
unitcode
=
xzxtUser
.
getUnitcode
()
;
//获取对应用户的单位
String
userGrade
=
xzxtUser
.
getGrade
();
//用户等级
if
(
"S"
.
equals
(
userGrade
)){
unitcode
=
"460000000000"
;
}
else
if
(
"D"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getDUnitcode
(
unitcode
);
}
else
if
(
"X"
.
equals
(
userGrade
)){
unitcode
=
dwTjfxMapper
.
getXUnitcode
(
unitcode
);
}
}
//获取本单位信息
...
...
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