|
|
@ -81,10 +81,17 @@ public class MemberController {
|
|
|
|
return new ResultEntity(HttpStatus.OK, "根据成员ID获取成员对象", member);
|
|
|
|
return new ResultEntity(HttpStatus.OK, "根据成员ID获取成员对象", member);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
|
|
|
@PostMapping("getPracticeMemberIdByStudentNumberAndPracticeTrainingId")
|
|
|
|
|
|
|
|
public ResultEntity getPracticeMemberIdByStudentNumberAndPracticeTrainingId(@RequestBody String studentNumber) {
|
|
|
|
|
|
|
|
Member member = memberService.getPracticeMemberIdByStudentNumberAndPracticeTrainingId(studentNumber,Constant.PRACTICE_TRAINING_ID);
|
|
|
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "根据学号获取成员ID", member.getMemberId());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
@AnonymousAccess
|
|
|
|
@PostMapping("getMember")
|
|
|
|
@PostMapping("getMember")
|
|
|
|
public ResultEntity getMemberId(@RequestBody JSONObject jsonObject) {
|
|
|
|
public ResultEntity getMemberId(@RequestBody JSONObject jsonObject) {
|
|
|
|
String name = jsonObject.getString("name");
|
|
|
|
String studentNumber = jsonObject.getString("studentNumber");
|
|
|
|
String trainingId = jsonObject.getString("trainingId");
|
|
|
|
String trainingId = jsonObject.getString("trainingId");
|
|
|
|
String trainingStatus=jsonObject.getString("trainingStatus");
|
|
|
|
String trainingStatus=jsonObject.getString("trainingStatus");
|
|
|
|
Integer schoolId =Constant.PRACTICE_SCHOOL_ID;
|
|
|
|
Integer schoolId =Constant.PRACTICE_SCHOOL_ID;
|
|
|
@ -94,7 +101,7 @@ public class MemberController {
|
|
|
|
if(!Constant.PRACTICE_TRAINING_ID.equals(trainingId)){
|
|
|
|
if(!Constant.PRACTICE_TRAINING_ID.equals(trainingId)){
|
|
|
|
schoolId = jsonObject.getInteger("schoolId");
|
|
|
|
schoolId = jsonObject.getInteger("schoolId");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Member member = memberService.selectByNameAndSchoolIdAndTrainingID(name, schoolId, trainingId);
|
|
|
|
Member member = memberService.selectByStudentNumberAndSchoolIdAndTrainingID(studentNumber, schoolId, trainingId);
|
|
|
|
Double positionProfitLoss=0.0;
|
|
|
|
Double positionProfitLoss=0.0;
|
|
|
|
if(!Constant.TRAINING_STATUS_FINISHED.equals(trainingStatus)){
|
|
|
|
if(!Constant.TRAINING_STATUS_FINISHED.equals(trainingStatus)){
|
|
|
|
positionProfitLoss = takeStashController.flashTotalPositionProfitLoss(member.getMemberId());
|
|
|
|
positionProfitLoss = takeStashController.flashTotalPositionProfitLoss(member.getMemberId());
|
|
|
|