From b7409820d213d213f90141ee3049ac0d4c5e6780 Mon Sep 17 00:00:00 2001
From: longxiuwen <2691049525@qq.com>
Date: Thu, 30 Mar 2023 19:09:28 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=9A=84=E6=8E=A5=E5=8F=A3=E7=BC=96?=
=?UTF-8?q?=E5=86=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
inventory-dao/pom.xml | 3 +
.../pojo/dto/AddEducationResourceDto.java | 12 ++
.../bean/pojo/dto/AddEducationStudyDto.java | 10 +
.../bean/pojo/vo/EducationResourceVo.java | 11 +
.../bean/pojo/vo/EducationStudyListVo.java | 12 ++
.../rzyc/bean/pojo/vo/EducationStudyVo.java | 124 ++++++++++++
.../com/rzyc/mapper/EducationStudyMapper.java | 1 +
.../com/rzyc/mapper/ent/EntUserMapper.java | 2 +
.../com/rzyc/model/EducationResource.java | 26 ++-
.../java/com/rzyc/model/EducationStudy.java | 14 +-
.../mapper/EducationResourceMapper.xml | 21 +-
.../resources/mapper/EducationStudyMapper.xml | 27 ++-
.../resources/mapper/ent/EntUserMapper.xml | 188 ++++++++++--------
inventory-ent/pom.xml | 6 +
.../controller/EducationStudyController.java | 114 ++++++++++-
.../java/com/rzyc/service/TaskService.java | 4 -
.../com/rzyc/utils/StringEncryptorTest.java | 6 -
.../com/rzyc/utils/easyexcel/ReadTest.java | 4 +-
.../src/main/resources/application-dev.yml | 2 +-
.../src/main/resources/application.yml | 1 +
.../controller/IndustryListController.java | 22 +-
.../src/main/resources/application-dev.yml | 2 +-
22 files changed, 487 insertions(+), 125 deletions(-)
create mode 100644 inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationStudyVo.java
diff --git a/inventory-dao/pom.xml b/inventory-dao/pom.xml
index 11139b6..cd296b8 100644
--- a/inventory-dao/pom.xml
+++ b/inventory-dao/pom.xml
@@ -14,6 +14,9 @@
+
+
+
com.rzyc
utils
diff --git a/inventory-dao/src/main/java/com/rzyc/bean/pojo/dto/AddEducationResourceDto.java b/inventory-dao/src/main/java/com/rzyc/bean/pojo/dto/AddEducationResourceDto.java
index c450aeb..9efc563 100644
--- a/inventory-dao/src/main/java/com/rzyc/bean/pojo/dto/AddEducationResourceDto.java
+++ b/inventory-dao/src/main/java/com/rzyc/bean/pojo/dto/AddEducationResourceDto.java
@@ -36,6 +36,18 @@ public class AddEducationResourceDto {
@TableField("content")
private String content;
+ @ApiModelProperty(value = "图片")
+ @TableField("img")
+ private String img;
+
+ public String getImg() {
+ return img;
+ }
+
+ public void setImg(String img) {
+ this.img = img;
+ }
+
public String getId() {
return id;
}
diff --git a/inventory-dao/src/main/java/com/rzyc/bean/pojo/dto/AddEducationStudyDto.java b/inventory-dao/src/main/java/com/rzyc/bean/pojo/dto/AddEducationStudyDto.java
index c614e00..30e90ba 100644
--- a/inventory-dao/src/main/java/com/rzyc/bean/pojo/dto/AddEducationStudyDto.java
+++ b/inventory-dao/src/main/java/com/rzyc/bean/pojo/dto/AddEducationStudyDto.java
@@ -31,12 +31,22 @@ public class AddEducationStudyDto {
@NotBlank(message = "不能为空")
private String userId;
+ @ApiModelProperty(value = "成员id多个‘,’分割")
+ private String memberId;
+
@ApiModelProperty(value = "培训的学习时间")
private String studyDate;
@ApiModelProperty(value = "培训的学习单位")
private String studyUnit;
+ public String getMemberId() {
+ return memberId;
+ }
+
+ public void setMemberId(String memberId) {
+ this.memberId = memberId;
+ }
public String getId() {
return id;
diff --git a/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationResourceVo.java b/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationResourceVo.java
index dac2013..a1f8134 100644
--- a/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationResourceVo.java
+++ b/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationResourceVo.java
@@ -23,6 +23,9 @@ public class EducationResourceVo {
@ApiModelProperty(value = "上传人id")
private String userId;
+ @ApiModelProperty(value = "图片")
+ private String img;
+
@ApiModelProperty(value = "资料名")
private String name;
@@ -56,6 +59,14 @@ public class EducationResourceVo {
this.userId = userId;
}
+ public String getImg() {
+ return img;
+ }
+
+ public void setImg(String img) {
+ this.img = img;
+ }
+
public String getName() {
return name;
}
diff --git a/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationStudyListVo.java b/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationStudyListVo.java
index cdc9e31..2b67399 100644
--- a/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationStudyListVo.java
+++ b/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationStudyListVo.java
@@ -32,6 +32,10 @@ public class EducationStudyListVo {
@TableField("user_id")
private String userId;
+ @ApiModelProperty(value = "成员名字(,分割)")
+ @TableField("member_id")
+ private String memberId;
+
@ApiModelProperty(value = "培训的学习时间")
@TableField("study_date")
private String studyDate;
@@ -40,6 +44,14 @@ public class EducationStudyListVo {
@TableField("study_unit")
private String studyUnit;
+ public String getMemberId() {
+ return memberId;
+ }
+
+ public void setMemberId(String memberId) {
+ this.memberId = memberId;
+ }
+
public String getId() {
return id;
}
diff --git a/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationStudyVo.java b/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationStudyVo.java
new file mode 100644
index 0000000..dd80f94
--- /dev/null
+++ b/inventory-dao/src/main/java/com/rzyc/bean/pojo/vo/EducationStudyVo.java
@@ -0,0 +1,124 @@
+package com.rzyc.bean.pojo.vo;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * @BelongsProject: inventory-api
+ * @BelongsPackage: com.rzyc.bean.pojo.vo
+ * @Author: SYZ
+ * @CreateTime: 2023-03-30 13:08
+ * @Version: 1.0
+ */
+public class EducationStudyVo {
+
+ @ApiModelProperty(value = "主键")
+ @TableId("id")
+ private String id;
+
+ @ApiModelProperty(value = "企业id")
+ @TableField("enterprise_id")
+ private String enterpriseId;
+
+ @ApiModelProperty(value = "摘要")
+ @TableField("title")
+ private String title;
+
+ @ApiModelProperty(value = "内容")
+ @TableField("content")
+ private String content;
+
+ @ApiModelProperty(value = "上传人id")
+ @TableField("user_id")
+ private String userId;
+
+ @ApiModelProperty(value = "成员名字(,分割)")
+ @TableField("member_id")
+ private String memberNames;
+
+ @ApiModelProperty(value = "培训的学习时间")
+ @TableField("study_date")
+ private String studyDate;
+
+ @ApiModelProperty(value = "培训的学习单位")
+ @TableField("study_unit")
+ private String studyUnit;
+
+ @ApiModelProperty(value = "创建时间")
+ @TableField("create_time")
+ private String createTime;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getEnterpriseId() {
+ return enterpriseId;
+ }
+
+ public void setEnterpriseId(String enterpriseId) {
+ this.enterpriseId = enterpriseId;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getUserId() {
+ return userId;
+ }
+
+ public void setUserId(String userId) {
+ this.userId = userId;
+ }
+
+ public String getMemberNames() {
+ return memberNames;
+ }
+
+ public void setMemberNames(String memberNames) {
+ this.memberNames = memberNames;
+ }
+
+ public String getStudyDate() {
+ return studyDate;
+ }
+
+ public void setStudyDate(String studyDate) {
+ this.studyDate = studyDate;
+ }
+
+ public String getStudyUnit() {
+ return studyUnit;
+ }
+
+ public void setStudyUnit(String studyUnit) {
+ this.studyUnit = studyUnit;
+ }
+
+ public String getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(String createTime) {
+ this.createTime = createTime;
+ }
+}
+
diff --git a/inventory-dao/src/main/java/com/rzyc/mapper/EducationStudyMapper.java b/inventory-dao/src/main/java/com/rzyc/mapper/EducationStudyMapper.java
index 458f224..7aa24a8 100644
--- a/inventory-dao/src/main/java/com/rzyc/mapper/EducationStudyMapper.java
+++ b/inventory-dao/src/main/java/com/rzyc/mapper/EducationStudyMapper.java
@@ -22,6 +22,7 @@ public interface EducationStudyMapper extends BaseMapper {
List selectEducationStudyList(@Param("startTime") String startTime,
@Param("endTime") String endTime,
@Param("enterpriseId") String enterpriseId,
+ @Param("memberId") String memberId,
@Param("queryWord") String queryWord);
}
diff --git a/inventory-dao/src/main/java/com/rzyc/mapper/ent/EntUserMapper.java b/inventory-dao/src/main/java/com/rzyc/mapper/ent/EntUserMapper.java
index 16c48ce..0c4ccac 100644
--- a/inventory-dao/src/main/java/com/rzyc/mapper/ent/EntUserMapper.java
+++ b/inventory-dao/src/main/java/com/rzyc/mapper/ent/EntUserMapper.java
@@ -18,6 +18,8 @@ import java.util.List;
@Repository
public interface EntUserMapper extends BaseMapper {
+ List selectUsernamesByIds(@Param("ids") List ids);
+
/**
* 查询企业用户by名字
* @param name 用户名
diff --git a/inventory-dao/src/main/java/com/rzyc/model/EducationResource.java b/inventory-dao/src/main/java/com/rzyc/model/EducationResource.java
index 9c1bed1..12fbc17 100644
--- a/inventory-dao/src/main/java/com/rzyc/model/EducationResource.java
+++ b/inventory-dao/src/main/java/com/rzyc/model/EducationResource.java
@@ -14,7 +14,7 @@ import io.swagger.annotations.ApiModelProperty;
*
*
* @author
- * @since 2023-03-29
+ * @since 2023-03-30
*/
@TableName("education_resource")
@ApiModel(value="EducationResource对象", description="")
@@ -42,6 +42,14 @@ public class EducationResource implements Serializable {
@TableField("content")
private String content;
+ @ApiModelProperty(value = "图片")
+ @TableField("img")
+ private String img;
+
+ @ApiModelProperty(value = "培训时间")
+ @TableField("study_date")
+ private Date studyDate;
+
@ApiModelProperty(value = "创建时间")
@TableField("create_time")
private Date createTime;
@@ -85,6 +93,20 @@ public class EducationResource implements Serializable {
public void setContent(String content) {
this.content = content;
}
+ public String getImg() {
+ return img;
+ }
+
+ public void setImg(String img) {
+ this.img = img;
+ }
+ public Date getStudyDate() {
+ return studyDate;
+ }
+
+ public void setStudyDate(Date studyDate) {
+ this.studyDate = studyDate;
+ }
public Date getCreateTime() {
return createTime;
}
@@ -108,6 +130,8 @@ public class EducationResource implements Serializable {
", userId=" + userId +
", name=" + name +
", content=" + content +
+ ", img=" + img +
+ ", studyDate=" + studyDate +
", createTime=" + createTime +
", modifyTime=" + modifyTime +
"}";
diff --git a/inventory-dao/src/main/java/com/rzyc/model/EducationStudy.java b/inventory-dao/src/main/java/com/rzyc/model/EducationStudy.java
index a0ac0f4..be4a79d 100644
--- a/inventory-dao/src/main/java/com/rzyc/model/EducationStudy.java
+++ b/inventory-dao/src/main/java/com/rzyc/model/EducationStudy.java
@@ -14,7 +14,7 @@ import io.swagger.annotations.ApiModelProperty;
*
*
* @author
- * @since 2023-03-27
+ * @since 2023-03-30
*/
@TableName("education_study")
@ApiModel(value="EducationStudy对象", description="教育培训表")
@@ -42,6 +42,10 @@ public class EducationStudy implements Serializable {
@TableField("user_id")
private String userId;
+ @ApiModelProperty(value = "成员名字(,分割)")
+ @TableField("member_id")
+ private String memberId;
+
@ApiModelProperty(value = "培训的学习时间")
@TableField("study_date")
private Date studyDate;
@@ -89,6 +93,13 @@ public class EducationStudy implements Serializable {
public void setUserId(String userId) {
this.userId = userId;
}
+ public String getMemberId() {
+ return memberId;
+ }
+
+ public void setMemberId(String memberId) {
+ this.memberId = memberId;
+ }
public Date getStudyDate() {
return studyDate;
}
@@ -119,6 +130,7 @@ public class EducationStudy implements Serializable {
", title=" + title +
", content=" + content +
", userId=" + userId +
+ ", memberId=" + memberId +
", studyDate=" + studyDate +
", studyUnit=" + studyUnit +
", createTime=" + createTime +
diff --git a/inventory-dao/src/main/resources/mapper/EducationResourceMapper.xml b/inventory-dao/src/main/resources/mapper/EducationResourceMapper.xml
index 09ad859..1ab5f4c 100644
--- a/inventory-dao/src/main/resources/mapper/EducationResourceMapper.xml
+++ b/inventory-dao/src/main/resources/mapper/EducationResourceMapper.xml
@@ -4,22 +4,23 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
- id
- , industry_id, user_id, name, content, create_time, modify_time
+ id, industry_id, user_id, name, content, img, study_date, create_time, modify_time