|
@@ -335,6 +335,34 @@ public class ExpertMarkController extends BaseController{
|
|
mark.setBidQuotes(bidQuotes);
|
|
mark.setBidQuotes(bidQuotes);
|
|
mark.setBidIdeas(bidIdeas);
|
|
mark.setBidIdeas(bidIdeas);
|
|
mark.setExpertTeches(expertBySid);
|
|
mark.setExpertTeches(expertBySid);
|
|
|
|
+
|
|
|
|
+ if(examineDetails.size() / bidExamines.size() != bidQuotes.size()){
|
|
|
|
+ mark.setState(false);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(respondDetails.size() / bidResponds.size() != bidQuotes.size()){
|
|
|
|
+ mark.setState(false);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 存储不合格供应商ID
|
|
|
|
+// Set<Long> ids = new HashSet<>();
|
|
|
|
+// for(BidExpertExamine item : examineDetails){
|
|
|
|
+// if("不合格".equals(item.getIsOk())){
|
|
|
|
+// ids.add(item.getHid());
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// for(BidExpertRespond item : respondDetails){
|
|
|
|
+// if("不合格".equals(item.getIsOk())){
|
|
|
|
+// ids.add(item.getHid());
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+ if(expertBySid.size() / bidTeches.size() >= bidQuotes.size()){
|
|
|
|
+ mark.setState(true);
|
|
|
|
+ }else {
|
|
|
|
+ mark.setState(false);
|
|
|
|
+ }
|
|
return success(mark);
|
|
return success(mark);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -702,13 +730,11 @@ public class ExpertMarkController extends BaseController{
|
|
BidExpertRespond bidExpertRespond = new BidExpertRespond();
|
|
BidExpertRespond bidExpertRespond = new BidExpertRespond();
|
|
|
|
|
|
bidExpertExamine.setSid(sid);
|
|
bidExpertExamine.setSid(sid);
|
|
- bidExpertExamine.setUserId(userId);
|
|
|
|
|
|
|
|
bidExpertTech.setSid(sid);
|
|
bidExpertTech.setSid(sid);
|
|
bidExpertTech.setUserId(userId);
|
|
bidExpertTech.setUserId(userId);
|
|
|
|
|
|
bidExpertRespond.setSid(sid);
|
|
bidExpertRespond.setSid(sid);
|
|
- bidExpertRespond.setUserId(userId);
|
|
|
|
|
|
|
|
// 增加状态
|
|
// 增加状态
|
|
for(BidQuote item : bidQuoteList){
|
|
for(BidQuote item : bidQuoteList){
|