|
|
@@ -1,17 +1,19 @@
|
|
|
package thyyxxk.webserver.service.zhuyuanyisheng.emr;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.ibatis.session.SqlSession;
|
|
|
+import org.apache.ibatis.session.SqlSessionFactory;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
import thyyxxk.webserver.dao.his.zhuyuanyisheng.emr.EmrSuggestionDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
import thyyxxk.webserver.entity.dictionary.CodeName;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.emr.LinkQualityControl;
|
|
|
+import thyyxxk.webserver.utils.ListUtil;
|
|
|
import thyyxxk.webserver.utils.ResultVoUtil;
|
|
|
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* 电子病历的建议维护
|
|
|
@@ -23,10 +25,12 @@ import java.util.stream.Collectors;
|
|
|
public class EmrSuggestionService {
|
|
|
|
|
|
private final EmrSuggestionDao dao;
|
|
|
+ private final SqlSessionFactory sqlSessionFactory;
|
|
|
|
|
|
|
|
|
- public EmrSuggestionService(EmrSuggestionDao dao) {
|
|
|
+ public EmrSuggestionService(EmrSuggestionDao dao, SqlSessionFactory sqlSessionFactory) {
|
|
|
this.dao = dao;
|
|
|
+ this.sqlSessionFactory = sqlSessionFactory;
|
|
|
}
|
|
|
|
|
|
public ResultVo<List<LinkQualityControl>> getLinkQuality(String code) {
|
|
|
@@ -53,5 +57,9 @@ public class EmrSuggestionService {
|
|
|
return ResultVoUtil.success(ExceptionEnum.SUCCESS_AND_NOTIFICATION);
|
|
|
}
|
|
|
|
|
|
+ public ResultVo<String> updateSort(List<LinkQualityControl> list) {
|
|
|
+ ListUtil.batchList(list, EmrSuggestionDao.class, BaseMapper::updateById);
|
|
|
+ return ResultVoUtil.success(ExceptionEnum.SUCCESS_AND_NOTIFICATION);
|
|
|
+ }
|
|
|
|
|
|
}
|