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
f411c5d6
Commit
f411c5d6
authored
Jun 26, 2024
by
liangyb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#328-4 结构化非结构化适配
parent
b522bb82
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
53 deletions
+73
-53
OBE-COMMON/src/com/gx/obe/thread/ImportTenderProjectThread.java
...MMON/src/com/gx/obe/thread/ImportTenderProjectThread.java
+24
-19
OBE-COMMON/src/com/gx/obe/thread/NewDownloadEvaluationFactorThread.java
.../com/gx/obe/thread/NewDownloadEvaluationFactorThread.java
+20
-16
OBE-MANAGEMENT/src/com/gx/obe/management/composite/PriceFactorsManagerComposite.java
...be/management/composite/PriceFactorsManagerComposite.java
+9
-2
OBE-MANAGEMENT/src/com/gx/obe/management/thread/EvaluationFactorXmlResolverThread.java
.../management/thread/EvaluationFactorXmlResolverThread.java
+20
-16
No files found.
OBE-COMMON/src/com/gx/obe/thread/ImportTenderProjectThread.java
View file @
f411c5d6
...
@@ -349,7 +349,7 @@ public class ImportTenderProjectThread implements Runnable {
...
@@ -349,7 +349,7 @@ public class ImportTenderProjectThread implements Runnable {
tenderProjectRuleEntity
.
setBidOpeningStage
(
TenderProjectEnum
.
BID_OPENING_ONE_STAGE
);
tenderProjectRuleEntity
.
setBidOpeningStage
(
TenderProjectEnum
.
BID_OPENING_ONE_STAGE
);
return
tenderProjectRuleEntity
;
return
tenderProjectRuleEntity
;
}
}
/**
/**
* @Description: 解析评审指标
* @Description: 解析评审指标
* @param tenderProjectEntity
* @param tenderProjectEntity
...
@@ -396,7 +396,7 @@ public class ImportTenderProjectThread implements Runnable {
...
@@ -396,7 +396,7 @@ public class ImportTenderProjectThread implements Runnable {
try
{
try
{
List
<
EvaluationFactor
>
evaluationFactorList
=
ParsingXmlUtils
.
analyELementXMl
(
element
,
childProject
);
List
<
EvaluationFactor
>
evaluationFactorList
=
ParsingXmlUtils
.
analyELementXMl
(
element
,
childProject
);
if
(
null
!=
evaluationFactorList
&&
evaluationFactorList
.
size
()
>
0
)
{
if
(
null
!=
evaluationFactorList
&&
evaluationFactorList
.
size
()
>
0
)
{
changeFactorList
(
evaluationFactorList
,
tenderProjectEntity
);
evaluationFactorList
=
changeFactorList
(
evaluationFactorList
,
tenderProjectEntity
);
if
(
evaluationFactorService
.
saveDownloadEvaluationFactor
(
tenderProjectEntity
.
getId
(),
evaluationFactorList
)
>
0
){
if
(
evaluationFactorService
.
saveDownloadEvaluationFactor
(
tenderProjectEntity
.
getId
(),
evaluationFactorList
)
>
0
){
callBackMsg
(
true
,
evaluationFactorList
.
size
()
+
"个评审指标导入成功!"
);
callBackMsg
(
true
,
evaluationFactorList
.
size
()
+
"个评审指标导入成功!"
);
}
else
{
}
else
{
...
@@ -415,7 +415,7 @@ public class ImportTenderProjectThread implements Runnable {
...
@@ -415,7 +415,7 @@ public class ImportTenderProjectThread implements Runnable {
try
{
try
{
List
<
EvaluationFactor
>
evaluationFactorList
=
ParsingXmlUtils
.
analyELementXMl
((
Element
)
packEvalFactorList
.
get
(
0
),
tenderProjectEntity
);
List
<
EvaluationFactor
>
evaluationFactorList
=
ParsingXmlUtils
.
analyELementXMl
((
Element
)
packEvalFactorList
.
get
(
0
),
tenderProjectEntity
);
if
(
null
!=
evaluationFactorList
&&
evaluationFactorList
.
size
()
>
0
)
{
if
(
null
!=
evaluationFactorList
&&
evaluationFactorList
.
size
()
>
0
)
{
changeFactorList
(
evaluationFactorList
,
tenderProjectEntity
);
evaluationFactorList
=
changeFactorList
(
evaluationFactorList
,
tenderProjectEntity
);
if
(
evaluationFactorService
.
saveDownloadEvaluationFactor
(
tenderProjectEntity
.
getId
(),
evaluationFactorList
)
>
0
){
if
(
evaluationFactorService
.
saveDownloadEvaluationFactor
(
tenderProjectEntity
.
getId
(),
evaluationFactorList
)
>
0
){
callBackMsg
(
true
,
evaluationFactorList
.
size
()
+
"个评审指标导入成功!"
);
callBackMsg
(
true
,
evaluationFactorList
.
size
()
+
"个评审指标导入成功!"
);
}
else
{
}
else
{
...
@@ -436,23 +436,28 @@ public class ImportTenderProjectThread implements Runnable {
...
@@ -436,23 +436,28 @@ public class ImportTenderProjectThread implements Runnable {
String
TAX
=
"bidPrice"
;
String
TAX
=
"bidPrice"
;
String
NO_TAX
=
"noTaxBidPrice"
;
String
NO_TAX
=
"noTaxBidPrice"
;
List
<
BidPrice
>
bidPriceList
=
bidPriceService
.
getBidPriceFactorList
(
tenderProjectEntity
.
getId
());
List
<
BidPrice
>
bidPriceList
=
bidPriceService
.
getBidPriceFactorList
(
tenderProjectEntity
.
getId
());
return
evalFactorList
=
evalFactorList
.
stream
().
map
(
t
->
{
if
(
null
!=
bidPriceList
&&
bidPriceList
.
size
()
>
0
){
if
(
BidPrice
.
BID_PRICE_TOTAL_CODE
.
equals
(
t
.
getBidPriceCode
())
&&
bidPriceList
.
size
()
==
1
)
{
return
evalFactorList
=
evalFactorList
.
stream
().
map
(
t
->
{
t
.
setBidPriceCode
(
bidPriceList
.
get
(
0
).
getBidPriceCode
());
if
(
BidPrice
.
BID_PRICE_TOTAL_CODE
.
equals
(
t
.
getBidPriceCode
()))
{
}
else
if
(
TAX
.
equals
(
t
.
getBidPriceCode
())
||
NO_TAX
.
equals
(
t
.
getBidPriceCode
())){
t
.
setBidPriceCode
(
bidPriceList
.
get
(
0
).
getBidPriceCode
());
String
tax
;
}
else
if
(
TAX
.
equals
(
t
.
getBidPriceCode
())
||
NO_TAX
.
equals
(
t
.
getBidPriceCode
())){
if
(
TAX
.
equals
(
t
.
getBidPriceCode
()))
{
String
tax
;
tax
=
"TAX_TOTAL_PRICE"
;
if
(
TAX
.
equals
(
t
.
getBidPriceCode
()))
{
}
else
{
tax
=
"TAX_TOTAL_PRICE"
;
tax
=
"NO_TAX_TOTAL_PRICE"
;
}
else
{
tax
=
"NO_TAX_TOTAL_PRICE"
;
}
BidPrice
bidPriceResult
=
CollectionUtils
.
get
(
bidPriceList
,
s
->
{
return
tax
.
equals
(
s
.
getBidPriceCode
());
});
if
(
bidPriceResult
!=
null
){
t
.
setBidPriceCode
(
bidPriceResult
.
getBidPriceCode
());
}
}
}
BidPrice
bidPriceResult
=
CollectionUtils
.
get
(
bidPriceList
,
s
->
{
return
t
;
return
tax
.
equals
(
s
.
getBidPriceCode
());
}).
collect
(
Collectors
.
toList
());
});
}
t
.
setBidPriceCode
(
bidPriceResult
.
getBidPriceCode
());
return
evalFactorList
;
}
return
t
;
}).
collect
(
Collectors
.
toList
());
}
}
private
void
callBackMsg
(
String
msg
){
private
void
callBackMsg
(
String
msg
){
if
(
null
!=
callBack
){
if
(
null
!=
callBack
){
...
...
OBE-COMMON/src/com/gx/obe/thread/NewDownloadEvaluationFactorThread.java
View file @
f411c5d6
...
@@ -133,23 +133,27 @@ public class NewDownloadEvaluationFactorThread extends MyThread{
...
@@ -133,23 +133,27 @@ public class NewDownloadEvaluationFactorThread extends MyThread{
String
TAX
=
"bidPrice"
;
String
TAX
=
"bidPrice"
;
String
NO_TAX
=
"noTaxBidPrice"
;
String
NO_TAX
=
"noTaxBidPrice"
;
List
<
BidPrice
>
bidPriceList
=
bidPriceService
.
getBidPriceFactorList
(
tenderProjectEntity
.
getId
());
List
<
BidPrice
>
bidPriceList
=
bidPriceService
.
getBidPriceFactorList
(
tenderProjectEntity
.
getId
());
evalFactorList
=
evalFactorList
.
stream
().
map
(
t
->
{
if
(
null
!=
bidPriceList
&&
bidPriceList
.
size
()
>
0
){
if
(
BidPrice
.
BID_PRICE_TOTAL_CODE
.
equals
(
t
.
getBidPriceCode
())
&&
bidPriceList
.
size
()
==
1
)
{
evalFactorList
=
evalFactorList
.
stream
().
map
(
t
->
{
t
.
setBidPriceCode
(
bidPriceList
.
get
(
0
).
getBidPriceCode
());
if
(
BidPrice
.
BID_PRICE_TOTAL_CODE
.
equals
(
t
.
getBidPriceCode
()))
{
}
else
if
(
TAX
.
equals
(
t
.
getBidPriceCode
())
||
NO_TAX
.
equals
(
t
.
getBidPriceCode
())){
t
.
setBidPriceCode
(
bidPriceList
.
get
(
0
).
getBidPriceCode
());
String
tax
;
}
else
if
(
TAX
.
equals
(
t
.
getBidPriceCode
())
||
NO_TAX
.
equals
(
t
.
getBidPriceCode
())){
if
(
TAX
.
equals
(
t
.
getBidPriceCode
()))
{
String
tax
;
tax
=
"TAX_TOTAL_PRICE"
;
if
(
TAX
.
equals
(
t
.
getBidPriceCode
()))
{
}
else
{
tax
=
"TAX_TOTAL_PRICE"
;
tax
=
"NO_TAX_TOTAL_PRICE"
;
}
else
{
tax
=
"NO_TAX_TOTAL_PRICE"
;
}
BidPrice
bidPriceResult
=
CollectionUtils
.
get
(
bidPriceList
,
s
->
{
return
tax
.
equals
(
s
.
getBidPriceCode
());
});
if
(
bidPriceResult
!=
null
){
t
.
setBidPriceCode
(
bidPriceResult
.
getBidPriceCode
());
}
}
}
BidPrice
bidPriceResult
=
CollectionUtils
.
get
(
bidPriceList
,
s
->
{
return
t
;
return
tax
.
equals
(
s
.
getBidPriceCode
());
}).
collect
(
Collectors
.
toList
());
});
}
t
.
setBidPriceCode
(
bidPriceResult
.
getBidPriceCode
());
}
return
t
;
}).
collect
(
Collectors
.
toList
());
// 批量保存
// 批量保存
if
(
evaluationFactorService
.
saveDownloadEvaluationFactor
(
tenderProjectEntity
.
getId
(),
evalFactorList
)
>
0
){
if
(
evaluationFactorService
.
saveDownloadEvaluationFactor
(
tenderProjectEntity
.
getId
(),
evalFactorList
)
>
0
){
callBackMsg
(
true
,
"["
+
tenderProjectEntity
.
getTenderName
()
+
"] "
+
evalFactorList
.
size
()
+
"个评审指标下载成功!"
);
callBackMsg
(
true
,
"["
+
tenderProjectEntity
.
getTenderName
()
+
"] "
+
evalFactorList
.
size
()
+
"个评审指标下载成功!"
);
...
...
OBE-MANAGEMENT/src/com/gx/obe/management/composite/PriceFactorsManagerComposite.java
View file @
f411c5d6
...
@@ -4,7 +4,6 @@ import java.math.BigDecimal;
...
@@ -4,7 +4,6 @@ import java.math.BigDecimal;
import
java.text.MessageFormat
;
import
java.text.MessageFormat
;
import
java.text.NumberFormat
;
import
java.text.NumberFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -61,7 +60,6 @@ import com.gx.obe.message.Messages;
...
@@ -61,7 +60,6 @@ import com.gx.obe.message.Messages;
import
com.gx.obe.util.utils.BigDecimalUtils
;
import
com.gx.obe.util.utils.BigDecimalUtils
;
import
com.gx.obe.util.utils.LogUtils
;
import
com.gx.obe.util.utils.LogUtils
;
import
com.gx.obe.util.utils.ObjectUtils
;
import
com.gx.obe.util.utils.ObjectUtils
;
import
com.gx.obe.util.utils.SerializeUtils
;
import
com.gx.obe.util.utils.StringUtils
;
import
com.gx.obe.util.utils.StringUtils
;
import
com.gx.obe.web.entity.auth.Menu
;
import
com.gx.obe.web.entity.auth.Menu
;
import
com.gx.obe.web.entity.evaluation.EvaluationFactor
;
import
com.gx.obe.web.entity.evaluation.EvaluationFactor
;
...
@@ -1060,6 +1058,15 @@ public class PriceFactorsManagerComposite extends Composite {
...
@@ -1060,6 +1058,15 @@ public class PriceFactorsManagerComposite extends Composite {
}
}
bidPriceResultService
.
updateBidPriceAndFinalPrice
(
supplierMap
);
bidPriceResultService
.
updateBidPriceAndFinalPrice
(
supplierMap
);
}
}
//结构化投标报价保险写入
if
(
StringUtils
.
isEmpty
(
bid_price_text
.
getText
()))
{
List
<
BidPrice
>
bidPriceList
=
bidPriceService
.
getBidPriceFactorList
(
tenderProject
.
getId
());
if
(
bidPriceList
!=
null
&&
bidPriceList
.
size
()
==
1
)
{
bid_price_text
.
setText
(
bidPriceList
.
get
(
0
).
getBidPriceName
());
curFactor
.
setBidPriceCode
(
bidPriceList
.
get
(
0
).
getBidPriceCode
());
evaluationFactorService
.
updateAssignProperty
(
curFactor
,
new
String
[]{
"id"
,
"bidPriceCode"
});
}
}
//del_bid_price.setVisible(true);
//del_bid_price.setVisible(true);
}
else
{
}
else
{
curFactor
.
setBidPriceCode
(
null
);
curFactor
.
setBidPriceCode
(
null
);
...
...
OBE-MANAGEMENT/src/com/gx/obe/management/thread/EvaluationFactorXmlResolverThread.java
View file @
f411c5d6
...
@@ -118,23 +118,27 @@ public class EvaluationFactorXmlResolverThread implements Runnable {
...
@@ -118,23 +118,27 @@ public class EvaluationFactorXmlResolverThread implements Runnable {
if
(
factorList
.
size
()
>
0
){
if
(
factorList
.
size
()
>
0
){
BidPriceService
bidPriceService
=
new
BidPriceService
();
BidPriceService
bidPriceService
=
new
BidPriceService
();
List
<
BidPrice
>
bidPriceList
=
bidPriceService
.
getBidPriceFactorList
(
tenderProjectEntity
.
getId
());
List
<
BidPrice
>
bidPriceList
=
bidPriceService
.
getBidPriceFactorList
(
tenderProjectEntity
.
getId
());
factorList
=
factorList
.
stream
().
map
(
t
->
{
if
(
null
!=
bidPriceList
&&
bidPriceList
.
size
()
>
0
){
if
(
BidPrice
.
BID_PRICE_TOTAL_CODE
.
equals
(
t
.
getBidPriceCode
())
&&
bidPriceList
.
size
()
==
1
)
{
factorList
=
factorList
.
stream
().
map
(
t
->
{
t
.
setBidPriceCode
(
bidPriceList
.
get
(
0
).
getBidPriceCode
());
if
(
BidPrice
.
BID_PRICE_TOTAL_CODE
.
equals
(
t
.
getBidPriceCode
()))
{
}
else
if
(
TAX
.
equals
(
t
.
getBidPriceCode
())
||
NO_TAX
.
equals
(
t
.
getBidPriceCode
())){
t
.
setBidPriceCode
(
bidPriceList
.
get
(
0
).
getBidPriceCode
());
String
tax
;
}
else
if
(
TAX
.
equals
(
t
.
getBidPriceCode
())
||
NO_TAX
.
equals
(
t
.
getBidPriceCode
())){
if
(
TAX
.
equals
(
t
.
getBidPriceCode
()))
{
String
tax
;
tax
=
"TAX_TOTAL_PRICE"
;
if
(
TAX
.
equals
(
t
.
getBidPriceCode
()))
{
}
else
{
tax
=
"TAX_TOTAL_PRICE"
;
tax
=
"NO_TAX_TOTAL_PRICE"
;
}
else
{
tax
=
"NO_TAX_TOTAL_PRICE"
;
}
BidPrice
bidPriceResult
=
CollectionUtils
.
get
(
bidPriceList
,
s
->
{
return
tax
.
equals
(
s
.
getBidPriceCode
());
});
if
(
bidPriceResult
!=
null
){
t
.
setBidPriceCode
(
bidPriceResult
.
getBidPriceCode
());
}
}
}
BidPrice
bidPriceResult
=
CollectionUtils
.
get
(
bidPriceList
,
s
->
{
return
t
;
return
tax
.
equals
(
s
.
getBidPriceCode
());
}).
collect
(
Collectors
.
toList
());
});
}
t
.
setBidPriceCode
(
bidPriceResult
.
getBidPriceCode
());
}
return
t
;
}).
collect
(
Collectors
.
toList
());
// 批量保存
// 批量保存
if
(
evaluationFactorService
.
saveDownloadEvaluationFactor
(
tenderProjectEntity
.
getId
(),
factorList
)
>
0
){
if
(
evaluationFactorService
.
saveDownloadEvaluationFactor
(
tenderProjectEntity
.
getId
(),
factorList
)
>
0
){
isImport
=
true
;
isImport
=
true
;
...
...
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