Browse Source

兽医端个人信息

master
ChaiNingQi 2 days ago
parent
commit
a47f99389c
  1. 2
      chenhai-admin/src/main/java/com/chenhai/web/controller/system/CommentsController.java
  2. 2
      chenhai-admin/src/main/java/com/chenhai/web/controller/system/ConsultationFormsController.java
  3. 2
      chenhai-admin/src/main/java/com/chenhai/web/controller/system/ExpertMessagesController.java
  4. 2
      chenhai-admin/src/main/java/com/chenhai/web/controller/system/PostsController.java
  5. 2
      chenhai-admin/src/main/java/com/chenhai/web/controller/system/SensitiveWordsLibraryController.java
  6. 2
      chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetOnlineStatusController.java
  7. 2
      chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetRepliesController.java
  8. 98
      chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetCertificateController.java
  9. 98
      chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetPersonalInfoController.java
  10. 6
      chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetQualificationController.java
  11. 7
      chenhai-system/src/main/java/com/chenhai/system/domain/Comments.java
  12. 4
      chenhai-system/src/main/java/com/chenhai/system/domain/ConsultationForms.java
  13. 7
      chenhai-system/src/main/java/com/chenhai/system/domain/ExpertMessages.java
  14. 7
      chenhai-system/src/main/java/com/chenhai/system/domain/Posts.java
  15. 7
      chenhai-system/src/main/java/com/chenhai/system/domain/SensitiveWordsLibrary.java
  16. 7
      chenhai-system/src/main/java/com/chenhai/system/domain/VetOnlineStatus.java
  17. 7
      chenhai-system/src/main/java/com/chenhai/system/domain/VetReplies.java
  18. 3
      chenhai-system/src/main/java/com/chenhai/system/mapper/CommentsMapper.java
  19. 3
      chenhai-system/src/main/java/com/chenhai/system/mapper/ConsultationFormsMapper.java
  20. 3
      chenhai-system/src/main/java/com/chenhai/system/mapper/ExpertMessagesMapper.java
  21. 3
      chenhai-system/src/main/java/com/chenhai/system/mapper/PostsMapper.java
  22. 3
      chenhai-system/src/main/java/com/chenhai/system/mapper/SensitiveWordsLibraryMapper.java
  23. 3
      chenhai-system/src/main/java/com/chenhai/system/mapper/VetOnlineStatusMapper.java
  24. 3
      chenhai-system/src/main/java/com/chenhai/system/mapper/VetRepliesMapper.java
  25. 2
      chenhai-system/src/main/java/com/chenhai/system/service/ICommentsService.java
  26. 2
      chenhai-system/src/main/java/com/chenhai/system/service/IConsultationFormsService.java
  27. 2
      chenhai-system/src/main/java/com/chenhai/system/service/IExpertMessagesService.java
  28. 2
      chenhai-system/src/main/java/com/chenhai/system/service/IPostsService.java
  29. 2
      chenhai-system/src/main/java/com/chenhai/system/service/ISensitiveWordsLibraryService.java
  30. 2
      chenhai-system/src/main/java/com/chenhai/system/service/IVetOnlineStatusService.java
  31. 2
      chenhai-system/src/main/java/com/chenhai/system/service/IVetRepliesService.java
  32. 4
      chenhai-system/src/main/java/com/chenhai/system/service/impl/CommentsServiceImpl.java
  33. 4
      chenhai-system/src/main/java/com/chenhai/system/service/impl/ConsultationFormsServiceImpl.java
  34. 4
      chenhai-system/src/main/java/com/chenhai/system/service/impl/ExpertMessagesServiceImpl.java
  35. 4
      chenhai-system/src/main/java/com/chenhai/system/service/impl/PostsServiceImpl.java
  36. 4
      chenhai-system/src/main/java/com/chenhai/system/service/impl/SensitiveWordsLibraryServiceImpl.java
  37. 4
      chenhai-system/src/main/java/com/chenhai/system/service/impl/VetOnlineStatusServiceImpl.java
  38. 4
      chenhai-system/src/main/java/com/chenhai/system/service/impl/VetRepliesServiceImpl.java
  39. 212
      chenhai-system/src/main/java/com/chenhai/vet/domain/VetCertificate.java
  40. 195
      chenhai-system/src/main/java/com/chenhai/vet/domain/VetPersonalInfo.java
  41. 9
      chenhai-system/src/main/java/com/chenhai/vet/domain/VetQualification.java
  42. 62
      chenhai-system/src/main/java/com/chenhai/vet/mapper/VetCertificateMapper.java
  43. 62
      chenhai-system/src/main/java/com/chenhai/vet/mapper/VetPersonalInfoMapper.java
  44. 7
      chenhai-system/src/main/java/com/chenhai/vet/mapper/VetQualificationMapper.java
  45. 62
      chenhai-system/src/main/java/com/chenhai/vet/service/IVetCertificateService.java
  46. 64
      chenhai-system/src/main/java/com/chenhai/vet/service/IVetPersonalInfoService.java
  47. 4
      chenhai-system/src/main/java/com/chenhai/vet/service/IVetQualificationService.java
  48. 97
      chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetCertificateServiceImpl.java
  49. 99
      chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetPersonalInfoServiceImpl.java
  50. 8
      chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetQualificationServiceImpl.java
  51. 122
      chenhai-system/src/main/resources/mapper/vet/VetCertificateMapper.xml
  52. 117
      chenhai-system/src/main/resources/mapper/vet/VetPersonalInfoMapper.xml
  53. 0
      chenhai-system/src/main/resources/mapper/vet/VetQualificationMapper.xml

2
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;

2
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;

2
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;

2
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;

2
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;

2
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;

2
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;

98
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<VetCertificate> 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<VetCertificate> list = vetCertificateService.selectVetCertificateList(vetCertificate);
ExcelUtil<VetCertificate> util = new ExcelUtil<VetCertificate>(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));
}
}

98
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<VetPersonalInfo> 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<VetPersonalInfo> list = vetPersonalInfoService.selectVetPersonalInfoList(vetPersonalInfo);
ExcelUtil<VetPersonalInfo> util = new ExcelUtil<VetPersonalInfo>(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));
}
}

chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetQualificationController.java → chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetQualificationController.java

7
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

4
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

7
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

7
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

7
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

7
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

7
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

3
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接口
*

3
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接口
*

3
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接口
*

3
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接口
*

3
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接口
*

3
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接口
*

3
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接口
*

chenhai-system/src/main/java/com/chenhai/system/service/vet/ICommentsService.java → chenhai-system/src/main/java/com/chenhai/system/service/ICommentsService.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/IConsultationFormsService.java → chenhai-system/src/main/java/com/chenhai/system/service/IConsultationFormsService.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/IExpertMessagesService.java → chenhai-system/src/main/java/com/chenhai/system/service/IExpertMessagesService.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/IPostsService.java → chenhai-system/src/main/java/com/chenhai/system/service/IPostsService.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/ISensitiveWordsLibraryService.java → chenhai-system/src/main/java/com/chenhai/system/service/ISensitiveWordsLibraryService.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetOnlineStatusService.java → chenhai-system/src/main/java/com/chenhai/system/service/IVetOnlineStatusService.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetRepliesService.java → chenhai-system/src/main/java/com/chenhai/system/service/IVetRepliesService.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/CommentsServiceImpl.java → chenhai-system/src/main/java/com/chenhai/system/service/impl/CommentsServiceImpl.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/ConsultationFormsServiceImpl.java → chenhai-system/src/main/java/com/chenhai/system/service/impl/ConsultationFormsServiceImpl.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/ExpertMessagesServiceImpl.java → chenhai-system/src/main/java/com/chenhai/system/service/impl/ExpertMessagesServiceImpl.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/PostsServiceImpl.java → chenhai-system/src/main/java/com/chenhai/system/service/impl/PostsServiceImpl.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/SensitiveWordsLibraryServiceImpl.java → chenhai-system/src/main/java/com/chenhai/system/service/impl/SensitiveWordsLibraryServiceImpl.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetOnlineStatusServiceImpl.java → chenhai-system/src/main/java/com/chenhai/system/service/impl/VetOnlineStatusServiceImpl.java

chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetRepliesServiceImpl.java → chenhai-system/src/main/java/com/chenhai/system/service/impl/VetRepliesServiceImpl.java

212
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();
}
}

195
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();
}
}

chenhai-system/src/main/java/com/chenhai/system/domain/VetQualification.java → chenhai-system/src/main/java/com/chenhai/vet/domain/VetQualification.java

62
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<VetCertificate> 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);
}

62
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<VetPersonalInfo> 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);
}

chenhai-system/src/main/java/com/chenhai/system/mapper/VetQualificationMapper.java → chenhai-system/src/main/java/com/chenhai/vet/mapper/VetQualificationMapper.java

62
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<VetCertificate> 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);
}

64
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<VetPersonalInfo> 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);
}

chenhai-system/src/main/java/com/chenhai/system/service/vet/IVetQualificationService.java → chenhai-system/src/main/java/com/chenhai/vet/service/IVetQualificationService.java

97
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<VetCertificate> 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);
}
}

99
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<VetPersonalInfo> 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);
}
}

chenhai-system/src/main/java/com/chenhai/system/service/vet/impl/VetQualificationServiceImpl.java → chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetQualificationServiceImpl.java

122
chenhai-system/src/main/resources/mapper/vet/VetCertificateMapper.xml

@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.chenhai.system.mapper.VetCertificateMapper">
<resultMap type="VetCertificate" id="VetCertificateResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="certName" column="cert_name" />
<result property="certNumber" column="cert_number" />
<result property="certType" column="cert_type" />
<result property="issueOrg" column="issue_org" />
<result property="issueDate" column="issue_date" />
<result property="expireDate" column="expire_date" />
<result property="certImage" column="cert_image" />
<result property="status" column="status" />
<result property="remindDays" column="remind_days" />
<result property="lastRemindTime" column="last_remind_time" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectVetCertificateVo">
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
</sql>
<select id="selectVetCertificateList" parameterType="VetCertificate" resultMap="VetCertificateResult">
<include refid="selectVetCertificateVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="certName != null and certName != ''"> and cert_name like concat('%', #{certName}, '%')</if>
<if test="certNumber != null and certNumber != ''"> and cert_number = #{certNumber}</if>
<if test="certType != null and certType != ''"> and cert_type = #{certType}</if>
<if test="issueOrg != null and issueOrg != ''"> and issue_org = #{issueOrg}</if>
<if test="issueDate != null "> and issue_date = #{issueDate}</if>
<if test="expireDate != null "> and expire_date = #{expireDate}</if>
<if test="certImage != null and certImage != ''"> and cert_image = #{certImage}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="remindDays != null "> and remind_days = #{remindDays}</if>
<if test="lastRemindTime != null "> and last_remind_time = #{lastRemindTime}</if>
</where>
</select>
<select id="selectVetCertificateById" parameterType="Long" resultMap="VetCertificateResult">
<include refid="selectVetCertificateVo"/>
where id = #{id}
</select>
<insert id="insertVetCertificate" parameterType="VetCertificate" useGeneratedKeys="true" keyProperty="id">
insert into vet_certificate
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="certName != null">cert_name,</if>
<if test="certNumber != null">cert_number,</if>
<if test="certType != null">cert_type,</if>
<if test="issueOrg != null">issue_org,</if>
<if test="issueDate != null">issue_date,</if>
<if test="expireDate != null">expire_date,</if>
<if test="certImage != null">cert_image,</if>
<if test="status != null">status,</if>
<if test="remindDays != null">remind_days,</if>
<if test="lastRemindTime != null">last_remind_time,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="certName != null">#{certName},</if>
<if test="certNumber != null">#{certNumber},</if>
<if test="certType != null">#{certType},</if>
<if test="issueOrg != null">#{issueOrg},</if>
<if test="issueDate != null">#{issueDate},</if>
<if test="expireDate != null">#{expireDate},</if>
<if test="certImage != null">#{certImage},</if>
<if test="status != null">#{status},</if>
<if test="remindDays != null">#{remindDays},</if>
<if test="lastRemindTime != null">#{lastRemindTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateVetCertificate" parameterType="VetCertificate">
update vet_certificate
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="certName != null">cert_name = #{certName},</if>
<if test="certNumber != null">cert_number = #{certNumber},</if>
<if test="certType != null">cert_type = #{certType},</if>
<if test="issueOrg != null">issue_org = #{issueOrg},</if>
<if test="issueDate != null">issue_date = #{issueDate},</if>
<if test="expireDate != null">expire_date = #{expireDate},</if>
<if test="certImage != null">cert_image = #{certImage},</if>
<if test="status != null">status = #{status},</if>
<if test="remindDays != null">remind_days = #{remindDays},</if>
<if test="lastRemindTime != null">last_remind_time = #{lastRemindTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteVetCertificateById" parameterType="Long">
delete from vet_certificate where id = #{id}
</delete>
<delete id="deleteVetCertificateByIds" parameterType="String">
delete from vet_certificate where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

117
chenhai-system/src/main/resources/mapper/vet/VetPersonalInfoMapper.xml

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.chenhai.system.vet.mapper.VetPersonalInfoMapper">
<resultMap type="VetPersonalInfo" id="VetPersonalInfoResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="realName" column="real_name" />
<result property="gender" column="gender" />
<result property="birthday" column="birthday" />
<result property="idCard" column="id_card" />
<result property="specialty" column="specialty" />
<result property="workExperience" column="work_experience" />
<result property="hospital" column="hospital" />
<result property="address" column="address" />
<result property="introduction" column="introduction" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectVetPersonalInfoVo">
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
</sql>
<select id="selectVetPersonalInfoList" parameterType="VetPersonalInfo" resultMap="VetPersonalInfoResult">
<include refid="selectVetPersonalInfoVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
<if test="gender != null and gender != ''"> and gender = #{gender}</if>
<if test="birthday != null "> and birthday = #{birthday}</if>
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
<if test="specialty != null and specialty != ''"> and specialty = #{specialty}</if>
<if test="workExperience != null "> and work_experience = #{workExperience}</if>
<if test="hospital != null and hospital != ''"> and hospital = #{hospital}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="introduction != null and introduction != ''"> and introduction = #{introduction}</if>
</where>
</select>
<select id="selectVetPersonalInfoById" parameterType="Long" resultMap="VetPersonalInfoResult">
<include refid="selectVetPersonalInfoVo"/>
where id = #{id}
</select>
<insert id="insertVetPersonalInfo" parameterType="VetPersonalInfo" useGeneratedKeys="true" keyProperty="id">
insert into vet_personal_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="realName != null">real_name,</if>
<if test="gender != null">gender,</if>
<if test="birthday != null">birthday,</if>
<if test="idCard != null">id_card,</if>
<if test="specialty != null">specialty,</if>
<if test="workExperience != null">work_experience,</if>
<if test="hospital != null">hospital,</if>
<if test="address != null">address,</if>
<if test="introduction != null">introduction,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="realName != null">#{realName},</if>
<if test="gender != null">#{gender},</if>
<if test="birthday != null">#{birthday},</if>
<if test="idCard != null">#{idCard},</if>
<if test="specialty != null">#{specialty},</if>
<if test="workExperience != null">#{workExperience},</if>
<if test="hospital != null">#{hospital},</if>
<if test="address != null">#{address},</if>
<if test="introduction != null">#{introduction},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateVetPersonalInfo" parameterType="VetPersonalInfo">
update vet_personal_info
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="realName != null">real_name = #{realName},</if>
<if test="gender != null">gender = #{gender},</if>
<if test="birthday != null">birthday = #{birthday},</if>
<if test="idCard != null">id_card = #{idCard},</if>
<if test="specialty != null">specialty = #{specialty},</if>
<if test="workExperience != null">work_experience = #{workExperience},</if>
<if test="hospital != null">hospital = #{hospital},</if>
<if test="address != null">address = #{address},</if>
<if test="introduction != null">introduction = #{introduction},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteVetPersonalInfoById" parameterType="Long">
delete from vet_personal_info where id = #{id}
</delete>
<delete id="deleteVetPersonalInfoByIds" parameterType="String">
delete from vet_personal_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

chenhai-system/src/main/resources/mapper/system/VetQualificationMapper.xml → chenhai-system/src/main/resources/mapper/vet/VetQualificationMapper.xml

Loading…
Cancel
Save