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
590b1e92
Commit
590b1e92
authored
10 months ago
by
liangyb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#394 2024708 解决专家回退会生成json字符给用户展示
parent
68a92b5e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
24 deletions
+41
-24
OBE-CONFIG/config_final.properties
OBE-CONFIG/config_final.properties
+1
-1
OBE-CONFIG/config_test.properties
OBE-CONFIG/config_test.properties
+1
-1
com.gx.obe.step/src/com/gx/obe/step/dialog/ReEvaluationConfirmDialog.java
...src/com/gx/obe/step/dialog/ReEvaluationConfirmDialog.java
+39
-22
No files found.
OBE-CONFIG/config_final.properties
View file @
590b1e92
#\u7cfb\u7edf\u7248\u672c
version
=
OBEV7.7.9.20240
611
version
=
OBEV7.7.9.20240
705
keyCharacter
=
#\u6b63\u5f0f\u7248\u672c\u68c0\u67e5\u5347\u7ea7\u7f16\u7801
versionUpdateType
=
OBE_FinalService
...
...
This diff is collapsed.
Click to expand it.
OBE-CONFIG/config_test.properties
View file @
590b1e92
#\u7cfb\u7edf\u7248\u672c
version
=
OBEV7.7.9.20240
611
version
=
OBEV7.7.9.20240
705
keyCharacter
=
g
versionUpdateType
=
OBE_Service
#\u6d4b\u8bd5\u7ad9\u4e13\u5bb6\u7b7e\u670d\u52a1
...
...
This diff is collapsed.
Click to expand it.
com.gx.obe.step/src/com/gx/obe/step/dialog/ReEvaluationConfirmDialog.java
View file @
590b1e92
package
com
.
gx
.
obe
.
step
.
dialog
;
import
java.text.MessageFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -288,20 +289,22 @@ public class ReEvaluationConfirmDialog extends EDialog {
}
List
<
ExpertEvaluationStep
>
expertEvaluationStepList
=
new
ArrayList
<
ExpertEvaluationStep
>();
if
(
null
!=
expertEvaluationStep
)
{
List
<
ExpertEvaluationStepLogInfo
>
list
=
ExpertEvaluationStepLogInfoUtils
.
getExpertEvaluationStepLogInfo
(
expertEvaluationStep
.
getApplyReason
());
if
(
list
.
size
()
>=
1
)
{
ExpertEvaluationStepLogInfo
info
=
list
.
get
(
list
.
size
()
-
1
);
info
.
setApproveDate
(
NowTimeUtils
.
getNowDate
());
info
.
setApproveUserIdCard
(
Constants
.
USER
.
getIdCard
()
!=
null
?
Constants
.
USER
.
getIdCard
()
:
Constants
.
USER
.
getUserAccount
());
info
.
setApproveUserAccount
(
Constants
.
USER
.
getUserAccount
());
info
.
setApproveUserName
(
Constants
.
USER
.
getUserName
());
expertEvaluationStep
.
setApplyReason
(
JsonUtil
.
jacksonObjectToStr
(
list
));
}
// List<ExpertEvaluationStepLogInfo> list = ExpertEvaluationStepLogInfoUtils.getExpertEvaluationStepLogInfo(expertEvaluationStep.getApplyReason());
// if (list.size() >= 1) {
// ExpertEvaluationStepLogInfo info = list.get(list.size() - 1);
// info.setApproveDate(NowTimeUtils.getNowDate());
// info.setApproveUserIdCard(Constants.USER.getIdCard() != null ? Constants.USER.getIdCard() : Constants.USER.getUserAccount());
// info.setApproveUserAccount(Constants.USER.getUserAccount());
// info.setApproveUserName(Constants.USER.getUserName());
// expertEvaluationStep.setApplyReason(JsonUtil.jacksonObjectToStr(list));
// }
String
applyReason
=
StringUtils
.
isEmpty
(
expertEvaluationStep
.
getApplyReason
())
?
""
:
expertEvaluationStep
.
getApplyReason
();
historyApplyReasonText
.
setText
(
applyReason
);
expertEvaluationStepList
.
add
(
expertEvaluationStep
);
if
(
isApply
)
{
ActionLogUtils
.
addServerLog
(
evaluationStep
.
getTenderId
(),
"退回专家"
,
expertEvaluationStep
.
getUserId
()
+
"退回原因:"
+
reback
ReasonText
.
getText
());
ActionLogUtils
.
addServerLog
(
evaluationStep
.
getTenderId
(),
"退回专家"
,
expertEvaluationStep
.
getUserId
()
+
"退回原因:"
+
historyApply
ReasonText
.
getText
());
}
else
{
ActionLogUtils
.
addServerLog
(
evaluationStep
.
getTenderId
(),
"同意退回"
,
expertEvaluationStep
.
getUserId
()
+
"退回原因:"
+
historyApply
ReasonText
.
getText
());
ActionLogUtils
.
addServerLog
(
evaluationStep
.
getTenderId
(),
"同意退回"
,
expertEvaluationStep
.
getUserId
()
+
"退回原因:"
+
reback
ReasonText
.
getText
());
}
}
else
{
...
...
@@ -334,18 +337,32 @@ public class ReEvaluationConfirmDialog extends EDialog {
stepService
.
deleteById
(
everyExpertEvaluationStep
.
getId
());
continue
;
}
if
(
null
!=
everyExpertEvaluationStep
.
getApplyStatus
()
&&
everyExpertEvaluationStep
.
getApplyStatus
().
equals
(
CommonEnum
.
YES
))
{
everyExpertEvaluationStep
.
setApplyStatus
(
null
);
stepService
.
updateAssignProperty
(
everyExpertEvaluationStep
,
new
String
[]
{
"applyStatus"
,
"applyReason"
});
}
else
{
List
<
ExpertEvaluationStepLogInfo
>
expertEvaluationStepLogInfoList
=
ExpertEvaluationStepLogInfoUtils
.
getExpertEvaluationStepLogInfo
(
everyExpertEvaluationStep
.
getApplyReason
());
Date
date
=
NowTimeUtils
.
getNowDate
();
ExpertEvaluationStepLogInfo
info
=
new
ExpertEvaluationStepLogInfo
(
rebackReasonText
.
getText
(),
Constants
.
USER
.
getUserName
(),
Constants
.
USER
.
getUserAccount
(),
Constants
.
USER
.
getIdCard
(),
"01"
,
date
,
date
,
Constants
.
USER
.
getUserName
(),
Constants
.
USER
.
getIdCard
(),
Constants
.
USER
.
getUserAccount
());
expertEvaluationStepLogInfoList
.
add
(
info
);
everyExpertEvaluationStep
.
setApplyStatus
(
null
);
everyExpertEvaluationStep
.
setApplyReason
(
JsonUtil
.
jsonObjectToStr
(
expertEvaluationStepLogInfoList
));
stepService
.
updateAssignProperty
(
everyExpertEvaluationStep
,
new
String
[]
{
"applyStatus"
,
"applyReason"
});
// if (null != everyExpertEvaluationStep.getApplyStatus() && everyExpertEvaluationStep.getApplyStatus().equals(CommonEnum.YES)) {
// everyExpertEvaluationStep.setApplyStatus(null);
// stepService.updateAssignProperty(everyExpertEvaluationStep, new String[] { "applyStatus", "applyReason" });
// } else {
// List<ExpertEvaluationStepLogInfo> expertEvaluationStepLogInfoList = ExpertEvaluationStepLogInfoUtils.getExpertEvaluationStepLogInfo(everyExpertEvaluationStep.getApplyReason());
// Date date = NowTimeUtils.getNowDate();
// ExpertEvaluationStepLogInfo info = new ExpertEvaluationStepLogInfo(rebackReasonText.getText(), Constants.USER.getUserName(), Constants.USER.getUserAccount(), Constants.USER.getIdCard(), "01", date, date, Constants.USER.getUserName(), Constants.USER.getIdCard(), Constants.USER.getUserAccount());
// expertEvaluationStepLogInfoList.add(info);
// everyExpertEvaluationStep.setApplyStatus(null);
// everyExpertEvaluationStep.setApplyReason(JsonUtil.jsonObjectToStr(expertEvaluationStepLogInfoList));
// stepService.updateAssignProperty(everyExpertEvaluationStep, new String[] { "applyStatus", "applyReason" });
// }
if
(!
isApply
){
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
StringBuilder
reason
=
new
StringBuilder
();
if
(
everyExpertEvaluationStep
.
getApplyReason
().
length
()
>
0
){
reason
.
append
(
everyExpertEvaluationStep
.
getApplyReason
());
reason
.
append
(
"\r\n"
);
}
reason
.
append
(
format
.
format
(
NowTimeUtils
.
getNowDate
()));
reason
.
append
(
"\r\n "
);
reason
.
append
(
rebackReasonText
.
getText
().
trim
());
everyExpertEvaluationStep
.
setApplyReason
(
reason
.
toString
());
}
everyExpertEvaluationStep
.
setApplyStatus
(
null
);
stepService
.
updateAssignProperty
(
everyExpertEvaluationStep
,
new
String
[]
{
"applyStatus"
,
"applyReason"
});
}
}
// //如果是废标
...
...
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