yxk-20260729
改善提案 所级评议结果:通过/不通过
This commit is contained in:
+3
-3
@@ -140,9 +140,9 @@ public class ImprovementProposal implements Serializable {
|
||||
@Excel(name = "所级评议不同意票数", width = 15)
|
||||
@Schema(description = "所级评议不同意票数")
|
||||
private Integer instituteDisagreeCount;
|
||||
/**所级评议结果:passed/failed*/
|
||||
@Excel(name = "所级评议结果:passed/failed", width = 15)
|
||||
@Schema(description = "所级评议结果:passed/failed")
|
||||
/**所级评议结果:通过/不通过*/
|
||||
@Excel(name = "所级评议结果:通过/不通过", width = 15)
|
||||
@Schema(description = "所级评议结果:通过/不通过")
|
||||
private String instituteVoteResult;
|
||||
/**金奖未通过后的经办人手动确认结果*/
|
||||
@Excel(name = "金奖未通过后的经办人手动确认结果", width = 15)
|
||||
|
||||
+6
-2
@@ -64,6 +64,8 @@ public class ImprovementProposalServiceImpl extends ServiceImpl<ImprovementPropo
|
||||
private static final String AWARD_SILVER = "1";
|
||||
private static final String AWARD_BRONZE = "2";
|
||||
private static final String AWARD_PARTICIPATION = "3";
|
||||
private static final String INSTITUTE_VOTE_RESULT_PASSED = "通过";
|
||||
private static final String INSTITUTE_VOTE_RESULT_FAILED = "不通过";
|
||||
|
||||
@Autowired
|
||||
private ImprovementProposalMapper improvementProposalMapper;
|
||||
@@ -407,7 +409,7 @@ public class ImprovementProposalServiceImpl extends ServiceImpl<ImprovementPropo
|
||||
update.setFinalAward(action.getFinalAward());
|
||||
update.setArchiveBy(loginUser.getId());
|
||||
update.setArchiveTime(new Date());
|
||||
if (AWARD_GOLD.equals(proposal.getLeaderFinalAward()) && "failed".equals(proposal.getInstituteVoteResult())) {
|
||||
if (AWARD_GOLD.equals(proposal.getLeaderFinalAward()) && INSTITUTE_VOTE_RESULT_FAILED.equals(proposal.getInstituteVoteResult())) {
|
||||
update.setManualConfirmResult("confirmed");
|
||||
}
|
||||
improvementProposalMapper.updateById(update);
|
||||
@@ -514,7 +516,9 @@ public class ImprovementProposalServiceImpl extends ServiceImpl<ImprovementPropo
|
||||
if (agreeCount + disagreeCount != totalVoters) {
|
||||
throw new IllegalStateException("所级评议投票结果不完整");
|
||||
}
|
||||
String voteResult = agreeCount * 3 >= (long) totalVoters * 2 ? "passed" : "failed";
|
||||
String voteResult = agreeCount * 3 >= (long) totalVoters * 2
|
||||
? INSTITUTE_VOTE_RESULT_PASSED
|
||||
: INSTITUTE_VOTE_RESULT_FAILED;
|
||||
ImprovementProposal update = new ImprovementProposal();
|
||||
update.setId(proposal.getId());
|
||||
update.setInstituteAgreeCount((int) agreeCount);
|
||||
|
||||
+3
-3
@@ -128,9 +128,9 @@ public class ImprovementProposalPage {
|
||||
@Excel(name = "所级评议不同意票数", width = 15)
|
||||
@Schema(description = "所级评议不同意票数")
|
||||
private Integer instituteDisagreeCount;
|
||||
/**所级评议结果:passed/failed*/
|
||||
@Excel(name = "所级评议结果:passed/failed", width = 15)
|
||||
@Schema(description = "所级评议结果:passed/failed")
|
||||
/**所级评议结果:通过/不通过*/
|
||||
@Excel(name = "所级评议结果:通过/不通过", width = 15)
|
||||
@Schema(description = "所级评议结果:通过/不通过")
|
||||
private String instituteVoteResult;
|
||||
/**金奖未通过后的经办人手动确认结果*/
|
||||
@Excel(name = "金奖未通过后的经办人手动确认结果", width = 15)
|
||||
|
||||
Reference in New Issue
Block a user