Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
京
京能客户端
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王亚宁
京能客户端
Commits
08a0dcb3
Commit
08a0dcb3
authored
11 months ago
by
黄重
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.e-bidding.org/wangyaning/jingneng
parents
d45e3f29
66b6ca1d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
10 deletions
+44
-10
OBE-CONFIG/config_final.properties
OBE-CONFIG/config_final.properties
+1
-1
OBE-REPORT/src/com/gx/obe/report/dataset/word/BaseDateSet.java
...EPORT/src/com/gx/obe/report/dataset/word/BaseDateSet.java
+2
-6
OBE-REPORT/src/com/gx/obe/report/dataset/word/JingNengEvaluationReportDataSet.java
.../report/dataset/word/JingNengEvaluationReportDataSet.java
+39
-1
com.gx.obe.common.file/src/com/gx/obe/common/file/utils/ParsingXmlUtils.java
...ile/src/com/gx/obe/common/file/utils/ParsingXmlUtils.java
+2
-2
No files found.
OBE-CONFIG/config_final.properties
View file @
08a0dcb3
#\u7cfb\u7edf\u7248\u672c
version
=
OBEV7.7.9.
version
=
OBEV7.7.9.
20240611
keyCharacter
=
#\u6b63\u5f0f\u7248\u672c\u68c0\u67e5\u5347\u7ea7\u7f16\u7801
versionUpdateType
=
OBE_FinalService
...
...
This diff is collapsed.
Click to expand it.
OBE-REPORT/src/com/gx/obe/report/dataset/word/BaseDateSet.java
View file @
08a0dcb3
...
...
@@ -285,8 +285,6 @@ public abstract class BaseDateSet implements IWordDataSet{
if
(
wordTable
.
isCross
()){
if
(
null
!=
wordTable
.
getRowList
()){
assembleListDataSet
(
wordTable
.
getRowList
(),
wordTable
.
getParams
());
}
else
if
(
null
!=
wordTable
.
getColList
()){
assembleListDataSet
(
wordTable
.
getRowList
(),
wordTable
.
getParams
());
}
}
else
{
if
(
null
!=
wordTable
.
getRowList
()){
...
...
@@ -824,7 +822,6 @@ public abstract class BaseDateSet implements IWordDataSet{
String
[]
fields
;
if
(
isStruct
)
{
fields
=
new
String
[]
{
"投标人名称 &&supplierName0"
,
"开标价格 --(含税)&&bidPrice0"
,
"开标价格 --(不含税)&&bidPrice1"
,
"修正后投标报价(含税)&&evaluationPrice0"
,
...
...
@@ -836,7 +833,6 @@ public abstract class BaseDateSet implements IWordDataSet{
};
}
else
{
fields
=
new
String
[]
{
"投标人名称&&supplierName0"
,
"开标价格 --&&bidPrice0"
,
"修正后投标报价&&evaluationPrice0"
,
"修正原因&&modifyReason0"
,
...
...
@@ -891,7 +887,7 @@ public abstract class BaseDateSet implements IWordDataSet{
supplierMap
.
put
(
"priceFinalScore"
,
BigDecimalUtils
.
round
(
ObjectUtils
.
getObjBigDecimal
(
supplierMap
.
get
(
"priceFinalScore"
)),
2
));
evaluationPriceSupplierList
.
add
(
supplierMap
);
}
String
unit
=
supplierMapList
.
size
()
>
0
?
(
String
)((
Map
<
String
,
Object
>)
supplierMapList
.
get
(
0
).
get
(
"supplierOpeningResult"
)).
get
(
"priceUnit"
)
:
null
;
String
unit
=
supplierMapList
.
size
()
>
0
&&
supplierMapList
.
get
(
0
).
get
(
"supplierOpeningResult"
)
!=
null
?
(
String
)((
Map
<
String
,
Object
>)
supplierMapList
.
get
(
0
).
get
(
"supplierOpeningResult"
)).
get
(
"priceUnit"
)
:
null
;
tableColList
=
getTableColNameList
(
fields
,
unit
);
getStructCrossData
(
tableColList
,
supplierMapList
);
reportDataSet
.
put
(
"tableColList"
,
tableColList
);
...
...
@@ -910,7 +906,7 @@ public abstract class BaseDateSet implements IWordDataSet{
List
<
Map
<
String
,
Object
>>
factorList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
int
index
=
1
;
for
(
String
field
:
fields
){
if
(
field
.
contains
(
"--"
))
{
if
(
field
.
contains
(
"--"
)
&&
unit
!=
null
)
{
field
=
field
.
replaceAll
(
"--"
,
unit
);
}
Map
<
String
,
Object
>
colMap
=
new
HashMap
<
String
,
Object
>();
...
...
This diff is collapsed.
Click to expand it.
OBE-REPORT/src/com/gx/obe/report/dataset/word/JingNengEvaluationReportDataSet.java
View file @
08a0dcb3
...
...
@@ -11,6 +11,9 @@ import java.util.Random;
import
java.util.UUID
;
import
java.util.stream.Collectors
;
import
org.dom4j.Document
;
import
com.gx.obe.common.file.enumeration.FileConstants
;
import
com.gx.obe.common.file.utils.ParsingXmlUtils
;
import
com.gx.obe.business.entity.SupplierEvaluationStep
;
import
com.gx.obe.business.entity.Worker
;
import
com.gx.obe.business.enumeration.ExpertEnum
;
...
...
@@ -20,6 +23,7 @@ import com.gx.obe.components.core.enumeration.EvaluationStepEnum;
import
com.gx.obe.components.core.enumeration.TenderProjectEnum
;
import
com.gx.obe.components.core.util.MoneyUtils
;
import
com.gx.obe.formula.PriceParam
;
import
com.gx.obe.message.Messages
;
import
com.gx.obe.report.utils.Bean2MapUtils
;
import
com.gx.obe.util.utils.BigDecimalUtils
;
import
com.gx.obe.util.utils.ListSortUtils
;
...
...
@@ -37,6 +41,7 @@ import com.gx.obe.web.entity.price.BidPrice;
import
com.gx.obe.web.entity.price.BidPriceResult
;
import
com.gx.obe.web.entity.tender.TenderProjectEntity
;
import
com.report.word.WordTemplate
;
import
com.gx.obe.util.utils.XmlUtils
;
public
class
JingNengEvaluationReportDataSet
extends
BaseDateSet
{
...
...
@@ -774,15 +779,25 @@ public class JingNengEvaluationReportDataSet extends BaseDateSet {
private
void
getFactorMessage
()
{
EvaluationFactor
evaluationFactor
=
evaluationFactorService
.
getPriceEvaluationFactor
(
tenderProject
.
getId
());
String
formula
=
null
;
String
evalStructMessage
=
null
;
PriceParam
priceParam
=
null
;
if
(
evaluationFactor
!=
null
)
{
priceParam
=
PriceParam
.
deserializePriceParam
(
evaluationFactor
.
getComputerParams
());
}
if
(
priceParam
!=
null
)
{
String
separator
=
System
.
getProperty
(
"line.separator"
);
formula
=
priceParam
.
getFormula
();
evalStructMessage
=
priceParam
.
getEvalStructMessage
();
}
if
(!
StringUtils
.
isEmpty
(
formula
))
{
boolean
isStruct
=
parserStructProject
();
if
(!
StringUtils
.
isEmpty
(
evalStructMessage
)
&&
isStruct
)
{
formula
=
formula
+
"\n\n"
+
Messages
.
EvalExplainPrice
+
":"
+
evalStructMessage
+
"\n\n"
+
Messages
.
BidExplainPrice
+
":"
+
evaluationFactor
.
getMemo
();
}
if
(!
StringUtils
.
isEmpty
(
evaluationFactor
.
getMemo
())
&&
!
isStruct
)
{
formula
=
formula
+
"\n\n"
+
Messages
.
EvalExplain
+
":"
+
evaluationFactor
.
getMemo
();
}
reportDataSet
.
putParam
(
"formula"
,
formula
);
}
//获取商务技术打分权重
...
...
@@ -804,5 +819,28 @@ public class JingNengEvaluationReportDataSet extends BaseDateSet {
reportDataSet
.
putParam
(
"priWeight"
,
step
.
getScore
());
}
}
}
}
public
boolean
parserStructProject
()
{
// 获得招标文件的指标Document
Document
factorDoc
=
XmlUtils
.
getXmlDocument
(
FileConstants
.
getBiddingFilePath
(
tenderProject
.
getId
())
+
FileConstants
.
PST_XML
);
// 未找到招标文件的指标,则获得投标文件的指标。
if
(
null
==
factorDoc
){
// 获得投标人集合
List
<
Supplier
>
supplierList
=
supplierService
.
getSupplierOpenBidList
(
tenderProject
.
getId
());
if
(
null
!=
supplierList
&&
supplierList
.
size
()
>
0
){
// 遍历投标人信息
for
(
Supplier
supplier
:
supplierList
){
if
(
null
!=
factorDoc
){
break
;
}
// 获得投标人投标文件下的指标路径
String
supplierFactorXmlPath
=
FileConstants
.
getBidFilePath
(
tenderProject
.
getId
(),
supplier
.
getId
())
+
FileConstants
.
PST_XML
;
// 获得投标文件的指标Document
factorDoc
=
XmlUtils
.
getXmlDocument
(
supplierFactorXmlPath
);
}
}
}
return
factorDoc
==
null
?
false
:
ParsingXmlUtils
.
parsingDocStructXML
(
factorDoc
);
}
}
This diff is collapsed.
Click to expand it.
com.gx.obe.common.file/src/com/gx/obe/common/file/utils/ParsingXmlUtils.java
View file @
08a0dcb3
...
...
@@ -492,9 +492,9 @@ public class ParsingXmlUtils {
Element
rootElement
=
factorDoc
.
getRootElement
();
// 查找 isTemplate 元素
Element
isTemplateElement
=
rootElement
.
element
(
"is
Templat
e"
);
Element
isTemplateElement
=
rootElement
.
element
(
"is
NewVersionFil
e"
);
if
(
isTemplateElement
!=
null
)
{
return
Boolean
.
parseBoolean
(
isTemplateElement
.
getText
()
);
return
isTemplateElement
.
getText
().
equals
(
"01"
);
}
return
false
;
}
...
...
This diff is collapsed.
Click to expand it.
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