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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
11 deletions
+13
-11
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
+0
-0
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
This diff is collapsed.
Click to expand it.
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