dingxin пре 6 година
родитељ
комит
473d6d3955

+ 16
- 2
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/CommunityServiceImpl.java Прегледај датотеку

@@ -41,7 +41,9 @@ public class CommunityServiceImpl implements CommunityServiceI {
41 41
 
42 42
 	@Autowired
43 43
 	private TpEquipmentTreeMapper tpEquipmentTreeMapper;
44
-	
44
+
45
+	@Autowired
46
+	private TaUserMapper taUserMapper;
45 47
 	/**
46 48
 	 * 分页获取小区列表
47 49
 	 * @param toCommunities
@@ -68,7 +70,18 @@ public class CommunityServiceImpl implements CommunityServiceI {
68 70
 		if (size < 1){
69 71
 			return 0;
70 72
 		}
71
-	 
73
+
74
+
75
+		//时维护ta_user(发帖需要)
76
+		TaUser taUser= new TaUser();
77
+		taUser.setLoginName(toCommunities.getLoginName());
78
+		taUser.setCreateDate(new Date());
79
+		taUser.setUserName(toCommunities.getUserName());
80
+		taUser.setStatus("1");
81
+		taUserMapper.insert(taUser);
82
+
83
+
84
+
72 85
 		//构建用户信息
73 86
 		TpUser tpUser = new TpUser();
74 87
 		tpUser.setUserName(toCommunities.getUserName());
@@ -77,6 +90,7 @@ public class CommunityServiceImpl implements CommunityServiceI {
77 90
 		tpUser.setCreateUser(1);
78 91
 		tpUser.setCommunityId(toCommunities.getId());
79 92
 		tpUser.setStatus(Constant.EFFECTIVE);
93
+		tpUser.setTaUserId(taUser.getId());
80 94
 		//插入用户信息
81 95
 		tpUserMapper.insertSelective(tpUser);
82 96
 		//维护此用户的角色

+ 1
- 22
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java Прегледај датотеку

@@ -180,7 +180,7 @@ public class ToUserServerImpl implements IToUserService {
180 180
     @Override
181 181
     public ResponseBean addUser(String parameter,Integer userID,Integer communityId) {
182 182
         ResponseBean response= new ResponseBean<>();
183
-        JSONObject object= JSONObject.parseObject(parameter);
183
+         JSONObject object= JSONObject.parseObject(parameter);
184 184
         ToUser toUser= new ToUser();
185 185
 
186 186
         String loginName= object.getString("loginName");
@@ -214,27 +214,6 @@ public class ToUserServerImpl implements IToUserService {
214 214
             toSysUserRole.setRoleId(roleID);
215 215
             toSysUserRoleMapper.insert(toSysUserRole);
216 216
         }
217
-
218
-        //时维护ta_user(发帖需要)
219
-        TaUser taUser= new TaUser();
220
-        taUser.setLoginName(loginName);
221
-        taUser.setCreateUser(userID);
222
-        taUser.setCreateDate(new Date());
223
-        taUser .setUserName(userName);
224
-        taUser .setStatus("1");
225
-
226
-        taUserMapper.insert(taUser);
227
-        TpUser tpUser= new TpUser();
228
-        tpUser.setTaUserId(taUser.getId());
229
-        tpUser.setUserName(userName);
230
-        tpUser.setLoginName(loginName);
231
-        tpUser.setRemark(remark);
232
-        tpUser.setStatus("1");
233
-
234
-        tpUser.setCreateUser(userID);
235
-        tpUser.setCreateDate(new Date());
236
-        tpUser.setCommunityId(communityId);
237
-        tpUserMapper.insertSelective(tpUser);
238 217
          response.addSuccess("成功");
239 218
         return response;
240 219
     }

+ 2
- 5
CODE/smart-community/operate-api/src/main/resources/mapper/TaUserMapper.xml Прегледај датотеку

@@ -44,7 +44,7 @@
44 44
     delete from ta_user
45 45
     where id = #{id,jdbcType=INTEGER}
46 46
   </delete>
47
-  <insert id="insert" parameterType="com.community.huiju.model.TaUser" useGeneratedKeys="true" keyProperty="id" >
47
+  <insert id="insert" parameterType="com.community.huiju.model.TaUser" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
48 48
     insert into ta_user (id, community_id, building_owner_info_id,
49 49
       head_portrait, user_name, login_name,
50 50
       login_password, email, gender,
@@ -60,7 +60,7 @@
60 60
       #{acceptAgreementStatus,jdbcType=CHAR}, #{verifyStatus,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER},
61 61
       #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP},
62 62
       #{hkPersonNo,jdbcType=BIGINT}, #{hkUserId,jdbcType=INTEGER}, #{hkCardNo,jdbcType=VARCHAR}, #{faceStatus,jdbcType=CHAR},
63
-      #{idCard,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR},
63
+      #{idCard,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}
64 64
       )
65 65
   </insert>
66 66
   <insert id="insertSelective" parameterType="com.community.huiju.model.TaUser" useGeneratedKeys="true" keyProperty="id" >
@@ -142,9 +142,6 @@
142 142
       <if test="nickname != null" >
143 143
         nickname,
144 144
       </if>
145
-      <if test="taUserId != null" >
146
-        ta_user_id,
147
-      </if>
148 145
     </trim>
149 146
     <trim prefix="values (" suffix=")" suffixOverrides="," >
150 147
       <if test="id != null" >

+ 7
- 0
CODE/smart-community/operate-api/src/main/resources/mapper/TpUserMapper.xml Прегледај датотеку

@@ -15,6 +15,7 @@
15 15
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
16 16
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
17 17
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
18
+    <result column="ta_user_id" property="taUserId" jdbcType="TIMESTAMP" />
18 19
   </resultMap>
19 20
   <sql id="Base_Column_List" >
20 21
     id, community_id, user_name, login_name, login_password, status, remark, email, head_portrait, 
@@ -84,6 +85,9 @@
84 85
       <if test="updateDate != null" >
85 86
         update_date,
86 87
       </if>
88
+      <if test="taUserId != null" >
89
+        ta_user_id
90
+      </if>
87 91
     </trim>
88 92
     <trim prefix="values (" suffix=")" suffixOverrides="," >
89 93
       <if test="id != null" >
@@ -125,6 +129,9 @@
125 129
       <if test="updateDate != null" >
126 130
         #{updateDate,jdbcType=TIMESTAMP},
127 131
       </if>
132
+      <if test="taUserId != null" >
133
+        #{taUserId,jdbcType=INTEGER}
134
+      </if>
128 135
     </trim>
129 136
   </insert>
130 137
   <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpUser" >

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java Прегледај датотеку

@@ -241,7 +241,7 @@ public class TpActivityServiceImpl extends ServiceImpl<TpActivityMapper, TpActiv
241 241
 //                        String codeUrl= imageServiceI.getImageUrl(inputStream);
242 242
 
243 243
                         TdImages tdImages= new TdImages();
244
-                        tdImages.setImageUrl(qrCodePerproties.getUrl() + tpActivity.getId());
244
+                        tdImages.setImageUrl(qrCodePerproties.getUrl() + tpActivity.getId()+"&codeState=1");
245 245
                         tdImages.setUuid(tpActivity.getId());
246 246
                         tdImages.setType("activityCode");
247 247
                         tdImages.setCreateUser(userElement.getId());

+ 1
- 1
CODE/smart-community/property-api/src/main/resources/application.yml Прегледај датотеку

@@ -14,4 +14,4 @@ mybatis-plus:
14 14
 
15 15
 # 二维码生成地址
16 16
 qr-code:
17
-  url: https://www.baidu.com/?id=
17
+  url: http://ycapi.jcjyhn.com/#/forum/sign?id=

+ 1
- 1
VUECODE/smart-property-manage/src/views/social/signUp/index.vue Прегледај датотеку

@@ -41,7 +41,7 @@
41 41
         label="角色"
42 42
         show-overflow-tooltip
43 43
         align="center">
44
-        <!--<template slot-scope="scope">{{ getRoleName(scope.row.roleName) }}</template>-->
44
+        <template slot-scope="scope">{{ getRoleName(scope.row.roleName) }}</template>
45 45
       </el-table-column>
46 46
       <el-table-column
47 47
         prop="address"