HLTechnologyArchivesService.java 81 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926
  1. package thyyxxk.webserver.service.technologyArchives;
  2. import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  3. import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
  4. import lombok.RequiredArgsConstructor;
  5. import lombok.extern.slf4j.Slf4j;
  6. import org.jetbrains.annotations.NotNull;
  7. import org.springframework.beans.factory.annotation.Value;
  8. import org.springframework.stereotype.Service;
  9. import org.springframework.web.multipart.MultipartFile;
  10. import thyyxxk.webserver.config.exception.ExceptionEnum;
  11. import thyyxxk.webserver.dao.his.technologyArchives.*;
  12. import thyyxxk.webserver.entity.ComplexSheetData;
  13. import thyyxxk.webserver.entity.HeadInfo;
  14. import thyyxxk.webserver.entity.ResultVo;
  15. import thyyxxk.webserver.entity.dictionary.CodeName;
  16. import thyyxxk.webserver.entity.login.UserInfo;
  17. import thyyxxk.webserver.entity.technologyArchives.*;
  18. import thyyxxk.webserver.service.archive.ArchiveServer;
  19. import thyyxxk.webserver.service.hutoolcache.UserCache;
  20. import thyyxxk.webserver.utils.ExcelUtil;
  21. import thyyxxk.webserver.utils.ResultVoUtil;
  22. import thyyxxk.webserver.utils.StringUtil;
  23. import javax.servlet.http.HttpServletResponse;
  24. import java.util.*;
  25. /**
  26. * @ClassName HLTechnologyArchivesService
  27. * @Author XU
  28. * @Date 2025/4/2
  29. * @Version 1.0
  30. * @Description 护理技术档案管理
  31. **/
  32. @Service
  33. @Slf4j
  34. @RequiredArgsConstructor
  35. public class HLTechnologyArchivesService {
  36. private final TechnologyArchivesDao dao;
  37. private final UserCache userCache;
  38. private final ArchiveServer archiveServer;
  39. private final TechnologyArchivesHLMainDao hlMainDao;
  40. private final TechnologyArchivesHL1Dao hl1Dao;
  41. private final TechnologyArchivesHL2Dao hl2Dao;
  42. private final TechnologyArchivesHL3Dao hl3Dao;
  43. private final TechnologyArchivesHL4Dao hl4Dao;
  44. private final TechnologyArchivesHL5Dao hl5Dao;
  45. private final TechnologyArchivesHL6Dao hl6Dao;
  46. private final TechnologyArchivesHL7Dao hl7Dao;
  47. private final TechnologyArchivesHL9Dao hl9Dao;
  48. private final TechnologyArchives5Dao fifthDao;
  49. private final TechnologyArchives7Dao seventhDao;
  50. private final TechnologyArchives10Dao tenthDao;
  51. private final TechnologyArchives12Dao twelfthDao;
  52. private final TechnologyArchives13Dao thirteenthDao;
  53. private final TechnologyArchives14Dao fourteenthDao;
  54. @Value("${is-prod}")
  55. private boolean isProd;
  56. public String uploadUrl = "http://172.16.32.197:8077/upload";
  57. /**
  58. * @param text 工号或者身份证号或姓名
  59. * @return TechnologyArchivesHLMain
  60. * @Description 根据工号或者身份证号或姓名查询护理档案基本信息
  61. * @Author XU
  62. * @Date 2025/4/2
  63. */
  64. public ResultVo<TechnologyArchivesHLMain> selectHLEmployeeInfo(String text) {
  65. if (StringUtil.notBlank(text) && text.length() >= 5) {
  66. TechnologyArchivesHLMain main = hlMainDao.selectTechnologyArchivesHLMainBySocialNo(text);
  67. if (null != main) {
  68. return ResultVoUtil.success(main);
  69. }
  70. }
  71. TechnologyArchivesHLMain m = dao.selectHLEmployeeInfo(text);
  72. if (null == m) {
  73. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "查不到护理基本信息!");
  74. }
  75. TechnologyArchivesHLMain m1 = hlMainDao.selectTechnologyArchivesHLMainBySocialNo(m.getSocialNo());
  76. if (null != m1) {
  77. return ResultVoUtil.success(m1);
  78. }
  79. TechnologyArchivesHLMain m2 = hlMainDao.selectTechnologyArchivesHLMainBySocialNo(m.getAccount());
  80. if (null != m2) {
  81. return ResultVoUtil.success(m2);
  82. }
  83. //添加姓名搜索
  84. TechnologyArchivesHLMain m3 =hlMainDao.selectTechnologyArchivesHLMainBySocialNo(m.getName());
  85. if (null != m3) {
  86. return ResultVoUtil.success(m3);
  87. }
  88. return ResultVoUtil.success(m);
  89. }
  90. /**
  91. * @return map
  92. * @Description 查询基本信息需要的字典信息
  93. * @Author hsh
  94. * @Date 2024/7/8 12:50
  95. */
  96. public ResultVo<Map<String, Object>> selectDictInfo() {
  97. Map<String, Object> resultMap = new HashMap<>();
  98. // 性别
  99. List<CodeName> sex = dao.getSexCode();
  100. resultMap.put("sex", sex);
  101. // 民族
  102. List<CodeName> nation = dao.getNation();
  103. resultMap.put("nation", nation);
  104. // 籍贯(市)
  105. List<CodeName> city = dao.getCity();
  106. resultMap.put("city", city);
  107. // 政治面貌
  108. List<CodeName> political = dao.getPolitical();
  109. resultMap.put("political", political);
  110. // 专业职称
  111. List<CodeName> title = dao.getTitle();
  112. resultMap.put("title", title);
  113. // 文化程度
  114. List<CodeName> education = dao.getEducation();
  115. resultMap.put("education", education);
  116. List<CodeName> education1 = dao.getEducation();
  117. resultMap.put("education1", education1);
  118. return ResultVoUtil.success(resultMap);
  119. }
  120. /**
  121. * @param hltam 基本信息
  122. * @return map
  123. * @Description 更新护理文档基本信息
  124. * @Author XU
  125. * @Date 2025/4/2
  126. */
  127. public ResultVo<Map<String, Object>> saveTechnologyArchivesHLMain(TechnologyArchivesHLMain hltam) {
  128. Map<String, Object> resultMap = new HashMap<>();
  129. if (null == hltam || null == hltam.getSocialNo()) {
  130. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "护理技术文档基本信息不存在或者缺少身份证号,请检查!");
  131. }
  132. TechnologyArchivesHLMain main = hlMainDao.selectTechnologyArchivesHLMainBySocialNo(hltam.getSocialNo());
  133. // 入库或更新操作
  134. int n;
  135. if (null == main) {
  136. UserInfo user = userCache.getUserInfoByToken();
  137. hltam.setAccount(user.getCodeRs());
  138. n = hlMainDao.insert(hltam);
  139. } else {
  140. UpdateWrapper<TechnologyArchivesHLMain> updateWrapper = new UpdateWrapper<>();
  141. updateWrapper.eq("social_no",hltam.getSocialNo());
  142. n = hlMainDao.update(hltam, updateWrapper);
  143. // n = hlMainDao.updateTechnologyArchivesHLMainBySocialNo(hltam);
  144. }
  145. if (n <= 0) {
  146. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存指标结果失败!");
  147. }
  148. resultMap.put("cg", "保存指标结果成功");
  149. return ResultVoUtil.success(resultMap);
  150. }
  151. /**
  152. * @param socialNo 身份证号
  153. * @return map
  154. * @Description 根据身份证查询基本信息个人图片
  155. * @Author XU
  156. * @Date 2025/4/2
  157. */
  158. //查找图片
  159. public ResultVo<Map<String, Object>> selectHLImage1(String socialNo) {
  160. Map<String, Object> map = new HashMap<>();
  161. Map<String, Object> imgMap = hlMainDao.selectHLImage1(socialNo);
  162. map.put("data", imgMap);
  163. return ResultVoUtil.success(map);
  164. }
  165. public ResultVo<Map<String, Object>> putPersonalImage(MultipartFile file) {
  166. UserInfo user = userCache.getUserInfoByToken();
  167. String code = user.getCodeRs();
  168. String uploadDir = "/uploadimage/hltechnology/personalImage/" + code;
  169. Map<String, Object> map = new HashMap<>();
  170. map.put("data",archiveServer.uploadFile(file,uploadDir,!isProd));
  171. return ResultVoUtil.success(map);
  172. }
  173. /**
  174. * @param socialNo 身份证号 url 图片链接
  175. * @Description 根据身份证号来保存上传图片
  176. * @return map
  177. * @Author XU
  178. * @Date 2025/4/2
  179. */
  180. public ResultVo<Map<String, Object>> setHLImage(String url, String socialNo) {
  181. Map<String, Object> map = new HashMap<>();
  182. String url1 = uploadUrl + url;
  183. System.out.println(url1);
  184. int imgMap = hlMainDao.updatePersonalImage(url1, socialNo);
  185. map.put("data", imgMap);
  186. return ResultVoUtil.success(map);
  187. }
  188. /**
  189. * @return list
  190. * @Description 查询所有护理档案类人员主要信息(账号 , 身份证号 , 姓名)
  191. * @Author XU
  192. * @Date 2025/4/2
  193. */
  194. public ResultVo<List<Map<String, Object>>> selectTechnologyArchivesHLMainDict() {
  195. List<Map<String, Object>> list = hlMainDao.selectTechnologyArchivesHLMainDict();
  196. return ResultVoUtil.success(list);
  197. }
  198. /**
  199. * @return TechnologyArchivesHL1
  200. * @Description 根据工号查询专业技术资格证书取得情况
  201. * @Author XU
  202. * @Date 2025/4/2
  203. */
  204. public ResultVo<List<TechnologyArchivesHL1>> selectTechnologyArchivesHL1() {
  205. UserInfo user = userCache.getUserInfoByToken();
  206. QueryWrapper<TechnologyArchivesHL1> querywrapper = new QueryWrapper<>();
  207. querywrapper.eq("account",user.getCodeRs());
  208. List<TechnologyArchivesHL1> list = hl1Dao.selectList(querywrapper);
  209. // List<TechnologyArchivesHL1> list = hl1Dao.selectHL1ListByCode(null, user.getCodeRs());
  210. return ResultVoUtil.success(list);
  211. }
  212. /**
  213. * @param socialNo 身份证号 geTime 获取时间
  214. * @Description 根据身份证号和获取时间来查询证书图片
  215. * @return map
  216. * @Author XU
  217. * @Date 2025/4/2
  218. */
  219. public ResultVo<Map<String, Object>> selectHL1Image(String socialNo, String getTime) {
  220. Map<String, Object> map = new HashMap<>();
  221. Map<String, Object> imgMap = hl1Dao.selectHL1Image(socialNo, getTime);
  222. map.put("data", imgMap);
  223. return ResultVoUtil.success(map);
  224. }
  225. /**
  226. * @param hl1 专业技术资格证书取得情况
  227. * @return map
  228. * @Description 更新专业技术资格证书取得情况
  229. * @Author XU
  230. * @Date 2025/4/2
  231. */
  232. public ResultVo<Map<String, Object>> saveTechnologyArchivesHL1(TechnologyArchivesHL1 hl1) {
  233. if (null == hl1 || hl1.getSocialNo() == null || hl1.getGetTime() == null) {
  234. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "专业技术资格证书取得情况信息不全,请检查!");
  235. }
  236. Map<String, Object> resultMap = new HashMap<>();
  237. String socialNo = hl1.getSocialNo();
  238. String getTime = hl1.getGetTime();
  239. TechnologyArchivesHL1 tahl1 = hl1Dao.selectTechnologyArchivesHL1ByGetTime(socialNo, getTime);
  240. int num;
  241. try {
  242. if (null != tahl1) {
  243. UpdateWrapper<TechnologyArchivesHL1> updateWrapper = new UpdateWrapper<>();
  244. updateWrapper.eq("social_no",hl1.getSocialNo());
  245. updateWrapper.eq("get_time",hl1.getGetTime());
  246. num = hl1Dao.update(hl1, updateWrapper);
  247. // num = hl1Dao.updateTechnologyArchivesHL1ByGetTime(hl1);
  248. } else {
  249. UserInfo user = userCache.getUserInfoByToken();
  250. hl1.setAccount(user.getCodeRs());
  251. num = hl1Dao.insert(hl1);
  252. }
  253. if (num == 0) {
  254. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存专业技术资格证书取得情况失败!");
  255. }
  256. resultMap.put("cg", "保存专业技术资格证书取得情况成功!");
  257. return ResultVoUtil.success(resultMap);
  258. } catch (Exception e) {
  259. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存专业技术资格证书取得情况失败!");
  260. }
  261. }
  262. /**
  263. * @param files 上传文件 title 证书名称
  264. * @Description 上传图片
  265. * @return map
  266. * @Author XU
  267. * @Date 2025/4/2
  268. */
  269. public ResultVo<Map<String, Object>> putHL1CertificateImage(MultipartFile[] files, String title) {
  270. UserInfo user = userCache.getUserInfoByToken();
  271. String code = user.getCodeRs();
  272. String uploadDir = "/uploadimage/hltechnology/certificateImage/" + code + "/" + title;
  273. Map<String, Object> map = new HashMap<>();
  274. List<String> urls = new ArrayList<>();
  275. System.out.println(Arrays.toString(files));
  276. for (MultipartFile file : files){
  277. urls.add(archiveServer.uploadFile(file, uploadDir, !isProd).getPath());
  278. }
  279. map.put("urls",urls);
  280. return ResultVoUtil.success(map);
  281. }
  282. /**
  283. * @param socialNo 身份证号 getTime 批准时间 url 图片链接
  284. * @Description 根据身份证号, 批准时间来保存上传图片
  285. * @return map
  286. * @Date 2025/4/2
  287. */
  288. public ResultVo<Map<String, Object>> setHL1Image(String socialNo, String getTime, String url) {
  289. Map<String, Object> map = new HashMap<>();
  290. int imgMap = hl1Dao.updateHL1CertificateImage(url, socialNo, getTime);
  291. map.put("data", imgMap);
  292. return ResultVoUtil.success(map);
  293. }
  294. /**
  295. * @param socialNo 身份证号 getTime 批准时间
  296. * @return map
  297. * @Description 根据身份证号, 批准时间删除专业技术资格证书取得情况
  298. * @Author XU
  299. * @Date 2025/4/2
  300. */
  301. public ResultVo<Map<String, Object>> delTechnologyArchivesHL1ByCode(String socialNo, String getTime) {
  302. if (StringUtil.isBlank(socialNo) || StringUtil.isBlank(getTime)) {
  303. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号或者批准时间,请检查!");
  304. }
  305. Map<String, Object> resultMap = new HashMap<>();
  306. try {
  307. int num = hl1Dao.delTechnologyArchivesHL1ByCode(socialNo, getTime);
  308. if (num == 0) {
  309. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除专业技术职称晋升情况失败!");
  310. }
  311. resultMap.put("cg", "删除专业技术职称晋升情况成功!");
  312. return ResultVoUtil.success(resultMap);
  313. } catch (Exception e) {
  314. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除专业技术职称晋升情况失败!");
  315. }
  316. }
  317. /**
  318. * @return TechnologyArchivesHL2 工作经历
  319. * @Description 查询工作经历
  320. * @Author XU
  321. * @Date 2025/4/2
  322. */
  323. public ResultVo<List<TechnologyArchivesHL2>> selectTechnologyArchivesHL2() {
  324. UserInfo user = userCache.getUserInfoByToken();
  325. QueryWrapper<TechnologyArchivesHL2> querywrapper = new QueryWrapper<>();
  326. querywrapper.eq("account",user.getCodeRs());
  327. List<TechnologyArchivesHL2> list = hl2Dao.selectList(querywrapper);
  328. // List<TechnologyArchivesHL2> list = hl2Dao.selectHL2ListByCode(null, user.getCodeRs());
  329. return ResultVoUtil.success(list);
  330. }
  331. /**
  332. * @param HL2
  333. * @return map
  334. * @Description 根据身份证号更新工作经历
  335. * @Author XU
  336. * @Date 2025/4/2
  337. */
  338. public ResultVo<Map<String, Object>> saveTechnologyArchivesHL2(TechnologyArchivesHL2 HL2) {
  339. if (null == HL2 || HL2.getSocialNo() == null) {
  340. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "信息不全,请检查!");
  341. }
  342. Map<String, Object> resultMap = new HashMap<>();
  343. String socialNo = HL2.getSocialNo();
  344. Integer id = HL2.getId();
  345. TechnologyArchivesHL2 taHL2 = hl2Dao.selectTechnologyArchivesHL2ById(socialNo, id);
  346. int num;
  347. try {
  348. if (null != taHL2) {
  349. String oldSocialNo = HL2.getOldSocialNo();
  350. if (StringUtil.notBlank(oldSocialNo)) {
  351. TechnologyArchivesHL2 oldTaHL2 = hl2Dao.selectTechnologyArchivesHL2ById(oldSocialNo, id);
  352. oldTaHL2.setSocialNo(socialNo);
  353. int maxId = hl2Dao.selectTechnologyArchivesHL2MaxId(socialNo);
  354. oldTaHL2.setId(maxId + 1);
  355. num = hl2Dao.insert(oldTaHL2);
  356. hl2Dao.delTechnologyArchivesHL2ByCode(oldSocialNo, id);
  357. } else {
  358. UpdateWrapper<TechnologyArchivesHL2> updateWrapper = new UpdateWrapper<>();
  359. updateWrapper.eq("social_no",HL2.getSocialNo());
  360. updateWrapper.eq("id",HL2.getId());
  361. num = hl2Dao.update(HL2, updateWrapper);
  362. // num = hl2Dao.updateTechnologyArchivesHL2ById(HL2);
  363. }
  364. } else {
  365. UserInfo user = userCache.getUserInfoByToken();
  366. int maxId = hl2Dao.selectTechnologyArchivesHL2MaxId(socialNo);
  367. HL2.setAccount(user.getCodeRs());
  368. HL2.setId(maxId + 1);
  369. num = hl2Dao.insert(HL2);
  370. }
  371. if (num == 0) {
  372. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存工作经历失败!");
  373. }
  374. resultMap.put("cg", "保存工作经历成功!");
  375. return ResultVoUtil.success(resultMap);
  376. } catch (Exception e) {
  377. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存工作经历失败!");
  378. }
  379. }
  380. /**
  381. * @param socialNo 身份证号 id
  382. * @return map
  383. * @Description 根据身份证号, id删除工作经历
  384. * @Author XU
  385. * @Date 2025/4/2
  386. */
  387. public ResultVo<Map<String, Object>> delTechnologyArchivesHL2ByCode(String socialNo, Integer id) {
  388. if (StringUtil.isBlank(socialNo)) {
  389. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  390. }
  391. Map<String, Object> resultMap = new HashMap<>();
  392. try {
  393. int num = hl2Dao.delTechnologyArchivesHL2ByCode(socialNo, id);
  394. if (num == 0) {
  395. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除工作经历失败!");
  396. }
  397. resultMap.put("cg", "删除工作经历成功!");
  398. return ResultVoUtil.success(resultMap);
  399. } catch (Exception e) {
  400. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除工作经历失败!");
  401. }
  402. }
  403. /**
  404. * @return TechnologyArchivesHL3 教育经历
  405. * @Description 查询学习经历
  406. * @Author XU
  407. * @Date 2025/4/2
  408. */
  409. public ResultVo<List<TechnologyArchivesHL3>> selectTechnologyArchivesHL3() {
  410. UserInfo user = userCache.getUserInfoByToken();
  411. QueryWrapper<TechnologyArchivesHL3> querywrapper = new QueryWrapper<>();
  412. querywrapper.eq("account",user.getCodeRs());
  413. List<TechnologyArchivesHL3> list = hl3Dao.selectList(querywrapper);
  414. // List<TechnologyArchivesHL3> list = hl3Dao.selectHL3ByCode(null, user.getCodeRs());
  415. return ResultVoUtil.success(list);
  416. }
  417. /**
  418. * @param HL3
  419. * @return map
  420. * @Description 根据身份证号更新教育经历
  421. * @Author XU
  422. * @Date 2025/4/2
  423. */
  424. public ResultVo<Map<String, Object>> saveTechnologyArchivesHL3(TechnologyArchivesHL3 HL3) {
  425. if (null == HL3 || HL3.getSocialNo() == null) {
  426. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "信息不全,请检查!");
  427. }
  428. Map<String, Object> resultMap = new HashMap<>();
  429. String socialNo = HL3.getSocialNo();
  430. Integer id = HL3.getId();
  431. TechnologyArchivesHL3 taHL3 = hl3Dao.selectTechnologyArchivesHL3ById(socialNo, id);
  432. int num;
  433. try {
  434. if (null != taHL3) {
  435. String oldSocialNo = HL3.getOldSocialNo();
  436. if (StringUtil.notBlank(oldSocialNo)) {
  437. TechnologyArchivesHL3 oldTaHL3 = hl3Dao.selectTechnologyArchivesHL3ById(oldSocialNo, id);
  438. oldTaHL3.setSocialNo(socialNo);
  439. int maxId = hl3Dao.selectTechnologyArchivesHL3MaxId(socialNo);
  440. oldTaHL3.setId(maxId + 1);
  441. num = hl3Dao.insert(oldTaHL3);
  442. hl3Dao.delTechnologyArchivesHL3ByCode(oldSocialNo, id);
  443. } else {
  444. UpdateWrapper<TechnologyArchivesHL3> updateWrapper = new UpdateWrapper<>();
  445. updateWrapper.eq("social_no",HL3.getSocialNo());
  446. updateWrapper.eq("id",HL3.getId());
  447. num = hl3Dao.update(HL3, updateWrapper);
  448. // num = hl3Dao.updateTechnologyArchivesHL3ById(HL3);
  449. }
  450. } else {
  451. UserInfo user = userCache.getUserInfoByToken();
  452. int maxId = hl3Dao.selectTechnologyArchivesHL3MaxId(socialNo);
  453. HL3.setAccount(user.getCodeRs());
  454. HL3.setId(maxId + 1);
  455. num = hl3Dao.insert(HL3);
  456. }
  457. if (num == 0) {
  458. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存教育经历失败!");
  459. }
  460. resultMap.put("cg", "保存教育经历成功!");
  461. return ResultVoUtil.success(resultMap);
  462. } catch (Exception e) {
  463. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存教育经历失败!");
  464. }
  465. }
  466. /**
  467. * @param socialNo 身份证号 id
  468. * @return map
  469. * @Description 根据身份证号, id删除教育经历
  470. * @Author XU
  471. * @Date 2025/4/2
  472. */
  473. public ResultVo<Map<String, Object>> delTechnologyArchivesHL3ByCode(String socialNo, Integer id) {
  474. if (StringUtil.isBlank(socialNo)) {
  475. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  476. }
  477. Map<String, Object> resultMap = new HashMap<>();
  478. try {
  479. int num = hl3Dao.delTechnologyArchivesHL3ByCode(socialNo, id);
  480. if (num == 0) {
  481. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除教育经历失败!");
  482. }
  483. resultMap.put("cg", "删除教育经历成功!");
  484. return ResultVoUtil.success(resultMap);
  485. } catch (Exception e) {
  486. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除教育经历失败!");
  487. }
  488. }
  489. /**
  490. * @return TechnologyArchivesHL4 培训经历
  491. * @Description 查询培训经历
  492. * @Author XU
  493. * @Date 2025/4/2
  494. */
  495. public ResultVo<List<TechnologyArchivesHL4>> selectTechnologyArchivesHL4() {
  496. UserInfo user = userCache.getUserInfoByToken();
  497. QueryWrapper<TechnologyArchivesHL4> querywrapper = new QueryWrapper<>();
  498. querywrapper.eq("account",user.getCodeRs());
  499. List<TechnologyArchivesHL4> list = hl4Dao.selectList(querywrapper);
  500. // List<TechnologyArchivesHL4> list = hl4Dao.selectHL4ByCode(null, user.getCodeRs());
  501. return ResultVoUtil.success(list);
  502. }
  503. //查找图片
  504. public ResultVo<Map<String, Object>> selectHL4Image(String socialNo, Integer id) {
  505. Map<String, Object> map = new HashMap<>();
  506. Map<String, Object> imgMap = hl4Dao.selectHL4Image(socialNo, id);
  507. map.put("data", imgMap);
  508. return ResultVoUtil.success(map);
  509. }
  510. public ResultVo<Map<String, Object>> putHL4CertificateImage(MultipartFile[] files,String name) {
  511. UserInfo user = userCache.getUserInfoByToken();
  512. String code = user.getCodeRs();
  513. String uploadDir = "/uploadimage/hltechnology/trainingcertificateImage/" + code + "/" + name;
  514. Map<String, Object> map = new HashMap<>();
  515. List<String> urls = new ArrayList<>();
  516. System.out.println(Arrays.toString(files));
  517. for (MultipartFile file : files){
  518. urls.add(archiveServer.uploadFile(file, uploadDir, !isProd).getPath());
  519. }
  520. map.put("urls",urls);
  521. return ResultVoUtil.success(map);
  522. }
  523. /**
  524. * @param HL4
  525. * @return map
  526. * @Description 根据身份证号更新培训经历
  527. * @Author XU
  528. * @Date 2025/4/2
  529. */
  530. public ResultVo<Map<String, Object>> saveTechnologyArchivesHL4(TechnologyArchivesHL4 HL4) {
  531. if (null == HL4 || HL4.getSocialNo() == null) {
  532. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "信息不全,请检查!");
  533. }
  534. Map<String, Object> resultMap = new HashMap<>();
  535. String socialNo = HL4.getSocialNo();
  536. Integer id = HL4.getId();
  537. TechnologyArchivesHL4 taHL4 = hl4Dao.selectTechnologyArchivesHL4ById(socialNo, id);
  538. int num;
  539. try {
  540. if (null != taHL4) {
  541. String oldSocialNo = HL4.getOldSocialNo();
  542. if (StringUtil.notBlank(oldSocialNo)) {
  543. TechnologyArchivesHL4 oldTaHL4 = hl4Dao.selectTechnologyArchivesHL4ById(oldSocialNo, id);
  544. oldTaHL4.setSocialNo(socialNo);
  545. int maxId = hl4Dao.selectTechnologyArchivesHL4MaxId(socialNo);
  546. oldTaHL4.setId(maxId + 1);
  547. num = hl4Dao.insert(oldTaHL4);
  548. hl4Dao.delTechnologyArchivesHL4ByCode(oldSocialNo, id);
  549. } else {
  550. UpdateWrapper<TechnologyArchivesHL4> updateWrapper = new UpdateWrapper<>();
  551. updateWrapper.eq("social_no",HL4.getSocialNo());
  552. updateWrapper.eq("id",HL4.getId());
  553. num = hl4Dao.update(HL4, updateWrapper);
  554. // num = hl4Dao.updateTechnologyArchivesHL4ById(HL4);
  555. }
  556. } else {
  557. UserInfo user = userCache.getUserInfoByToken();
  558. int maxId = hl4Dao.selectTechnologyArchivesHL4MaxId(socialNo);
  559. HL4.setAccount(user.getCodeRs());
  560. HL4.setId(maxId + 1);
  561. num = hl4Dao.insert(HL4);
  562. }
  563. if (num == 0) {
  564. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存培训经历失败!");
  565. }
  566. resultMap.put("cg", "保存培训经历成功!");
  567. return ResultVoUtil.success(resultMap);
  568. } catch (Exception e) {
  569. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存培训经历失败!");
  570. }
  571. }
  572. /**
  573. * @param socialNo 身份证号 id 序号 url 图片链接
  574. * @Description 根据身份证号, 序号来保存上传图片
  575. * @return map
  576. * @Author XU
  577. * @Date 2025/4/2
  578. */
  579. public ResultVo<Map<String, Object>> setHL4Image(String socialNo, String beginTime, String url) {
  580. Map<String, Object> map = new HashMap<>();
  581. int imgMap = hl4Dao.updateHL4Image(socialNo, beginTime, url);
  582. map.put("data", imgMap);
  583. return ResultVoUtil.success(map);
  584. }
  585. /**
  586. * @param socialNo 身份证号 id
  587. * @return map
  588. * @Description 根据身份证号, id删除培训经历
  589. * @Author XU
  590. * @Date 2025/4/2
  591. */
  592. public ResultVo<Map<String, Object>> delTechnologyArchivesHL4ByCode(String socialNo, Integer id) {
  593. if (StringUtil.isBlank(socialNo)) {
  594. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  595. }
  596. Map<String, Object> resultMap = new HashMap<>();
  597. try {
  598. int num = hl4Dao.delTechnologyArchivesHL4ByCode(socialNo, id);
  599. if (num == 0) {
  600. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除培训经历失败!");
  601. }
  602. resultMap.put("cg", "删除培训经历成功!");
  603. return ResultVoUtil.success(resultMap);
  604. } catch (Exception e) {
  605. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除培训经历失败!");
  606. }
  607. }
  608. /**
  609. * @return TechnologyArchivesHL5 轮科记录
  610. * @Description 查询轮科记录
  611. * @Author XU
  612. * @Date 2025/4/2
  613. */
  614. public ResultVo<List<TechnologyArchivesHL5>> selectTechnologyArchivesHL5() {
  615. UserInfo user = userCache.getUserInfoByToken();
  616. QueryWrapper<TechnologyArchivesHL5> querywrapper = new QueryWrapper<>();
  617. querywrapper.eq("account",user.getCodeRs());
  618. List<TechnologyArchivesHL5> list = hl5Dao.selectList(querywrapper);
  619. // List<TechnologyArchivesHL5> list = hl5Dao.selectHL5ByCode(null, user.getCodeRs());
  620. return ResultVoUtil.success(list);
  621. }
  622. /**
  623. * @param HL5
  624. * @return map
  625. * @Description 根据身份证号更新轮科记录
  626. * @Author XU
  627. * @Date 2025/4/2
  628. */
  629. public ResultVo<Map<String, Object>> saveTechnologyArchivesHL5(TechnologyArchivesHL5 HL5) {
  630. if (null == HL5 || HL5.getSocialNo() == null) {
  631. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "信息不全,请检查!");
  632. }
  633. Map<String, Object> resultMap = new HashMap<>();
  634. String socialNo = HL5.getSocialNo();
  635. Integer id = HL5.getId();
  636. TechnologyArchivesHL5 taHL5 = hl5Dao.selectTechnologyArchivesHL5ById(socialNo, id);
  637. int num;
  638. try {
  639. if (null != taHL5) {
  640. String oldSocialNo = HL5.getOldSocialNo();
  641. if (StringUtil.notBlank(oldSocialNo)) {
  642. TechnologyArchivesHL5 oldTaHL5 = hl5Dao.selectTechnologyArchivesHL5ById(oldSocialNo, id);
  643. oldTaHL5.setSocialNo(socialNo);
  644. int maxId = hl5Dao.selectTechnologyArchivesHL5MaxId(socialNo);
  645. oldTaHL5.setId(maxId + 1);
  646. num = hl5Dao.insert(oldTaHL5);
  647. hl5Dao.delTechnologyArchivesHL5ByCode(oldSocialNo, id);
  648. } else {
  649. UpdateWrapper<TechnologyArchivesHL5> updateWrapper = new UpdateWrapper<>();
  650. updateWrapper.eq("social_no",HL5.getSocialNo());
  651. updateWrapper.eq("id",HL5.getId());
  652. num = hl5Dao.update(HL5, updateWrapper);
  653. // num = hl5Dao.updateTechnologyArchivesHL5ById(HL5);
  654. }
  655. } else {
  656. UserInfo user = userCache.getUserInfoByToken();
  657. int maxId = hl5Dao.selectTechnologyArchivesHL5MaxId(socialNo);
  658. HL5.setAccount(user.getCodeRs());
  659. HL5.setId(maxId + 1);
  660. num = hl5Dao.insert(HL5);
  661. }
  662. if (num == 0) {
  663. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存轮科记录失败!");
  664. }
  665. resultMap.put("cg", "保存轮科记录成功!");
  666. return ResultVoUtil.success(resultMap);
  667. } catch (Exception e) {
  668. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存轮科记录失败!");
  669. }
  670. }
  671. /**
  672. * @param socialNo 身份证号 id
  673. * @return map
  674. * @Description 根据身份证号, id删除轮科记录
  675. * @Author XU
  676. * @Date 2025/4/2
  677. */
  678. public ResultVo<Map<String, Object>> delTechnologyArchivesHL5ByCode(String socialNo, Integer id) {
  679. if (StringUtil.isBlank(socialNo)) {
  680. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  681. }
  682. Map<String, Object> resultMap = new HashMap<>();
  683. try {
  684. int num = hl5Dao.delTechnologyArchivesHL5ByCode(socialNo, id);
  685. if (num == 0) {
  686. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除轮科记录失败!");
  687. }
  688. resultMap.put("cg", "删除轮科记录成功!");
  689. return ResultVoUtil.success(resultMap);
  690. } catch (Exception e) {
  691. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除轮科记录失败!");
  692. }
  693. }
  694. /**
  695. * @return TechnologyArchivesHL6 科室调动记录
  696. * @Description 查询科室调动记录
  697. * @Author XU
  698. * @Date 2025/4/2
  699. */
  700. public ResultVo<List<TechnologyArchivesHL6>> selectTechnologyArchivesHL6() {
  701. UserInfo user = userCache.getUserInfoByToken();
  702. QueryWrapper<TechnologyArchivesHL6> querywrapper = new QueryWrapper<>();
  703. querywrapper.eq("account",user.getCodeRs());
  704. List<TechnologyArchivesHL6> list = hl6Dao.selectList(querywrapper);
  705. // List<TechnologyArchivesHL6> list = hl6Dao.selectHL6ByCode(null, user.getCodeRs());
  706. return ResultVoUtil.success(list);
  707. }
  708. /**
  709. * @param HL6
  710. * @return map
  711. * @Description 根据身份证号更新科室调动记录
  712. * @Author XU
  713. * @Date 2025/4/2
  714. */
  715. public ResultVo<Map<String, Object>> saveTechnologyArchivesHL6(TechnologyArchivesHL6 HL6) {
  716. if (null == HL6 || HL6.getSocialNo() == null) {
  717. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "信息不全,请检查!");
  718. }
  719. Map<String, Object> resultMap = new HashMap<>();
  720. String socialNo = HL6.getSocialNo();
  721. Integer id = HL6.getId();
  722. TechnologyArchivesHL6 taHL6 = hl6Dao.selectTechnologyArchivesHL6ById(socialNo, id);
  723. int num;
  724. try {
  725. if (null != taHL6) {
  726. String oldSocialNo = HL6.getOldSocialNo();
  727. if (StringUtil.notBlank(oldSocialNo)) {
  728. TechnologyArchivesHL6 oldTaHL6 = hl6Dao.selectTechnologyArchivesHL6ById(oldSocialNo, id);
  729. oldTaHL6.setSocialNo(socialNo);
  730. int maxId = hl6Dao.selectTechnologyArchivesHL6MaxId(socialNo);
  731. oldTaHL6.setId(maxId + 1);
  732. num = hl6Dao.insert(oldTaHL6);
  733. hl6Dao.delTechnologyArchivesHL6ByCode(oldSocialNo, id);
  734. } else {
  735. UpdateWrapper<TechnologyArchivesHL6> updateWrapper = new UpdateWrapper<>();
  736. updateWrapper.eq("social_no",HL6.getSocialNo());
  737. updateWrapper.eq("id",HL6.getId());
  738. num = hl6Dao.update(HL6, updateWrapper);
  739. // num = hl6Dao.updateTechnologyArchivesHL6ById(HL6);
  740. }
  741. } else {
  742. UserInfo user = userCache.getUserInfoByToken();
  743. int maxId = hl6Dao.selectTechnologyArchivesHL6MaxId(socialNo);
  744. HL6.setAccount(user.getCodeRs());
  745. HL6.setId(maxId + 1);
  746. num = hl6Dao.insert(HL6);
  747. }
  748. if (num == 0) {
  749. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存科室调动记录失败!");
  750. }
  751. resultMap.put("cg", "保存科室调动记录成功!");
  752. return ResultVoUtil.success(resultMap);
  753. } catch (Exception e) {
  754. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存科室调动记录失败!");
  755. }
  756. }
  757. /**
  758. * @param socialNo 身份证号 id
  759. * @return map
  760. * @Description 根据身份证号, id删除科室调动记录
  761. * @Author XU
  762. * @Date 2025/4/2
  763. */
  764. public ResultVo<Map<String, Object>> delTechnologyArchivesHL6ByCode(String socialNo, Integer id) {
  765. if (StringUtil.isBlank(socialNo)) {
  766. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  767. }
  768. Map<String, Object> resultMap = new HashMap<>();
  769. try {
  770. int num = hl6Dao.delTechnologyArchivesHL6ByCode(socialNo, id);
  771. if (num == 0) {
  772. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除科室调动记录失败!");
  773. }
  774. resultMap.put("cg", "删除科室调动记录成功!");
  775. return ResultVoUtil.success(resultMap);
  776. } catch (Exception e) {
  777. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除科室调动记录失败!");
  778. }
  779. }
  780. /**
  781. * @return TechnologyArchivesHL7 休假记录
  782. * @Description 查询休假记录
  783. * @Author XU
  784. * @Date 2025/4/2
  785. */
  786. public ResultVo<List<TechnologyArchivesHL7>> selectTechnologyArchivesHL7() {
  787. UserInfo user = userCache.getUserInfoByToken();
  788. QueryWrapper<TechnologyArchivesHL7> querywrapper = new QueryWrapper<>();
  789. querywrapper.eq("account",user.getCodeRs());
  790. List<TechnologyArchivesHL7> list = hl7Dao.selectList(querywrapper);
  791. // List<TechnologyArchivesHL7> list = hl7Dao.selectHL7ByCode(null, user.getCodeRs());
  792. return ResultVoUtil.success(list);
  793. }
  794. //查找图片
  795. public ResultVo<Map<String, Object>> selectHL7Image(String socialNo, Integer id) {
  796. Map<String, Object> map = new HashMap<>();
  797. Map<String, Object> imgMap = hl7Dao.selectHL7Image(socialNo, id);
  798. map.put("data", imgMap);
  799. return ResultVoUtil.success(map);
  800. }
  801. public ResultVo<Map<String, Object>> putHL7CertificateImage(MultipartFile[] files,String approvalTime) {
  802. UserInfo user = userCache.getUserInfoByToken();
  803. String code = user.getCodeRs();
  804. String uploadDir = "/uploadimage/hltechnology/holidaycertificateImage/" + code + "/" + approvalTime;
  805. Map<String, Object> map = new HashMap<>();
  806. List<String> urls = new ArrayList<>();
  807. System.out.println(Arrays.toString(files));
  808. for (MultipartFile file : files){
  809. urls.add(archiveServer.uploadFile(file, uploadDir, !isProd).getPath());
  810. }
  811. map.put("urls",urls);
  812. return ResultVoUtil.success(map);
  813. }
  814. /**
  815. * @param HL7
  816. * @return map
  817. * @Description 根据身份证号更新休假记录
  818. * @Author XU
  819. * @Date 2025/4/2
  820. */
  821. public ResultVo<Map<String, Object>> saveTechnologyArchivesHL7(TechnologyArchivesHL7 HL7) {
  822. if (null == HL7 || HL7.getSocialNo() == null) {
  823. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "信息不全,请检查!");
  824. }
  825. Map<String, Object> resultMap = new HashMap<>();
  826. String socialNo = HL7.getSocialNo();
  827. Integer id = HL7.getId();
  828. String approvalTime = HL7.getApprovalTime();
  829. TechnologyArchivesHL7 taHL7 = hl7Dao.selectTechnologyArchivesHL7ById(socialNo, id);
  830. int num;
  831. try {
  832. if (null != taHL7) {
  833. String oldSocialNo = HL7.getOldSocialNo();
  834. if (StringUtil.notBlank(oldSocialNo)) {
  835. TechnologyArchivesHL7 oldTaHL7 = hl7Dao.selectTechnologyArchivesHL7ById(oldSocialNo, id);
  836. oldTaHL7.setSocialNo(socialNo);
  837. int maxId = hl7Dao.selectTechnologyArchivesHL7MaxId(socialNo);
  838. oldTaHL7.setId(maxId + 1);
  839. num = hl7Dao.insert(oldTaHL7);
  840. hl7Dao.delTechnologyArchivesHL7ByCode(oldSocialNo,approvalTime);
  841. } else {
  842. UpdateWrapper<TechnologyArchivesHL7> updateWrapper = new UpdateWrapper<>();
  843. updateWrapper.eq("social_no",HL7.getSocialNo());
  844. updateWrapper.eq("id",HL7.getId());
  845. num = hl7Dao.update(HL7, updateWrapper);
  846. // num = hl7Dao.updateTechnologyArchivesHL7ById(HL7);
  847. }
  848. } else {
  849. UserInfo user = userCache.getUserInfoByToken();
  850. int maxId = hl7Dao.selectTechnologyArchivesHL7MaxId(socialNo);
  851. HL7.setAccount(user.getCodeRs());
  852. HL7.setId(maxId + 1);
  853. num = hl7Dao.insert(HL7);
  854. }
  855. if (num == 0) {
  856. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存休假记录失败!");
  857. }
  858. resultMap.put("cg", "保存休假记录成功!");
  859. return ResultVoUtil.success(resultMap);
  860. } catch (Exception e) {
  861. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存休假记录失败!");
  862. }
  863. }
  864. /**
  865. * @param socialNo 身份证号 approvalTime 批准时间 url 图片链接
  866. * @Description 根据身份证号, 批准时间来保存上传图片
  867. * @return map
  868. * @Author XU
  869. * @Date 2025/4/2
  870. */
  871. public ResultVo<Map<String, Object>> setHL7Image(String socialNo, String approvalTime, String url) {
  872. Map<String, Object> map = new HashMap<>();
  873. int imgMap = hl7Dao.updateHL7Image(socialNo, approvalTime, url);
  874. map.put("data", imgMap);
  875. return ResultVoUtil.success(map);
  876. }
  877. /**
  878. * @param socialNo 身份证号 id
  879. * @return map
  880. * @Description 根据身份证号, id删除休假记录
  881. * @Author XU
  882. * @Date 2025/4/2
  883. */
  884. public ResultVo<Map<String, Object>> delTechnologyArchivesHL7ByCode(String socialNo, String approvalTime) {
  885. if (StringUtil.isBlank(socialNo)) {
  886. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  887. }
  888. Map<String, Object> resultMap = new HashMap<>();
  889. try {
  890. int num = hl7Dao.delTechnologyArchivesHL7ByCode(socialNo, approvalTime);
  891. if (num == 0) {
  892. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除休假记录失败!");
  893. }
  894. resultMap.put("cg", "删除休假记录成功!");
  895. return ResultVoUtil.success(resultMap);
  896. } catch (Exception e) {
  897. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除休假记录失败!");
  898. }
  899. }
  900. /**
  901. * @return TechnologyArchives9 培训考试考核情况
  902. * @Description 查询培训考试考核情况
  903. * @Author hsh
  904. * @Date 2024/7/12 15:41
  905. */
  906. public ResultVo<List<TechnologyArchivesHL9>> selectTechnologyArchivesHL9() {
  907. UserInfo user = userCache.getUserInfoByToken();
  908. QueryWrapper<TechnologyArchivesHL9> querywrapper = new QueryWrapper<>();
  909. querywrapper.eq("account",user.getCodeRs());
  910. List<TechnologyArchivesHL9> list = hl9Dao.selectList(querywrapper);
  911. // List<TechnologyArchivesHL9> list = hl9Dao.selectHL9ListByCode(null, user.getCodeRs());
  912. return ResultVoUtil.success(list);
  913. }
  914. /**
  915. * @param HL9 开展新技术情况
  916. * @return map
  917. * @Description 根据身份证号更新开展新技术情况
  918. * @Author hsh
  919. * @Date 2024/7/12 15:43
  920. */
  921. public ResultVo<Map<String, Object>> saveTechnologyArchivesHL9(TechnologyArchivesHL9 HL9) {
  922. if (null == HL9 || HL9.getSocialNo() == null) {
  923. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "培训考试考核情况信息不全,请检查!");
  924. }
  925. Map<String, Object> resultMap = new HashMap<>();
  926. String socialNo = HL9.getSocialNo();
  927. Integer id = HL9.getId();
  928. TechnologyArchivesHL9 HLta9 = hl9Dao.selectTechnologyArchivesHL9ById(socialNo, id);
  929. int num;
  930. try {
  931. if (null != HLta9) {
  932. String oldSocialNo = HL9.getOldSocialNo();
  933. if (StringUtil.notBlank(oldSocialNo)) {
  934. TechnologyArchivesHL9 oldTa9 = hl9Dao.selectTechnologyArchivesHL9ById(oldSocialNo, id);
  935. oldTa9.setSocialNo(socialNo);
  936. int maxId = hl9Dao.selectTechnologyArchivesHL9MaxId(socialNo);
  937. oldTa9.setId(maxId + 1);
  938. num = hl9Dao.insert(oldTa9);
  939. hl9Dao.delTechnologyArchivesHL9ByCode(oldSocialNo, id);
  940. } else {
  941. UpdateWrapper<TechnologyArchivesHL9> updateWrapper = new UpdateWrapper<>();
  942. updateWrapper.eq("social_no",HL9.getSocialNo());
  943. updateWrapper.eq("id",HL9.getId());
  944. num = hl9Dao.update(HL9, updateWrapper);
  945. // num = hl9Dao.updateTechnologyArchivesHL9ById(HL9);
  946. }
  947. } else {
  948. UserInfo user = userCache.getUserInfoByToken();
  949. int maxId = hl9Dao.selectTechnologyArchivesHL9MaxId(socialNo);
  950. HL9.setAccount(user.getCodeRs());
  951. HL9.setId(maxId + 1);
  952. num = hl9Dao.insert(HL9);
  953. }
  954. if (num == 0) {
  955. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存培训考试考核情况失败!");
  956. }
  957. resultMap.put("cg", "保存培训考试考核情况成功!");
  958. return ResultVoUtil.success(resultMap);
  959. } catch (Exception e) {
  960. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存培训考试考核情况失败!");
  961. }
  962. }
  963. /**
  964. * @param socialNo 身份证号 id
  965. * @return map
  966. * @Description 根据身份证号, id删除开展新技术情况
  967. * @Author hsh
  968. * @Date 2024/7/12 15:44
  969. */
  970. public ResultVo<Map<String, Object>> delTechnologyArchivesHL9ByCode(String socialNo, Integer id) {
  971. if (StringUtil.isBlank(socialNo)) {
  972. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  973. }
  974. Map<String, Object> resultMap = new HashMap<>();
  975. try {
  976. int num = hl9Dao.delTechnologyArchivesHL9ByCode(socialNo, id);
  977. if (num == 0) {
  978. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除开展新技术情况失败!");
  979. }
  980. resultMap.put("cg", "删除开展新技术情况成功!");
  981. return ResultVoUtil.success(resultMap);
  982. } catch (Exception e) {
  983. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除开展新技术情况失败!");
  984. }
  985. }
  986. /**
  987. * @return TechnologyArchives5 发表论文与专著情况
  988. * @Description 查询发表论文与专著情况
  989. * @Author hsh
  990. * @Date 2024/7/12 10:00
  991. */
  992. public ResultVo<List<TechnologyArchives5>> selectTechnologyArchives5() {
  993. UserInfo user = userCache.getUserInfoByToken();
  994. QueryWrapper<TechnologyArchives5> querywrapper = new QueryWrapper<>();
  995. querywrapper.eq("account",user.getCodeRs());
  996. List<TechnologyArchives5> list = fifthDao.selectList(querywrapper);
  997. return ResultVoUtil.success(list);
  998. }
  999. /**
  1000. * @param fifth 发表论文与专著情况
  1001. * @return map
  1002. * @Description 更新发表论文与专著情况
  1003. * @Author hsh
  1004. * @Date 2024/7/12 10:06
  1005. */
  1006. public ResultVo<Map<String, Object>> saveTechnologyArchives5(TechnologyArchives5 fifth) {
  1007. if (null == fifth || fifth.getSocialNo() == null || fifth.getTime() == null) {
  1008. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "发表论文与专著情况信息不全,请检查!");
  1009. }
  1010. Map<String, Object> resultMap = new HashMap<>();
  1011. String socialNo = fifth.getSocialNo();
  1012. String time = fifth.getTime();
  1013. TechnologyArchives5 ta5 = fifthDao.selectTechnologyArchives5ByTime(socialNo, time);
  1014. int num;
  1015. try {
  1016. if (null != ta5) {
  1017. UpdateWrapper<TechnologyArchives5> updateWrapper = new UpdateWrapper<>();
  1018. updateWrapper.eq("social_no",fifth.getSocialNo());
  1019. updateWrapper.eq("time",fifth.getTime());
  1020. num = fifthDao.update(fifth, updateWrapper);
  1021. // num = fifthDao.updateTechnologyArchives5ByTime(fifth);
  1022. } else {
  1023. UserInfo user = userCache.getUserInfoByToken();
  1024. fifth.setAccount(user.getCodeRs());
  1025. num = fifthDao.insert(fifth);
  1026. }
  1027. if (num == 0) {
  1028. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存发表论文与专著情况失败!");
  1029. }
  1030. resultMap.put("cg", "保存发表论文与专著情况成功!");
  1031. return ResultVoUtil.success(resultMap);
  1032. } catch (Exception e) {
  1033. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存发表论文与专著情况失败!");
  1034. }
  1035. }
  1036. /**
  1037. * @param socialNo 身份证号 time 发表时间
  1038. * @return map
  1039. * @Description 根据身份证号, 发表时间删除发表论文与专著情况
  1040. * @Author hsh
  1041. * @Date 2024/7/12 10:07
  1042. */
  1043. public ResultVo<Map<String, Object>> delTechnologyArchives5ByCode(String socialNo, String time) {
  1044. if (StringUtil.isBlank(socialNo) || StringUtil.isBlank(time)) {
  1045. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号或者发表时间,请检查!");
  1046. }
  1047. Map<String, Object> resultMap = new HashMap<>();
  1048. try {
  1049. int num = fifthDao.delTechnologyArchives5ByCode(socialNo, time);
  1050. if (num == 0) {
  1051. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除发表论文与专著情况失败!");
  1052. }
  1053. resultMap.put("cg", "删除发表论文与专著情况成功!");
  1054. return ResultVoUtil.success(resultMap);
  1055. } catch (Exception e) {
  1056. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除发表论文与专著情况失败!");
  1057. }
  1058. }
  1059. /**
  1060. * @return TechnologyArchives7 开展新技术情况
  1061. * @Description 查询开展新技术情况
  1062. * @Author hsh
  1063. * @Date 2024/7/12 15:42
  1064. */
  1065. public ResultVo<List<TechnologyArchives7>> selectTechnologyArchives7() {
  1066. UserInfo user = userCache.getUserInfoByToken();
  1067. QueryWrapper<TechnologyArchives7> querywrapper = new QueryWrapper<>();
  1068. querywrapper.eq("account",user.getCodeRs());
  1069. List<TechnologyArchives7> list = seventhDao.selectList(querywrapper);
  1070. return ResultVoUtil.success(list);
  1071. }
  1072. /**
  1073. * @param seventh 开展新技术情况
  1074. * @return map
  1075. * @Description 根据身份证号更新开展新技术情况
  1076. * @Author hsh
  1077. * @Date 2024/7/12 15:43
  1078. */
  1079. public ResultVo<Map<String, Object>> saveTechnologyArchives7(TechnologyArchives7 seventh) {
  1080. if (null == seventh || seventh.getSocialNo() == null) {
  1081. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "开展新技术情况信息不全,请检查!");
  1082. }
  1083. Map<String, Object> resultMap = new HashMap<>();
  1084. String socialNo = seventh.getSocialNo();
  1085. Integer id = seventh.getId();
  1086. TechnologyArchives7 ta7 = seventhDao.selectTechnologyArchives7ById(socialNo, id);
  1087. int num;
  1088. try {
  1089. if (null != ta7) {
  1090. String oldSocialNo = seventh.getOldSocialNo();
  1091. if (StringUtil.notBlank(oldSocialNo)) {
  1092. TechnologyArchives7 oldTa7 = seventhDao.selectTechnologyArchives7ById(oldSocialNo, id);
  1093. oldTa7.setSocialNo(socialNo);
  1094. int maxId = seventhDao.selectTechnologyArchives7MaxId(socialNo);
  1095. oldTa7.setId(maxId + 1);
  1096. num = seventhDao.insert(oldTa7);
  1097. seventhDao.delTechnologyArchives7ByCode(oldSocialNo, id);
  1098. } else {
  1099. UpdateWrapper<TechnologyArchives7> updateWrapper = new UpdateWrapper<>();
  1100. updateWrapper.eq("social_no",seventh.getSocialNo());
  1101. updateWrapper.eq("id",seventh.getId());
  1102. num = seventhDao.update(seventh, updateWrapper);
  1103. // num = seventhDao.updateTechnologyArchives7ById(seventh);
  1104. }
  1105. } else {
  1106. UserInfo user = userCache.getUserInfoByToken();
  1107. int maxId = seventhDao.selectTechnologyArchives7MaxId(socialNo);
  1108. seventh.setAccount(user.getCodeRs());
  1109. seventh.setId(maxId + 1);
  1110. num = seventhDao.insert(seventh);
  1111. }
  1112. if (num == 0) {
  1113. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存开展新技术情况失败!");
  1114. }
  1115. resultMap.put("cg", "保存开展新技术情况成功!");
  1116. return ResultVoUtil.success(resultMap);
  1117. } catch (Exception e) {
  1118. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存开展新技术情况失败!");
  1119. }
  1120. }
  1121. /**
  1122. * @param socialNo 身份证号 id
  1123. * @return map
  1124. * @Description 根据身份证号, id删除开展新技术情况
  1125. * @Author hsh
  1126. * @Date 2024/7/12 15:44
  1127. */
  1128. public ResultVo<Map<String, Object>> delTechnologyArchives7ByCode(String socialNo, Integer id) {
  1129. if (StringUtil.isBlank(socialNo)) {
  1130. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  1131. }
  1132. Map<String, Object> resultMap = new HashMap<>();
  1133. try {
  1134. int num = seventhDao.delTechnologyArchives7ByCode(socialNo, id);
  1135. if (num == 0) {
  1136. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除开展新技术情况失败!");
  1137. }
  1138. resultMap.put("cg", "删除开展新技术情况成功!");
  1139. return ResultVoUtil.success(resultMap);
  1140. } catch (Exception e) {
  1141. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除开展新技术情况失败!");
  1142. }
  1143. }
  1144. /**
  1145. * @return TechnologyArchives10 各种医疗活动记录
  1146. * @Description 查询各种医疗活动记录
  1147. * @Author hsh
  1148. * @Date 2024/7/16 9:49
  1149. */
  1150. public ResultVo<List<TechnologyArchives10>> selectTechnologyArchives10() {
  1151. UserInfo user = userCache.getUserInfoByToken();
  1152. QueryWrapper<TechnologyArchives10> querywrapper = new QueryWrapper<>();
  1153. querywrapper.eq("account",user.getCodeRs());
  1154. List<TechnologyArchives10> list = tenthDao.selectList(querywrapper);
  1155. return ResultVoUtil.success(list);
  1156. }
  1157. /***
  1158. * @Description 根据身份证号更新各种医疗活动记录
  1159. * @Author hsh
  1160. * @param tenth 各种医疗活动记录
  1161. * @return map
  1162. * @Date 2024/7/16 9:50
  1163. */
  1164. public ResultVo<Map<String, Object>> saveTechnologyArchives10(TechnologyArchives10 tenth) {
  1165. if (null == tenth || tenth.getSocialNo() == null) {
  1166. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "各种医疗活动记录信息不全,请检查!");
  1167. }
  1168. Map<String, Object> resultMap = new HashMap<>();
  1169. String socialNo = tenth.getSocialNo();
  1170. Integer id = tenth.getId();
  1171. TechnologyArchives10 ta10 = tenthDao.selectTechnologyArchives10ById(socialNo, id);
  1172. int num;
  1173. try {
  1174. if (null != ta10) {
  1175. String oldSocialNo = tenth.getOldSocialNo();
  1176. if (StringUtil.notBlank(oldSocialNo)) {
  1177. TechnologyArchives10 oldTa10 = tenthDao.selectTechnologyArchives10ById(oldSocialNo, id);
  1178. oldTa10.setSocialNo(socialNo);
  1179. int maxId = tenthDao.selectTechnologyArchives10MaxId(socialNo);
  1180. oldTa10.setId(maxId + 1);
  1181. num = tenthDao.insert(oldTa10);
  1182. tenthDao.delTechnologyArchives10ByCode(oldSocialNo, id);
  1183. } else {
  1184. UpdateWrapper<TechnologyArchives10> updateWrapper = new UpdateWrapper<>();
  1185. updateWrapper.eq("social_no",tenth.getSocialNo());
  1186. updateWrapper.eq("id",tenth.getId());
  1187. num = tenthDao.update(tenth, updateWrapper);
  1188. }
  1189. } else {
  1190. UserInfo user = userCache.getUserInfoByToken();
  1191. int maxId = tenthDao.selectTechnologyArchives10MaxId(socialNo);
  1192. tenth.setAccount(user.getCodeRs());
  1193. tenth.setId(maxId + 1);
  1194. num = tenthDao.insert(tenth);
  1195. }
  1196. if (num == 0) {
  1197. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存各种医疗活动记录失败!");
  1198. }
  1199. resultMap.put("cg", "保存各种医疗活动记录成功!");
  1200. return ResultVoUtil.success(resultMap);
  1201. } catch (Exception e) {
  1202. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存各种医疗活动记录失败!");
  1203. }
  1204. }
  1205. /**
  1206. * @param socialNo 身份证号 id
  1207. * @return map
  1208. * @Description 根据身份证号, id删除各种医疗活动记录
  1209. * @Author hsh
  1210. * @Date 2024/7/16 9:51
  1211. */
  1212. public ResultVo<Map<String, Object>> delTechnologyArchives10ByCode(String socialNo, Integer id) {
  1213. if (StringUtil.isBlank(socialNo)) {
  1214. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  1215. }
  1216. Map<String, Object> resultMap = new HashMap<>();
  1217. try {
  1218. int num = tenthDao.delTechnologyArchives10ByCode(socialNo, id);
  1219. if (num == 0) {
  1220. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除各种医疗活动记录失败!");
  1221. }
  1222. resultMap.put("cg", "删除各种医疗活动记录成功!");
  1223. return ResultVoUtil.success(resultMap);
  1224. } catch (Exception e) {
  1225. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除各种医疗活动记录失败!");
  1226. }
  1227. }
  1228. /**
  1229. * @return TechnologyArchives12 奖惩情况
  1230. * @Description 查询奖惩情况
  1231. * @Author hsh
  1232. * @Date 2024/7/16 14:59
  1233. */
  1234. public ResultVo<List<TechnologyArchives12>> selectTechnologyArchives12() {
  1235. UserInfo user = userCache.getUserInfoByToken();
  1236. QueryWrapper<TechnologyArchives12> querywrapper = new QueryWrapper<>();
  1237. querywrapper.eq("account",user.getCodeRs());
  1238. List<TechnologyArchives12> list = twelfthDao.selectList(querywrapper);
  1239. return ResultVoUtil.success(list);
  1240. }
  1241. /**
  1242. * @param twelfth 奖惩情况
  1243. * @return map
  1244. * @Description 根据身份证号更新奖惩情况
  1245. * @Author hsh
  1246. * @Date 2024/7/16 15:00
  1247. */
  1248. public ResultVo<Map<String, Object>> saveTechnologyArchives12(TechnologyArchives12 twelfth) {
  1249. if (null == twelfth || twelfth.getSocialNo() == null) {
  1250. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "奖惩情况信息不全,请检查!");
  1251. }
  1252. Map<String, Object> resultMap = new HashMap<>();
  1253. String socialNo = twelfth.getSocialNo();
  1254. Integer id = twelfth.getId();
  1255. TechnologyArchives12 ta12 = twelfthDao.selectTechnologyArchives12ById(socialNo, id);
  1256. int num;
  1257. try {
  1258. if (null != ta12) {
  1259. String oldSocialNo = twelfth.getOldSocialNo();
  1260. if (StringUtil.notBlank(oldSocialNo)) {
  1261. TechnologyArchives12 oldTa12 = twelfthDao.selectTechnologyArchives12ById(oldSocialNo, id);
  1262. oldTa12.setSocialNo(socialNo);
  1263. int maxId = twelfthDao.selectTechnologyArchives12MaxId(socialNo);
  1264. oldTa12.setId(maxId + 1);
  1265. num = twelfthDao.insert(oldTa12);
  1266. twelfthDao.delTechnologyArchives12ByCode(oldSocialNo, id);
  1267. } else {
  1268. UpdateWrapper<TechnologyArchives12> updateWrapper = new UpdateWrapper<>();
  1269. updateWrapper.eq("social_no",twelfth.getSocialNo());
  1270. updateWrapper.eq("id",twelfth.getId());
  1271. num = twelfthDao.update(twelfth, updateWrapper);
  1272. // num = twelfthDao.updateTechnologyArchives12ById(twelfth);
  1273. }
  1274. } else {
  1275. UserInfo user = userCache.getUserInfoByToken();
  1276. int maxId = twelfthDao.selectTechnologyArchives12MaxId(socialNo);
  1277. twelfth.setAccount(user.getCodeRs());
  1278. twelfth.setId(maxId + 1);
  1279. num = twelfthDao.insert(twelfth);
  1280. }
  1281. if (num == 0) {
  1282. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存奖惩情况失败!");
  1283. }
  1284. resultMap.put("cg", "保存奖惩情况成功!");
  1285. return ResultVoUtil.success(resultMap);
  1286. } catch (Exception e) {
  1287. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存奖惩情况失败!");
  1288. }
  1289. }
  1290. /**
  1291. * @param socialNo 身份证号 id
  1292. * @return map
  1293. * @Description 根据身份证号, id删除奖惩情况
  1294. * @Author hsh
  1295. * @Date 2024/7/16 15:02
  1296. */
  1297. public ResultVo<Map<String, Object>> delTechnologyArchives12ByCode(String socialNo, Integer id) {
  1298. if (StringUtil.isBlank(socialNo)) {
  1299. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  1300. }
  1301. Map<String, Object> resultMap = new HashMap<>();
  1302. try {
  1303. int num = twelfthDao.delTechnologyArchives12ByCode(socialNo, id);
  1304. if (num == 0) {
  1305. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除奖惩情况失败!");
  1306. }
  1307. resultMap.put("cg", "删除奖惩情况成功!");
  1308. return ResultVoUtil.success(resultMap);
  1309. } catch (Exception e) {
  1310. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除奖惩情况失败!");
  1311. }
  1312. }
  1313. /**
  1314. * @return TechnologyArchives13 专业学会任职情况
  1315. * @Description 查询专业学会任职情况
  1316. * @Author hsh
  1317. * @Date 2024/7/16 16:48
  1318. */
  1319. public ResultVo<List<TechnologyArchives13>> selectTechnologyArchives13() {
  1320. UserInfo user = userCache.getUserInfoByToken();
  1321. QueryWrapper<TechnologyArchives13> querywrapper = new QueryWrapper<>();
  1322. querywrapper.eq("account",user.getCodeRs());
  1323. List<TechnologyArchives13> list = thirteenthDao.selectList(querywrapper);
  1324. return ResultVoUtil.success(list);
  1325. }
  1326. /**
  1327. * @param socialNo 身份证号 name 专业学会名称
  1328. * @return map
  1329. * @Description 通过身份证号以及专业学会名称查找委任聘书图片
  1330. * @Author XU
  1331. * @Date 2025/4/17 15:00
  1332. */
  1333. public ResultVo<Map<String, Object>> selectAppointmentImage(String socialNo, String name) {
  1334. Map<String, Object> map = new HashMap<>();
  1335. Map<String, Object> imgMap = thirteenthDao.selectAppointmentImage(socialNo, name);
  1336. map.put("data", imgMap);
  1337. return ResultVoUtil.success(map);
  1338. }
  1339. public ResultVo<Map<String, Object>> putAppointmentImage(MultipartFile[] files, String name) {
  1340. UserInfo user = userCache.getUserInfoByToken();
  1341. String code = user.getCodeRs();
  1342. String uploadDir = "/uploadimage/appoinmentImage/" + code + "/" + name;
  1343. Map<String, Object> map = new HashMap<>();
  1344. List<String> urls = new ArrayList<>();
  1345. System.out.println(Arrays.toString(files));
  1346. for (MultipartFile file : files){
  1347. urls.add(archiveServer.uploadFile(file, uploadDir, !isProd).getPath());
  1348. }
  1349. map.put("urls",urls);
  1350. return ResultVoUtil.success(map);
  1351. }
  1352. /**
  1353. * @param socialNo 身份证号 name 专业学会名称 url 图片链接
  1354. * @return map
  1355. * @Description 通过身份证号以及专业学会名称设定委任聘书
  1356. * @Author XU
  1357. * @Date 2025/4/17 14:58
  1358. */
  1359. public ResultVo<Map<String, Object>> setAppointmentImage(String socialNo, String name, String url) {
  1360. Map<String, Object> map = new HashMap<>();
  1361. int imgMap = thirteenthDao.updateAppointmentImage(url, socialNo, name);
  1362. map.put("data", imgMap);
  1363. return ResultVoUtil.success(map);
  1364. }
  1365. /**
  1366. * @param thirteenth 专业学会任职情况
  1367. * @return map
  1368. * @Description 根据身份证号更新专业学会任职情况
  1369. * @Author hsh
  1370. * @Date 2024/7/16 16:49
  1371. */
  1372. public ResultVo<Map<String, Object>> saveTechnologyArchives13(TechnologyArchives13 thirteenth) {
  1373. if (null == thirteenth || thirteenth.getSocialNo() == null) {
  1374. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "专业学会任职情况信息不全,请检查!");
  1375. }
  1376. Map<String, Object> resultMap = new HashMap<>();
  1377. String socialNo = thirteenth.getSocialNo();
  1378. Integer id = thirteenth.getId();
  1379. TechnologyArchives13 ta13 = thirteenthDao.selectTechnologyArchives13ById(socialNo, id);
  1380. int num;
  1381. try {
  1382. if (null != ta13) {
  1383. String oldSocialNo = thirteenth.getOldSocialNo();
  1384. if (StringUtil.notBlank(oldSocialNo)) {
  1385. TechnologyArchives13 oldTa13 = thirteenthDao.selectTechnologyArchives13ById(oldSocialNo, id);
  1386. oldTa13.setSocialNo(socialNo);
  1387. int maxId = thirteenthDao.selectTechnologyArchives13MaxId(socialNo);
  1388. oldTa13.setId(maxId + 1);
  1389. num = thirteenthDao.insert(oldTa13);
  1390. thirteenthDao.delTechnologyArchives13ByCode(oldSocialNo, id);
  1391. } else {
  1392. UpdateWrapper<TechnologyArchives13> updateWrapper = new UpdateWrapper<>();
  1393. updateWrapper.eq("social_no",thirteenth.getSocialNo());
  1394. updateWrapper.eq("id",thirteenth.getId());
  1395. num = thirteenthDao.update(thirteenth, updateWrapper);
  1396. // num = thirteenthDao.updateTechnologyArchives13ById(thirteenth);
  1397. }
  1398. } else {
  1399. UserInfo user = userCache.getUserInfoByToken();
  1400. int maxId = thirteenthDao.selectTechnologyArchives13MaxId(socialNo);
  1401. thirteenth.setAccount(user.getCodeRs());
  1402. thirteenth.setId(maxId + 1);
  1403. num = thirteenthDao.insert(thirteenth);
  1404. }
  1405. if (num == 0) {
  1406. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存专业学会任职情况失败!");
  1407. }
  1408. resultMap.put("cg", "保存专业学会任职情况成功!");
  1409. return ResultVoUtil.success(resultMap);
  1410. } catch (Exception e) {
  1411. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存专业学会任职情况失败!");
  1412. }
  1413. }
  1414. /**
  1415. * @param socialNo 身份证号 id
  1416. * @return map
  1417. * @Description 根据身份证号, id删除专业学会任职情况
  1418. * @Author hsh
  1419. * @Date 2024/7/16 16:56
  1420. */
  1421. public ResultVo<Map<String, Object>> delTechnologyArchives13ByCode(String socialNo, Integer id) {
  1422. if (StringUtil.isBlank(socialNo)) {
  1423. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  1424. }
  1425. Map<String, Object> resultMap = new HashMap<>();
  1426. try {
  1427. int num = thirteenthDao.delTechnologyArchives13ByCode(socialNo, id);
  1428. if (num == 0) {
  1429. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除专业学会任职情况失败!");
  1430. }
  1431. resultMap.put("cg", "删除专业学会任职情况成功!");
  1432. return ResultVoUtil.success(resultMap);
  1433. } catch (Exception e) {
  1434. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除专业学会任职情况失败!");
  1435. }
  1436. }
  1437. /**
  1438. * @return TechnologyArchives14 继续教育学分获得情况
  1439. * @Description 查询继续教育学分获得情况
  1440. * @Author hsh
  1441. * @Date 2024/7/17 9:48
  1442. */
  1443. public ResultVo<List<TechnologyArchives14>> selectTechnologyArchives14() {
  1444. UserInfo user = userCache.getUserInfoByToken();
  1445. QueryWrapper<TechnologyArchives14> querywrapper = new QueryWrapper<>();
  1446. querywrapper.eq("account",user.getCodeRs());
  1447. List<TechnologyArchives14> list = fourteenthDao.selectList(querywrapper);
  1448. return ResultVoUtil.success(list);
  1449. }
  1450. /**
  1451. * @param fourteenth 继续教育学分获得情况
  1452. * @return map
  1453. * @Description 根据身份证号更新继续教育学分获得情况
  1454. * @Author hsh
  1455. * @Date 2024/7/17 9:49
  1456. */
  1457. public ResultVo<Map<String, Object>> saveTechnologyArchives14(TechnologyArchives14 fourteenth) {
  1458. if (null == fourteenth || fourteenth.getSocialNo() == null) {
  1459. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "继续教育学分获得情况信息不全,请检查!");
  1460. }
  1461. Map<String, Object> resultMap = new HashMap<>();
  1462. String socialNo = fourteenth.getSocialNo();
  1463. Integer id = fourteenth.getId();
  1464. TechnologyArchives14 ta14 = fourteenthDao.selectTechnologyArchives14ById(socialNo, id);
  1465. int num;
  1466. try {
  1467. if (null != ta14) {
  1468. String oldSocialNo = fourteenth.getOldSocialNo();
  1469. if (StringUtil.notBlank(oldSocialNo)) {
  1470. TechnologyArchives14 oldTa14 = fourteenthDao.selectTechnologyArchives14ById(oldSocialNo, id);
  1471. oldTa14.setSocialNo(socialNo);
  1472. int maxId = fourteenthDao.selectTechnologyArchives14MaxId(socialNo);
  1473. oldTa14.setId(maxId + 1);
  1474. num = fourteenthDao.insert(oldTa14);
  1475. fourteenthDao.delTechnologyArchives14ByCode(oldSocialNo, id);
  1476. } else {
  1477. UpdateWrapper<TechnologyArchives14> updateWrapper = new UpdateWrapper<>();
  1478. updateWrapper.eq("social_no",fourteenth.getSocialNo());
  1479. updateWrapper.eq("id",fourteenth.getId());
  1480. num = fourteenthDao.update(fourteenth, updateWrapper);
  1481. }
  1482. } else {
  1483. UserInfo user = userCache.getUserInfoByToken();
  1484. int maxId = fourteenthDao.selectTechnologyArchives14MaxId(socialNo);
  1485. fourteenth.setAccount(user.getCodeRs());
  1486. fourteenth.setId(maxId + 1);
  1487. num = fourteenthDao.insert(fourteenth);
  1488. }
  1489. if (num == 0) {
  1490. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存继续教育学分获得情况失败!");
  1491. }
  1492. resultMap.put("cg", "保存继续教育学分获得情况成功!");
  1493. return ResultVoUtil.success(resultMap);
  1494. } catch (Exception e) {
  1495. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存继续教育学分获得情况失败!");
  1496. }
  1497. }
  1498. /**
  1499. * @param socialNo 身份证号 id
  1500. * @return map
  1501. * @Description 根据身份证号, id删除继续教育学分获得情况
  1502. * @Author hsh
  1503. * @Date 2024/7/17 9:49
  1504. */
  1505. public ResultVo<Map<String, Object>> delTechnologyArchives14ByCode(String socialNo, Integer id) {
  1506. if (StringUtil.isBlank(socialNo)) {
  1507. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
  1508. }
  1509. Map<String, Object> resultMap = new HashMap<>();
  1510. try {
  1511. int num = fourteenthDao.delTechnologyArchives14ByCode(socialNo, id);
  1512. if (num == 0) {
  1513. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除继续教育学分获得情况失败!");
  1514. }
  1515. resultMap.put("cg", "删除继续教育学分获得情况成功!");
  1516. return ResultVoUtil.success(resultMap);
  1517. } catch (Exception e) {
  1518. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除继续教育学分获得情况失败!");
  1519. }
  1520. }
  1521. /**
  1522. * @param type 类型
  1523. * @return map
  1524. * @Description 查询技术档案种类
  1525. * @Author hsh
  1526. * @Date 2024/8/1 15:26
  1527. */
  1528. public ResultVo<Map<String, Object>> selectTechnologyArchivesHLType(String type) {
  1529. Map<String, Object> map = new HashMap<>();
  1530. List<Map<String, Object>> list;
  1531. if ("all".equals(type)) {
  1532. list = dao.selectTechnologyArchivesHLTypeAll();
  1533. } else {
  1534. list = dao.selectTechnologyArchivesHLType(type);
  1535. }
  1536. map.put("taList", list);
  1537. return ResultVoUtil.success(map);
  1538. }
  1539. /**
  1540. * @param vo (textType 文档类型 text 关键字)
  1541. * @return map
  1542. * @Description 根据文档类型查询护理技术文档信息
  1543. * @Author hsh
  1544. * @Date 2024/8/7 16:30
  1545. */
  1546. public ResultVo<Map<String, Object>> selectHLTechnologyArchivesInfo(TechnologyArchivesVo vo) {
  1547. if (StringUtil.isBlank(vo.getTextType())) {
  1548. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有找到文档类型,请检查!");
  1549. }
  1550. UserInfo user = userCache.getUserInfoByToken();
  1551. int dd = dao.selectHLTechnologyArchivesTypeQx(user.getCode().trim());
  1552. Map<String, Object> map = new HashMap<>();
  1553. List<Map<String, Object>> list;
  1554. TechnologyArchivesHLType t = dao.selectTechnologyArchivesHLTypeInfo(vo.getTextType());
  1555. if (t == null) {
  1556. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有检索到登录者的技术档案。");
  1557. }
  1558. String sql = t.getTableSql();
  1559. if (dd == 0) {
  1560. // 没有审核权限,只能查询自己的记录
  1561. String sfz;
  1562. if (null == user.getSocialNo() || StringUtil.isBlank(user.getSocialNo())) {
  1563. TechnologyArchivesHLMain mainSelf = hlMainDao.selectTechnologyArchivesHLMainBySocialNo(user.getCode().trim());
  1564. sfz = mainSelf.getSocialNo();
  1565. } else {
  1566. sfz = user.getSocialNo().trim();
  1567. }
  1568. if (StringUtil.isBlank(sfz)) {
  1569. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有检索到登录者技术档案的身份证信息,请检查!");
  1570. }
  1571. if (t.getTableName().endsWith("main")) {
  1572. if (StringUtil.notBlank(sql)) {
  1573. list = dao.selectTechnologyArchivesInfoBySql(sql, null, sfz);
  1574. } else {
  1575. list = dao.selectTechnologyArchivesHLMainInfo(t.getTableName(), null, sfz);
  1576. }
  1577. } else {
  1578. if (StringUtil.notBlank(sql)) {
  1579. list = dao.selectTechnologyArchivesInfoBySql(sql, null, sfz);
  1580. } else {
  1581. list = dao.selectTechnologyArchivesHLInfo(t.getTableName(), null, sfz);
  1582. }
  1583. }
  1584. } else {
  1585. // 查询所有的文档
  1586. String sfz = null;
  1587. String xm = null;
  1588. if (StringUtil.notBlank(vo.getText())) {
  1589. TechnologyArchivesHLMain mainSelf = hlMainDao.selectTechnologyArchivesHLMainBySocialNo(vo.getText());
  1590. if (null == mainSelf || StringUtil.isBlank(mainSelf.getSocialNo())) {
  1591. TechnologyArchivesHLMain main = dao.selectHLEmployeeInfo(vo.getText());
  1592. if (null != main && StringUtil.notBlank(main.getSocialNo())) {
  1593. sfz = main.getSocialNo().trim();
  1594. }
  1595. } else {
  1596. sfz = mainSelf.getSocialNo();
  1597. }
  1598. if (StringUtil.isBlank(sfz)) {
  1599. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有检索到查询技术档案的身份证信息,请检查!");
  1600. }
  1601. }
  1602. if (t.getTableName().endsWith("main")) {
  1603. if (StringUtil.notBlank(sql)) {
  1604. list = dao.selectTechnologyArchivesInfoBySql(sql, null, StringUtil.notBlank(vo.getText()) ? sfz : null);
  1605. } else {
  1606. list = dao.selectTechnologyArchivesHLMainInfo(t.getTableName(), null, StringUtil.notBlank(vo.getText()) ? sfz : null);
  1607. }
  1608. } else {
  1609. if (StringUtil.notBlank(sql)) {
  1610. list = dao.selectTechnologyArchivesInfoBySql(sql, null, StringUtil.notBlank(vo.getText()) ? sfz : null);
  1611. } else {
  1612. list = dao.selectTechnologyArchivesHLInfo(t.getTableName(), null, StringUtil.notBlank(vo.getText()) ? sfz : null);
  1613. }
  1614. }
  1615. }
  1616. // 拼接展示的字段prop以及字段label
  1617. String tableProp = t.getTableProp();
  1618. String tableLabel = t.getTableLabel();
  1619. String showLabel = t.getShowLabel();
  1620. if (StringUtil.isBlank(tableProp)) {
  1621. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, t.getName() + "没有配置显示字段prop,请联系管理员!");
  1622. }
  1623. if (StringUtil.isBlank(tableLabel)) {
  1624. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, t.getName() + "没有配置显示字段label,请联系管理员!");
  1625. }
  1626. List<String> propList = Arrays.asList(tableProp.split(","));
  1627. List<String> labelList = Arrays.asList(tableLabel.split(","));
  1628. List<String> showList = new ArrayList<>();
  1629. if (StringUtil.notBlank(showLabel)) {
  1630. showList = Arrays.asList(showLabel.split(","));
  1631. }
  1632. if (propList.size() != labelList.size()) {
  1633. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, t.getName() + "配置显示字段display和label数量不一致,请联系管理员!");
  1634. }
  1635. List<HeadInfo> display = new ArrayList<>();
  1636. // 文档资料都需要显示姓名
  1637. HeadInfo h = new HeadInfo();
  1638. h.setDisplay("姓名");
  1639. h.setName("xm");
  1640. h.setWidth("100");
  1641. h.setSort(1);
  1642. display.add(h);
  1643. for (int i = 0; i < propList.size(); i++) {
  1644. HeadInfo info = getHeadInfo(propList, i, labelList, showList);
  1645. display.add(info);
  1646. }
  1647. map.put("taData", list);
  1648. map.put("displayData", display);
  1649. return ResultVoUtil.success(map);
  1650. }
  1651. /**
  1652. * @param propList 显示的字段属性集合
  1653. * @param i 序号
  1654. * @param labelList 显示的字段名称集合
  1655. * @param showList 是否需要鼠标悬停显示全部信息
  1656. * @return HeadInfo 一个表头信息
  1657. * @Description 组装表头信息
  1658. * @Author hsh
  1659. * @Date 2024/8/7 17:04
  1660. */
  1661. @NotNull
  1662. private static HeadInfo getHeadInfo(List<String> propList, int i, List<String> labelList, List<String> showList) {
  1663. HeadInfo info = new HeadInfo();
  1664. String p = propList.get(i);
  1665. String l = labelList.get(i);
  1666. if (p.contains("|")) {
  1667. String f1 = p.split("\\|")[0];
  1668. String c1 = p.split("\\|")[1];
  1669. String f2 = l.split("\\|")[0];
  1670. String c2 = l.split("\\|")[1];
  1671. List<HeadInfo> displaysC = new ArrayList<>();
  1672. // 添加二级表头的标记(以“-t”结尾)
  1673. setShowInfo(showList, info, i, info, f1, f2);
  1674. List<String> propListC = Arrays.asList(c1.split(":"));
  1675. List<String> labelListC = Arrays.asList(c2.split(":"));
  1676. for (int j = 0; j < propListC.size(); j++) {
  1677. HeadInfo infoC = new HeadInfo();
  1678. String dc = propListC.get(j);
  1679. String lc = labelListC.get(j);
  1680. setShowInfo(showList, info, j, infoC, dc, lc);
  1681. displaysC.add(infoC);
  1682. }
  1683. info.setColumns(displaysC);
  1684. } else {
  1685. setShowInfo(showList, info, i, info, p, l);
  1686. }
  1687. return info;
  1688. }
  1689. /**
  1690. * @param showList 需要显示字段集合
  1691. * @param info 第一层显示数据(存在子级目录的话)
  1692. * @param o 序号
  1693. * @param infoChild 第二层显示数据(存在子级目录的话)或者第一层显示数据(不存在子级目录的话)
  1694. * @param prop 显示字段属性(可能带|,:符号 其中|表示后面拼接子级目录,:表示子级目录显示字典属性拼接)
  1695. * @param label 显示字段名称(可能带|,:,/符号 其中|表示后面拼接子级目录,:表示子级目录显示字典名称拼接,/表示后面拼接字段显示宽度)
  1696. * @Description 组成数据(备注:|,:,/需要按顺序拼接,否则会导致表格显示错误, 基本信息name一栏不用配置显示字段且所有字段属性不能出现xm)
  1697. * @Author hsh
  1698. * @Date 2024/8/7 18:33
  1699. */
  1700. private static void setShowInfo(List<String> showList, HeadInfo info, int o, HeadInfo infoChild, String prop, String label) {
  1701. infoChild.setName(prop);
  1702. if (!showList.isEmpty()) {
  1703. for (String str : showList) {
  1704. if (prop.equals(str)) {
  1705. info.setShow(true);
  1706. break;
  1707. }
  1708. }
  1709. }
  1710. String[] l = label.split("/");
  1711. infoChild.setDisplay(l[0]);
  1712. if (l.length == 2) {
  1713. infoChild.setWidth(l[1]);
  1714. }
  1715. infoChild.setSort(o + 2);
  1716. }
  1717. /**
  1718. * @param exportVo (ExportTypes 文档类型 ExportNames 关键字)
  1719. * @return map
  1720. * @Description 导出所有护理档案的信息
  1721. * @Author XU
  1722. * @Date 2025/4/2
  1723. */
  1724. public ResultVo<Map<String, Object>> exportMultiTechnologyArchives(HttpServletResponse response, TechnologyArchivesMultiVo exportVo) {
  1725. Map<String, Object> map = new HashMap<>();
  1726. List<ComplexSheetData> sheets = new ArrayList<>();
  1727. // 参数校验
  1728. if (exportVo.getExportTypes() == null || exportVo.getExportTypes().isEmpty()) {
  1729. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请选择要导出的文档类型");
  1730. }
  1731. if (exportVo.getExportNames() == null || exportVo.getExportNames().size() != exportVo.getExportTypes().size()) {
  1732. return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "每个导出类型必须对应一个名称");
  1733. }
  1734. String text = exportVo.getText();
  1735. // 遍历类型和名称
  1736. for (int i = 0; i < exportVo.getExportTypes().size(); i++) {
  1737. String textType = exportVo.getExportTypes().get(i);
  1738. String exportName = exportVo.getExportNames().get(i); // 获取自定义名称
  1739. TechnologyArchivesVo vo = new TechnologyArchivesVo();
  1740. vo.setText(text);
  1741. vo.setTextType(textType);
  1742. vo.setExportName(exportName); // 设置当前Sheet的名称
  1743. ResultVo<Map<String, Object>> result = selectHLTechnologyArchivesInfo(vo);
  1744. if (!result.isSuccess()) continue;
  1745. ComplexSheetData sheet = new ComplexSheetData();
  1746. sheet.setSheetName(exportName); // 直接使用自定义名称,无需拼接
  1747. sheet.setHeaders((List<HeadInfo>) result.getData().get("displayData"));
  1748. sheet.setData((List<Map<String, Object>>) result.getData().get("taData"));
  1749. sheets.add(sheet);
  1750. }
  1751. if (null == sheets || sheets.isEmpty()) {
  1752. map.put("code", 1);
  1753. map.put("massage", "查询数据为空,导出失败!");
  1754. return ResultVoUtil.success(map);
  1755. }
  1756. if (true) {
  1757. ExcelUtil.exportMultiSheetReport(response, sheets, "护理技术档案汇总报告.xls");
  1758. return null;
  1759. }
  1760. map.put("code", 0);
  1761. map.put("massage", "导出成功!");
  1762. return ResultVoUtil.success(map);
  1763. }
  1764. }