ソースを参照

企业管理-人员及制度建设 修改

Signed-off-by: tangsong <86121657@qq.com>
tangsong 3 ヶ月 前
コミット
d7804b61b0
共有15 個のファイルを変更した192 個の追加1 個の削除を含む
  1. 15 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/controller/EmPersonInfoController.java
  2. 8 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/entity/EmPersonInfo.java
  3. 39 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/entity/StatisticalChartInfo.java
  4. 9 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/mapper/EmPersonInfoMapper.java
  5. 26 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/mapper/mapping/EmPersonInfoMapper.xml
  6. 35 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/param/ChartTypeParam.java
  7. 8 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/param/EmPersonInfoAddParam.java
  8. 8 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/param/EmPersonInfoEditParam.java
  9. 9 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/service/EmPersonInfoService.java
  10. 13 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/service/impl/EmPersonInfoServiceImpl.java
  11. 5 1
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/entity/EmSystemBuild.java
  12. 5 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/param/EmSystemBuildAddParam.java
  13. 5 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/param/EmSystemBuildEditParam.java
  14. 4 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/param/EmSystemBuildPageParam.java
  15. 3 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/service/impl/EmSystemBuildServiceImpl.java

+ 15 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/controller/EmPersonInfoController.java

@@ -17,6 +17,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
17 17
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
18 18
 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
19 19
 import com.github.xiaoymin.knife4j.annotations.ApiSupport;
20
+import com.unis.enterpriseManagement.info.modular.emPersonInfo.entity.StatisticalChartInfo;
21
+import com.unis.enterpriseManagement.info.modular.emPersonInfo.param.ChartTypeParam;
20 22
 import io.swagger.annotations.Api;
21 23
 import io.swagger.annotations.ApiOperation;
22 24
 import org.springframework.validation.annotation.Validated;
@@ -157,4 +159,17 @@ public class EmPersonInfoController {
157 159
     public CommonResult<List<EmPersonInfo>> getPersions() {
158 160
         return CommonResult.data(emPersonInfoService.getPersions());
159 161
     }
162
+    /**
163
+     * 获取企业管理-人员信息统计图表
164
+     *
165
+     * @author TS
166
+     * @date  2024/04/25 11:36
167
+     */
168
+    @ApiOperationSupport(order = 5)
169
+    @ApiOperation("获取企业管理-人员信息统计图表")
170
+//    @SaCheckPermission("/enterpriseManagement.info/emPersonInfo/getStatisticalChart")
171
+    @GetMapping("/enterpriseManagement.info/emPersonInfo/getStatisticalChart")
172
+    public CommonResult<List<StatisticalChartInfo>> getStatisticalChart(@Valid ChartTypeParam chartTypeParam) {
173
+        return CommonResult.data(emPersonInfoService.getStatisticalChart(chartTypeParam));
174
+    }
160 175
 }

+ 8 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/entity/EmPersonInfo.java

@@ -120,4 +120,12 @@ public class EmPersonInfo {
120 120
     /** 专业 */
121 121
     @ApiModelProperty(value = "专业", position = 21)
122 122
     private String major;
123
+
124
+    /** 个人简介 */
125
+    @ApiModelProperty(value = "个人简介", position = 22)
126
+    private String personalProfile;
127
+
128
+    /** 上传证书 */
129
+    @ApiModelProperty(value = "上传证书", position = 23)
130
+    private String certificate;
123 131
 }

+ 39 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/entity/StatisticalChartInfo.java

@@ -0,0 +1,39 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.enterpriseManagement.info.modular.emPersonInfo.entity;
14
+
15
+import io.swagger.annotations.ApiModelProperty;
16
+import lombok.Getter;
17
+import lombok.Setter;
18
+
19
+/**
20
+ * 企业管理-人员信息统计图表VO
21
+ *
22
+ * @author TS
23
+ * @date  2024/07/29 09:08
24
+ **/
25
+@Getter
26
+@Setter
27
+public class StatisticalChartInfo {
28
+
29
+    @ApiModelProperty(value = "性别名称", position = 1)
30
+    private String genderName;
31
+
32
+    @ApiModelProperty(value = "岗位性质名称", position = 2)
33
+    private String positionNatureName;
34
+
35
+    @ApiModelProperty(value = "数量", position = 3)
36
+    private Integer count;
37
+
38
+
39
+}

+ 9 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/mapper/EmPersonInfoMapper.java

@@ -18,8 +18,10 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
18 18
 import com.baomidou.mybatisplus.core.toolkit.Constants;
19 19
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
20 20
 import com.unis.enterpriseManagement.info.modular.emPersonInfo.entity.EmPersonInfo;
21
+import com.unis.enterpriseManagement.info.modular.emPersonInfo.entity.StatisticalChartInfo;
21 22
 import org.apache.ibatis.annotations.Param;
22 23
 
24
+import java.util.List;
23 25
 import java.util.Map;
24 26
 
25 27
 /**
@@ -36,4 +38,11 @@ public interface EmPersonInfoMapper extends BaseMapper<EmPersonInfo> {
36 38
      * @return
37 39
      */
38 40
     IPage<Map<String,Object>> selectMyMapsPage(Page<EmPersonInfo> p, @Param(Constants.WRAPPER) QueryWrapper<EmPersonInfo> queryWrapper);
41
+
42
+    /**
43
+     * 获取企业管理-人员信息统计图表
44
+     * @param chartType 图表类型 1:人员,2:岗位性质
45
+     * @return
46
+     */
47
+    List<StatisticalChartInfo> getStatisticalChart(@Param("chartType") Integer chartType);
39 48
 }

+ 26 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/mapper/mapping/EmPersonInfoMapper.xml

@@ -17,4 +17,30 @@
17 17
         </if>
18 18
         ORDER BY a.create_time
19 19
     </select>
20
+    <select id="getStatisticalChart" resultType="com.unis.enterpriseManagement.info.modular.emPersonInfo.entity.StatisticalChartInfo">
21
+        <choose>
22
+            <when  test=" chartType !='' and chartType == '1'.toString()" >
23
+                /*  1:性别 */
24
+                SELECT
25
+                b.DICT_LABEL as genderName,
26
+                COUNT(a.id)  as count
27
+                FROM
28
+                biz_em_person_info a
29
+                right JOIN dev_dict b ON a.gender = b.ID
30
+                where b.PARENT_ID = '1543839774776291330'
31
+                GROUP BY b.ID,b.DICT_LABEL
32
+            </when >
33
+            <otherwise >
34
+                /*  2:岗位性质*/
35
+                SELECT
36
+                b.DICT_LABEL as genderName,
37
+                COUNT(a.id)  as count
38
+                FROM
39
+                biz_em_person_info a
40
+                right JOIN dev_dict b ON a.position_nature = b.ID
41
+                where b.PARENT_ID = '1783422870449123330'
42
+                GROUP BY b.ID,b.DICT_LABEL
43
+            </otherwise>
44
+        </choose>
45
+    </select>
20 46
 </mapper>

+ 35 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/param/ChartTypeParam.java

@@ -0,0 +1,35 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.enterpriseManagement.info.modular.emPersonInfo.param;
14
+
15
+import io.swagger.annotations.ApiModelProperty;
16
+import lombok.Getter;
17
+import lombok.Setter;
18
+
19
+import javax.validation.constraints.NotBlank;
20
+import javax.validation.constraints.NotNull;
21
+
22
+/**
23
+ * 企业管理-人员信息管理统计图表类型参数
24
+ *
25
+ * @author TS
26
+ * @date  2024/04/25 11:36
27
+ **/
28
+@Getter
29
+@Setter
30
+public class ChartTypeParam {
31
+
32
+    @ApiModelProperty(value = "1:人员,2:岗位性质", required = true)
33
+    @NotNull(message = "图表 不能为空")
34
+    private Integer chartType;
35
+}

+ 8 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/param/EmPersonInfoAddParam.java

@@ -91,4 +91,12 @@ public class EmPersonInfoAddParam {
91 91
     @ApiModelProperty(value = "专业", position = 21)
92 92
     private String major;
93 93
 
94
+    /** 个人简介 */
95
+    @ApiModelProperty(value = "个人简介", position = 22)
96
+    private String personalProfile;
97
+
98
+    /** 上传证书 */
99
+    @ApiModelProperty(value = "上传证书", position = 23)
100
+    private String certificate;
101
+
94 102
 }

+ 8 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/param/EmPersonInfoEditParam.java

@@ -96,4 +96,12 @@ public class EmPersonInfoEditParam {
96 96
     @ApiModelProperty(value = "专业", position = 21)
97 97
     private String major;
98 98
 
99
+    /** 个人简介 */
100
+    @ApiModelProperty(value = "个人简介", position = 22)
101
+    private String personalProfile;
102
+
103
+    /** 上传证书 */
104
+    @ApiModelProperty(value = "上传证书", position = 23)
105
+    private String certificate;
106
+
99 107
 }

+ 9 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/service/EmPersonInfoService.java

@@ -16,6 +16,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
16 16
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
17 17
 import com.baomidou.mybatisplus.extension.service.IService;
18 18
 import com.unis.enterpriseManagement.info.modular.emPersonInfo.entity.EmPersonInfo;
19
+import com.unis.enterpriseManagement.info.modular.emPersonInfo.entity.StatisticalChartInfo;
20
+import com.unis.enterpriseManagement.info.modular.emPersonInfo.param.ChartTypeParam;
19 21
 import com.unis.enterpriseManagement.info.modular.emPersonInfo.param.EmPersonInfoAddParam;
20 22
 import com.unis.enterpriseManagement.info.modular.emPersonInfo.param.EmPersonInfoEditParam;
21 23
 import com.unis.enterpriseManagement.info.modular.emPersonInfo.param.EmPersonInfoIdParam;
@@ -92,4 +94,11 @@ public interface EmPersonInfoService extends IService<EmPersonInfo> {
92 94
      * @return
93 95
      */
94 96
     List<EmPersonInfo> getPersions();
97
+
98
+    /**
99
+     *获取企业管理-人员信息统计图表
100
+     * @param chartTypeParam
101
+     * @return
102
+     */
103
+    List<StatisticalChartInfo> getStatisticalChart(ChartTypeParam chartTypeParam);
95 104
 }

+ 13 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emPersonInfo/service/impl/EmPersonInfoServiceImpl.java

@@ -21,6 +21,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
21 21
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
22 22
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
23 23
 import com.unis.basic.info.modular.grainPriceCollectProvinceSum.entity.GrainPriceCollectProvinceSum;
24
+import com.unis.enterpriseManagement.info.modular.emPersonInfo.entity.StatisticalChartInfo;
25
+import com.unis.enterpriseManagement.info.modular.emPersonInfo.param.ChartTypeParam;
24 26
 import org.apache.commons.lang3.StringUtils;
25 27
 import org.springframework.stereotype.Service;
26 28
 import org.springframework.transaction.annotation.Transactional;
@@ -128,4 +130,15 @@ public class EmPersonInfoServiceImpl extends ServiceImpl<EmPersonInfoMapper, EmP
128 130
     public List<EmPersonInfo> getPersions() {
129 131
         return this.list();
130 132
     }
133
+
134
+    /**
135
+     * 获取企业管理-人员信息统计图表
136
+     *
137
+     * @param chartTypeParam
138
+     * @return
139
+     */
140
+    @Override
141
+    public List<StatisticalChartInfo> getStatisticalChart(ChartTypeParam chartTypeParam) {
142
+        return emPersonInfoMapper.getStatisticalChart(chartTypeParam.getChartType());
143
+    }
131 144
 }

+ 5 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/entity/EmSystemBuild.java

@@ -77,8 +77,12 @@ public class EmSystemBuild {
77 77
     @ApiModelProperty(value = "附件", position = 10)
78 78
     private String attachment;
79 79
 
80
+    /** 类型 1:岗位调整通知;2:制度管理;3:人事任免通知; */
81
+    @ApiModelProperty(value = "类型 1:岗位调整通知;2:制度管理;3:人事任免通知;", position = 11)
82
+    private Integer sysType;
83
+
80 84
     /** 创建用户名称 */
81
-    @ApiModelProperty(value = "创建用户名称", position = 11)
85
+    @ApiModelProperty(value = "创建用户名称", position = 12)
82 86
     @TableField(exist = false)
83 87
     private String createUserName;
84 88
 }

+ 5 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/param/EmSystemBuildAddParam.java

@@ -47,4 +47,9 @@ public class EmSystemBuildAddParam {
47 47
     @ApiModelProperty(value = "附件", position = 10)
48 48
     private String attachment;
49 49
 
50
+    /** 类型 1:岗位调整通知;2:制度管理;3:人事任免通知; */
51
+    @ApiModelProperty(value = "类型 1:岗位调整通知;2:制度管理;3:人事任免通知;", position = 11)
52
+    @NotNull(message = "类型不能为空")
53
+    private Integer sysType;
54
+
50 55
 }

+ 5 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/param/EmSystemBuildEditParam.java

@@ -52,4 +52,9 @@ public class EmSystemBuildEditParam {
52 52
     @ApiModelProperty(value = "附件", position = 10)
53 53
     private String attachment;
54 54
 
55
+    /** 类型 1:岗位调整通知;2:制度管理;3:人事任免通知; */
56
+    @ApiModelProperty(value = "类型 1:岗位调整通知;2:制度管理;3:人事任免通知;", position = 11)
57
+    @NotNull(message = "类型不能为空")
58
+    private Integer sysType;
59
+
55 60
 }

+ 4 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/param/EmSystemBuildPageParam.java

@@ -48,4 +48,8 @@ public class EmSystemBuildPageParam {
48 48
     @ApiModelProperty(value = "制度名称")
49 49
     private String systemName;
50 50
 
51
+    /** 类型 1:岗位调整通知;2:制度管理;3:人事任免通知; */
52
+    @ApiModelProperty(value = "类型 1:岗位调整通知;2:制度管理;3:人事任免通知;")
53
+    private Integer sysType;
54
+
51 55
 }

+ 3 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/enterpriseManagement/info/modular/emSystemBuild/service/impl/EmSystemBuildServiceImpl.java

@@ -56,6 +56,9 @@ public class EmSystemBuildServiceImpl extends ServiceImpl<EmSystemBuildMapper, E
56 56
         if (StringUtils.isNotBlank(emSystemBuildPageParam.getSystemName())){
57 57
             queryWrapper.lambda().like(EmSystemBuild::getSystemName,emSystemBuildPageParam.getSystemName());
58 58
         }
59
+        if (emSystemBuildPageParam.getSysType() != null){
60
+            queryWrapper.lambda().like(EmSystemBuild::getSysType,emSystemBuildPageParam.getSysType());
61
+        }
59 62
         if(ObjectUtil.isAllNotEmpty(emSystemBuildPageParam.getSortField(), emSystemBuildPageParam.getSortOrder())) {
60 63
             CommonSortOrderEnum.validate(emSystemBuildPageParam.getSortOrder());
61 64
             queryWrapper.orderBy(true, emSystemBuildPageParam.getSortOrder().equals(CommonSortOrderEnum.ASC.getValue()),