I now have a demand, need according to the power supply unit group the score and total score of each power supply unit in which each score to the score of the power supply unit contains apanage the work order and all channels work order score, I'm going to group the total score of each power supply unit, said the first under my personal ideas, the first power supply unit and scoring information has been displayed, there is a collection of the List, when I was in for total new definition a map collections, as a key power supply unit, score as values, each time to compare with the List of inside the power supply unit, the same word could add score, score power supply unit and is as follows:
Now I am in the total score of each unit seeks out is 0, bosses, please help to see what's the problem? Thank you very much! (as follows)
CodePudding user response:
Need to get the temp and data accumulation of kj, then will write kj,
Ask, why not just use the SQL statement summary data, get the result, too much better than writing Java code,
CodePudding user response:
This score is a number of complaints, customer accounted for, out of the ranks, bad to write SQL, specific business code is as follows: