53 changed files with 1374 additions and 71 deletions
-
2chenhai-admin/src/main/java/com/chenhai/web/controller/system/CommentsController.java
-
2chenhai-admin/src/main/java/com/chenhai/web/controller/system/ConsultationFormsController.java
-
2chenhai-admin/src/main/java/com/chenhai/web/controller/system/ExpertMessagesController.java
-
2chenhai-admin/src/main/java/com/chenhai/web/controller/system/PostsController.java
-
2chenhai-admin/src/main/java/com/chenhai/web/controller/system/SensitiveWordsLibraryController.java
-
2chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetOnlineStatusController.java
-
2chenhai-admin/src/main/java/com/chenhai/web/controller/system/VetRepliesController.java
-
98chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetCertificateController.java
-
98chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetPersonalInfoController.java
-
6chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetQualificationController.java
-
7chenhai-system/src/main/java/com/chenhai/system/domain/Comments.java
-
4chenhai-system/src/main/java/com/chenhai/system/domain/ConsultationForms.java
-
7chenhai-system/src/main/java/com/chenhai/system/domain/ExpertMessages.java
-
7chenhai-system/src/main/java/com/chenhai/system/domain/Posts.java
-
7chenhai-system/src/main/java/com/chenhai/system/domain/SensitiveWordsLibrary.java
-
7chenhai-system/src/main/java/com/chenhai/system/domain/VetOnlineStatus.java
-
7chenhai-system/src/main/java/com/chenhai/system/domain/VetReplies.java
-
3chenhai-system/src/main/java/com/chenhai/system/mapper/CommentsMapper.java
-
3chenhai-system/src/main/java/com/chenhai/system/mapper/ConsultationFormsMapper.java
-
3chenhai-system/src/main/java/com/chenhai/system/mapper/ExpertMessagesMapper.java
-
3chenhai-system/src/main/java/com/chenhai/system/mapper/PostsMapper.java
-
3chenhai-system/src/main/java/com/chenhai/system/mapper/SensitiveWordsLibraryMapper.java
-
3chenhai-system/src/main/java/com/chenhai/system/mapper/VetOnlineStatusMapper.java
-
3chenhai-system/src/main/java/com/chenhai/system/mapper/VetRepliesMapper.java
-
2chenhai-system/src/main/java/com/chenhai/system/service/ICommentsService.java
-
2chenhai-system/src/main/java/com/chenhai/system/service/IConsultationFormsService.java
-
2chenhai-system/src/main/java/com/chenhai/system/service/IExpertMessagesService.java
-
2chenhai-system/src/main/java/com/chenhai/system/service/IPostsService.java
-
2chenhai-system/src/main/java/com/chenhai/system/service/ISensitiveWordsLibraryService.java
-
2chenhai-system/src/main/java/com/chenhai/system/service/IVetOnlineStatusService.java
-
2chenhai-system/src/main/java/com/chenhai/system/service/IVetRepliesService.java
-
4chenhai-system/src/main/java/com/chenhai/system/service/impl/CommentsServiceImpl.java
-
4chenhai-system/src/main/java/com/chenhai/system/service/impl/ConsultationFormsServiceImpl.java
-
4chenhai-system/src/main/java/com/chenhai/system/service/impl/ExpertMessagesServiceImpl.java
-
4chenhai-system/src/main/java/com/chenhai/system/service/impl/PostsServiceImpl.java
-
4chenhai-system/src/main/java/com/chenhai/system/service/impl/SensitiveWordsLibraryServiceImpl.java
-
4chenhai-system/src/main/java/com/chenhai/system/service/impl/VetOnlineStatusServiceImpl.java
-
4chenhai-system/src/main/java/com/chenhai/system/service/impl/VetRepliesServiceImpl.java
-
212chenhai-system/src/main/java/com/chenhai/vet/domain/VetCertificate.java
-
195chenhai-system/src/main/java/com/chenhai/vet/domain/VetPersonalInfo.java
-
9chenhai-system/src/main/java/com/chenhai/vet/domain/VetQualification.java
-
62chenhai-system/src/main/java/com/chenhai/vet/mapper/VetCertificateMapper.java
-
62chenhai-system/src/main/java/com/chenhai/vet/mapper/VetPersonalInfoMapper.java
-
7chenhai-system/src/main/java/com/chenhai/vet/mapper/VetQualificationMapper.java
-
62chenhai-system/src/main/java/com/chenhai/vet/service/IVetCertificateService.java
-
64chenhai-system/src/main/java/com/chenhai/vet/service/IVetPersonalInfoService.java
-
4chenhai-system/src/main/java/com/chenhai/vet/service/IVetQualificationService.java
-
97chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetCertificateServiceImpl.java
-
99chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetPersonalInfoServiceImpl.java
-
8chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetQualificationServiceImpl.java
-
122chenhai-system/src/main/resources/mapper/vet/VetCertificateMapper.xml
-
117chenhai-system/src/main/resources/mapper/vet/VetPersonalInfoMapper.xml
-
0chenhai-system/src/main/resources/mapper/vet/VetQualificationMapper.xml
@ -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)); |
|||
} |
|||
} |
|||
@ -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)); |
|||
} |
|||
} |
|||
@ -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(); |
|||
} |
|||
} |
|||
@ -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(); |
|||
} |
|||
} |
|||
@ -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); |
|||
} |
|||
@ -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); |
|||
} |
|||
@ -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); |
|||
} |
|||
@ -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); |
|||
|
|||
|
|||
} |
|||
@ -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); |
|||
} |
|||
} |
|||
@ -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); |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -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> |
|||
@ -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> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue