Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
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
wangweidong
patzn-cloud-service-hmhj
Commits
b368bd61
Commit
b368bd61
authored
Mar 25, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计查询问题;
parent
2ac68e99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
18 deletions
+31
-18
EntrustReportServiceImpl.java
...vice/lims/hmhj/service/impl/EntrustReportServiceImpl.java
+18
-7
EntrustSampleItemIndexMapper.xml
...in/resources/mapper/hmhj/EntrustSampleItemIndexMapper.xml
+2
-0
EntrustSampleMapper.xml
src/main/resources/mapper/hmhj/EntrustSampleMapper.xml
+11
-11
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustReportServiceImpl.java
View file @
b368bd61
...
...
@@ -642,13 +642,12 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
// 质量判定标志
boolean
executeJudgeFlag
=
false
;
// 记录操作人
recordReportHandler
(
fromFlowStatus
,
account
,
entrustReport
);
if
(
toFlowStatus
==
EntrustFlowEnum
.
REPORT_ALLOW
)
{
entrustReport
.
setReportChecker
(
account
.
getUserName
()).
setReportCheckerId
(
account
.
getUserId
()).
setReportCheckTime
(
new
Date
());
}
else
if
(
toFlowStatus
==
EntrustFlowEnum
.
REPORT_ISSUE
||
toFlowStatus
==
EntrustFlowEnum
.
REPORT_SEND
||
toFlowStatus
==
EntrustFlowEnum
.
QUALITY_INSPECT
)
{
if
(
toFlowStatus
==
EntrustFlowEnum
.
REPORT_ISSUE
||
toFlowStatus
==
EntrustFlowEnum
.
REPORT_SEND
||
toFlowStatus
==
EntrustFlowEnum
.
QUALITY_INSPECT
)
{
entrust
.
setTestTimeE
(
new
Date
());
entrustService
.
updateById
(
entrust
);
entrustReport
.
setReportAllower
(
account
.
getUserName
()).
setReportAllowerId
(
account
.
getUserId
()).
setReportAllowTime
(
new
Date
());
// 若从批准往后提交,则生成报告
// 转化PDF
executor1
.
execute
(()
->
changeExcelReportToPdf
(
ids
));
...
...
@@ -656,8 +655,6 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
if
(
toFlowStatus
==
EntrustFlowEnum
.
REPORT_SEND
)
{
generateNewReportFlow
(
entrust
.
getId
());
}
// 记录 签发人、发放人、质检审核人
recordReportHandler
(
fromFlowStatus
,
account
,
entrustReport
);
}
else
if
(
toFlowStatus
==
EntrustFlowEnum
.
QUALITY_JUDGE
||
toFlowStatus
==
EntrustFlowEnum
.
ARCHIVES
)
{
// 归档前置条件为已判定
...
...
@@ -715,7 +712,21 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
* @param entrustReport
*/
private
void
recordReportHandler
(
EntrustFlowEnum
fromFlowStatus
,
Account
account
,
EntrustReport
entrustReport
)
{
if
(
fromFlowStatus
==
EntrustFlowEnum
.
REPORT_ISSUE
)
{
// REPORT_MAKE(8, "报告编制"),
// REPORT_CHECK(9, "报告审核"),
// REPORT_ALLOW(10, "报告批准"),
// REPORT_ISSUE(11, "报告签发"),
// REPORT_SEND(12, "报告发放"),
// QUALITY_INSPECT(13, "质检审核"),
// QUALITY_JUDGE(14, "质量判定"),
// ARCHIVES(15, "电子档案");
if
(
fromFlowStatus
==
EntrustFlowEnum
.
REPORT_MAKE
)
{
entrustReport
.
setReportMaker
(
account
.
getUserName
()).
setReportMakerId
(
account
.
getUserId
()).
setReportMakeTime
(
new
Date
());
}
else
if
(
fromFlowStatus
==
EntrustFlowEnum
.
REPORT_CHECK
)
{
entrustReport
.
setReportChecker
(
account
.
getUserName
()).
setReportCheckerId
(
account
.
getUserId
()).
setReportCheckTime
(
new
Date
());
}
else
if
(
fromFlowStatus
==
EntrustFlowEnum
.
REPORT_ALLOW
)
{
entrustReport
.
setReportAllower
(
account
.
getUserName
()).
setReportAllowerId
(
account
.
getUserId
()).
setReportAllowTime
(
new
Date
());
}
else
if
(
fromFlowStatus
==
EntrustFlowEnum
.
REPORT_ISSUE
)
{
entrustReport
.
setReportIssuer
(
account
.
getUserName
()).
setReportIssuerId
(
account
.
getUserId
()).
setReportIssueTime
(
new
Date
());
}
else
if
(
fromFlowStatus
==
EntrustFlowEnum
.
REPORT_SEND
)
{
entrustReport
.
setReportSender
(
account
.
getUserName
()).
setReportSenderId
(
account
.
getUserId
()).
setReportSendTime
(
new
Date
());
...
...
src/main/resources/mapper/hmhj/EntrustSampleItemIndexMapper.xml
View file @
b368bd61
...
...
@@ -94,7 +94,9 @@
s.id,
s.NAME "sample_name",
s.code "sample_code",
max(s.sample_from) "sample_from",
max(s.sample_grading) "brand",
max(i.tester) "tester",
to_char(max(i.test_time),'YYYY-MM-DD HH24:MI:SS') "test_time",
max(r.report_checker) "report_checker",
max(r.report_issuer) "report_issuer",
...
...
src/main/resources/mapper/hmhj/EntrustSampleMapper.xml
View file @
b368bd61
...
...
@@ -369,21 +369,21 @@
SELECT
PI.*,
(CASE WHEN PI.C_VAL
>
= 2.50 AND PI.C_VAL
<
= 3.10 THEN 1 ELSE 0 END) "c_in_num",
(CASE WHEN PI.
C_VAL
>
= 2.00 AND PI.C
_VAL
<
= 3.00 THEN 1 ELSE 0 END) "si_in_num",
(CASE WHEN PI.
C_VAL
>
= 0.60 AND PI.C
_VAL
<
= 0.90 THEN 1 ELSE 0 END) "mn_in_num",
(CASE WHEN PI.
C_VAL
>
= 0.80 AND PI.C
_VAL
<
= 1.40 THEN 1 ELSE 0 END) "p_in_num",
(CASE WHEN PI.
C
_VAL
>
0.15 THEN 1 ELSE 0 END) "s_in_num",
(CASE WHEN PI.
SI_VAL
>
= 2.00 AND PI.SI
_VAL
<
= 3.00 THEN 1 ELSE 0 END) "si_in_num",
(CASE WHEN PI.
MN_VAL
>
= 0.60 AND PI.MN
_VAL
<
= 0.90 THEN 1 ELSE 0 END) "mn_in_num",
(CASE WHEN PI.
P_VAL
>
= 0.80 AND PI.P
_VAL
<
= 1.40 THEN 1 ELSE 0 END) "p_in_num",
(CASE WHEN PI.
S
_VAL
>
0.15 THEN 1 ELSE 0 END) "s_in_num",
(CASE WHEN PI.C_VAL
<
2.50 THEN 1 ELSE 0 END) "c_lt_num",
(CASE WHEN PI.
C
_VAL
<
2.00 THEN 1 ELSE 0 END) "si_lt_num",
(CASE WHEN PI.
C
_VAL
<
0.60 THEN 1 ELSE 0 END) "mn_lt_num",
(CASE WHEN PI.
C
_VAL
<
0.80 THEN 1 ELSE 0 END) "p_lt_num",
(CASE WHEN PI.
SI
_VAL
<
2.00 THEN 1 ELSE 0 END) "si_lt_num",
(CASE WHEN PI.
MN
_VAL
<
0.60 THEN 1 ELSE 0 END) "mn_lt_num",
(CASE WHEN PI.
P
_VAL
<
0.80 THEN 1 ELSE 0 END) "p_lt_num",
(CASE WHEN PI.C_VAL
>
3.10 THEN 1 ELSE 0 END) "c_gt_num",
(CASE WHEN PI.
C
_VAL
>
3.00 THEN 1 ELSE 0 END) "si_gt_num",
(CASE WHEN PI.
C
_VAL
>
0.90 THEN 1 ELSE 0 END) "mn_gt_num",
(CASE WHEN PI.
C
_VAL
>
1.40 THEN 1 ELSE 0 END) "p_gt_num",
(CASE WHEN PI.
C
_VAL
>
= 0.15 THEN 1 ELSE 0 END) "s_gt_num"
(CASE WHEN PI.
SI
_VAL
>
3.00 THEN 1 ELSE 0 END) "si_gt_num",
(CASE WHEN PI.
MN
_VAL
>
0.90 THEN 1 ELSE 0 END) "mn_gt_num",
(CASE WHEN PI.
P
_VAL
>
1.40 THEN 1 ELSE 0 END) "p_gt_num",
(CASE WHEN PI.
S
_VAL
>
= 0.15 THEN 1 ELSE 0 END) "s_gt_num"
FROM (
SELECT
i.company_id,
...
...
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