Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
9e326fe7
Commit
9e326fe7
authored
Nov 16, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
两个规定-三项制度统计优化
parent
8fc4bbc7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
13 deletions
+21
-13
ThreeSystemsMapper.java
...n/amos/boot/module/tcm/api/mapper/ThreeSystemsMapper.java
+3
-1
ThreeSystemsMapper.xml
...-tcm-api/src/main/resources/mapper/ThreeSystemsMapper.xml
+8
-9
ThreeSystemsController.java
...oot/module/tcm/biz/controller/ThreeSystemsController.java
+1
-1
ThreeSystemsServiceImpl.java
.../module/tcm/biz/service/impl/ThreeSystemsServiceImpl.java
+8
-2
TzsTwoStaffingServiceImpl.java
...odule/tcm/biz/service/impl/TzsTwoStaffingServiceImpl.java
+1
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/mapper/ThreeSystemsMapper.java
View file @
9e326fe7
...
...
@@ -15,7 +15,9 @@ import java.util.List;
*/
public
interface
ThreeSystemsMapper
extends
BaseMapper
<
ThreeSystems
>
{
List
<
ThreeSystemsDto
>
getCompanyThreeSystemsStatisticsList
(
@Param
(
"type"
)
Integer
type
,
@Param
(
"startDay"
)
String
startDay
,
@Param
(
"endDay"
)
String
endDay
);
List
<
ThreeSystemsDto
>
getCompanyThreeSystemsStatisticsList
(
@Param
(
"staticTableName"
)
String
staticTableName
,
@Param
(
"startDay"
)
String
startDay
,
@Param
(
"endDay"
)
String
endDay
);
void
saveOrUpdateBatch
(
@Param
(
"resultList"
)
List
<
ThreeSystems
>
resultList
);
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/resources/mapper/ThreeSystemsMapper.xml
View file @
9e326fe7
...
...
@@ -10,27 +10,26 @@
ei.supervise_org_code supervisoryUnitOrgCode,
ei.unit_type unitType,
CASE
WHEN (
SELECT COUNT
( 1 )
FROM
amos_tzs_biz.p_plan_task
pt
${staticTableName}
pt
WHERE
pt.finish_status = '2'
AND ppt.use_code = pt.use_code
AND pt.check_date BETWEEN #{startDay}
pt.not_start = 0
AND pt.time_out = 0
AND (pt.risk_end > 0 or pt.no_risk_end > 0)
AND psd.unit_code = pt.unit_code
AND pt.check_time BETWEEN #{startDay}
AND #{endDay}
AND pt.plan_type = #{type}
) > 0 THEN
1 ELSE 0
END AS checkStatus
FROM
amos_tzs_biz.
tz_base_enterprise_info ei
LEFT JOIN
amos_tzs_biz.p_plan_task ppt ON ei.use_code = ppt.use
_code
tz_base_enterprise_info ei
LEFT JOIN
${staticTableName} psd ON ei.use_code = psd.unit
_code
GROUP BY
ei.use_code
</select>
<select
id=
"saveOrUpdateBatch"
>
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/ThreeSystemsController.java
View file @
9e326fe7
...
...
@@ -24,7 +24,7 @@ import java.util.LinkedHashMap;
import
java.util.List
;
@RestController
@Api
(
tags
=
"三个
规定
统计"
)
@Api
(
tags
=
"三个
制度
统计"
)
@RequestMapping
(
value
=
"/threeProvisions"
)
public
class
ThreeSystemsController
<
string
>
extends
BaseController
{
private
static
final
String
REGULATOR_UNIT_TREE
=
"REGULATOR_UNIT_TREE"
;
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/ThreeSystemsServiceImpl.java
View file @
9e326fe7
...
...
@@ -228,8 +228,11 @@ public class ThreeSystemsServiceImpl extends BaseService<ThreeSystemsDto, ThreeS
lastEnd
=
DateUtils
.
convertDateToString
(
c
.
getTime
(),
DateUtils
.
DATE_PATTERN
)
+
end
;
}
}
// todo 此处统计表名通过接口查询得到 接口暂未实现
String
planType
=
type
.
toString
();
String
staticTableName
=
"p_static_day"
;
//获取当天、本周、本月新的数据
newStaffingCompanyList
=
threeSystemsMapper
.
getCompanyThreeSystemsStatisticsList
(
typ
e
,
startDay
,
endDay
);
newStaffingCompanyList
=
threeSystemsMapper
.
getCompanyThreeSystemsStatisticsList
(
staticTableNam
e
,
startDay
,
endDay
);
//调用三项制度统计方法处理数据
resultList
=
getThreeSystems
(
supervisionList
,
newStaffingCompanyList
,
type
,
startDay
,
true
);
//将新数据存入统计表中
...
...
@@ -241,7 +244,9 @@ public class ThreeSystemsServiceImpl extends BaseService<ThreeSystemsDto, ThreeS
//获取日/周/月的历史数据
oldStaffingCompanyList
=
threeSystemsMapper
.
getOldCompanyThreeSystemsStatisticsList
(
type
,
DateUtils
.
dateToString
(
lastStart
));
//获取日/周/月历史数据的最新状态数据
List
<
ThreeSystemsDto
>
oldNewStaffingCompanyList
=
threeSystemsMapper
.
getCompanyThreeSystemsStatisticsList
(
type
,
lastStart
,
lastEnd
);
// todo 此处统计表名通过接口查询得到 接口暂未实现
List
<
ThreeSystemsDto
>
oldNewStaffingCompanyList
=
threeSystemsMapper
.
getCompanyThreeSystemsStatisticsList
(
staticTableName
,
lastStart
,
lastEnd
);
if
(!
ValidationUtil
.
isEmpty
(
oldNewStaffingCompanyList
))
{
// 调用三项制度统计方法处理数据
oldList
=
ValidationUtil
.
isEmpty
(
oldStaffingCompanyList
)
?
...
...
@@ -266,6 +271,7 @@ public class ThreeSystemsServiceImpl extends BaseService<ThreeSystemsDto, ThreeS
/**
* 三项制度统计数据方法
*
* @param supervisionList 行政区划列表
* @param StaffingCompanyList 需要统计处理的数据列表
* @param type 统计类型
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsTwoStaffingServiceImpl.java
View file @
9e326fe7
...
...
@@ -156,6 +156,7 @@ public class TzsTwoStaffingServiceImpl extends BaseService<TzsTwoStaffingDto, Tz
companyDto
.
setCheckStartTime
(
ObjectUtils
.
isEmpty
(
companyDto
.
getCheckStartTime
())
?
startDay
:
companyDto
.
getCheckStartTime
());
companyDto
.
setCheckEndTime
(
ObjectUtils
.
isEmpty
(
companyDto
.
getCheckEndTime
())
?
endDay
:
companyDto
.
getCheckEndTime
());
// todo 此处统计表名通过接口查询得到 接口暂未实现
String
planType
=
companyDto
.
getPlanType
();
String
staticTableName
=
"p_static_day"
;
return
tzsTwoStaffingMapper
.
getCompanyCheckList
(
page
,
orgCode
,
staticTableName
,
companyDto
);
}
...
...
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