|
@ -47,16 +47,12 @@ public class EvaluateService extends BaseService {
|
|
|
JSONObject jsonObject = new JSONObject(jsonData);
|
|
|
String consult = jsonObject.getString("consult");
|
|
|
ConsultTeam consultTeam = consultTeamService.findByCode(consult);
|
|
|
if(consultTeam.getEvaluate()==1){
|
|
|
throw new RuntimeException("已经评价不允许重复评价!");
|
|
|
}
|
|
|
JSONArray evaluateArray = jsonObject.getJSONArray("evaluate");
|
|
|
JSONArray labelArray = jsonObject.getJSONArray("label");
|
|
|
List<Evaluate> evaluateList =null;
|
|
|
List<EvaluateLabel> evaluateLabelList = new ArrayList<>();
|
|
|
Map<String,List<Evaluate>> docEvaMap = new HashMap<>();
|
|
|
for(Object evaluateObj: evaluateArray){
|
|
|
|
|
|
Evaluate evaluate = new Evaluate();
|
|
|
JSONObject obj =(JSONObject) evaluateObj;
|
|
|
ClazzReflect clazzReflect = new ClazzReflect();
|
|
@ -70,7 +66,6 @@ public class EvaluateService extends BaseService {
|
|
|
}else{
|
|
|
docEvaMap.get(evaluate.getDoctor()).add(evaluate);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
for(Object labelObj: labelArray){
|
|
|
EvaluateLabel evaluateLabel = new EvaluateLabel();
|