|
@@ -7,7 +7,10 @@ import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.web.controller.BaseController;
|
|
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
|
|
import com.ruoyi.common.security.utils.SecurityUtils;
|
|
|
+import com.ruoyi.system.api.RemoteMaterialService;
|
|
|
+import com.ruoyi.system.api.RemotePlanService;
|
|
|
import com.ruoyi.system.api.domain.BsExpert;
|
|
|
+import com.ruoyi.system.api.domain.PpmProcurementPlan;
|
|
|
import com.ruoyi.system.api.domain.SysUser;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -60,6 +63,18 @@ public class ExpertMarkController extends BaseController{
|
|
|
@Autowired
|
|
|
private IScoreSummaryService scoreSummaryService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IBidIdeaService bidIdeaService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IBidTenderService bidTenderService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private RemotePlanService remotePlanService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private RemoteMaterialService remoteMaterialService;
|
|
|
+
|
|
|
// 查询全部评分细则
|
|
|
@GetMapping("/getMarkDetail")
|
|
|
public AjaxResult getMarkDetail(@RequestParam("sid") Long sid){
|
|
@@ -294,9 +309,11 @@ public class ExpertMarkController extends BaseController{
|
|
|
List<BidExpertRespond> respondDetails = bidExpertRespondService.selectBidExpertRespondList(bidExpertRespond);
|
|
|
List<BidExpertTech> techDetails = bidExpertTechService.selectBidExpertTechList(bidExpertTech);
|
|
|
mark.setSid(sid);
|
|
|
- mark.setsName(info.getsName());
|
|
|
- mark.setuKaiTime(info.getuKaiTime());
|
|
|
- mark.setuKaiPosition(info.getuKaiPosition());
|
|
|
+ if(info != null){
|
|
|
+ mark.setsName(info.getsName());
|
|
|
+ mark.setuKaiTime(info.getuKaiTime());
|
|
|
+ mark.setuKaiPosition(info.getuKaiPosition());
|
|
|
+ }
|
|
|
mark.setBidExpertExamines(examineDetails);
|
|
|
mark.setBidExpertResponds(respondDetails);
|
|
|
mark.setBidExpertTeches(techDetails);
|
|
@@ -315,32 +332,54 @@ public class ExpertMarkController extends BaseController{
|
|
|
Long jid = bsExpert.getJid();
|
|
|
String jName = bsExpert.getjName();
|
|
|
|
|
|
- List<BidExpertExamine> bidExpertExamines = mark.getBidExpertExamines();
|
|
|
- List<BidExpertRespond> bidExpertResponds = mark.getBidExpertResponds();
|
|
|
- List<BidExpertTech> bidExpertTeches = mark.getBidExpertTeches();
|
|
|
+ BidCommittee bidCommittee = new BidCommittee();
|
|
|
+ bidCommittee.setJid(jid);
|
|
|
+ bidCommittee.setSid(mark.getSid());
|
|
|
+ bidCommittee.setIsLeader(1);
|
|
|
|
|
|
- for (BidExpertExamine bidExpertExamine : bidExpertExamines){
|
|
|
- if(bidExpertExamine.getId() != null){
|
|
|
- bidExpertExamineService.updateBidExpertExamine(bidExpertExamine);
|
|
|
- }else {
|
|
|
- bidExpertExamine.setJid(jid);
|
|
|
- bidExpertExamine.setjName(jName);
|
|
|
- bidExpertExamine.setUserId(userId);
|
|
|
- bidExpertExamineService.insertBidExpertExamine(bidExpertExamine);
|
|
|
+ List<BidCommittee> bidCommittees = bidCommitteeService.selectBidCommitteeList(bidCommittee);
|
|
|
+ if(!CollectionUtils.isEmpty(bidCommittees)){
|
|
|
+ BidIdea bidIdea = new BidIdea();
|
|
|
+ bidIdea.setSid(mark.getSid());
|
|
|
+ bidIdea.setHid(mark.getHid());
|
|
|
+ List<BidIdea> bidIdeas = bidIdeaService.selectBidIdeaList(bidIdea);
|
|
|
+ if(mark.getIdea() != null){
|
|
|
+ bidIdea.setIdea(mark.getIdea());
|
|
|
+ if(bidIdeas.size() == 0){
|
|
|
+ bidIdeaService.insertBidIdea(bidIdea);
|
|
|
+ }else {
|
|
|
+ bidIdea.setId(bidIdeas.get(0).getId());
|
|
|
+ bidIdeaService.updateBidIdea(bidIdea);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- for(BidExpertRespond bidExpertRespond : bidExpertResponds){
|
|
|
- if(bidExpertRespond.getId() != null){
|
|
|
- bidExpertRespondService.updateBidExpertRespond(bidExpertRespond);
|
|
|
- }else {
|
|
|
- bidExpertRespond.setJid(jid);
|
|
|
- bidExpertRespond.setjName(jName);
|
|
|
- bidExpertRespond.setUserId(userId);
|
|
|
- bidExpertRespondService.insertBidExpertRespond(bidExpertRespond);
|
|
|
+ List<BidExpertExamine> bidExpertExamines = mark.getBidExpertExamines();
|
|
|
+ List<BidExpertRespond> bidExpertResponds = mark.getBidExpertResponds();
|
|
|
+
|
|
|
+ for (BidExpertExamine bidExpertExamine : bidExpertExamines){
|
|
|
+ if(bidExpertExamine.getId() != null){
|
|
|
+ bidExpertExamineService.updateBidExpertExamine(bidExpertExamine);
|
|
|
+ }else {
|
|
|
+ bidExpertExamine.setJid(jid);
|
|
|
+ bidExpertExamine.setjName(jName);
|
|
|
+ bidExpertExamine.setUserId(userId);
|
|
|
+ bidExpertExamineService.insertBidExpertExamine(bidExpertExamine);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for(BidExpertRespond bidExpertRespond : bidExpertResponds){
|
|
|
+ if(bidExpertRespond.getId() != null){
|
|
|
+ bidExpertRespondService.updateBidExpertRespond(bidExpertRespond);
|
|
|
+ }else {
|
|
|
+ bidExpertRespond.setJid(jid);
|
|
|
+ bidExpertRespond.setjName(jName);
|
|
|
+ bidExpertRespond.setUserId(userId);
|
|
|
+ bidExpertRespondService.insertBidExpertRespond(bidExpertRespond);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ List<BidExpertTech> bidExpertTeches = mark.getBidExpertTeches();
|
|
|
for (BidExpertTech bidExpertTech : bidExpertTeches){
|
|
|
if(bidExpertTech.getId() != null){
|
|
|
bidExpertTechService.updateBidExpertTech(bidExpertTech);
|
|
@@ -367,57 +406,53 @@ public class ExpertMarkController extends BaseController{
|
|
|
return success("没有报价信息");
|
|
|
}
|
|
|
|
|
|
- BigDecimal fullScore = new BigDecimal("7.00");
|
|
|
-
|
|
|
- BigDecimal middle = new BigDecimal(0);
|
|
|
- if(bidQuotes.size() >= 5){
|
|
|
- for (int i = 0; i < bidQuotes.size() ; i++) {
|
|
|
- if(i != 0 && i != bidQuotes.size() - 1){
|
|
|
- middle = middle.add(bidQuotes.get(i).getQuotePrice());
|
|
|
- }
|
|
|
- }
|
|
|
- middle = middle.divide(new BigDecimal(bidQuotes.size() - 2),2, RoundingMode.HALF_UP);
|
|
|
- } else {
|
|
|
- for (int i = 0; i < bidQuotes.size(); i++) {
|
|
|
- middle = middle.add(bidQuotes.get(i).getQuotePrice());
|
|
|
+ // 基准值
|
|
|
+ BigDecimal middle = bidQuotes.get(0).getQuotePrice();
|
|
|
+ List<BidQuote> bidQuoteList = new ArrayList<>();
|
|
|
+ List<Long> hids = bidInfoService.getHids(sid);
|
|
|
+ for(BidQuote item : bidQuotes){
|
|
|
+ if(!hids.contains(item.getHid())){
|
|
|
+ bidQuoteList.add(item);
|
|
|
}
|
|
|
- middle = middle.divide(new BigDecimal(bidQuotes.size()),2, RoundingMode.HALF_UP);
|
|
|
}
|
|
|
- BigDecimal standard = middle.multiply(new BigDecimal("0.01"));
|
|
|
- for(BidQuote item :bidQuotes){
|
|
|
- String hName = bidInfoService.getSupplierByhid(item.getHid());
|
|
|
- QuoteScore score = new QuoteScore();
|
|
|
- score.setSid(sid);
|
|
|
- score.setHid(item.getHid());
|
|
|
- score.sethName(hName);
|
|
|
- score.setLevel(middle);
|
|
|
- score.setQuotePrice(item.getQuotePrice());
|
|
|
- BigDecimal percent = item.getQuotePrice().subtract(middle).divide(middle,4,RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
- score.setPercent(percent);
|
|
|
- BigDecimal relScore = new BigDecimal(0);
|
|
|
-
|
|
|
- if(item.getQuotePrice().compareTo(middle) > 0){
|
|
|
- BigDecimal divide = item.getQuotePrice().subtract(middle).divide(standard,2,RoundingMode.HALF_UP);
|
|
|
- divide = divide.setScale(0,RoundingMode.DOWN);
|
|
|
- if(divide.compareTo(new BigDecimal(0)) == 0){
|
|
|
- relScore = fullScore.subtract(item.getQuotePrice().subtract(middle).divide(standard,2,RoundingMode.HALF_UP).multiply(new BigDecimal("0.6")));
|
|
|
- } else {
|
|
|
- relScore = fullScore.subtract(divide.multiply(new BigDecimal("0.6")));
|
|
|
- }
|
|
|
|
|
|
- } else if(item.getQuotePrice().compareTo(middle) < 0){
|
|
|
- BigDecimal divide = middle.subtract(item.getQuotePrice()).divide(standard,2,RoundingMode.HALF_UP);
|
|
|
- divide = divide.setScale(0,RoundingMode.DOWN);
|
|
|
- if(divide.compareTo(new BigDecimal(0)) == 0){
|
|
|
- relScore = fullScore.subtract(middle.subtract(item.getQuotePrice()).divide(standard,2,RoundingMode.HALF_UP).multiply(new BigDecimal("0.6")));
|
|
|
- } else{
|
|
|
- relScore = fullScore.subtract(divide.multiply(new BigDecimal("0.5")));
|
|
|
- }
|
|
|
- } else{
|
|
|
- relScore = fullScore;
|
|
|
+ BidTender bidTender = bidTenderService.selectBidTenderBySid(sid);
|
|
|
+ PpmProcurementPlan plan = remotePlanService.getPlan(bidTender.getXyId(), SecurityConstants.INNER);
|
|
|
+ Long materialId = plan.getMaterialId();
|
|
|
+
|
|
|
+ // 报价得分计算
|
|
|
+ if(materialId == 39 || materialId == 40 || materialId == 41 || materialId == 42){
|
|
|
+ for(BidQuote item : bidQuoteList){
|
|
|
+ String hName = bidInfoService.getSupplierByhid(item.getHid());
|
|
|
+ QuoteScore score = new QuoteScore();
|
|
|
+ score.setSid(sid);
|
|
|
+ score.setHid(item.getHid());
|
|
|
+ score.sethName(hName);
|
|
|
+ score.setLevel(middle);
|
|
|
+ score.setQuotePrice(item.getQuotePrice());
|
|
|
+ BigDecimal percent = item.getQuotePrice().subtract(middle).divide(middle,4,RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
+ score.setPercent(percent);
|
|
|
+ BigDecimal relScore = new BigDecimal(0);
|
|
|
+ relScore = middle.divide(item.getQuotePrice(),10,RoundingMode.HALF_UP).multiply(new BigDecimal("10")).setScale(2,RoundingMode.HALF_UP);
|
|
|
+ score.setScore(relScore);
|
|
|
+ scores.add(score);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ for(BidQuote item : bidQuoteList){
|
|
|
+ String hName = bidInfoService.getSupplierByhid(item.getHid());
|
|
|
+ QuoteScore score = new QuoteScore();
|
|
|
+ score.setSid(sid);
|
|
|
+ score.setHid(item.getHid());
|
|
|
+ score.sethName(hName);
|
|
|
+ score.setLevel(middle);
|
|
|
+ score.setQuotePrice(item.getQuotePrice());
|
|
|
+ BigDecimal percent = item.getQuotePrice().subtract(middle).divide(middle,4,RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|
|
|
+ score.setPercent(percent);
|
|
|
+ BigDecimal relScore = new BigDecimal(0);
|
|
|
+ relScore = middle.divide(item.getQuotePrice(),10,RoundingMode.HALF_UP).multiply(new BigDecimal("30")).setScale(2,RoundingMode.HALF_UP);
|
|
|
+ score.setScore(relScore);
|
|
|
+ scores.add(score);
|
|
|
}
|
|
|
- score.setScore(relScore);
|
|
|
- scores.add(score);
|
|
|
}
|
|
|
return success(scores);
|
|
|
}
|
|
@@ -436,101 +471,104 @@ public class ExpertMarkController extends BaseController{
|
|
|
return success("没有报价信息");
|
|
|
}
|
|
|
|
|
|
- BigDecimal fullScore = new BigDecimal("7.00");
|
|
|
-
|
|
|
- BigDecimal middle = new BigDecimal(0);
|
|
|
- if(bidQuotes.size() >= 5){
|
|
|
- for (int i = 0; i < bidQuotes.size() ; i++) {
|
|
|
- if(i != 0 && i != bidQuotes.size() - 1){
|
|
|
- middle = middle.add(bidQuotes.get(i).getQuotePrice());
|
|
|
- }
|
|
|
- }
|
|
|
- middle = middle.divide(new BigDecimal(bidQuotes.size() - 2),2, RoundingMode.HALF_UP);
|
|
|
- } else {
|
|
|
- for (int i = 0; i < bidQuotes.size(); i++) {
|
|
|
- middle = middle.add(bidQuotes.get(i).getQuotePrice());
|
|
|
+ // 基准值
|
|
|
+ BigDecimal middle = bidQuotes.get(0).getQuotePrice();
|
|
|
+ List<BidQuote> bidQuoteList = new ArrayList<>();
|
|
|
+ List<Long> hids = bidInfoService.getHids(sid);
|
|
|
+ for(BidQuote item : bidQuotes){
|
|
|
+ if(!hids.contains(item.getHid())){
|
|
|
+ bidQuoteList.add(item);
|
|
|
}
|
|
|
- middle = middle.divide(new BigDecimal(bidQuotes.size()),2, RoundingMode.HALF_UP);
|
|
|
}
|
|
|
- BigDecimal standard = middle.multiply(new BigDecimal("0.01"));
|
|
|
-
|
|
|
- for(BidQuote item : bidQuotes){
|
|
|
- TotalScore totalScore = new TotalScore();
|
|
|
- totalScore.setSid(sid);
|
|
|
- String hName = bidInfoService.getSupplierByhid(item.getHid());
|
|
|
- totalScore.setHid(item.getHid());
|
|
|
- totalScore.sethName(hName);
|
|
|
-
|
|
|
- BigDecimal priceScore = new BigDecimal(0);
|
|
|
-
|
|
|
- if(item.getQuotePrice().compareTo(middle) > 0){
|
|
|
- BigDecimal divide = item.getQuotePrice().subtract(middle).divide(standard,2,RoundingMode.HALF_UP);
|
|
|
- divide = divide.setScale(0,RoundingMode.DOWN);
|
|
|
- if(divide.compareTo(new BigDecimal(0)) == 0){
|
|
|
- priceScore = fullScore.subtract(item.getQuotePrice().subtract(middle).divide(standard,2,RoundingMode.HALF_UP).multiply(new BigDecimal("0.6")));
|
|
|
- } else {
|
|
|
- priceScore = fullScore.subtract(divide.multiply(new BigDecimal("0.6")));
|
|
|
- }
|
|
|
|
|
|
- } else if(item.getQuotePrice().compareTo(middle) < 0){
|
|
|
- BigDecimal divide = middle.subtract(item.getQuotePrice()).divide(standard,2,RoundingMode.HALF_UP);
|
|
|
- divide = divide.setScale(0,RoundingMode.DOWN);
|
|
|
- if(divide.compareTo(new BigDecimal(0)) == 0){
|
|
|
- priceScore = fullScore.subtract(middle.subtract(item.getQuotePrice()).divide(standard,2,RoundingMode.HALF_UP).multiply(new BigDecimal("0.6")));
|
|
|
- } else{
|
|
|
- priceScore = fullScore.subtract(divide.multiply(new BigDecimal("0.5")));
|
|
|
+ BidTender bidTender = bidTenderService.selectBidTenderBySid(sid);
|
|
|
+ PpmProcurementPlan plan = remotePlanService.getPlan(bidTender.getXyId(), SecurityConstants.INNER);
|
|
|
+ Long materialId = plan.getMaterialId();
|
|
|
+
|
|
|
+ // 报价得分计算
|
|
|
+ if(materialId == 39 || materialId == 40 || materialId == 41 || materialId == 42){
|
|
|
+ for(BidQuote item : bidQuoteList){
|
|
|
+ TotalScore totalScore = new TotalScore();
|
|
|
+ totalScore.setSid(sid);
|
|
|
+ String hName = bidInfoService.getSupplierByhid(item.getHid());
|
|
|
+ totalScore.setHid(item.getHid());
|
|
|
+ totalScore.sethName(hName);
|
|
|
+ BigDecimal priceScore = new BigDecimal(0);
|
|
|
+ priceScore = middle.divide(item.getQuotePrice(),10,RoundingMode.HALF_UP).multiply(new BigDecimal(10)).setScale(2,RoundingMode.HALF_UP);
|
|
|
+ totalScore.setPriceScore(priceScore);
|
|
|
+ List<TechScore> techScores = bidInfoService.getTechScore(sid);
|
|
|
+ List<TechScore> techScores1 = new ArrayList<>();
|
|
|
+
|
|
|
+ int size = 0;
|
|
|
+ Double total = 0.0;
|
|
|
+ for (TechScore techScore : techScores){
|
|
|
+ if(techScore.getHid().equals(item.getHid())){
|
|
|
+ size++;
|
|
|
+ total += techScore.getScore();
|
|
|
+ techScores1.add(techScore);
|
|
|
+ }
|
|
|
}
|
|
|
- } else{
|
|
|
- priceScore = fullScore;
|
|
|
+ totalScore.setTechList(techScores1);
|
|
|
+ BigDecimal averageScore = new BigDecimal(total.toString()).divide(new BigDecimal(String.valueOf(size)),2,RoundingMode.HALF_UP);
|
|
|
+ totalScore.setAverScore(averageScore);
|
|
|
+ totalScore.setTotalScore(averageScore.add(priceScore));
|
|
|
+ totalScore.setSize(size);
|
|
|
+ list.add(totalScore);
|
|
|
}
|
|
|
-
|
|
|
- totalScore.setPriceScore(priceScore);
|
|
|
- List<TechScore> techScores = bidInfoService.getTechScore(sid);
|
|
|
- List<TechScore> techScores1 = new ArrayList<>();
|
|
|
-
|
|
|
- int size = 0;
|
|
|
- Double total = 0.0;
|
|
|
- for (TechScore techScore : techScores){
|
|
|
- if(techScore.getHid().equals(item.getHid())){
|
|
|
- size++;
|
|
|
- total += techScore.getScore();
|
|
|
- techScores1.add(techScore);
|
|
|
+ } else {
|
|
|
+ for(BidQuote item : bidQuoteList){
|
|
|
+ TotalScore totalScore = new TotalScore();
|
|
|
+ totalScore.setSid(sid);
|
|
|
+ String hName = bidInfoService.getSupplierByhid(item.getHid());
|
|
|
+ totalScore.setHid(item.getHid());
|
|
|
+ totalScore.sethName(hName);
|
|
|
+ BigDecimal priceScore = new BigDecimal(0);
|
|
|
+ priceScore = middle.divide(item.getQuotePrice(),10,RoundingMode.HALF_UP).multiply(new BigDecimal(30)).setScale(2,RoundingMode.HALF_UP);
|
|
|
+ totalScore.setPriceScore(priceScore);
|
|
|
+
|
|
|
+ List<TechScore> techScores = bidInfoService.getTechScore(sid);
|
|
|
+ List<TechScore> techScores1 = new ArrayList<>();
|
|
|
+
|
|
|
+ int size = 0;
|
|
|
+ Double total = 0.0;
|
|
|
+ for (TechScore techScore : techScores){
|
|
|
+ if(techScore.getHid().equals(item.getHid())){
|
|
|
+ size++;
|
|
|
+ total += techScore.getScore();
|
|
|
+ techScores1.add(techScore);
|
|
|
+ }
|
|
|
}
|
|
|
+ totalScore.setTechList(techScores1);
|
|
|
+ BigDecimal averageScore = new BigDecimal(total.toString()).divide(new BigDecimal(String.valueOf(size)),2,RoundingMode.HALF_UP);
|
|
|
+ totalScore.setAverScore(averageScore);
|
|
|
+ totalScore.setTotalScore(averageScore.add(priceScore));
|
|
|
+ totalScore.setSize(size);
|
|
|
+ list.add(totalScore);
|
|
|
}
|
|
|
- totalScore.setTechList(techScores1);
|
|
|
- BigDecimal averageScore = new BigDecimal(total.toString()).divide(new BigDecimal(String.valueOf(size)),2,RoundingMode.HALF_UP);
|
|
|
- totalScore.setAverScore(averageScore);
|
|
|
- totalScore.setTotalScore(averageScore.add(priceScore));
|
|
|
- totalScore.setSize(size);
|
|
|
- list.add(totalScore);
|
|
|
}
|
|
|
-
|
|
|
Collections.sort(list);
|
|
|
-//
|
|
|
-// scoreSummaryService.deleteScoreSummaryBySid(sid);
|
|
|
-// for (int i = 0; i < list.size(); i++){
|
|
|
-// list.get(i).setSize(i+1);
|
|
|
-//
|
|
|
-// ScoreSummary scoreSummary = new ScoreSummary();
|
|
|
-// scoreSummary.setSid(sid);
|
|
|
-// scoreSummary.setHid(list.get(i).getHid());
|
|
|
-// scoreSummary.sethName(list.get(i).gethName());
|
|
|
-// List<TechScore> techList = list.get(i).getTechList();
|
|
|
-// String scoreInfo = "";
|
|
|
-// for(TechScore item : techList){
|
|
|
-// scoreInfo+=item.getjName()+","+item.getScore().toString()+";";
|
|
|
-// }
|
|
|
-// scoreSummary.setScoreInfo(scoreInfo);
|
|
|
-// scoreSummary.setPriceScore(list.get(i).getPriceScore());
|
|
|
-// scoreSummary.setAverScore(list.get(i).getAverScore());
|
|
|
-// scoreSummary.setTotalScore(list.get(i).getTotalScore());
|
|
|
-// scoreSummary.setSort(Long.valueOf(i+1));
|
|
|
-// scoreSummaryService.insertScoreSummary(scoreSummary);
|
|
|
-// }
|
|
|
|
|
|
+ scoreSummaryService.deleteScoreSummaryBySid(sid);
|
|
|
+ for (int i = 0; i < list.size(); i++){
|
|
|
+ list.get(i).setSize(i+1);
|
|
|
+
|
|
|
+ ScoreSummary scoreSummary = new ScoreSummary();
|
|
|
+ scoreSummary.setSid(sid);
|
|
|
+ scoreSummary.setHid(list.get(i).getHid());
|
|
|
+ scoreSummary.sethName(list.get(i).gethName());
|
|
|
+ List<TechScore> techList = list.get(i).getTechList();
|
|
|
+ String scoreInfo = "";
|
|
|
+ for(TechScore item : techList){
|
|
|
+ scoreInfo+=item.getjName()+","+item.getScore().toString()+";";
|
|
|
+ }
|
|
|
+ scoreSummary.setScoreInfo(scoreInfo);
|
|
|
+ scoreSummary.setPriceScore(list.get(i).getPriceScore());
|
|
|
+ scoreSummary.setAverScore(list.get(i).getAverScore());
|
|
|
+ scoreSummary.setTotalScore(list.get(i).getTotalScore());
|
|
|
+ scoreSummary.setSort(Long.valueOf(i+1));
|
|
|
+ scoreSummaryService.insertScoreSummary(scoreSummary);
|
|
|
+ }
|
|
|
return success(list);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|