|
@@ -5,9 +5,11 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives10Dao;
|
|
|
+import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives11Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives12Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives13Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives14Dao;
|
|
|
+import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives15Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives1Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives2Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives3Dao;
|
|
@@ -15,6 +17,7 @@ import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives4Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives5Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives6Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives7Dao;
|
|
|
+import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives8Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives9Dao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchivesDao;
|
|
|
import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchivesMainDao;
|
|
@@ -23,15 +26,18 @@ import thyyxxk.webserver.entity.dictionary.CodeName;
|
|
|
import thyyxxk.webserver.entity.login.UserInfo;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives1;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives10;
|
|
|
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives11;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives12;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives13;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives14;
|
|
|
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives15;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives2;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives3;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives4;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives5;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives6;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives7;
|
|
|
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives8;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives9;
|
|
|
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchivesMain;
|
|
|
import thyyxxk.webserver.service.redislike.RedisLikeService;
|
|
@@ -83,12 +89,19 @@ public class TechnologyArchivesService {
|
|
|
|
|
|
private final TechnologyArchives14Dao fourteenthDao;
|
|
|
|
|
|
+ private final TechnologyArchives8Dao eighthDao;
|
|
|
+
|
|
|
+ private final TechnologyArchives11Dao eleventhDao;
|
|
|
+
|
|
|
+ private final TechnologyArchives15Dao fifteenthDao;
|
|
|
+
|
|
|
@Autowired
|
|
|
public TechnologyArchivesService(TechnologyArchivesDao dao, TechnologyArchivesMainDao mainDao, RedisLikeService redisLikeService,
|
|
|
TechnologyArchives1Dao firstDao, TechnologyArchives2Dao secondDao, TechnologyArchives3Dao thirdDao,
|
|
|
TechnologyArchives4Dao fourthDao, TechnologyArchives5Dao fifthDao, TechnologyArchives6Dao sixthDao,
|
|
|
TechnologyArchives7Dao seventhDao, TechnologyArchives9Dao ninthDao, TechnologyArchives10Dao tenthDao,
|
|
|
- TechnologyArchives12Dao twelfthDao, TechnologyArchives13Dao thirteenthDao, TechnologyArchives14Dao fourteenthDao) {
|
|
|
+ TechnologyArchives12Dao twelfthDao, TechnologyArchives13Dao thirteenthDao, TechnologyArchives14Dao fourteenthDao,
|
|
|
+ TechnologyArchives8Dao eighthDao, TechnologyArchives11Dao eleventhDao, TechnologyArchives15Dao fifteenthDao) {
|
|
|
this.dao = dao;
|
|
|
this.mainDao = mainDao;
|
|
|
this.redisLikeService = redisLikeService;
|
|
@@ -104,6 +117,9 @@ public class TechnologyArchivesService {
|
|
|
this.twelfthDao = twelfthDao;
|
|
|
this.thirteenthDao = thirteenthDao;
|
|
|
this.fourteenthDao = fourteenthDao;
|
|
|
+ this.eighthDao = eighthDao;
|
|
|
+ this.eleventhDao = eleventhDao;
|
|
|
+ this.fifteenthDao = fifteenthDao;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1073,7 +1089,6 @@ public class TechnologyArchivesService {
|
|
|
resultMap.put("cg", "保存继续教育学分获得情况成功!");
|
|
|
return ResultVoUtil.success(resultMap);
|
|
|
} catch(Exception e){
|
|
|
- e.printStackTrace();
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存继续教育学分获得情况失败!");
|
|
|
}
|
|
|
}
|
|
@@ -1102,4 +1117,232 @@ public class TechnologyArchivesService {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除继续教育学分获得情况失败!");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 查询限制类医疗技术档案
|
|
|
+ * @Author hsh
|
|
|
+ * @return TechnologyArchives8 限制类医疗技术档案
|
|
|
+ * @Date 2024/7/18 9:59
|
|
|
+ */
|
|
|
+ public ResultVo<List<TechnologyArchives8>> selectTechnologyArchives8() {
|
|
|
+ UserInfo user = redisLikeService.getUserInfoByToken();
|
|
|
+ List<TechnologyArchives8> list = eighthDao.selectEighthListByCode(null, user.getCode());
|
|
|
+ return ResultVoUtil.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 根据身份证号更新限制类医疗技术档案
|
|
|
+ * @Author hsh
|
|
|
+ * @param eighth 限制类医疗技术档案
|
|
|
+ * @return map
|
|
|
+ * @Date 2024/7/18 10:05
|
|
|
+ */
|
|
|
+ public ResultVo<Map<String, Object>> saveTechnologyArchives8(TechnologyArchives8 eighth){
|
|
|
+
|
|
|
+ if(null == eighth || eighth.getSocialNo() == null){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "限制类医疗技术档案信息不全,请检查!");
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
+ String socialNo = eighth.getSocialNo();
|
|
|
+ Integer id = eighth.getId();
|
|
|
+ TechnologyArchives8 ta8 = eighthDao.selectTechnologyArchives8ById(socialNo, id);
|
|
|
+
|
|
|
+ int num;
|
|
|
+ try{
|
|
|
+ if(null != ta8){
|
|
|
+ num = eighthDao.updateTechnologyArchives8ById(eighth);
|
|
|
+ } else {
|
|
|
+ UserInfo user = redisLikeService.getUserInfoByToken();
|
|
|
+ int maxId = eighthDao.selectTechnologyArchives8MaxId(socialNo);
|
|
|
+ eighth.setAccount(user.getCode());
|
|
|
+ eighth.setId(maxId + 1);
|
|
|
+ num = eighthDao.insert(eighth);
|
|
|
+ }
|
|
|
+ if(num == 0){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存限制类医疗技术档案失败!");
|
|
|
+ }
|
|
|
+ resultMap.put("cg", "保存限制类医疗技术档案成功!");
|
|
|
+ return ResultVoUtil.success(resultMap);
|
|
|
+ } catch(Exception e){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存限制类医疗技术档案失败!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 根据身份证号,id删除限制类医疗技术档案
|
|
|
+ * @Author hsh
|
|
|
+ * @param socialNo 身份证号 id
|
|
|
+ * @return map
|
|
|
+ * @Date 2024/7/18 10:06
|
|
|
+ */
|
|
|
+ public ResultVo<Map<String, Object>> delTechnologyArchives8ByCode(String socialNo, Integer id) {
|
|
|
+ if (StringUtil.isBlank(socialNo)) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
+ try{
|
|
|
+ int num = eighthDao.delTechnologyArchives8ByCode(socialNo, id);
|
|
|
+ if(num == 0){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除限制类医疗技术档案失败!");
|
|
|
+ }
|
|
|
+ resultMap.put("cg", "删除限制类医疗技术档案成功!");
|
|
|
+ return ResultVoUtil.success(resultMap);
|
|
|
+ } catch(Exception e){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除限制类医疗技术档案失败!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 查询医疗安全行为记录
|
|
|
+ * @Author hsh
|
|
|
+ * @return TechnologyArchives11 医疗安全行为记录
|
|
|
+ * @Date 2024/7/18 11:31
|
|
|
+ */
|
|
|
+ public ResultVo<List<TechnologyArchives11>> selectTechnologyArchives11() {
|
|
|
+ UserInfo user = redisLikeService.getUserInfoByToken();
|
|
|
+ List<TechnologyArchives11> list = eleventhDao.selectEleventhListByCode(null, user.getCode());
|
|
|
+ return ResultVoUtil.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 根据身份证号更新医疗安全行为记录
|
|
|
+ * @Author hsh
|
|
|
+ * @param eleventh 医疗安全行为记录
|
|
|
+ * @return map
|
|
|
+ * @Date 2024/7/18 11:32
|
|
|
+ */
|
|
|
+ public ResultVo<Map<String, Object>> saveTechnologyArchives11(TechnologyArchives11 eleventh){
|
|
|
+
|
|
|
+ if(null == eleventh || eleventh.getSocialNo() == null){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医疗安全行为记录信息不全,请检查!");
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
+ String socialNo = eleventh.getSocialNo();
|
|
|
+ Integer id = eleventh.getId();
|
|
|
+ TechnologyArchives11 ta11 = eleventhDao.selectTechnologyArchives11ById(socialNo, id);
|
|
|
+
|
|
|
+ int num;
|
|
|
+ try{
|
|
|
+ if(null != ta11){
|
|
|
+ num = eleventhDao.updateTechnologyArchives11ById(eleventh);
|
|
|
+ } else {
|
|
|
+ UserInfo user = redisLikeService.getUserInfoByToken();
|
|
|
+ int maxId = eleventhDao.selectTechnologyArchives11MaxId(socialNo);
|
|
|
+ eleventh.setAccount(user.getCode());
|
|
|
+ eleventh.setId(maxId + 1);
|
|
|
+ num = eleventhDao.insert(eleventh);
|
|
|
+ }
|
|
|
+ if(num == 0){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存医疗安全行为记录失败!");
|
|
|
+ }
|
|
|
+ resultMap.put("cg", "保存医疗安全行为记录成功!");
|
|
|
+ return ResultVoUtil.success(resultMap);
|
|
|
+ } catch(Exception e){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存医疗安全行为记录失败!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 根据身份证号,id删除医疗安全行为记录
|
|
|
+ * @Author hsh
|
|
|
+ * @param socialNo 身份证号 id
|
|
|
+ * @return map
|
|
|
+ * @Date 2024/7/18 11:34
|
|
|
+ */
|
|
|
+ public ResultVo<Map<String, Object>> delTechnologyArchives11ByCode(String socialNo, Integer id) {
|
|
|
+ if (StringUtil.isBlank(socialNo)) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
+ try{
|
|
|
+ int num = eleventhDao.delTechnologyArchives11ByCode(socialNo, id);
|
|
|
+ if(num == 0){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除医疗安全行为记录失败!");
|
|
|
+ }
|
|
|
+ resultMap.put("cg", "删除医疗安全行为记录成功!");
|
|
|
+ return ResultVoUtil.success(resultMap);
|
|
|
+ } catch(Exception e){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除医疗安全行为记录失败!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 查询应用医疗技术权限记录
|
|
|
+ * @Author hsh
|
|
|
+ * @return TechnologyArchives15 应用医疗技术权限记录
|
|
|
+ * @Date 2024/7/18 15:42
|
|
|
+ */
|
|
|
+ public ResultVo<List<TechnologyArchives15>> selectTechnologyArchives15() {
|
|
|
+ UserInfo user = redisLikeService.getUserInfoByToken();
|
|
|
+ List<TechnologyArchives15> list = fifteenthDao.selectFifteenthListByCode(null, user.getCode());
|
|
|
+ return ResultVoUtil.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 根据身份证号更新应用医疗技术权限记录
|
|
|
+ * @Author hsh
|
|
|
+ * @param fifteenth 应用医疗技术权限记录
|
|
|
+ * @return map
|
|
|
+ * @Date 2024/7/18 15:46
|
|
|
+ */
|
|
|
+ public ResultVo<Map<String, Object>> saveTechnologyArchives15(TechnologyArchives15 fifteenth){
|
|
|
+
|
|
|
+ if(null == fifteenth || fifteenth.getSocialNo() == null){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "应用医疗技术权限记录信息不全,请检查!");
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
+ String socialNo = fifteenth.getSocialNo();
|
|
|
+ Integer id = fifteenth.getId();
|
|
|
+ TechnologyArchives15 ta15 = fifteenthDao.selectTechnologyArchives15ById(socialNo, id);
|
|
|
+
|
|
|
+ int num;
|
|
|
+ try{
|
|
|
+ if(null != ta15){
|
|
|
+ num = fifteenthDao.updateTechnologyArchives15ById(fifteenth);
|
|
|
+ } else {
|
|
|
+ UserInfo user = redisLikeService.getUserInfoByToken();
|
|
|
+ int maxId = fifteenthDao.selectTechnologyArchives15MaxId(socialNo);
|
|
|
+ fifteenth.setAccount(user.getCode());
|
|
|
+ fifteenth.setId(maxId + 1);
|
|
|
+ num = fifteenthDao.insert(fifteenth);
|
|
|
+ }
|
|
|
+ if(num == 0){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存应用医疗技术权限记录失败!");
|
|
|
+ }
|
|
|
+ resultMap.put("cg", "保存应用医疗技术权限记录成功!");
|
|
|
+ return ResultVoUtil.success(resultMap);
|
|
|
+ } catch(Exception e){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存应用医疗技术权限记录失败!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description 根据身份证号,id删除应用医疗技术权限记录
|
|
|
+ * @Author hsh
|
|
|
+ * @param socialNo 身份证号 id
|
|
|
+ * @return map
|
|
|
+ * @Date 2024/7/18 15:48
|
|
|
+ */
|
|
|
+ public ResultVo<Map<String, Object>> delTechnologyArchives15ByCode(String socialNo, Integer id) {
|
|
|
+ if (StringUtil.isBlank(socialNo)) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
+ try{
|
|
|
+ int num = fifteenthDao.delTechnologyArchives15ByCode(socialNo, id);
|
|
|
+ if(num == 0){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除医疗安全行为记录失败!");
|
|
|
+ }
|
|
|
+ resultMap.put("cg", "删除医疗安全行为记录成功!");
|
|
|
+ return ResultVoUtil.success(resultMap);
|
|
|
+ } catch(Exception e){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除医疗安全行为记录失败!");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|