|
@@ -89,6 +89,9 @@ public class TrainTaskQueryInterfaceController extends BaseController
|
|
|
@Autowired
|
|
|
private ISystemLabelService labelService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ITrainAppraiseService appraiseService;
|
|
|
+
|
|
|
@ApiOperation("获取系统时间")
|
|
|
@PostMapping("/getTime")
|
|
|
@ResponseBody
|
|
@@ -146,7 +149,16 @@ public class TrainTaskQueryInterfaceController extends BaseController
|
|
|
TrainTaskUser tUser = new TrainTaskUser();
|
|
|
tUser.setTaskId(practicalResult.getTaskId());
|
|
|
tUser.setUserId(Long.valueOf(map.get("userId").toString()));
|
|
|
- trainUser.setTrainPeoples(trainTaskUserService.selectTrainTaskUserLists(tUser));
|
|
|
+ List<TrainPeoplesVo> trainPeoples = trainTaskUserService.selectTrainTaskUserLists(tUser);
|
|
|
+ for (TrainPeoplesVo trainPeople : trainPeoples) {
|
|
|
+ TrainAppraise trainAppraise = new TrainAppraise();
|
|
|
+ trainAppraise.setTrainId(practicalResult.getId());
|
|
|
+ trainAppraise.setPublishUserId(Long.valueOf(map.get("userId").toString()));
|
|
|
+ trainAppraise.setUserId(trainPeople.getId());
|
|
|
+ List<TrainAppraise> trainAppraises = appraiseService.selectTrainAppraiseList(trainAppraise);
|
|
|
+ trainPeople.setStatus(trainAppraises == null || trainAppraises.isEmpty() ? 0 : 1);
|
|
|
+ }
|
|
|
+ trainUser.setTrainPeoples(trainPeoples);
|
|
|
|
|
|
TrainPracticalStepDocVo trainPracticalStepDoc = new TrainPracticalStepDocVo();
|
|
|
trainPracticalStepDoc.setId(practicalResult.getId());
|