健康报告保存接口

This commit is contained in:
limqhz
2021-03-08 15:17:40 +08:00
parent 8db822c548
commit 8cad890c1b
13 changed files with 121 additions and 58 deletions

View File

@@ -1,8 +1,6 @@
package com.sv.mapper;
import com.sv.entity.HealthDoc;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface HealthDocMapper {

View File

@@ -33,6 +33,10 @@ public class MemberHealthDocService extends MemberCardCommonService {
*/
@Transactional
public void save(HealthDoc healthDoc) {
String docPath = healthDoc.getDocPath();
String fileType = docPath.substring(docPath.lastIndexOf('.')+1).toUpperCase();
healthDoc.setFileType(fileType);
healthDoc.setPlatformId(1);
healthDocMapper.insert(healthDoc);
}