|
@ -13,13 +13,11 @@ import com.ccsens.health.bean.vo.HealthVo; |
|
|
import com.ccsens.health.persist.dao.HealthQRCodeDao; |
|
|
import com.ccsens.health.persist.dao.HealthQRCodeDao; |
|
|
import com.ccsens.health.persist.dao.HealthRecordsDao; |
|
|
import com.ccsens.health.persist.dao.HealthRecordsDao; |
|
|
import com.ccsens.health.persist.dao.HealthTypeDao; |
|
|
import com.ccsens.health.persist.dao.HealthTypeDao; |
|
|
import com.ccsens.util.CodeEnum; |
|
|
import com.ccsens.util.*; |
|
|
import com.ccsens.util.DateUtil; |
|
|
|
|
|
import com.ccsens.util.QrCodeUtil; |
|
|
|
|
|
import com.ccsens.util.WebConstant; |
|
|
|
|
|
import com.ccsens.util.bean.dto.QueryDto; |
|
|
import com.ccsens.util.bean.dto.QueryDto; |
|
|
import com.ccsens.util.exception.BaseException; |
|
|
import com.ccsens.util.exception.BaseException; |
|
|
import com.ccsens.util.wx.WxXcxUtil; |
|
|
import com.ccsens.util.wx.WxXcxUtil; |
|
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonAppend; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import io.micrometer.shaded.org.pcollections.PCollection; |
|
|
import io.micrometer.shaded.org.pcollections.PCollection; |
|
@ -104,7 +102,7 @@ public class HealthService implements IHealthService{ |
|
|
String path = WebConstant.UPLOAD_PATH_BASE+fileName; |
|
|
String path = WebConstant.UPLOAD_PATH_BASE+fileName; |
|
|
WxXcxUtil.getWxCode(WebConstant.QRCODE_HEALTH |
|
|
WxXcxUtil.getWxCode(WebConstant.QRCODE_HEALTH |
|
|
,"d="+userId,color,path); |
|
|
,"d="+userId,color,path); |
|
|
String qrcodePath = WebConstant.TEST_URL_BASE_HEALTH + fileName; |
|
|
String qrcodePath = PropUtil.qrCode + fileName; |
|
|
|
|
|
|
|
|
//5、将健康码信息存入数据库
|
|
|
//5、将健康码信息存入数据库
|
|
|
HealthQRCode healthQRCode = new HealthQRCode(); |
|
|
HealthQRCode healthQRCode = new HealthQRCode(); |
|
@ -118,6 +116,7 @@ public class HealthService implements IHealthService{ |
|
|
BeanUtil.copyProperties(healthRecords,healthInfoVo); |
|
|
BeanUtil.copyProperties(healthRecords,healthInfoVo); |
|
|
healthInfoVo.setUserId(userId); |
|
|
healthInfoVo.setUserId(userId); |
|
|
healthInfoVo.setHealthCode(qrcodePath); |
|
|
healthInfoVo.setHealthCode(qrcodePath); |
|
|
|
|
|
|
|
|
return healthInfoVo; |
|
|
return healthInfoVo; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|