健康报告保存接口
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user