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
1ba1fa62
Commit
1ba1fa62
authored
Jun 30, 2021
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加流程节点逻辑处理;
parent
9ed98c53
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
4 deletions
+37
-4
EntrustSampleController.java
...service/lims/hmhj/controller/EntrustSampleController.java
+1
-1
IEntrustSampleService.java
...loud/service/lims/hmhj/service/IEntrustSampleService.java
+2
-1
EntrustSampleServiceImpl.java
...vice/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
+23
-2
20210630新增样品库、委托字段.sql
...st/java/resources/db_sql/hmhj/v113/20210630新增样品库、委托字段.sql
+11
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/EntrustSampleController.java
View file @
1ba1fa62
...
...
@@ -467,7 +467,7 @@ public class EntrustSampleController extends ServiceController {
@ApiOperation
(
"磷生铁统计查询"
)
@PostMapping
(
"/p_make_fe_stats_query"
)
public
RestResult
<
List
<
PMakeFeStatsVO
>
>
getPMakeFeStatsQuery
(
QueryDTO
queryDTO
)
{
public
RestResult
<
Map
>
getPMakeFeStatsQuery
(
QueryDTO
queryDTO
)
{
return
success
(
entrustSampleService
.
getPMakeFeStatsQuery
(
queryDTO
));
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/IEntrustSampleService.java
View file @
1ba1fa62
...
...
@@ -14,6 +14,7 @@ import com.patzn.cloud.service.hmhj.vo.EntrustSampleVO;
import
com.patzn.cloud.service.hmhj.vo.PMakeFeStatsVO
;
import
java.util.List
;
import
java.util.Map
;
/**
* 服务类
...
...
@@ -63,5 +64,5 @@ public interface IEntrustSampleService extends IBaseService<EntrustSample> {
List
<
ElectrolyteRatioStatsVO
>
getElectrolyteRatioStatsQuery
(
QueryDTO
queryDTO
);
List
<
PMakeFeStatsVO
>
getPMakeFeStatsQuery
(
QueryDTO
queryDTO
);
Map
<
String
,
Object
>
getPMakeFeStatsQuery
(
QueryDTO
queryDTO
);
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
View file @
1ba1fa62
...
...
@@ -24,6 +24,8 @@ import com.patzn.cloud.service.lims.hmhj.service.*;
import
com.patzn.cloud.commons.service.impl.BaseServiceImpl
;
import
com.patzn.poibox.xwpf.PoiUtil2007
;
import
com.patzn.poibox.xwpf.XWPFTemplate
;
import
org.apache.commons.collections.ListUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.ss.util.CellRangeAddress
;
...
...
@@ -44,6 +46,7 @@ import java.io.FileOutputStream;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.*
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -260,9 +263,27 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
}
@Override
public
List
<
PMakeFeStatsVO
>
getPMakeFeStatsQuery
(
QueryDTO
queryDTO
)
{
public
Map
<
String
,
Object
>
getPMakeFeStatsQuery
(
QueryDTO
queryDTO
)
{
RestAssert
.
fail
(
null
==
queryDTO
.
getTimeS
()
||
null
==
queryDTO
.
getTimeE
(),
"开始或结束时间为空"
);
return
baseMapper
.
selectPMakeFeStats
(
queryDTO
);
List
<
PMakeFeStatsVO
>
list
=
baseMapper
.
selectPMakeFeStats
(
queryDTO
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
result
;
}
for
(
PMakeFeStatsVO
vo
:
list
)
{
PMakeFeVO
val
=
new
PMakeFeVO
(),
per
=
new
PMakeFeVO
(),
ltNum
=
new
PMakeFeVO
(),
gtNum
=
new
PMakeFeVO
(),
inNum
=
new
PMakeFeVO
();
val
.
setCVal
(
vo
.
getCVal
()).
setMnVal
(
vo
.
getMnVal
()).
setSiVal
(
vo
.
getSiVal
()).
setPVal
(
vo
.
getPVal
()).
setSVal
(
vo
.
getSVal
());
per
.
setCVal
(
vo
.
getCPer
()).
setMnVal
(
vo
.
getMnPer
()).
setSiVal
(
vo
.
getSiPer
()).
setPVal
(
vo
.
getPPer
()).
setSVal
(
vo
.
getSPer
());
ltNum
.
setCVal
(
vo
.
getCLtNum
()).
setMnVal
(
vo
.
getMnLtNum
()).
setSiVal
(
vo
.
getSiLtNum
()).
setPVal
(
vo
.
getPLtNum
()).
setSVal
(
vo
.
getSLtNum
());
inNum
.
setCVal
(
vo
.
getCInNum
()).
setMnVal
(
vo
.
getMnInNum
()).
setSiVal
(
vo
.
getSiInNum
()).
setPVal
(
vo
.
getPInNum
()).
setSVal
(
vo
.
getSInNum
());
gtNum
.
setCVal
(
vo
.
getCGtNum
()).
setMnVal
(
vo
.
getMnGtNum
()).
setSiVal
(
vo
.
getSiGtNum
()).
setPVal
(
vo
.
getPGtNum
()).
setSVal
(
vo
.
getSGtNum
());
result
.
put
(
vo
.
getPeriod
(),
Lists
.
newArrayList
(
val
,
per
,
ltNum
,
inNum
,
gtNum
));
}
return
result
;
}
@Override
...
...
src/test/java/resources/db_sql/hmhj/v113/20210630新增样品库、委托字段.sql
0 → 100644
View file @
1ba1fa62
ALTER
TABLE
"public"
.
"material"
ALTER
TABLE
"public"
.
"material"
ADD
COLUMN
"entrust_status_path"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
;
COMMENT
ON
COLUMN
"public"
.
"material"
.
"entrust_status_path"
IS
'委托状态范围'
;
ALTER
TABLE
"public"
.
"entrust"
ADD
COLUMN
"status_path"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"status_path"
IS
'状态范围'
;
\ No newline at end of file
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