Browse Source

Merge branch 'dev' of depot-qinghai/depot-smart-storage-qinghai into master

adminGRP 6 months ago
parent
commit
a4f50de99a

+ 18 - 0
src/main/java/com/chinaitop/depot/intelligent/basicData/mapper/UserInfoMapper.java

@@ -0,0 +1,18 @@
1
+package com.chinaitop.depot.intelligent.basicData.mapper;
2
+
3
+import com.chinaitop.depot.intelligent.basicData.model.UserInfo;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 用户信息表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author root
13
+ * @since 2024-07-19
14
+ */
15
+@Mapper
16
+public interface UserInfoMapper extends BaseMapper<UserInfo> {
17
+
18
+}

+ 171 - 0
src/main/java/com/chinaitop/depot/intelligent/basicData/model/UserInfo.java

@@ -0,0 +1,171 @@
1
+package com.chinaitop.depot.intelligent.basicData.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.util.Date;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import com.baomidou.mybatisplus.annotation.TableField;
8
+import java.io.Serializable;
9
+import io.swagger.annotations.ApiModel;
10
+import io.swagger.annotations.ApiModelProperty;
11
+import lombok.Data;
12
+import lombok.EqualsAndHashCode;
13
+
14
+/**
15
+ * <p>
16
+ * 用户信息表
17
+ * </p>
18
+ *
19
+ * @author root
20
+ * @since 2024-07-19
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@TableName("user_info")
25
+@ApiModel(value="UserInfo对象", description="用户信息表")
26
+public class UserInfo implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "用户编号")
31
+    @TableId(value = "user_id", type = IdType.AUTO)
32
+    private Integer userId;
33
+
34
+    @ApiModelProperty(value = "用户名")
35
+    @TableField("username")
36
+    private String username;
37
+
38
+    @ApiModelProperty(value = "密码")
39
+    @TableField("password")
40
+    private String password;
41
+
42
+    @ApiModelProperty(value = "组织编号;org_info的ID;")
43
+    @TableField("org_id")
44
+    private Integer orgId;
45
+
46
+    @ApiModelProperty(value = "真实姓名")
47
+    @TableField("real_name")
48
+    private String realName;
49
+
50
+    @ApiModelProperty(value = "性别")
51
+    @TableField("sex")
52
+    private Integer sex;
53
+
54
+    @ApiModelProperty(value = "固定电话")
55
+    @TableField("telphone")
56
+    private String telphone;
57
+
58
+    @ApiModelProperty(value = "手机号")
59
+    @TableField("mobile")
60
+    private String mobile;
61
+
62
+    @ApiModelProperty(value = "地址")
63
+    @TableField("address")
64
+    private String address;
65
+
66
+    @ApiModelProperty(value = "电子邮箱")
67
+    @TableField("email")
68
+    private String email;
69
+
70
+    @ApiModelProperty(value = "QQ号码")
71
+    @TableField("qq_number")
72
+    private String qqNumber;
73
+
74
+    @ApiModelProperty(value = "照片路径")
75
+    @TableField("img_url")
76
+    private String imgUrl;
77
+
78
+    @ApiModelProperty(value = "电子签名")
79
+    @TableField("signature")
80
+    private String signature;
81
+
82
+    @ApiModelProperty(value = "创建时间")
83
+    @TableField("create_time")
84
+    private Date createTime;
85
+
86
+    @ApiModelProperty(value = "录入员")
87
+    @TableField("create_user_id")
88
+    private Integer createUserId;
89
+
90
+    @ApiModelProperty(value = "最后修改时间")
91
+    @TableField("update_time")
92
+    private Date updateTime;
93
+
94
+    @ApiModelProperty(value = "最后修改人")
95
+    @TableField("update_user_id")
96
+    private Integer updateUserId;
97
+
98
+    @ApiModelProperty(value = "状态")
99
+    @TableField("status")
100
+    private Integer status;
101
+
102
+    @ApiModelProperty(value = "删除标记")
103
+    @TableField("del_flag")
104
+    private Integer delFlag;
105
+
106
+    @ApiModelProperty(value = "用户别名")
107
+    @TableField("user_alias")
108
+    private String userAlias;
109
+
110
+    @ApiModelProperty(value = "更新时间")
111
+    @TableField("updatetime")
112
+    private Date updatetime;
113
+
114
+    @ApiModelProperty(value = "部门名称")
115
+    @TableField("bmmc")
116
+    private String bmmc;
117
+
118
+    @ApiModelProperty(value = "在岗状态")
119
+    @TableField("zgzt")
120
+    private String zgzt;
121
+
122
+    @ApiModelProperty(value = "离职日期")
123
+    @TableField("lzrq")
124
+    private Date lzrq;
125
+
126
+    @ApiModelProperty(value = "名族")
127
+    @TableField("mz")
128
+    private Integer mz;
129
+
130
+    @ApiModelProperty(value = "人员类别")
131
+    @TableField("rylb")
132
+    private Integer rylb;
133
+
134
+    @ApiModelProperty(value = "身份证号码")
135
+    @TableField("sfzhm")
136
+    private String sfzhm;
137
+
138
+    @ApiModelProperty(value = "政治面貌")
139
+    @TableField("zzmm")
140
+    private Integer zzmm;
141
+
142
+    @ApiModelProperty(value = "职称")
143
+    @TableField("zc")
144
+    private String zc;
145
+
146
+    @ApiModelProperty(value = "职务")
147
+    @TableField("zw")
148
+    private String zw;
149
+
150
+    @ApiModelProperty(value = "学历")
151
+    @TableField("xl")
152
+    private Integer xl;
153
+
154
+    @ApiModelProperty(value = "入职日期")
155
+    @TableField("rzrq")
156
+    private Date rzrq;
157
+
158
+    @ApiModelProperty(value = "岗位性质")
159
+    @TableField("gwxz")
160
+    private String gwxz;
161
+
162
+    @ApiModelProperty(value = "最高职称或职业资格时间")
163
+    @TableField("qdzgzchzyzgsj")
164
+    private Date qdzgzchzyzgsj;
165
+
166
+    @ApiModelProperty(value = "专业")
167
+    @TableField("zy")
168
+    private String zy;
169
+
170
+
171
+}

+ 10 - 3
src/main/java/com/chinaitop/depot/intelligent/basicData/service/impl/TJctableServiceImpl.java

@@ -6,8 +6,10 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
6 6
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7 7
 import com.chinaitop.depot.intelligent.basicData.mapper.OrgInfoMapper;
8 8
 import com.chinaitop.depot.intelligent.basicData.mapper.TJctableMapper;
9
+import com.chinaitop.depot.intelligent.basicData.mapper.UserInfoMapper;
9 10
 import com.chinaitop.depot.intelligent.basicData.model.OrgInfo;
10 11
 import com.chinaitop.depot.intelligent.basicData.model.TJctable;
12
+import com.chinaitop.depot.intelligent.basicData.model.UserInfo;
11 13
 import com.chinaitop.depot.intelligent.basicData.param.TJctablePageParam;
12 14
 import com.chinaitop.depot.intelligent.basicData.param.TJctableParam;
13 15
 import com.chinaitop.depot.intelligent.basicData.service.TJctableService;
@@ -18,6 +20,7 @@ import org.springframework.beans.BeanUtils;
18 20
 import org.springframework.beans.factory.annotation.Autowired;
19 21
 import org.springframework.stereotype.Service;
20 22
 
23
+import java.util.Date;
21 24
 import java.util.List;
22 25
 
23 26
 /**
@@ -36,7 +39,7 @@ public class TJctableServiceImpl extends ServiceImpl<TJctableMapper, TJctable> i
36 39
     private TJctableMapper tJctableMapper;
37 40
 
38 41
     @Autowired
39
-    private OrgInfoMapper orgInfoMapper;
42
+    private UserInfoMapper userInfoMapper;
40 43
 
41 44
     @Override
42 45
     public Page<TJctable> getList(TJctablePageParam pageParam) {
@@ -52,8 +55,10 @@ public class TJctableServiceImpl extends ServiceImpl<TJctableMapper, TJctable> i
52 55
         List<TJctable> tJctableList = tJctablePage.getRecords();
53 56
         if (CollectionUtils.isNotEmpty(tJctableList)) {
54 57
             for (TJctable tJctable : tJctableList) {
55
-                OrgInfo orgInfo = orgInfoMapper.selectById(tJctable.getOrgId());
56
-                tJctable.setOrgName(orgInfo.getOrgName());
58
+                UserInfo userInfo = userInfoMapper.selectById(tJctable.getUpdatePerson());
59
+                if (ObjectUtil.isNotEmpty(userInfo)) {
60
+                    tJctable.setUpdatePerson(userInfo.getRealName());
61
+                }
57 62
             }
58 63
         }
59 64
         return tJctablePage;
@@ -64,6 +69,7 @@ public class TJctableServiceImpl extends ServiceImpl<TJctableMapper, TJctable> i
64 69
         TJctable tJctable = new TJctable();
65 70
         BeanUtils.copyProperties(param, tJctable);
66 71
         tJctable.setId(UuidUtils.getCode());
72
+        tJctable.setUpdatetime(new Date());
67 73
         return tJctableMapper.insert(tJctable);
68 74
     }
69 75
 
@@ -72,6 +78,7 @@ public class TJctableServiceImpl extends ServiceImpl<TJctableMapper, TJctable> i
72 78
         TJctable tJctable = new TJctable();
73 79
         BeanUtils.copyProperties(param, tJctable);
74 80
 
81
+        tJctable.setUpdatetime(new Date());
75 82
         return tJctableMapper.updateById(tJctable);
76 83
     }
77 84
 

+ 1 - 1
src/main/java/com/chinaitop/depot/intelligent/devData/mapper/TLqDataMapper.java

@@ -20,5 +20,5 @@ public interface TLqDataMapper extends BaseMapper<TLqData> {
20 20
 
21 21
     Map<String, Object> getKCSL(Map<String, Object> map);
22 22
 
23
-    BigDecimal selectUpTemp(Map<String, Object> tempSelect);
23
+    Float selectUpTemp(Map<String, Object> tempSelect);
24 24
 }

+ 1 - 1
src/main/java/com/chinaitop/depot/intelligent/pushs/service/impl/GrainPushsServiceImpl.java

@@ -96,7 +96,7 @@ public class GrainPushsServiceImpl implements GrainPushsService {
96 96
                 map.put("orgCode", lqData.getOrgCode());
97 97
             if (StringUtils.isNotEmpty(lqData.getStorehouseCode()))
98 98
                 map.put("storehouseCode", lqData.getStorehouseCode());
99
-            BigDecimal bigDecimal = tLqDataMapper.selectUpTemp(tempSelect);
99
+            Float bigDecimal = tLqDataMapper.selectUpTemp(tempSelect);
100 100
             if (ObjectUtils.isNotEmpty(bigDecimal)) {
101 101
                 float oldTemp = bigDecimal.floatValue();
102 102
                 float newTemp = lqData.getInTemp().floatValue();

+ 49 - 0
src/main/resources/mapper/basicData/UserInfoMapper.xml

@@ -0,0 +1,49 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.intelligent.basicData.mapper.UserInfoMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.basicData.model.UserInfo">
7
+        <id column="user_id" property="userId" />
8
+        <result column="username" property="username" />
9
+        <result column="password" property="password" />
10
+        <result column="org_id" property="orgId" />
11
+        <result column="real_name" property="realName" />
12
+        <result column="sex" property="sex" />
13
+        <result column="telphone" property="telphone" />
14
+        <result column="mobile" property="mobile" />
15
+        <result column="address" property="address" />
16
+        <result column="email" property="email" />
17
+        <result column="qq_number" property="qqNumber" />
18
+        <result column="img_url" property="imgUrl" />
19
+        <result column="signature" property="signature" />
20
+        <result column="create_time" property="createTime" />
21
+        <result column="create_user_id" property="createUserId" />
22
+        <result column="update_time" property="updateTime" />
23
+        <result column="update_user_id" property="updateUserId" />
24
+        <result column="status" property="status" />
25
+        <result column="del_flag" property="delFlag" />
26
+        <result column="user_alias" property="userAlias" />
27
+        <result column="updatetime" property="updatetime" />
28
+        <result column="bmmc" property="bmmc" />
29
+        <result column="zgzt" property="zgzt" />
30
+        <result column="lzrq" property="lzrq" />
31
+        <result column="mz" property="mz" />
32
+        <result column="rylb" property="rylb" />
33
+        <result column="sfzhm" property="sfzhm" />
34
+        <result column="zzmm" property="zzmm" />
35
+        <result column="zc" property="zc" />
36
+        <result column="zw" property="zw" />
37
+        <result column="xl" property="xl" />
38
+        <result column="rzrq" property="rzrq" />
39
+        <result column="gwxz" property="gwxz" />
40
+        <result column="qdzgzchzyzgsj" property="qdzgzchzyzgsj" />
41
+        <result column="zy" property="zy" />
42
+    </resultMap>
43
+
44
+    <!-- 通用查询结果列 -->
45
+    <sql id="Base_Column_List">
46
+        user_id, username, password, org_id, real_name, sex, telphone, mobile, address, email, qq_number, img_url, signature, create_time, create_user_id, update_time, update_user_id, status, del_flag, user_alias, updatetime, bmmc, zgzt, lzrq, mz, rylb, sfzhm, zzmm, zc, zw, xl, rzrq, gwxz, qdzgzchzyzgsj, zy
47
+    </sql>
48
+
49
+</mapper>