|
|
@ -52,8 +52,6 @@ public class HealthService implements IHealthService{ |
|
|
|
//1、获取健康信息和userId
|
|
|
|
HealthDto.healthInfo healthInfo = params.getParam(); |
|
|
|
Long userId = params.getUserId(); |
|
|
|
// //2、通过userId获取成员id
|
|
|
|
// Employee employee = userService.getEmployeeByUserId(userId);
|
|
|
|
//3、保存健康信息
|
|
|
|
HealthRecords healthRecords = new HealthRecords(); |
|
|
|
healthRecords.setId(snowflake.nextId()); |
|
|
@ -61,7 +59,7 @@ public class HealthService implements IHealthService{ |
|
|
|
healthRecords.setUserId(userId); |
|
|
|
BeanUtil.copyProperties(healthInfo,healthRecords); |
|
|
|
healthRecordsDao.insertSelective(healthRecords); |
|
|
|
//4、生成健康码,返回地址
|
|
|
|
//TODO 4、生成健康码,返回地址
|
|
|
|
String qrcodeInfo = WebConstant.QRCODE_HEALTH + "?token=" + healthInfo.getToken() + "&scene=1011"; |
|
|
|
String path = QrCodeUtil.urlToQRCode(qrcodeInfo,WebConstant.UPLOAD_PATH_BASE); |
|
|
|
String qrcodePath = WebConstant.TEST_URL_BASE_HEALTH + path; |
|
|
|