24 changed files with 3696 additions and 2952 deletions
-
588chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetExperienceArticleController.java
-
63chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetProductController.java
-
557chenhai-admin/src/main/java/com/chenhai/web/controller/vet/VetQualificationController.java
-
66chenhai-system/src/main/java/com/chenhai/vet/domain/BusinessScopeConstants.java
-
112chenhai-system/src/main/java/com/chenhai/vet/domain/VetArticleCategory.java
-
21chenhai-system/src/main/java/com/chenhai/vet/domain/VetExperienceArticle.java
-
64chenhai-system/src/main/java/com/chenhai/vet/domain/VetProduct.java
-
476chenhai-system/src/main/java/com/chenhai/vet/domain/VetQualification.java
-
13chenhai-system/src/main/java/com/chenhai/vet/mapper/VetArticleCategoryMapper.java
-
36chenhai-system/src/main/java/com/chenhai/vet/mapper/VetExperienceArticleMapper.java
-
4chenhai-system/src/main/java/com/chenhai/vet/mapper/VetQualificationMapper.java
-
50chenhai-system/src/main/java/com/chenhai/vet/service/IVetExperienceArticleService.java
-
43chenhai-system/src/main/java/com/chenhai/vet/service/IVetProductService.java
-
10chenhai-system/src/main/java/com/chenhai/vet/service/IVetQualificationService.java
-
194chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetExperienceArticleServiceImpl.java
-
162chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetProductServiceImpl.java
-
1019chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetQualificationServiceImpl.java
-
34chenhai-system/src/main/resources/mapper/vet/VetArticleCategoryMapper.xml
-
90chenhai-system/src/main/resources/mapper/vet/VetExperienceArticleMapper.xml
-
19chenhai-system/src/main/resources/mapper/vet/VetProductMapper.xml
-
41chenhai-system/src/main/resources/mapper/vet/VetQualificationMapper.xml
-
41chenhai-ui/src/api/vet/product.js
-
2546chenhai-ui/src/views/vet/article/index.vue
-
345chenhai-ui/src/views/vet/product/index.vue
@ -1,66 +0,0 @@ |
|||
package com.chenhai.vet.domain; |
|||
|
|||
import java.util.LinkedHashMap; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 经营范围常量 |
|||
*/ |
|||
public class BusinessScopeConstants { |
|||
|
|||
// 经营范围映射 |
|||
public static final Map<String, String> SCOPE_MAP = new LinkedHashMap<String, String>() {{ |
|||
put("1", "畜禽诊疗"); |
|||
put("2", "宠物诊疗"); |
|||
put("3", "动物防疫"); |
|||
put("4", "检疫检验"); |
|||
put("5", "兽药经营"); |
|||
put("6", "饲料经营"); |
|||
put("7", "畜牧技术咨询"); |
|||
put("8", "畜禽养殖"); |
|||
put("9", "宠物美容"); |
|||
put("10", "宠物寄养"); |
|||
}}; |
|||
|
|||
// 所需资质映射 |
|||
public static final Map<String, String> REQUIRED_QUALIFICATIONS = new LinkedHashMap<String, String>() {{ |
|||
put("1", "执业兽医资格证、动物诊疗许可证"); |
|||
put("2", "执业兽医资格证、动物诊疗许可证、宠物诊疗许可证"); |
|||
put("3", "执业兽医资格证、动物防疫员证"); |
|||
put("4", "官方兽医资格证、检疫员证"); |
|||
put("5", "兽药经营许可证、GSP证书"); |
|||
put("6", "饲料经营许可证"); |
|||
put("7", "高级畜牧师证、技术顾问证书"); |
|||
put("8", "养殖场备案证、动物防疫合格证"); |
|||
put("9", "宠物美容师资格证"); |
|||
put("10", "动物防疫合格证、寄养场所备案证"); |
|||
}}; |
|||
|
|||
/** |
|||
* 根据ID获取经营范围名称 |
|||
*/ |
|||
public static String getScopeName(String scopeId) { |
|||
return SCOPE_MAP.get(scopeId); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID获取所需资质 |
|||
*/ |
|||
public static String getRequiredQualifications(String scopeId) { |
|||
return REQUIRED_QUALIFICATIONS.get(scopeId); |
|||
} |
|||
|
|||
/** |
|||
* 获取所有经营范围选项 |
|||
*/ |
|||
public static Map<String, String> getAllScopes() { |
|||
return SCOPE_MAP; |
|||
} |
|||
|
|||
/** |
|||
* 验证经营范围ID是否有效 |
|||
*/ |
|||
public static boolean isValidScopeId(String scopeId) { |
|||
return SCOPE_MAP.containsKey(scopeId); |
|||
} |
|||
} |
|||
@ -1,112 +0,0 @@ |
|||
package com.chenhai.vet.domain; |
|||
|
|||
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; |
|||
|
|||
/** |
|||
* 文章分类对象 vet_article_category |
|||
*/ |
|||
public class VetArticleCategory extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 分类ID */ |
|||
private Long id; |
|||
|
|||
/** 分类名称 */ |
|||
@Excel(name = "分类名称") |
|||
private String name; |
|||
|
|||
/** 分类描述 */ |
|||
@Excel(name = "分类描述") |
|||
private String description; |
|||
|
|||
/** 分类图标 */ |
|||
private String icon; |
|||
|
|||
/** 排序 */ |
|||
@Excel(name = "排序") |
|||
private Integer sortOrder; |
|||
|
|||
/** 状态(0正常 1停用) */ |
|||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用") |
|||
private String status; |
|||
|
|||
/** 文章数量(统计字段) */ |
|||
private Integer articleCount; |
|||
|
|||
// getter/setter 方法... |
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description; |
|||
} |
|||
|
|||
public String getIcon() { |
|||
return icon; |
|||
} |
|||
|
|||
public void setIcon(String icon) { |
|||
this.icon = icon; |
|||
} |
|||
|
|||
public Integer getSortOrder() { |
|||
return sortOrder; |
|||
} |
|||
|
|||
public void setSortOrder(Integer sortOrder) { |
|||
this.sortOrder = sortOrder; |
|||
} |
|||
|
|||
public String getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(String status) { |
|||
this.status = status; |
|||
} |
|||
|
|||
public Integer getArticleCount() { |
|||
return articleCount; |
|||
} |
|||
|
|||
public void setArticleCount(Integer articleCount) { |
|||
this.articleCount = articleCount; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("id", getId()) |
|||
.append("name", getName()) |
|||
.append("description", getDescription()) |
|||
.append("icon", getIcon()) |
|||
.append("sortOrder", getSortOrder()) |
|||
.append("status", getStatus()) |
|||
.append("articleCount", getArticleCount()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.toString(); |
|||
} |
|||
} |
|||
@ -1,13 +0,0 @@ |
|||
package com.chenhai.vet.mapper; |
|||
|
|||
import com.chenhai.vet.domain.VetArticleCategory; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import java.util.List; |
|||
|
|||
@Mapper |
|||
public interface VetArticleCategoryMapper { |
|||
/** |
|||
* 这个方法名必须和XML中的id完全一致 |
|||
*/ |
|||
List<VetArticleCategory> selectVetArticleCategoryList(VetArticleCategory vetArticleCategory); |
|||
} |
|||
1019
chenhai-system/src/main/java/com/chenhai/vet/service/impl/VetQualificationServiceImpl.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,34 +0,0 @@ |
|||
<?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.vet.mapper.VetArticleCategoryMapper"> |
|||
|
|||
<resultMap type="com.chenhai.vet.domain.VetArticleCategory" id="VetArticleCategoryResult"> |
|||
<result property="id" column="id"/> |
|||
<result property="name" column="name"/> |
|||
<result property="description" column="description"/> |
|||
<result property="icon" column="icon"/> |
|||
<result property="sortOrder" column="sort_order"/> |
|||
<result property="status" column="status"/> |
|||
<result property="articleCount" column="article_count"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
</resultMap> |
|||
|
|||
<sql id="selectVetArticleCategoryVo"> |
|||
select id, name, description, icon, sort_order, status, create_time, update_time |
|||
from vet_article_category |
|||
</sql> |
|||
|
|||
<!-- 这个方法名必须和Mapper接口中的方法名完全一致 --> |
|||
<select id="selectVetArticleCategoryList" parameterType="com.chenhai.vet.domain.VetArticleCategory" resultMap="VetArticleCategoryResult"> |
|||
<include refid="selectVetArticleCategoryVo"/> |
|||
<where> |
|||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
|||
<if test="status != null and status != ''"> and status = #{status}</if> |
|||
</where> |
|||
order by sort_order asc |
|||
</select> |
|||
|
|||
</mapper> |
|||
2546
chenhai-ui/src/views/vet/article/index.vue
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue