Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-soil
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-soil
Commits
82d8388d
Commit
82d8388d
authored
Apr 07, 2021
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
土工平台修改
parent
c3c03ef7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
173 deletions
+55
-173
SoilEntrustServiceImpl.java
...ervice/lims/soil/service/impl/SoilEntrustServiceImpl.java
+1
-1
SoilExpReportServiceImpl.java
...vice/lims/soil/service/impl/SoilExpReportServiceImpl.java
+26
-7
SoilExperimentServiceImpl.java
...ice/lims/soil/service/impl/SoilExperimentServiceImpl.java
+5
-150
SoilOriginalTemplateServiceImpl.java
...ms/soil/service/impl/SoilOriginalTemplateServiceImpl.java
+4
-6
license.xml
src/main/resources/static/license.xml
+19
-9
No files found.
src/main/java/com/patzn/cloud/service/lims/soil/service/impl/SoilEntrustServiceImpl.java
View file @
82d8388d
...
@@ -950,7 +950,7 @@ public class SoilEntrustServiceImpl extends BaseServiceImpl<SoilEntrustMapper, S
...
@@ -950,7 +950,7 @@ public class SoilEntrustServiceImpl extends BaseServiceImpl<SoilEntrustMapper, S
map
.
put
(
"#{boreholeName}"
,
StringHandleUtils
.
getString
(
entrust
.
getBoreholeName
()));
map
.
put
(
"#{boreholeName}"
,
StringHandleUtils
.
getString
(
entrust
.
getBoreholeName
()));
map
.
put
(
"#{client}"
,
StringHandleUtils
.
getString
(
entrust
.
getClient
()));
map
.
put
(
"#{client}"
,
StringHandleUtils
.
getString
(
entrust
.
getClient
()));
map
.
put
(
"#{projectNo}"
,
StringHandleUtils
.
getString
(
entrust
.
getProjectNo
()));
map
.
put
(
"#{projectNo}"
,
StringHandleUtils
.
getString
(
entrust
.
getProjectNo
()));
map
.
put
(
"#{entrustCode}"
,
"报告编号:"
+
StringHandleUtils
.
getString
(
entrust
.
getEntrustCode
()));
map
.
put
(
"#{entrustCode}"
,
StringHandleUtils
.
getString
(
entrust
.
getEntrustCode
()));
map
.
put
(
"#{waterDepth}"
,
null
==
entrust
.
getWaterDepth
()?
""
:
entrust
.
getWaterDepth
().
toString
());
map
.
put
(
"#{waterDepth}"
,
null
==
entrust
.
getWaterDepth
()?
""
:
entrust
.
getWaterDepth
().
toString
());
List
<
SoilPrepare
>
soilPrepares
=
soilPrepareService
.
list
(
Condition
.
create
().
setSqlSelect
(
"prepare_date"
).
in
(
"sample_id"
,
sampleIdsList
).
isNotNull
(
"prepare_date"
));
List
<
SoilPrepare
>
soilPrepares
=
soilPrepareService
.
list
(
Condition
.
create
().
setSqlSelect
(
"prepare_date"
).
in
(
"sample_id"
,
sampleIdsList
).
isNotNull
(
"prepare_date"
));
...
...
src/main/java/com/patzn/cloud/service/lims/soil/service/impl/SoilExpReportServiceImpl.java
View file @
82d8388d
...
@@ -165,7 +165,7 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
...
@@ -165,7 +165,7 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
Map
<
String
,
String
>
mapReplace
=
new
HashMap
<>();
Map
<
String
,
String
>
mapReplace
=
new
HashMap
<>();
mapReplace
.
put
(
"#{projectName}"
,
StringHandleUtils
.
getString
(
entrust
.
getProjectName
()));
mapReplace
.
put
(
"#{projectName}"
,
StringHandleUtils
.
getString
(
entrust
.
getProjectName
()));
mapReplace
.
put
(
"#{reportCode}"
,
"报告编号:"
+
entrust
.
getEntrustCode
());
mapReplace
.
put
(
"#{reportCode}"
,
entrust
.
getEntrustCode
());
mapReplace
.
put
(
"#{client}"
,
StringHandleUtils
.
getString
(
entrust
.
getClient
()));
mapReplace
.
put
(
"#{client}"
,
StringHandleUtils
.
getString
(
entrust
.
getClient
()));
mapReplace
.
put
(
"#{boreholeName}"
,
StringHandleUtils
.
getString
(
entrust
.
getBoreholeName
()));
mapReplace
.
put
(
"#{boreholeName}"
,
StringHandleUtils
.
getString
(
entrust
.
getBoreholeName
()));
mapReplace
.
put
(
"#{projectNo}"
,
StringHandleUtils
.
getString
(
entrust
.
getProjectNo
()));
mapReplace
.
put
(
"#{projectNo}"
,
StringHandleUtils
.
getString
(
entrust
.
getProjectNo
()));
...
@@ -337,6 +337,9 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
...
@@ -337,6 +337,9 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
}
}
List
<
Workbook
>
bookList
=
new
ArrayList
<>();
List
<
Workbook
>
bookList
=
new
ArrayList
<>();
if
(!
AsposeUtil
.
getLicense
())
{
// 验证License 若不验证则转化出的PDP文档会有水印产生
logger
.
error
(
"Aspose 认证失败"
);
}
Workbook
workbook
=
null
;
Workbook
workbook
=
null
;
if
(
null
!=
xssfWorkbook
){
if
(
null
!=
xssfWorkbook
){
...
@@ -653,9 +656,9 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
...
@@ -653,9 +656,9 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
logger
.
error
(
"List<Workbook> bookList = new ArrayList<>();-----"
);
logger
.
error
(
"List<Workbook> bookList = new ArrayList<>();-----"
);
//
if (!AsposeUtil.getLicense()) { // 验证License 若不验证则转化出的PDP文档会有水印产生
if
(!
AsposeUtil
.
getLicense
())
{
// 验证License 若不验证则转化出的PDP文档会有水印产生
//
logger.error("Aspose 认证失败");
logger
.
error
(
"Aspose 认证失败"
);
//
}
}
Workbook
workbook
=
null
;
Workbook
workbook
=
null
;
logger
.
error
(
"7-----------------"
);
logger
.
error
(
"7-----------------"
);
...
@@ -795,8 +798,26 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
...
@@ -795,8 +798,26 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
if
(
StringHandleUtils
.
is_alpha
(
dataAttribute
)){
if
(
StringHandleUtils
.
is_alpha
(
dataAttribute
)){
cell
.
setCellValue
(
StringHandleUtils
.
getFieldIfNummReturnBlankValueByFieldName
(
dataAttribute
,
vo
));
cell
.
setCellValue
(
StringHandleUtils
.
getFieldIfNummReturnBlankValueByFieldName
(
dataAttribute
,
vo
));
}
else
{
}
else
{
if
(
dataAttribute
.
contains
(
"固结-"
)){
String
expName
=
"固结"
;
String
itemName
=
dataAttribute
.
replace
(
"固结-"
,
""
);
if
(
CollectionUtils
.
isNotEmpty
(
experimentVOList
)){
for
(
SoilExperimentVO
experiment:
experimentVOList
)
{
if
(
vo
.
getSampleCode
().
equals
(
experiment
.
getSampleCode
())&&
expName
.
equals
(
experiment
.
getName
())){
if
(
dataAttribute
.
contains
(
"-"
)){
List
<
SoilItem
>
itemList
=
experiment
.
getItemList
();
if
(
CollectionUtils
.
isNotEmpty
(
itemList
)){
for
(
SoilItem
item:
itemList
)
{
if
(
itemName
.
equals
(
item
.
getName
())){
cell
.
setCellValue
(
item
.
getTestValue
());
break
;
}
}
}
}
}
}
}
else
if
(
dataAttribute
.
contains
(
"-"
)){
String
[]
attrArrray
=
dataAttribute
.
split
(
"-"
);
String
[]
attrArrray
=
dataAttribute
.
split
(
"-"
);
if
(
attrArrray
.
length
<
2
){
if
(
attrArrray
.
length
<
2
){
return
;
return
;
...
@@ -816,9 +837,7 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
...
@@ -816,9 +837,7 @@ public class SoilExpReportServiceImpl extends BaseServiceImpl<SoilExpReportMappe
if
(
CollectionUtils
.
isNotEmpty
(
experimentVOList
)){
if
(
CollectionUtils
.
isNotEmpty
(
experimentVOList
)){
for
(
SoilExperimentVO
experiment:
experimentVOList
)
{
for
(
SoilExperimentVO
experiment:
experimentVOList
)
{
if
(
expName
.
equals
(
"三轴压缩CD/CU"
)||
expName
.
equals
(
"三轴CD/CU"
)){
if
(
expName
.
equals
(
"三轴压缩CD/CU"
)||
expName
.
equals
(
"三轴CD/CU"
)){
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
if
(
vo
.
getSampleCode
().
equals
(
experiment
.
getSampleCode
())&&
"三轴压缩-CD"
.
equals
(
experiment
.
getName
())){
if
(
vo
.
getSampleCode
().
equals
(
experiment
.
getSampleCode
())&&
"三轴压缩-CD"
.
equals
(
experiment
.
getName
())){
...
...
src/main/java/com/patzn/cloud/service/lims/soil/service/impl/SoilExperimentServiceImpl.java
View file @
82d8388d
This diff is collapsed.
Click to expand it.
src/main/java/com/patzn/cloud/service/lims/soil/service/impl/SoilOriginalTemplateServiceImpl.java
View file @
82d8388d
...
@@ -404,8 +404,11 @@ public class SoilOriginalTemplateServiceImpl extends BaseServiceImpl<SoilOrigina
...
@@ -404,8 +404,11 @@ public class SoilOriginalTemplateServiceImpl extends BaseServiceImpl<SoilOrigina
for
(
int
i
=
sampleBeginRow
;
i
<
lastRowNum
;
i
+=
sampleMergerNum
)
{
for
(
int
i
=
sampleBeginRow
;
i
<
=
lastRowNum
;
i
+=
sampleMergerNum
)
{
XSSFRow
xssfRow
=
sheet
.
getRow
(
i
);
XSSFRow
xssfRow
=
sheet
.
getRow
(
i
);
if
(
null
==
xssfRow
){
continue
;
}
XSSFCell
sampleCodeCell
=
xssfRow
.
getCell
(
sampleCol
);
XSSFCell
sampleCodeCell
=
xssfRow
.
getCell
(
sampleCol
);
String
sampleCode
=
HSSFWorkbookUtil
.
getJavaValue
(
sampleCodeCell
).
toString
();
String
sampleCode
=
HSSFWorkbookUtil
.
getJavaValue
(
sampleCodeCell
).
toString
();
String
sampleOfStatus
=
""
;
String
sampleOfStatus
=
""
;
...
@@ -423,11 +426,6 @@ public class SoilOriginalTemplateServiceImpl extends BaseServiceImpl<SoilOrigina
...
@@ -423,11 +426,6 @@ public class SoilOriginalTemplateServiceImpl extends BaseServiceImpl<SoilOrigina
shortNames
=
HSSFWorkbookUtil
.
getJavaValue
(
shortNameCell
).
toString
();
shortNames
=
HSSFWorkbookUtil
.
getJavaValue
(
shortNameCell
).
toString
();
}
}
for
(
ItemCollectEntity
collectEntity:
collectEntitiesList
)
{
for
(
ItemCollectEntity
collectEntity:
collectEntitiesList
)
{
if
(
null
!=
collectEntity
.
getSingleElse
()){
if
(
null
!=
collectEntity
.
getSingleElse
()){
XSSFRow
row
=
sheet
.
getRow
(
collectEntity
.
getItemMegerRow
());
XSSFRow
row
=
sheet
.
getRow
(
collectEntity
.
getItemMegerRow
());
...
...
src/main/resources/static/license.xml
View file @
82d8388d
<License>
<License>
<Data>
<Data>
<LicensedTo>
南京中普安信
</LicensedTo>
<EmailTo>
zhangmengqi@qd-partner.com
</EmailTo>
<LicenseType>
Developer Small Business
</LicenseType>
<LicenseNote>
1 Developer And 1 Deployment Location
</LicenseNote>
<OrderID>
210401015312
</OrderID>
<UserID>
879938
</UserID>
<OEM>
This is not a redistributable license
</OEM>
<Products>
<Products>
<Product>
Aspose.Total for Java
</Product>
<Product>
Aspose.Cells Product Family
</Product>
<Product>
Aspose.Words for Java
</Product>
</Products>
</Products>
<EditionType>
Enterprise
</EditionType>
<EditionType>
Professional
</EditionType>
<SubscriptionExpiry>
20991231
</SubscriptionExpiry>
<SerialNumber>
511eb1f9-57ff-4254-bbeb-b9ee82f390cb
</SerialNumber>
<LicenseExpiry>
20991231
</LicenseExpiry>
<SubscriptionExpiry>
20220401
</SubscriptionExpiry>
<SerialNumber>
8bfe198c-7f0c-4ef8-8ff0-acc3237bf0d7
</SerialNumber>
<LicenseExpiry>
20210501
</LicenseExpiry>
</Data>
<ExpiryNote>
This is a temporary license for non-commercial use only and it will expire on 2021-05-01
</ExpiryNote>
<Signature>
sNLLKGMUdF0r8O1kKilWAGdgfs2BvJb/2Xp8p5iuDVfZXmhppo+d0Ran1P9TKdjV4ABwAgKXxJ3jcQTqE/2IRfqwnPf8itN8aFZlV3TJPYeD3yWE7IT55Gz6EijUpC7aKeoohTb4w2fpox58wWoF3SNp6sK6jDfiAUGEHYJ9pjU=
</Signature>
<LicenseVersion>
3.0
</LicenseVersion>
<LicenseInstructions>
https://purchase.aspose.com/policies/use-license
</LicenseInstructions>
</Data>
<Signature>
gvk7I3r/lKw/n0K5FhxBBvoAgyYZ/HwbguDGsOCzMFvhbYAabwxly9RVncRENZLSMiZ570I+lG/NK9cfq9IRxyS/2mvuM0IKfIX7QVtnzUZof4/bU55/dj1+obPI6j7T8E+oCqo8O1ec/BdAGw05tJ+GlWvvhcaBfJw9C5b4CRU=
</Signature>
</License>
</License>
\ 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