소스 검색

Merge branch '2.0.0' of http://git.ycjcjy.com/fuxingfan/smartCommunity into 2.0.0

魏熙美 6 년 전
부모
커밋
2cef8338a8
17개의 변경된 파일92개의 추가작업 그리고 49개의 파일을 삭제
  1. 2
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java
  2. 13
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReport.java
  3. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java
  4. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml
  5. 16
    2
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/CommunityServiceImpl.java
  6. 1
    22
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java
  7. 2
    5
      CODE/smart-community/operate-api/src/main/resources/mapper/TaUserMapper.xml
  8. 7
    0
      CODE/smart-community/operate-api/src/main/resources/mapper/TpUserMapper.xml
  9. 1
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java
  10. 1
    1
      CODE/smart-community/property-api/src/main/resources/application.yml
  11. 1
    0
      CODE/smart-community/property-api/src/main/resources/mapper/TransactionReportMapper.xml
  12. 2
    1
      VUECODE/smart-property-manage/src/api/user.js
  13. 32
    4
      VUECODE/smart-property-manage/src/views/building/audit/index.vue
  14. 7
    5
      VUECODE/smart-property-manage/src/views/building/info/index.vue
  15. 2
    2
      VUECODE/smart-property-manage/src/views/social/announcement/add.vue
  16. 1
    1
      VUECODE/smart-property-manage/src/views/social/signUp/index.vue
  17. 1
    1
      VUECODE/smart-property-manage/src/views/social/transaction/reply/transactionreply.vue

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java 파일 보기

@@ -4,6 +4,7 @@ import com.community.huiju.model.TpTransaction;
4 4
 import org.apache.ibatis.annotations.Mapper;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7
+import java.util.Date;
7 8
 import java.util.List;
8 9
 import java.util.Map;
9 10
 
@@ -31,7 +32,7 @@ public interface TpTransactionMapper {
31 32
 	
32 33
 	List<Map<String, Object>> getReportReasons();
33 34
     
34
-    int saveReportReason(@Param("userId") Integer userId,@Param("communityId") Integer communityId,@Param("transactionId") Integer transactionId,@Param("reportReasonId") String reportReasonId);
35
+    int saveReportReason(@Param("userId") Integer userId, @Param("communityId") Integer communityId, @Param("transactionId") Integer transactionId, @Param("reportReasonId") String reportReasonId, @Param("createDate") Date createDate);
35 36
 
36 37
     /**
37 38
      * 查询的当前用户自己的所有帖子

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReport.java 파일 보기

@@ -1,5 +1,8 @@
1 1
 package com.community.huiju.model;
2 2
 
3
+import javax.xml.crypto.Data;
4
+import java.util.Date;
5
+
3 6
 public class TpTransactionReport {
4 7
     private Integer id;
5 8
 
@@ -11,6 +14,16 @@ public class TpTransactionReport {
11 14
 
12 15
     private Integer reporterId;
13 16
 
17
+    private Date createDate;
18
+
19
+    public Date getCreateDate() {
20
+        return createDate;
21
+    }
22
+
23
+    public void setCreateDate(Date createDate) {
24
+        this.createDate = createDate;
25
+    }
26
+
14 27
     public Integer getId() {
15 28
         return id;
16 29
     }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java 파일 보기

@@ -506,7 +506,7 @@ public class SocialServiceImpl implements SocialServiceI {
506 506
             return responseBean;
507 507
         }
508 508
         //插入举报表
509
-        tpTransactionMapper.saveReportReason(userId, communityId, transactionId, reportReasonId);
509
+        tpTransactionMapper.saveReportReason(userId, communityId, transactionId, reportReasonId,new Date());
510 510
         //更新交易表的举报状态为被举报
511 511
         TpTransaction record = new TpTransaction();
512 512
         record.setId(transactionId);

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml 파일 보기

@@ -306,9 +306,9 @@
306 306
 
307 307
     <insert id="saveReportReason">
308 308
     insert into tp_transaction_report (community_id, transaction_id,
309
-      report_reason_id, reporter_id)
309
+      report_reason_id, reporter_id,create_date)
310 310
     values (#{communityId,jdbcType=INTEGER}, #{transactionId,jdbcType=INTEGER},
311
-      #{reportReasonId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER})
311
+      #{reportReasonId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER},#{createDate,jdbcType=TIMESTAMP})
312 312
   </insert>
313 313
     <select id="getUserTransactionList" resultMap="BaseResultMap">
314 314
 

+ 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
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TransactionReportMapper.xml 파일 보기

@@ -24,6 +24,7 @@
24 24
             AND u.user_name like concat('%',#{reportUserNmae},'%')
25 25
         </if>
26 26
         </where>
27
+        GROUP BY tr.id
27 28
         order by tr.create_date desc
28 29
 </select>
29 30
 </mapper>

+ 2
- 1
VUECODE/smart-property-manage/src/api/user.js 파일 보기

@@ -102,7 +102,8 @@ export function userVerifyAudit(data) {
102 102
     method: 'put',
103 103
     params: {
104 104
       verifyStatus: data.verifyStatus,
105
-      roleState: data.type
105
+      roleState: data.type,
106
+      remark: data.remark
106 107
     }
107 108
   })
108 109
 }

+ 32
- 4
VUECODE/smart-property-manage/src/views/building/audit/index.vue 파일 보기

@@ -1,6 +1,18 @@
1 1
 <template>
2 2
   <div id="root">
3 3
     <el-form :inline="true" :model="formInline" class="demo-form-inline">
4
+      <el-dialog
5
+        title="提示"
6
+        :visible.sync="dialogVisible"
7
+        width="30%">
8
+        <span><el-radio v-model="formInline.remark" label="不认识的人的手机号">不认识的人的手机号</el-radio>
9
+              <el-radio v-model="formInline.remark" label="其他原因需要沟通">其他原因需要沟通</el-radio>
10
+        </span>
11
+        <span slot="footer" class="dialog-footer">
12
+          <el-button @click="dialogVisible = false">取 消</el-button>
13
+          <el-button type="primary" @click="submitAudit()">确 定</el-button>
14
+        </span>
15
+      </el-dialog>
4 16
       <el-form-item label="手机号">
5 17
         <el-input v-model="formInline.phone" placeholder="手机号"/>
6 18
       </el-form-item>
@@ -67,8 +79,8 @@
67 79
         align="center"
68 80
         label="操作">
69 81
         <template slot-scope="scope">
70
-          <el-button type="primary" @click="userVerifyAudit(scope.row.id,true)">通过</el-button>
71
-          <el-button type="danger" @click="userVerifyAudit(scope.row.id,false)">不通过</el-button>
82
+          <el-button type="primary" @click="userVerifyAudit(scope.row.id,true,1)">通过</el-button>
83
+          <el-button type="danger" @click="passTheAudit(scope.row.id,false)">不通过</el-button>
72 84
         </template>
73 85
       </el-table-column>
74 86
     </el-table>
@@ -93,6 +105,7 @@ export default {
93 105
   data() {
94 106
     return {
95 107
       formInline: {
108
+        remark: '',
96 109
         phone: '',
97 110
         userVerifyId: '',
98 111
         verifyStatus: true,
@@ -102,7 +115,8 @@ export default {
102 115
         pageSize: 10
103 116
       },
104 117
       total: 0, // 总数
105
-      tableData: [] // 数据体
118
+      tableData: [], // 数据体
119
+      dialogVisible: false
106 120
     }
107 121
   },
108 122
   mounted() {
@@ -145,9 +159,22 @@ export default {
145 159
         console.log('UserVerifyAll error')
146 160
       })
147 161
     },
148
-    userVerifyAudit(verifyId, vstatus) {
162
+    // 展示弹框
163
+    passTheAudit(verifyId, vstatus){
149 164
       this.formInline.userVerifyId = verifyId
150 165
       this.formInline.verifyStatus = vstatus
166
+      this.dialogVisible = true
167
+    },
168
+    // 提交
169
+    submitAudit(){    
170
+      this.userVerifyAudit()
171
+    },
172
+
173
+    userVerifyAudit(verifyId, vstatus,isA) {
174
+      if(isA=='1'){
175
+      this.formInline.userVerifyId = verifyId
176
+      this.formInline.verifyStatus = vstatus
177
+      }
151 178
       this.$store.dispatch('UserVerifyAudit', this.formInline).then((res) => {
152 179
         const resCode = res.code
153 180
         if (resCode === '0') {
@@ -155,6 +182,7 @@ export default {
155 182
             message: res.message,
156 183
             type: 'success'
157 184
           })
185
+          this.dialogVisible = false
158 186
           this.getData()
159 187
           return
160 188
         }

+ 7
- 5
VUECODE/smart-property-manage/src/views/building/info/index.vue 파일 보기

@@ -54,16 +54,18 @@
54 54
                   <el-option label="家属" value="3"/>
55 55
                 </el-select>
56 56
               </td>
57
-              <td>审核状态</td>                  
58
-              <td v-if="listQuery.verifyStatus=='1'">{{ '审核通过' }}<td>
59
-              <td v-if="listQuery.verifyStatus=='2' && listQuery.off=='1' "><font color="red">{{ '审核未通过' }}</font><td>
60
-              <td v-if="listQuery.verifyStatus=='0' && listQuery.off=='1' "><font color="red">{{ '未审核' }}</font><td>    
61
-              <td v-if="listQuery.off=='2' && listQuery.verifyStatus !='1'">
57
+              <td>审核状态
58
+              <span>&nbsp;&nbsp;&nbsp;&nbsp;</span>                   
59
+              <span v-if="listQuery.verifyStatus=='1'">{{ '审核通过' }}</span>
60
+              <span v-if="listQuery.verifyStatus=='2' && listQuery.off=='1' "><font color="red">{{ '审核未通过' }}</font></span>
61
+              <span v-if="listQuery.verifyStatus=='0' && listQuery.off=='1' "><font color="red">{{ '未审核' }}</font></span>    
62
+              <span v-if="listQuery.off=='2' && listQuery.verifyStatus !='1'">
62 63
                 <el-select v-model="listQuery.status" placeholder="请选择">
63 64
                   <el-option label="未审核" value="0"/>
64 65
                   <el-option label="通过" value="1"/>
65 66
                   <el-option label="不通过" value="2"/>
66 67
                 </el-select>
68
+              </span>
67 69
               </td>
68 70
               <td>资料手机</td>
69 71
               <td style="color:#888888">{{ listQuery.loginName }}</td>

+ 2
- 2
VUECODE/smart-property-manage/src/views/social/announcement/add.vue 파일 보기

@@ -7,7 +7,7 @@
7 7
       </el-form-item>
8 8
       <el-form-item  prop="announcementCarouselImg" >
9 9
         <div >
10
-          <div style="transform:translateY(250%);">公告图</div>
10
+          <div style="transform:translateY(250%);">公告轮播图</div>
11 11
         <div  style="width: 500px;padding-left:20%;">
12 12
         <el-upload 
13 13
           :show-file-list="false"
@@ -28,7 +28,7 @@
28 28
       </el-form-item>
29 29
       <el-form-item>
30 30
          <div >
31
-          <div style="transform:translateY(250%);">公告轮播图</div>
31
+          <div style="transform:translateY(250%);">公告图</div>
32 32
         <div  style="width: 500px;padding-left:13%;">
33 33
         <el-upload
34 34
           :on-preview="handlePictureCardPreview"

+ 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"

+ 1
- 1
VUECODE/smart-property-manage/src/views/social/transaction/reply/transactionreply.vue 파일 보기

@@ -291,7 +291,7 @@ export default {
291 291
         width: 100%;
292 292
         overflow: auto;
293 293
         word-break: break-all; 
294
-        margin-left: -14.5%;
294
+        margin-left: -11.5%;
295 295
     }
296 296
 </style>
297 297