医案收集
This commit is contained in:
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.common.entity.*;
|
||||
import com.peanut.modules.common.service.MedicalRecordsService;
|
||||
import com.peanut.modules.common.service.TaihuTalentService;
|
||||
import com.peanut.modules.common.service.UserCertificateLabelService;
|
||||
import com.peanut.modules.common.service.UserCertificateService;
|
||||
@@ -30,6 +31,8 @@ public class TaihuTalentController {
|
||||
private UserCertificateLabelService userCertificateLabelService;
|
||||
@Autowired
|
||||
private CourseService courseService;
|
||||
@Autowired
|
||||
private MedicalRecordsService medicalRecordsService;
|
||||
|
||||
//太湖英才列表
|
||||
@RequestMapping("/getTaihuTalents")
|
||||
@@ -102,17 +105,24 @@ public class TaihuTalentController {
|
||||
res.add(label);
|
||||
}
|
||||
}
|
||||
//名医精彩
|
||||
MPJLambdaWrapper<CourseEntity> wrapper = new MPJLambdaWrapper();
|
||||
wrapper.rightJoin(CourseToTalent.class,CourseToTalent::getCourseId,CourseEntity::getId);
|
||||
wrapper.leftJoin(TaihuTalent.class,TaihuTalent::getId,CourseToTalent::getTalentId);
|
||||
wrapper.selectAll(CourseEntity.class);
|
||||
wrapper.eq(CourseToTalent::getTalentId,taihuTalent.getId());
|
||||
List<CourseEntity> courseList = courseService.list(wrapper);
|
||||
//精彩医案
|
||||
List<MedicalRecords> medicalRecords = medicalRecordsService.list(new LambdaQueryWrapper<MedicalRecords>()
|
||||
.eq(MedicalRecords::getState,3)
|
||||
.eq(MedicalRecords::getUserId,taihuTalent.getUserId())
|
||||
.orderByDesc(MedicalRecords::getTrain));
|
||||
return R.ok()
|
||||
.put("taihuTalent",taihuTalent)
|
||||
.put("label",titleLabel)
|
||||
.put("certificates",res)
|
||||
.put("courseList",courseList);
|
||||
.put("courseList",courseList)
|
||||
.put("medicalRecords",medicalRecords);
|
||||
}
|
||||
|
||||
void getUserCertificates(List<UserCertificate> us,UserCertificateLabel label,int userId){
|
||||
|
||||
Reference in New Issue
Block a user