From a47f99389cafb71bc994f7e240f8571a532e9362 Mon Sep 17 00:00:00 2001 From: ChaiNingQi <2032830459@qq.com> Date: Tue, 30 Dec 2025 19:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BD=E5=8C=BB=E7=AB=AF=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/system/CommentsController.java | 2 +- .../system/ConsultationFormsController.java | 2 +- .../system/ExpertMessagesController.java | 2 +- .../controller/system/PostsController.java | 2 +- .../SensitiveWordsLibraryController.java | 2 +- .../system/VetOnlineStatusController.java | 2 +- .../system/VetRepliesController.java | 2 +- .../vet/VetCertificateController.java | 98 ++++++++ .../vet/VetPersonalInfoController.java | 98 ++++++++ .../VetQualificationController.java | 6 +- .../com/chenhai/system/domain/Comments.java | 7 +- .../system/domain/ConsultationForms.java | 4 +- .../chenhai/system/domain/ExpertMessages.java | 7 +- .../java/com/chenhai/system/domain/Posts.java | 7 +- .../system/domain/SensitiveWordsLibrary.java | 7 +- .../system/domain/VetOnlineStatus.java | 7 +- .../com/chenhai/system/domain/VetReplies.java | 7 +- .../chenhai/system/mapper/CommentsMapper.java | 3 +- .../mapper/ConsultationFormsMapper.java | 3 +- .../system/mapper/ExpertMessagesMapper.java | 3 +- .../chenhai/system/mapper/PostsMapper.java | 3 +- .../mapper/SensitiveWordsLibraryMapper.java | 3 +- .../system/mapper/VetOnlineStatusMapper.java | 3 +- .../system/mapper/VetRepliesMapper.java | 3 +- .../service/{vet => }/ICommentsService.java | 2 +- .../{vet => }/IConsultationFormsService.java | 2 +- .../{vet => }/IExpertMessagesService.java | 2 +- .../service/{vet => }/IPostsService.java | 2 +- .../ISensitiveWordsLibraryService.java | 2 +- .../{vet => }/IVetOnlineStatusService.java | 2 +- .../service/{vet => }/IVetRepliesService.java | 2 +- .../{vet => }/impl/CommentsServiceImpl.java | 4 +- .../impl/ConsultationFormsServiceImpl.java | 4 +- .../impl/ExpertMessagesServiceImpl.java | 4 +- .../{vet => }/impl/PostsServiceImpl.java | 4 +- .../SensitiveWordsLibraryServiceImpl.java | 4 +- .../impl/VetOnlineStatusServiceImpl.java | 4 +- .../{vet => }/impl/VetRepliesServiceImpl.java | 4 +- .../chenhai/vet/domain/VetCertificate.java | 212 ++++++++++++++++++ .../chenhai/vet/domain/VetPersonalInfo.java | 195 ++++++++++++++++ .../domain/VetQualification.java | 9 +- .../vet/mapper/VetCertificateMapper.java | 62 +++++ .../vet/mapper/VetPersonalInfoMapper.java | 62 +++++ .../mapper/VetQualificationMapper.java | 7 +- .../vet/service/IVetCertificateService.java | 62 +++++ .../vet/service/IVetPersonalInfoService.java | 64 ++++++ .../service}/IVetQualificationService.java | 4 +- .../impl/VetCertificateServiceImpl.java | 97 ++++++++ .../impl/VetPersonalInfoServiceImpl.java | 99 ++++++++ .../impl/VetQualificationServiceImpl.java | 8 +- .../mapper/vet/VetCertificateMapper.xml | 122 ++++++++++ .../mapper/vet/VetPersonalInfoMapper.xml | 117 ++++++++++ .../VetQualificationMapper.xml | 0 53 files changed, 1374 insertions(+), 71 deletions(-) create mode 100644 chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetCertificateController.java create mode 100644 chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetPersonalInfoController.java rename chenhai-admin/src/main/java/com/chenhai/web/controller/{system => vet}/VetQualificationController.java (95%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/ICommentsService.java (97%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/IConsultationFormsService.java (97%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/IExpertMessagesService.java (97%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/IPostsService.java (97%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/ISensitiveWordsLibraryService.java (97%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/IVetOnlineStatusService.java (97%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/IVetRepliesService.java (96%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/impl/CommentsServiceImpl.java (95%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/impl/ConsultationFormsServiceImpl.java (95%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/impl/ExpertMessagesServiceImpl.java (95%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/impl/PostsServiceImpl.java (95%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/impl/SensitiveWordsLibraryServiceImpl.java (95%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/impl/VetOnlineStatusServiceImpl.java (95%) rename chenhai-system/src/main/java/com/chenhai/system/service/{vet => }/impl/VetRepliesServiceImpl.java (95%) create mode 100644 chenhai-system/src/main/java/com/chenhai/vet/domain/VetCertificate.java create mode 100644 chenhai-system/src/main/java/com/chenhai/vet/domain/VetPersonalInfo.java rename chenhai-system/src/main/java/com/chenhai/{system => vet}/domain/VetQualification.java (99%) create mode 100644 chenhai-system/src/main/java/com/chenhai/vet/mapper/VetCertificateMapper.java create mode 100644 chenhai-system/src/main/java/com/chenhai/vet/mapper/VetPersonalInfoMapper.java rename chenhai-system/src/main/java/com/chenhai/{system => vet}/mapper/VetQualificationMapper.java (94%) create mode 100644 chenhai-system/src/main/java/com/chenhai/vet/service/IVetCertificateService.java create mode 100644 chenhai-system/src/main/java/com/chenhai/vet/service/IVetPersonalInfoService.java rename chenhai-system/src/main/java/com/chenhai/{system/service/vet => vet/service}/IVetQualificationService.java (93%) create mode 100644 chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetCertificateServiceImpl.java create mode 100644 chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetPersonalInfoServiceImpl.java rename chenhai-system/src/main/java/com/chenhai/{system/service/vet => vet/service}/impl/VetQualificationServiceImpl.java (92%) create mode 100644 chenhai-system/src/main/resources/mapper/vet/VetCertificateMapper.xml create mode 100644 chenhai-system/src/main/resources/mapper/vet/VetPersonalInfoMapper.xml rename chenhai-system/src/main/resources/mapper/{system => vet}/VetQualificationMapper.xml (100%) diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/CommentsController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/CommentsController.java index 1b05174..7f1f862 100644 --- a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/CommentsController.java +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/CommentsController.java @@ -7,7 +7,7 @@ import com.chenhai.common.core.page.TableDataInfo; import com.chenhai.common.enums.BusinessType; import com.chenhai.common.utils.poi.ExcelUtil; import com.chenhai.system.domain.Comments; -import com.chenhai.system.service.vet.ICommentsService; +import com.chenhai.system.service.ICommentsService; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/ConsultationFormsController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/ConsultationFormsController.java index 03cb161..ed85721 100644 --- a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/ConsultationFormsController.java +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/ConsultationFormsController.java @@ -7,7 +7,7 @@ import com.chenhai.common.core.page.TableDataInfo; import com.chenhai.common.enums.BusinessType; import com.chenhai.common.utils.poi.ExcelUtil; import com.chenhai.system.domain.ConsultationForms; -import com.chenhai.system.service.vet.IConsultationFormsService; +import com.chenhai.system.service.IConsultationFormsService; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/ExpertMessagesController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/ExpertMessagesController.java index 0c5b29b..40c3e9b 100644 --- a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/ExpertMessagesController.java +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/ExpertMessagesController.java @@ -7,7 +7,7 @@ import com.chenhai.common.core.page.TableDataInfo; import com.chenhai.common.enums.BusinessType; import com.chenhai.common.utils.poi.ExcelUtil; import com.chenhai.system.domain.ExpertMessages; -import com.chenhai.system.service.vet.IExpertMessagesService; +import com.chenhai.system.service.IExpertMessagesService; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/PostsController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/PostsController.java index e4dc48b..3e9cc5f 100644 --- a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/PostsController.java +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/PostsController.java @@ -7,7 +7,7 @@ import com.chenhai.common.core.page.TableDataInfo; import com.chenhai.common.enums.BusinessType; import com.chenhai.common.utils.poi.ExcelUtil; import com.chenhai.system.domain.Posts; -import com.chenhai.system.service.vet.IPostsService; +import com.chenhai.system.service.IPostsService; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/SensitiveWordsLibraryController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/SensitiveWordsLibraryController.java index c4f2915..5528924 100644 --- a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/SensitiveWordsLibraryController.java +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/SensitiveWordsLibraryController.java @@ -7,7 +7,7 @@ import com.chenhai.common.core.page.TableDataInfo; import com.chenhai.common.enums.BusinessType; import com.chenhai.common.utils.poi.ExcelUtil; import com.chenhai.system.domain.SensitiveWordsLibrary; -import com.chenhai.system.service.vet.ISensitiveWordsLibraryService; +import com.chenhai.system.service.ISensitiveWordsLibraryService; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetOnlineStatusController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetOnlineStatusController.java index 3eeb438..c714c22 100644 --- a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetOnlineStatusController.java +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetOnlineStatusController.java @@ -7,7 +7,7 @@ import com.chenhai.common.core.page.TableDataInfo; import com.chenhai.common.enums.BusinessType; import com.chenhai.common.utils.poi.ExcelUtil; import com.chenhai.system.domain.VetOnlineStatus; -import com.chenhai.system.service.vet.IVetOnlineStatusService; +import com.chenhai.system.service.IVetOnlineStatusService; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetRepliesController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetRepliesController.java index a190b6a..8f481e5 100644 --- a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetRepliesController.java +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetRepliesController.java @@ -7,7 +7,7 @@ import com.chenhai.common.core.page.TableDataInfo; import com.chenhai.common.enums.BusinessType; import com.chenhai.common.utils.poi.ExcelUtil; import com.chenhai.system.domain.VetReplies; -import com.chenhai.system.service.vet.IVetRepliesService; +import com.chenhai.system.service.IVetRepliesService; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetCertificateController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetCertificateController.java new file mode 100644 index 0000000..5aefba9 --- /dev/null +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetCertificateController.java @@ -0,0 +1,98 @@ +package com.chenhai.web.controller.vet; + +import com.chenhai.common.annotation.Log; +import com.chenhai.common.core.controller.BaseController; +import com.chenhai.common.core.domain.AjaxResult; +import com.chenhai.common.core.page.TableDataInfo; +import com.chenhai.common.enums.BusinessType; +import com.chenhai.common.utils.poi.ExcelUtil; +import com.chenhai.vet.domain.VetCertificate; +import com.chenhai.vet.service.IVetCertificateService; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 兽医执业证书Controller + * + * @author ruoyi + * @date 2025-12-29 + */ +@RestController +@RequestMapping("/system/certificate") +public class VetCertificateController extends BaseController +{ + @Autowired + private IVetCertificateService vetCertificateService; + + /** + * 查询兽医执业证书列表 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:list')") + @GetMapping("/list") + public TableDataInfo list(VetCertificate vetCertificate) + { + startPage(); + List list = vetCertificateService.selectVetCertificateList(vetCertificate); + return getDataTable(list); + } + + /** + * 导出兽医执业证书列表 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:export')") + @Log(title = "兽医执业证书", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, VetCertificate vetCertificate) + { + List list = vetCertificateService.selectVetCertificateList(vetCertificate); + ExcelUtil util = new ExcelUtil(VetCertificate.class); + util.exportExcel(response, list, "兽医执业证书数据"); + } + + /** + * 获取兽医执业证书详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(vetCertificateService.selectVetCertificateById(id)); + } + + /** + * 新增兽医执业证书 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:add')") + @Log(title = "兽医执业证书", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody VetCertificate vetCertificate) + { + return toAjax(vetCertificateService.insertVetCertificate(vetCertificate)); + } + + /** + * 修改兽医执业证书 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:edit')") + @Log(title = "兽医执业证书", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody VetCertificate vetCertificate) + { + return toAjax(vetCertificateService.updateVetCertificate(vetCertificate)); + } + + /** + * 删除兽医执业证书 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:remove')") + @Log(title = "兽医执业证书", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(vetCertificateService.deleteVetCertificateByIds(ids)); + } +} diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetPersonalInfoController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetPersonalInfoController.java new file mode 100644 index 0000000..b919ad8 --- /dev/null +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetPersonalInfoController.java @@ -0,0 +1,98 @@ +package com.chenhai.web.controller.vet; + +import com.chenhai.common.annotation.Log; +import com.chenhai.common.core.controller.BaseController; +import com.chenhai.common.core.domain.AjaxResult; +import com.chenhai.common.core.page.TableDataInfo; +import com.chenhai.common.enums.BusinessType; +import com.chenhai.common.utils.poi.ExcelUtil; +import com.chenhai.vet.domain.VetPersonalInfo; +import com.chenhai.vet.service.IVetPersonalInfoService; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 兽医个人信息Controller + * + * @author ruoyi + * @date 2025-12-29 + */ +@RestController +@RequestMapping("/vet/info") +public class VetPersonalInfoController extends BaseController +{ + @Autowired + private IVetPersonalInfoService vetPersonalInfoService; + + /** + * 查询兽医个人信息列表 + */ + @PreAuthorize("@ss.hasPermi('vet:info:list')") + @GetMapping("/list") + public TableDataInfo list(VetPersonalInfo vetPersonalInfo) + { + startPage(); + List list = vetPersonalInfoService.selectVetPersonalInfoList(vetPersonalInfo); + return getDataTable(list); + } + + /** + * 导出兽医个人信息列表 + */ + @PreAuthorize("@ss.hasPermi('vet:info:export')") + @Log(title = "兽医个人信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, VetPersonalInfo vetPersonalInfo) + { + List list = vetPersonalInfoService.selectVetPersonalInfoList(vetPersonalInfo); + ExcelUtil util = new ExcelUtil(VetPersonalInfo.class); + util.exportExcel(response, list, "兽医个人信息数据"); + } + + /** + * 获取兽医个人信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('vet:info:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(vetPersonalInfoService.selectVetPersonalInfoById(id)); + } + + /** + * 新增兽医个人信息 + */ + @PreAuthorize("@ss.hasPermi('vet:info:add')") + @Log(title = "兽医个人信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody VetPersonalInfo vetPersonalInfo) + { + return toAjax(vetPersonalInfoService.insertVetPersonalInfo(vetPersonalInfo)); + } + + /** + * 修改兽医个人信息 + */ + @PreAuthorize("@ss.hasPermi('vet:info:edit')") + @Log(title = "兽医个人信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody VetPersonalInfo vetPersonalInfo) + { + return toAjax(vetPersonalInfoService.updateVetPersonalInfo(vetPersonalInfo)); + } + + /** + * 删除兽医个人信息 + */ + @PreAuthorize("@ss.hasPermi('vet:info:remove')") + @Log(title = "兽医个人信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(vetPersonalInfoService.deleteVetPersonalInfoByIds(ids)); + } +} diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetQualificationController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetQualificationController.java similarity index 95% rename from chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetQualificationController.java rename to chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetQualificationController.java index 559294f..919807d 100644 --- a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetQualificationController.java +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetQualificationController.java @@ -1,4 +1,4 @@ -package com.chenhai.web.controller.system; +package com.chenhai.web.controller.vet; import com.chenhai.common.annotation.Log; import com.chenhai.common.core.controller.BaseController; @@ -6,8 +6,8 @@ import com.chenhai.common.core.domain.AjaxResult; import com.chenhai.common.core.page.TableDataInfo; import com.chenhai.common.enums.BusinessType; import com.chenhai.common.utils.poi.ExcelUtil; -import com.chenhai.system.domain.VetQualification; -import com.chenhai.system.service.vet.IVetQualificationService; +import com.chenhai.vet.domain.VetQualification; +import com.chenhai.vet.service.IVetQualificationService; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/Comments.java b/chenhai-system/src/main/java/com/chenhai/system/domain/Comments.java index 48e1527..9b3d093 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/domain/Comments.java +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/Comments.java @@ -1,11 +1,12 @@ package com.chenhai.system.domain; -import java.util.Date; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; -import com.chenhai.common.annotation.Excel; -import com.chenhai.common.core.domain.BaseEntity; + +import java.util.Date; /** * 评论(仅问答帖子可用)对象 comments diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/ConsultationForms.java b/chenhai-system/src/main/java/com/chenhai/system/domain/ConsultationForms.java index 77c764d..8796ee8 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/domain/ConsultationForms.java +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/ConsultationForms.java @@ -1,9 +1,9 @@ package com.chenhai.system.domain; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; import com.chenhai.common.annotation.Excel; import com.chenhai.common.core.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; /** * 问诊单对象 consultation_forms diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/ExpertMessages.java b/chenhai-system/src/main/java/com/chenhai/system/domain/ExpertMessages.java index cbf9c99..3a2bb16 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/domain/ExpertMessages.java +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/ExpertMessages.java @@ -1,11 +1,12 @@ package com.chenhai.system.domain; -import java.util.Date; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; -import com.chenhai.common.annotation.Excel; -import com.chenhai.common.core.domain.BaseEntity; + +import java.util.Date; /** * 专家一对一聊天消息对象 expert_messages diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/Posts.java b/chenhai-system/src/main/java/com/chenhai/system/domain/Posts.java index cc55045..55a873a 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/domain/Posts.java +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/Posts.java @@ -1,11 +1,12 @@ package com.chenhai.system.domain; -import java.util.Date; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; -import com.chenhai.common.annotation.Excel; -import com.chenhai.common.core.domain.BaseEntity; + +import java.util.Date; /** * 帖子(包含问答和经验分享)对象 posts diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/SensitiveWordsLibrary.java b/chenhai-system/src/main/java/com/chenhai/system/domain/SensitiveWordsLibrary.java index 64694ff..d47aa3a 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/domain/SensitiveWordsLibrary.java +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/SensitiveWordsLibrary.java @@ -1,11 +1,12 @@ package com.chenhai.system.domain; -import java.util.Date; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; -import com.chenhai.common.annotation.Excel; -import com.chenhai.common.core.domain.BaseEntity; + +import java.util.Date; /** * 敏感词库对象 sensitive_words_library diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/VetOnlineStatus.java b/chenhai-system/src/main/java/com/chenhai/system/domain/VetOnlineStatus.java index fe7d8be..9169f0e 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/domain/VetOnlineStatus.java +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/VetOnlineStatus.java @@ -1,11 +1,12 @@ package com.chenhai.system.domain; -import java.util.Date; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; -import com.chenhai.common.annotation.Excel; -import com.chenhai.common.core.domain.BaseEntity; + +import java.util.Date; /** * 专家在线状态对象 vet_online_status diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/VetReplies.java b/chenhai-system/src/main/java/com/chenhai/system/domain/VetReplies.java index dddf3a5..aded0e5 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/domain/VetReplies.java +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/VetReplies.java @@ -1,11 +1,12 @@ package com.chenhai.system.domain; -import java.util.Date; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; -import com.chenhai.common.annotation.Excel; -import com.chenhai.common.core.domain.BaseEntity; + +import java.util.Date; /** * 兽医回复对象 vet_replies diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/CommentsMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/CommentsMapper.java index ff5ac4e..a0df721 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/mapper/CommentsMapper.java +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/CommentsMapper.java @@ -1,9 +1,10 @@ package com.chenhai.system.mapper; -import java.util.List; import com.chenhai.system.domain.Comments; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * 评论(仅问答帖子可用)Mapper接口 * diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/ConsultationFormsMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/ConsultationFormsMapper.java index b97570c..ea78f87 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/mapper/ConsultationFormsMapper.java +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/ConsultationFormsMapper.java @@ -1,9 +1,10 @@ package com.chenhai.system.mapper; -import java.util.List; import com.chenhai.system.domain.ConsultationForms; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * 问诊单Mapper接口 * diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/ExpertMessagesMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/ExpertMessagesMapper.java index 8e99728..1e40ec6 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/mapper/ExpertMessagesMapper.java +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/ExpertMessagesMapper.java @@ -1,9 +1,10 @@ package com.chenhai.system.mapper; -import java.util.List; import com.chenhai.system.domain.ExpertMessages; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * 专家一对一聊天消息Mapper接口 * diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/PostsMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/PostsMapper.java index 72c1a92..94ddc43 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/mapper/PostsMapper.java +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/PostsMapper.java @@ -1,9 +1,10 @@ package com.chenhai.system.mapper; -import java.util.List; import com.chenhai.system.domain.Posts; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * 帖子(包含问答和经验分享)Mapper接口 * diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/SensitiveWordsLibraryMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/SensitiveWordsLibraryMapper.java index a7f1489..6be98b1 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/mapper/SensitiveWordsLibraryMapper.java +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/SensitiveWordsLibraryMapper.java @@ -1,9 +1,10 @@ package com.chenhai.system.mapper; -import java.util.List; import com.chenhai.system.domain.SensitiveWordsLibrary; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * 敏感词库Mapper接口 * diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/VetOnlineStatusMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/VetOnlineStatusMapper.java index 5853852..7be1abe 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/mapper/VetOnlineStatusMapper.java +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/VetOnlineStatusMapper.java @@ -1,9 +1,10 @@ package com.chenhai.system.mapper; -import java.util.List; import com.chenhai.system.domain.VetOnlineStatus; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * 专家在线状态Mapper接口 * diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/VetRepliesMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/VetRepliesMapper.java index d6b6b8d..e842e69 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/mapper/VetRepliesMapper.java +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/VetRepliesMapper.java @@ -1,9 +1,10 @@ package com.chenhai.system.mapper; -import java.util.List; import com.chenhai.system.domain.VetReplies; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * 兽医回复Mapper接口 * diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/ICommentsService.java b/chenhai-system/src/main/java/com/chenhai/system/service/ICommentsService.java similarity index 97% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/ICommentsService.java rename to chenhai-system/src/main/java/com/chenhai/system/service/ICommentsService.java index 9ecddf9..994e2c8 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/ICommentsService.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/ICommentsService.java @@ -1,4 +1,4 @@ -package com.chenhai.system.service.vet; +package com.chenhai.system.service; import com.chenhai.system.domain.Comments; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IConsultationFormsService.java b/chenhai-system/src/main/java/com/chenhai/system/service/IConsultationFormsService.java similarity index 97% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/IConsultationFormsService.java rename to chenhai-system/src/main/java/com/chenhai/system/service/IConsultationFormsService.java index 217d292..3979f2d 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IConsultationFormsService.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/IConsultationFormsService.java @@ -1,4 +1,4 @@ -package com.chenhai.system.service.vet; +package com.chenhai.system.service; import com.chenhai.system.domain.ConsultationForms; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IExpertMessagesService.java b/chenhai-system/src/main/java/com/chenhai/system/service/IExpertMessagesService.java similarity index 97% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/IExpertMessagesService.java rename to chenhai-system/src/main/java/com/chenhai/system/service/IExpertMessagesService.java index 86e2df9..9760ab2 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IExpertMessagesService.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/IExpertMessagesService.java @@ -1,4 +1,4 @@ -package com.chenhai.system.service.vet; +package com.chenhai.system.service; import com.chenhai.system.domain.ExpertMessages; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IPostsService.java b/chenhai-system/src/main/java/com/chenhai/system/service/IPostsService.java similarity index 97% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/IPostsService.java rename to chenhai-system/src/main/java/com/chenhai/system/service/IPostsService.java index e4a5066..f85aa07 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IPostsService.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/IPostsService.java @@ -1,4 +1,4 @@ -package com.chenhai.system.service.vet; +package com.chenhai.system.service; import com.chenhai.system.domain.Posts; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/ISensitiveWordsLibraryService.java b/chenhai-system/src/main/java/com/chenhai/system/service/ISensitiveWordsLibraryService.java similarity index 97% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/ISensitiveWordsLibraryService.java rename to chenhai-system/src/main/java/com/chenhai/system/service/ISensitiveWordsLibraryService.java index 206c6a3..670b334 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/ISensitiveWordsLibraryService.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/ISensitiveWordsLibraryService.java @@ -1,4 +1,4 @@ -package com.chenhai.system.service.vet; +package com.chenhai.system.service; import com.chenhai.system.domain.SensitiveWordsLibrary; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetOnlineStatusService.java b/chenhai-system/src/main/java/com/chenhai/system/service/IVetOnlineStatusService.java similarity index 97% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetOnlineStatusService.java rename to chenhai-system/src/main/java/com/chenhai/system/service/IVetOnlineStatusService.java index c192937..f4f4b97 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetOnlineStatusService.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/IVetOnlineStatusService.java @@ -1,4 +1,4 @@ -package com.chenhai.system.service.vet; +package com.chenhai.system.service; import com.chenhai.system.domain.VetOnlineStatus; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetRepliesService.java b/chenhai-system/src/main/java/com/chenhai/system/service/IVetRepliesService.java similarity index 96% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetRepliesService.java rename to chenhai-system/src/main/java/com/chenhai/system/service/IVetRepliesService.java index 14fbb40..b9a9434 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetRepliesService.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/IVetRepliesService.java @@ -1,4 +1,4 @@ -package com.chenhai.system.service.vet; +package com.chenhai.system.service; import com.chenhai.system.domain.VetReplies; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/CommentsServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/CommentsServiceImpl.java similarity index 95% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/CommentsServiceImpl.java rename to chenhai-system/src/main/java/com/chenhai/system/service/impl/CommentsServiceImpl.java index 99d7cbf..5805ca9 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/CommentsServiceImpl.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/CommentsServiceImpl.java @@ -1,8 +1,8 @@ -package com.chenhai.system.service.vet.impl; +package com.chenhai.system.service.impl; import com.chenhai.system.domain.Comments; import com.chenhai.system.mapper.CommentsMapper; -import com.chenhai.system.service.vet.ICommentsService; +import com.chenhai.system.service.ICommentsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/ConsultationFormsServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/ConsultationFormsServiceImpl.java similarity index 95% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/ConsultationFormsServiceImpl.java rename to chenhai-system/src/main/java/com/chenhai/system/service/impl/ConsultationFormsServiceImpl.java index 90b8837..cd01597 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/ConsultationFormsServiceImpl.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/ConsultationFormsServiceImpl.java @@ -1,8 +1,8 @@ -package com.chenhai.system.service.vet.impl; +package com.chenhai.system.service.impl; import com.chenhai.system.domain.ConsultationForms; import com.chenhai.system.mapper.ConsultationFormsMapper; -import com.chenhai.system.service.vet.IConsultationFormsService; +import com.chenhai.system.service.IConsultationFormsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/ExpertMessagesServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/ExpertMessagesServiceImpl.java similarity index 95% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/ExpertMessagesServiceImpl.java rename to chenhai-system/src/main/java/com/chenhai/system/service/impl/ExpertMessagesServiceImpl.java index 6533ae2..d459e9e 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/ExpertMessagesServiceImpl.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/ExpertMessagesServiceImpl.java @@ -1,8 +1,8 @@ -package com.chenhai.system.service.vet.impl; +package com.chenhai.system.service.impl; import com.chenhai.system.domain.ExpertMessages; import com.chenhai.system.mapper.ExpertMessagesMapper; -import com.chenhai.system.service.vet.IExpertMessagesService; +import com.chenhai.system.service.IExpertMessagesService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/PostsServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/PostsServiceImpl.java similarity index 95% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/PostsServiceImpl.java rename to chenhai-system/src/main/java/com/chenhai/system/service/impl/PostsServiceImpl.java index 12bcfec..d23629e 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/PostsServiceImpl.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/PostsServiceImpl.java @@ -1,8 +1,8 @@ -package com.chenhai.system.service.vet.impl; +package com.chenhai.system.service.impl; import com.chenhai.system.domain.Posts; import com.chenhai.system.mapper.PostsMapper; -import com.chenhai.system.service.vet.IPostsService; +import com.chenhai.system.service.IPostsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/SensitiveWordsLibraryServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/SensitiveWordsLibraryServiceImpl.java similarity index 95% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/SensitiveWordsLibraryServiceImpl.java rename to chenhai-system/src/main/java/com/chenhai/system/service/impl/SensitiveWordsLibraryServiceImpl.java index 30128a6..71a5347 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/SensitiveWordsLibraryServiceImpl.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/SensitiveWordsLibraryServiceImpl.java @@ -1,8 +1,8 @@ -package com.chenhai.system.service.vet.impl; +package com.chenhai.system.service.impl; import com.chenhai.system.domain.SensitiveWordsLibrary; import com.chenhai.system.mapper.SensitiveWordsLibraryMapper; -import com.chenhai.system.service.vet.ISensitiveWordsLibraryService; +import com.chenhai.system.service.ISensitiveWordsLibraryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetOnlineStatusServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/VetOnlineStatusServiceImpl.java similarity index 95% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetOnlineStatusServiceImpl.java rename to chenhai-system/src/main/java/com/chenhai/system/service/impl/VetOnlineStatusServiceImpl.java index cd22c2a..5089803 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetOnlineStatusServiceImpl.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/VetOnlineStatusServiceImpl.java @@ -1,8 +1,8 @@ -package com.chenhai.system.service.vet.impl; +package com.chenhai.system.service.impl; import com.chenhai.system.domain.VetOnlineStatus; import com.chenhai.system.mapper.VetOnlineStatusMapper; -import com.chenhai.system.service.vet.IVetOnlineStatusService; +import com.chenhai.system.service.IVetOnlineStatusService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetRepliesServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/VetRepliesServiceImpl.java similarity index 95% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetRepliesServiceImpl.java rename to chenhai-system/src/main/java/com/chenhai/system/service/impl/VetRepliesServiceImpl.java index 5bd02e1..68ab8da 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetRepliesServiceImpl.java +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/VetRepliesServiceImpl.java @@ -1,8 +1,8 @@ -package com.chenhai.system.service.vet.impl; +package com.chenhai.system.service.impl; import com.chenhai.system.domain.VetReplies; import com.chenhai.system.mapper.VetRepliesMapper; -import com.chenhai.system.service.vet.IVetRepliesService; +import com.chenhai.system.service.IVetRepliesService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/chenhai-system/src/main/java/com/chenhai/vet/domain/VetCertificate.java b/chenhai-system/src/main/java/com/chenhai/vet/domain/VetCertificate.java new file mode 100644 index 0000000..f8d694f --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/vet/domain/VetCertificate.java @@ -0,0 +1,212 @@ +package com.chenhai.vet.domain; + +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +import java.util.Date; + +/** + * 兽医执业证书对象 vet_certificate + * + * @author ruoyi + * @date 2025-12-29 + */ +public class VetCertificate extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 用户ID */ + @Excel(name = "用户ID") + private Long userId; + + /** 证书名称 */ + @Excel(name = "证书名称") + private String certName; + + /** 证书编号 */ + @Excel(name = "证书编号") + private String certNumber; + + /** 证书类型 */ + @Excel(name = "证书类型") + private String certType; + + /** 发证机构 */ + @Excel(name = "发证机构") + private String issueOrg; + + /** 发证日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "发证日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date issueDate; + + /** 到期日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date expireDate; + + /** 证书图片 */ + @Excel(name = "证书图片") + private String certImage; + + /** 状态(0正常 1即将过期 2已过期) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=即将过期,2=已过期") + private String status; + + /** 提前提醒天数 */ + @Excel(name = "提前提醒天数") + private Long remindDays; + + /** 上次提醒时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "上次提醒时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastRemindTime; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getUserId() + { + return userId; + } + + public void setCertName(String certName) + { + this.certName = certName; + } + + public String getCertName() + { + return certName; + } + + public void setCertNumber(String certNumber) + { + this.certNumber = certNumber; + } + + public String getCertNumber() + { + return certNumber; + } + + public void setCertType(String certType) + { + this.certType = certType; + } + + public String getCertType() + { + return certType; + } + + public void setIssueOrg(String issueOrg) + { + this.issueOrg = issueOrg; + } + + public String getIssueOrg() + { + return issueOrg; + } + + public void setIssueDate(Date issueDate) + { + this.issueDate = issueDate; + } + + public Date getIssueDate() + { + return issueDate; + } + + public void setExpireDate(Date expireDate) + { + this.expireDate = expireDate; + } + + public Date getExpireDate() + { + return expireDate; + } + + public void setCertImage(String certImage) + { + this.certImage = certImage; + } + + public String getCertImage() + { + return certImage; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + public void setRemindDays(Long remindDays) + { + this.remindDays = remindDays; + } + + public Long getRemindDays() + { + return remindDays; + } + + public void setLastRemindTime(Date lastRemindTime) + { + this.lastRemindTime = lastRemindTime; + } + + public Date getLastRemindTime() + { + return lastRemindTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("userId", getUserId()) + .append("certName", getCertName()) + .append("certNumber", getCertNumber()) + .append("certType", getCertType()) + .append("issueOrg", getIssueOrg()) + .append("issueDate", getIssueDate()) + .append("expireDate", getExpireDate()) + .append("certImage", getCertImage()) + .append("status", getStatus()) + .append("remindDays", getRemindDays()) + .append("lastRemindTime", getLastRemindTime()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/vet/domain/VetPersonalInfo.java b/chenhai-system/src/main/java/com/chenhai/vet/domain/VetPersonalInfo.java new file mode 100644 index 0000000..91592fa --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/vet/domain/VetPersonalInfo.java @@ -0,0 +1,195 @@ +package com.chenhai.vet.domain; + +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +import java.util.Date; + +/** + * 兽医个人信息对象 vet_personal_info + * + * @author ruoyi + * @date 2025-12-29 + */ +public class VetPersonalInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 用户ID(关联sys_user) */ + @Excel(name = "用户ID", readConverterExp = "关=联sys_user") + private Long userId; + + /** 真实姓名 */ + @Excel(name = "真实姓名") + private String realName; + + /** 性别(0男 1女) */ + @Excel(name = "性别", readConverterExp = "0=男,1=女") + private String gender; + + /** 出生日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date birthday; + + /** 身份证号 */ + @Excel(name = "身份证号") + private String idCard; + + /** 擅长领域 */ + @Excel(name = "擅长领域") + private String specialty; + + /** 工作经验(年) */ + @Excel(name = "工作经验", readConverterExp = "年=") + private Long workExperience; + + /** 所属医院 */ + @Excel(name = "所属医院") + private String hospital; + + /** 联系地址 */ + @Excel(name = "联系地址") + private String address; + + /** 个人简介 */ + @Excel(name = "个人简介") + private String introduction; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getUserId() + { + return userId; + } + + public void setRealName(String realName) + { + this.realName = realName; + } + + public String getRealName() + { + return realName; + } + + public void setGender(String gender) + { + this.gender = gender; + } + + public String getGender() + { + return gender; + } + + public void setBirthday(Date birthday) + { + this.birthday = birthday; + } + + public Date getBirthday() + { + return birthday; + } + + public void setIdCard(String idCard) + { + this.idCard = idCard; + } + + public String getIdCard() + { + return idCard; + } + + public void setSpecialty(String specialty) + { + this.specialty = specialty; + } + + public String getSpecialty() + { + return specialty; + } + + public void setWorkExperience(Long workExperience) + { + this.workExperience = workExperience; + } + + public Long getWorkExperience() + { + return workExperience; + } + + public void setHospital(String hospital) + { + this.hospital = hospital; + } + + public String getHospital() + { + return hospital; + } + + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + + public void setIntroduction(String introduction) + { + this.introduction = introduction; + } + + public String getIntroduction() + { + return introduction; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("userId", getUserId()) + .append("realName", getRealName()) + .append("gender", getGender()) + .append("birthday", getBirthday()) + .append("idCard", getIdCard()) + .append("specialty", getSpecialty()) + .append("workExperience", getWorkExperience()) + .append("hospital", getHospital()) + .append("address", getAddress()) + .append("introduction", getIntroduction()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/VetQualification.java b/chenhai-system/src/main/java/com/chenhai/vet/domain/VetQualification.java similarity index 99% rename from chenhai-system/src/main/java/com/chenhai/system/domain/VetQualification.java rename to chenhai-system/src/main/java/com/chenhai/vet/domain/VetQualification.java index ac3e6fc..05a3ef2 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/domain/VetQualification.java +++ b/chenhai-system/src/main/java/com/chenhai/vet/domain/VetQualification.java @@ -1,11 +1,12 @@ -package com.chenhai.system.domain; +package com.chenhai.vet.domain; -import java.util.Date; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; -import com.chenhai.common.annotation.Excel; -import com.chenhai.common.core.domain.BaseEntity; + +import java.util.Date; /** * 兽医资质对象 vet_qualification diff --git a/chenhai-system/src/main/java/com/chenhai/vet/mapper/VetCertificateMapper.java b/chenhai-system/src/main/java/com/chenhai/vet/mapper/VetCertificateMapper.java new file mode 100644 index 0000000..3f39ff5 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/vet/mapper/VetCertificateMapper.java @@ -0,0 +1,62 @@ +package com.chenhai.vet.mapper; + +import com.chenhai.vet.domain.VetCertificate; + +import java.util.List; + +/** + * 兽医执业证书Mapper接口 + * + * @author ruoyi + * @date 2025-12-29 + */ +public interface VetCertificateMapper +{ + /** + * 查询兽医执业证书 + * + * @param id 兽医执业证书主键 + * @return 兽医执业证书 + */ + public VetCertificate selectVetCertificateById(Long id); + + /** + * 查询兽医执业证书列表 + * + * @param vetCertificate 兽医执业证书 + * @return 兽医执业证书集合 + */ + public List selectVetCertificateList(VetCertificate vetCertificate); + + /** + * 新增兽医执业证书 + * + * @param vetCertificate 兽医执业证书 + * @return 结果 + */ + public int insertVetCertificate(VetCertificate vetCertificate); + + /** + * 修改兽医执业证书 + * + * @param vetCertificate 兽医执业证书 + * @return 结果 + */ + public int updateVetCertificate(VetCertificate vetCertificate); + + /** + * 删除兽医执业证书 + * + * @param id 兽医执业证书主键 + * @return 结果 + */ + public int deleteVetCertificateById(Long id); + + /** + * 批量删除兽医执业证书 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteVetCertificateByIds(Long[] ids); +} diff --git a/chenhai-system/src/main/java/com/chenhai/vet/mapper/VetPersonalInfoMapper.java b/chenhai-system/src/main/java/com/chenhai/vet/mapper/VetPersonalInfoMapper.java new file mode 100644 index 0000000..d687dd8 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/vet/mapper/VetPersonalInfoMapper.java @@ -0,0 +1,62 @@ +package com.chenhai.vet.mapper; + +import com.chenhai.vet.domain.VetPersonalInfo; + +import java.util.List; + +/** + * 兽医个人信息Mapper接口 + * + * @author ruoyi + * @date 2025-12-29 + */ +public interface VetPersonalInfoMapper +{ + /** + * 查询兽医个人信息 + * + * @param id 兽医个人信息主键 + * @return 兽医个人信息 + */ + public VetPersonalInfo selectVetPersonalInfoById(Long id); + + /** + * 查询兽医个人信息列表 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 兽医个人信息集合 + */ + public List selectVetPersonalInfoList(VetPersonalInfo vetPersonalInfo); + + /** + * 新增兽医个人信息 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 结果 + */ + public int insertVetPersonalInfo(VetPersonalInfo vetPersonalInfo); + + /** + * 修改兽医个人信息 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 结果 + */ + public int updateVetPersonalInfo(VetPersonalInfo vetPersonalInfo); + + /** + * 删除兽医个人信息 + * + * @param id 兽医个人信息主键 + * @return 结果 + */ + public int deleteVetPersonalInfoById(Long id); + + /** + * 批量删除兽医个人信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteVetPersonalInfoByIds(Long[] ids); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/VetQualificationMapper.java b/chenhai-system/src/main/java/com/chenhai/vet/mapper/VetQualificationMapper.java similarity index 94% rename from chenhai-system/src/main/java/com/chenhai/system/mapper/VetQualificationMapper.java rename to chenhai-system/src/main/java/com/chenhai/vet/mapper/VetQualificationMapper.java index 8bbf5aa..1220352 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/mapper/VetQualificationMapper.java +++ b/chenhai-system/src/main/java/com/chenhai/vet/mapper/VetQualificationMapper.java @@ -1,9 +1,10 @@ -package com.chenhai.system.mapper; +package com.chenhai.vet.mapper; -import java.util.List; -import com.chenhai.system.domain.VetQualification; +import com.chenhai.vet.domain.VetQualification; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * 兽医资质Mapper接口 * diff --git a/chenhai-system/src/main/java/com/chenhai/vet/service/IVetCertificateService.java b/chenhai-system/src/main/java/com/chenhai/vet/service/IVetCertificateService.java new file mode 100644 index 0000000..7374b8e --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/vet/service/IVetCertificateService.java @@ -0,0 +1,62 @@ +package com.chenhai.vet.service; + +import com.chenhai.vet.domain.VetCertificate; + +import java.util.List; + +/** + * 兽医执业证书Service接口 + * + * @author ruoyi + * @date 2025-12-29 + */ +public interface IVetCertificateService +{ + /** + * 查询兽医执业证书 + * + * @param id 兽医执业证书主键 + * @return 兽医执业证书 + */ + public VetCertificate selectVetCertificateById(Long id); + + /** + * 查询兽医执业证书列表 + * + * @param vetCertificate 兽医执业证书 + * @return 兽医执业证书集合 + */ + public List selectVetCertificateList(VetCertificate vetCertificate); + + /** + * 新增兽医执业证书 + * + * @param vetCertificate 兽医执业证书 + * @return 结果 + */ + public int insertVetCertificate(VetCertificate vetCertificate); + + /** + * 修改兽医执业证书 + * + * @param vetCertificate 兽医执业证书 + * @return 结果 + */ + public int updateVetCertificate(VetCertificate vetCertificate); + + /** + * 批量删除兽医执业证书 + * + * @param ids 需要删除的兽医执业证书主键集合 + * @return 结果 + */ + public int deleteVetCertificateByIds(Long[] ids); + + /** + * 删除兽医执业证书信息 + * + * @param id 兽医执业证书主键 + * @return 结果 + */ + public int deleteVetCertificateById(Long id); +} diff --git a/chenhai-system/src/main/java/com/chenhai/vet/service/IVetPersonalInfoService.java b/chenhai-system/src/main/java/com/chenhai/vet/service/IVetPersonalInfoService.java new file mode 100644 index 0000000..73962d1 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/vet/service/IVetPersonalInfoService.java @@ -0,0 +1,64 @@ +package com.chenhai.vet.service; + +import com.chenhai.vet.domain.VetPersonalInfo; + +import java.util.List; + +/** + * 兽医个人信息Service接口 + * + * @author ruoyi + * @date 2025-12-29 + */ +public interface IVetPersonalInfoService +{ + /** + * 查询兽医个人信息 + * + * @param id 兽医个人信息主键 + * @return 兽医个人信息 + */ + public VetPersonalInfo selectVetPersonalInfoById(Long id); + + /** + * 查询兽医个人信息列表 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 兽医个人信息集合 + */ + public List selectVetPersonalInfoList(VetPersonalInfo vetPersonalInfo); + + /** + * 新增兽医个人信息 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 结果 + */ + public int insertVetPersonalInfo(VetPersonalInfo vetPersonalInfo); + + /** + * 修改兽医个人信息 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 结果 + */ + public int updateVetPersonalInfo(VetPersonalInfo vetPersonalInfo); + + /** + * 批量删除兽医个人信息 + * + * @param ids 需要删除的兽医个人信息主键集合 + * @return 结果 + */ + public int deleteVetPersonalInfoByIds(Long[] ids); + + /** + * 删除兽医个人信息信息 + * + * @param id 兽医个人信息主键 + * @return 结果 + */ + public int deleteVetPersonalInfoById(Long id); + + +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetQualificationService.java b/chenhai-system/src/main/java/com/chenhai/vet/service/IVetQualificationService.java similarity index 93% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetQualificationService.java rename to chenhai-system/src/main/java/com/chenhai/vet/service/IVetQualificationService.java index ec47ad7..f9a4fb6 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetQualificationService.java +++ b/chenhai-system/src/main/java/com/chenhai/vet/service/IVetQualificationService.java @@ -1,6 +1,6 @@ -package com.chenhai.system.service.vet; +package com.chenhai.vet.service; -import com.chenhai.system.domain.VetQualification; +import com.chenhai.vet.domain.VetQualification; import java.util.List; diff --git a/chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetCertificateServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetCertificateServiceImpl.java new file mode 100644 index 0000000..39444a5 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetCertificateServiceImpl.java @@ -0,0 +1,97 @@ +package com.chenhai.vet.service.impl; + +import com.chenhai.common.utils.DateUtils; +import com.chenhai.vet.domain.VetCertificate; +import com.chenhai.vet.mapper.VetCertificateMapper; +import com.chenhai.vet.service.IVetCertificateService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 兽医执业证书Service业务层处理 + * + * @author ruoyi + * @date 2025-12-29 + */ +@Service +public class VetCertificateServiceImpl implements IVetCertificateService +{ + @Autowired + private VetCertificateMapper vetCertificateMapper; + + /** + * 查询兽医执业证书 + * + * @param id 兽医执业证书主键 + * @return 兽医执业证书 + */ + @Override + public VetCertificate selectVetCertificateById(Long id) + { + return vetCertificateMapper.selectVetCertificateById(id); + } + + /** + * 查询兽医执业证书列表 + * + * @param vetCertificate 兽医执业证书 + * @return 兽医执业证书 + */ + @Override + public List selectVetCertificateList(VetCertificate vetCertificate) + { + return vetCertificateMapper.selectVetCertificateList(vetCertificate); + } + + /** + * 新增兽医执业证书 + * + * @param vetCertificate 兽医执业证书 + * @return 结果 + */ + @Override + public int insertVetCertificate(VetCertificate vetCertificate) + { + vetCertificate.setCreateTime(DateUtils.getNowDate()); + return vetCertificateMapper.insertVetCertificate(vetCertificate); + } + + /** + * 修改兽医执业证书 + * + * @param vetCertificate 兽医执业证书 + * @return 结果 + */ + @Override + public int updateVetCertificate(VetCertificate vetCertificate) + { + vetCertificate.setUpdateTime(DateUtils.getNowDate()); + return vetCertificateMapper.updateVetCertificate(vetCertificate); + } + + /** + * 批量删除兽医执业证书 + * + * @param ids 需要删除的兽医执业证书主键 + * @return 结果 + */ + @Override + public int deleteVetCertificateByIds(Long[] ids) + { + return vetCertificateMapper.deleteVetCertificateByIds(ids); + } + + /** + * 删除兽医执业证书信息 + * + * @param id 兽医执业证书主键 + * @return 结果 + */ + @Override + public int deleteVetCertificateById(Long id) + { + return vetCertificateMapper.deleteVetCertificateById(id); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetPersonalInfoServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetPersonalInfoServiceImpl.java new file mode 100644 index 0000000..568917b --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetPersonalInfoServiceImpl.java @@ -0,0 +1,99 @@ +package com.chenhai.vet.service.impl; + +import com.chenhai.common.utils.DateUtils; +import com.chenhai.vet.domain.VetPersonalInfo; +import com.chenhai.vet.mapper.VetPersonalInfoMapper; +import com.chenhai.vet.service.IVetPersonalInfoService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 兽医个人信息Service业务层处理 + * + * @author ruoyi + * @date 2025-12-29 + */ +@Service +public class VetPersonalInfoServiceImpl implements IVetPersonalInfoService +{ + @Autowired + private VetPersonalInfoMapper vetPersonalInfoMapper; + + /** + * 查询兽医个人信息 + * + * @param id 兽医个人信息主键 + * @return 兽医个人信息 + */ + @Override + public VetPersonalInfo selectVetPersonalInfoById(Long id) + { + return vetPersonalInfoMapper.selectVetPersonalInfoById(id); + } + + /** + * 查询兽医个人信息列表 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 兽医个人信息 + */ + @Override + public List selectVetPersonalInfoList(VetPersonalInfo vetPersonalInfo) + { + return vetPersonalInfoMapper.selectVetPersonalInfoList(vetPersonalInfo); + } + + /** + * 新增兽医个人信息 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 结果 + */ + @Override + public int insertVetPersonalInfo(VetPersonalInfo vetPersonalInfo) + { + vetPersonalInfo.setCreateTime(DateUtils.getNowDate()); + return vetPersonalInfoMapper.insertVetPersonalInfo(vetPersonalInfo); + } + + /** + * 修改兽医个人信息 + * + * @param vetPersonalInfo 兽医个人信息 + * @return 结果 + */ + @Override + public int updateVetPersonalInfo(VetPersonalInfo vetPersonalInfo) + { + vetPersonalInfo.setUpdateTime(DateUtils.getNowDate()); + return vetPersonalInfoMapper.updateVetPersonalInfo(vetPersonalInfo); + } + + /** + * 批量删除兽医个人信息 + * + * @param ids 需要删除的兽医个人信息主键 + * @return 结果 + */ + @Override + public int deleteVetPersonalInfoByIds(Long[] ids) + { + return vetPersonalInfoMapper.deleteVetPersonalInfoByIds(ids); + } + + /** + * 删除兽医个人信息信息 + * + * @param id 兽医个人信息主键 + * @return 结果 + */ + @Override + public int deleteVetPersonalInfoById(Long id) + { + return vetPersonalInfoMapper.deleteVetPersonalInfoById(id); + } + + +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetQualificationServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetQualificationServiceImpl.java similarity index 92% rename from chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetQualificationServiceImpl.java rename to chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetQualificationServiceImpl.java index 071ce28..0d98bf0 100644 --- a/chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetQualificationServiceImpl.java +++ b/chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetQualificationServiceImpl.java @@ -1,9 +1,9 @@ -package com.chenhai.system.service.vet.impl; +package com.chenhai.vet.service.impl; import com.chenhai.common.utils.DateUtils; -import com.chenhai.system.domain.VetQualification; -import com.chenhai.system.mapper.VetQualificationMapper; -import com.chenhai.system.service.vet.IVetQualificationService; +import com.chenhai.vet.domain.VetQualification; +import com.chenhai.vet.mapper.VetQualificationMapper; +import com.chenhai.vet.service.IVetQualificationService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/chenhai-system/src/main/resources/mapper/vet/VetCertificateMapper.xml b/chenhai-system/src/main/resources/mapper/vet/VetCertificateMapper.xml new file mode 100644 index 0000000..eb0d1e7 --- /dev/null +++ b/chenhai-system/src/main/resources/mapper/vet/VetCertificateMapper.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, user_id, cert_name, cert_number, cert_type, issue_org, issue_date, expire_date, cert_image, status, remind_days, last_remind_time, create_by, create_time, update_by, update_time from vet_certificate + + + + + + + + insert into vet_certificate + + user_id, + cert_name, + cert_number, + cert_type, + issue_org, + issue_date, + expire_date, + cert_image, + status, + remind_days, + last_remind_time, + create_by, + create_time, + update_by, + update_time, + + + #{userId}, + #{certName}, + #{certNumber}, + #{certType}, + #{issueOrg}, + #{issueDate}, + #{expireDate}, + #{certImage}, + #{status}, + #{remindDays}, + #{lastRemindTime}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update vet_certificate + + user_id = #{userId}, + cert_name = #{certName}, + cert_number = #{certNumber}, + cert_type = #{certType}, + issue_org = #{issueOrg}, + issue_date = #{issueDate}, + expire_date = #{expireDate}, + cert_image = #{certImage}, + status = #{status}, + remind_days = #{remindDays}, + last_remind_time = #{lastRemindTime}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from vet_certificate where id = #{id} + + + + delete from vet_certificate where id in + + #{id} + + + \ No newline at end of file diff --git a/chenhai-system/src/main/resources/mapper/vet/VetPersonalInfoMapper.xml b/chenhai-system/src/main/resources/mapper/vet/VetPersonalInfoMapper.xml new file mode 100644 index 0000000..d908c95 --- /dev/null +++ b/chenhai-system/src/main/resources/mapper/vet/VetPersonalInfoMapper.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + select id, user_id, real_name, gender, birthday, id_card, specialty, work_experience, hospital, address, introduction, create_by, create_time, update_by, update_time from vet_personal_info + + + + + + + + insert into vet_personal_info + + user_id, + real_name, + gender, + birthday, + id_card, + specialty, + work_experience, + hospital, + address, + introduction, + create_by, + create_time, + update_by, + update_time, + + + #{userId}, + #{realName}, + #{gender}, + #{birthday}, + #{idCard}, + #{specialty}, + #{workExperience}, + #{hospital}, + #{address}, + #{introduction}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update vet_personal_info + + user_id = #{userId}, + real_name = #{realName}, + gender = #{gender}, + birthday = #{birthday}, + id_card = #{idCard}, + specialty = #{specialty}, + work_experience = #{workExperience}, + hospital = #{hospital}, + address = #{address}, + introduction = #{introduction}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from vet_personal_info where id = #{id} + + + + delete from vet_personal_info where id in + + #{id} + + + \ No newline at end of file diff --git a/chenhai-system/src/main/resources/mapper/system/VetQualificationMapper.xml b/chenhai-system/src/main/resources/mapper/vet/VetQualificationMapper.xml similarity index 100% rename from chenhai-system/src/main/resources/mapper/system/VetQualificationMapper.xml rename to chenhai-system/src/main/resources/mapper/vet/VetQualificationMapper.xml