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
90de310c
Commit
90de310c
authored
Jan 09, 2023
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交单位筛选
parent
8589eb75
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
2 deletions
+73
-2
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.java
+3
-0
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.xml
+45
-1
src/main/java/org/springblade/founder/tjfx/service/impl/AjtjServiceImpl.java
+25
-1
No files found.
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.java
View file @
90de310c
...
...
@@ -6,6 +6,7 @@ import org.springblade.founder.tjfx.entity.*;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
import
java.util.Map
;
@Component
@Mapper
...
...
@@ -83,5 +84,7 @@ public interface AjtjMapper {
List
<
TbXwZbfzxyr
>
getZaryList
(
AjtjParam
ajtjParam
);
int
getZaryListCount
(
AjtjParam
ajtjParam
);
String
getCodeLevByCode
(
String
unitcode
);
List
<
String
>
getDwdmList
(
Map
<
String
,
Object
>
map
);
}
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.xml
View file @
90de310c
...
...
@@ -15,6 +15,15 @@
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if
test=
"unitcodeList != null and unitcodeList.size() > 0"
>
and
<foreach
collection=
"unitcodeList"
item=
"dws"
open=
"("
close=
")"
separator=
" or "
>
asj.LADW_GAJGJGDM in
<foreach
collection=
"dws"
item=
"dw"
separator=
","
open=
"("
close=
")"
>
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach>
</if>
) asj
group by asj.larq
order by asj.larq
...
...
@@ -46,6 +55,15 @@
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
</if>
<if
test=
"unitcodeList != null and unitcodeList.size() > 0"
>
and
<foreach
collection=
"unitcodeList"
item=
"dws"
open=
"("
close=
")"
separator=
" or "
>
asj.LADW_GAJGJGDM in
<foreach
collection=
"dws"
item=
"dw"
separator=
","
open=
"("
close=
")"
>
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach>
</if>
</select>
<select
id=
"getFaCount"
resultType=
"java.lang.Integer"
>
...
...
@@ -58,7 +76,15 @@
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if
test=
"unitcodeList != null and unitcodeList.size() > 0"
>
and
<foreach
collection=
"unitcodeList"
item=
"dws"
open=
"("
close=
")"
separator=
" or "
>
asj.LADW_GAJGJGDM in
<foreach
collection=
"dws"
item=
"dw"
separator=
","
open=
"("
close=
")"
>
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach>
</if>
</select>
...
...
@@ -160,6 +186,15 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if
test=
"unitcodeList != null and unitcodeList.size() > 0"
>
and
<foreach
collection=
"unitcodeList"
item=
"dws"
open=
"("
close=
")"
separator=
" or "
>
asj.LADW_GAJGJGDM in
<foreach
collection=
"dws"
item=
"dw"
separator=
","
open=
"("
close=
")"
>
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach>
</if>
) asj
group by asj.larq
order by asj.larq
...
...
@@ -525,6 +560,15 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
</if>
</select>
<!--查询当前单位的lev-->
<select
id=
"getCodeLevByCode"
parameterType=
"java.lang.String"
resultType=
"java.lang.String"
>
SELECT LEV FROM sys_dictitem_xz WHERE CODE=#{unitcode, jdbcType=VARCHAR}
</select>
<select
id=
"getDwdmList"
resultType=
"java.lang.String"
>
select code from sys_dictitem_xz
where ${codeLevCol} = #{unitcode}
</select>
<sql
id=
"aj-condition"
>
...
...
src/main/java/org/springblade/founder/tjfx/service/impl/AjtjServiceImpl.java
View file @
90de310c
package
org
.
springblade
.
founder
.
tjfx
.
service
.
impl
;
import
com.baomidou.dynamic.datasource.annotation.DS
;
import
org.springblade.core.secure.utils.SecureUtil
;
import
org.springblade.founder.tjfx.entity.*
;
import
org.springblade.founder.tjfx.mapper.AjtjMapper
;
import
org.springblade.founder.tjfx.service.AjtjService
;
import
org.springblade.founder.utils.DateUtil
;
import
org.springblade.founder.utils.DwUtil
;
import
org.springblade.founder.utils.NumberUtil
;
import
org.springblade.modules.system.entity.XzxtUser
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
javax.annotation.Resource
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
@Service
@DS
(
"xzxt"
)
...
...
@@ -23,6 +28,7 @@ public class AjtjServiceImpl implements AjtjService {
@Override
public
List
<
AjtjResult
>
getFapafyuest
(
AjtjParam
ajtjParam
)
{
setDwxx
(
ajtjParam
);
List
<
AjtjResult
>
faans
=
ajtjMapper
.
getFapafyuest
(
ajtjParam
);
List
<
AjtjResult
>
faan
=
NumberUtil
.
listToMap
(
faans
,
ajtjParam
);
...
...
@@ -73,7 +79,7 @@ public class AjtjServiceImpl implements AjtjService {
@Override
public
List
<
AjtjResult
>
getPayuest
(
AjtjParam
ajtjParam
)
{
setDwxx
(
ajtjParam
);
List
<
AjtjResult
>
poans
=
ajtjMapper
.
getPayuest
(
ajtjParam
);
List
<
AjtjResult
>
poan
=
NumberUtil
.
listToMap
(
poans
,
ajtjParam
);
try
{
...
...
@@ -1158,4 +1164,22 @@ public class AjtjServiceImpl implements AjtjService {
public
int
getZaryListCount
(
AjtjParam
ajtjParam
)
{
return
ajtjMapper
.
getZaryListCount
(
ajtjParam
);
}
private
AjtjParam
setDwxx
(
AjtjParam
ajtjParam
){
String
unitcode
=
ajtjParam
.
getUnitcode
();
if
(
unitcode
!=
null
&&!
""
.
equals
(
unitcode
)){
ajtjParam
.
setUnitcode
(
unitcode
);
String
grade
=
ajtjMapper
.
getCodeLevByCode
(
unitcode
);
Map
<
String
,
Object
>
levMap
=
DwUtil
.
getDwLevCode
(
unitcode
,
grade
);
ajtjParam
.
setCodeLevCol
(
levMap
.
get
(
"codeLevCol"
).
toString
());
ajtjParam
.
setDscodeLevCol
(
levMap
.
get
(
"dscodeLevCol"
).
toString
());
ajtjParam
.
setLev
(
levMap
.
get
(
"lev"
).
toString
());
List
<
String
>
dwdmList
=
ajtjMapper
.
getDwdmList
(
levMap
);
ajtjParam
.
setUnitcodeList
(
dwdmList
);
return
ajtjParam
;
}
else
{
return
ajtjParam
;
}
}
}
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