Ver código fonte

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

张延森 6 anos atrás
pai
commit
252a12b23f

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReply.java Ver arquivo

@@ -42,6 +42,11 @@ public class TpTransactionReply {
42 42
      */
43 43
     private String replyContent;
44 44
     
45
+    /**
46
+     * 发布类型1 是评论 0 是回复评论
47
+     */
48
+    private String publishType;
49
+    
45 50
     /**
46 51
      * 被回复的评论内容的用户ID根据uuidtype区分
47 52
      */
@@ -267,6 +272,14 @@ public class TpTransactionReply {
267 272
         this.replyId = replyId;
268 273
     }
269 274
     
275
+    public String getPublishType() {
276
+        return publishType;
277
+    }
278
+    
279
+    public void setPublishType(String publishType) {
280
+        this.publishType = publishType;
281
+    }
282
+    
270 283
     public void setCreateUserName(String createUserName) {
271 284
         this.createUserName = createUserName;
272 285
     }

+ 25
- 8
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Ver arquivo

@@ -20,6 +20,7 @@ import org.springframework.beans.BeanUtils;
20 20
 import org.springframework.beans.factory.annotation.Autowired;
21 21
 import org.springframework.stereotype.Service;
22 22
 import org.springframework.transaction.annotation.Transactional;
23
+import org.springframework.util.StringUtils;
23 24
 
24 25
 import javax.swing.plaf.TabbedPaneUI;
25 26
 import java.io.IOException;
@@ -576,14 +577,30 @@ public class SocialServiceImpl implements SocialServiceI {
576 577
         tpTransactionReply.setUuidName(userElement.getUserName());
577 578
         tpTransactionReply.setUuidRole(taSysRoleMapper.selectByPrimaryKey(taUserVerify.getRoleId()).getDescription());
578 579
 
579
-            // 由于评论帖子和评论对话是同一个接口,当tpTransactionReply.getReplyTaUserId()为空时查询Ta_user里面的名字
580
-        TpTransactionReply tpTransactionReplyBack = tpTransactionReplyMapper.selectByPrimaryKey(tpTransactionReply.getReplyId());
581
-        
582
-        //  评论帖子取 TpTransaction 的创建人,回复对话取传过来的值
583
-        tpTransactionReply.setReplyUuid(tpTransactionReplyBack.getUuid());
584
-        tpTransactionReply.setReplyUuidType(tpTransactionReplyBack.getUuidType());
585
-        tpTransactionReply.setReplyUuidName(tpTransactionReplyBack.getUuidName());
586
-        tpTransactionReply.setReplyUuidRole(tpTransactionReplyBack.getReplyUuidRole());
580
+        //replyId为空的情况下被回复人就是帖子的创建人
581
+        if (StringUtils.isEmpty(tpTransactionReply.getReplyId())) {
582
+            TpTransaction tpTransaction = tpTransactionMapper.selectByPrimaryKey(tpTransactionReply.getTransactionId(),tpTransactionReply.getCommunityId());
583
+            //塞入被回复人信息
584
+            tpTransactionReply.setReplyUuid(tpTransaction.getUuid());
585
+            tpTransactionReply.setReplyUuidType(tpTransaction.getUuidType());
586
+            tpTransactionReply.setReplyUuidName(tpTransaction.getUuidName());
587
+            String replyRole = "物业";
588
+            if (tpTransaction.getUuidType().equals("app")){
589
+                TaUserVerify replyTaUserVerify= taUserVerifyMapper.selectByPrimaryKey(tpTransaction.getUuid());
590
+                replyRole = taSysRoleMapper.selectByPrimaryKey(replyTaUserVerify.getRoleId()).getDescription();
591
+            }
592
+            tpTransactionReply.setReplyUuidRole(replyRole);
593
+            tpTransactionReply.setPublishType("1");
594
+        }else{
595
+            TpTransactionReply tpTransactionReplyBack = tpTransactionReplyMapper.selectByPrimaryKey(tpTransactionReply.getReplyId());
596
+    
597
+            //塞入被回复人信息
598
+            tpTransactionReply.setReplyUuid(tpTransactionReplyBack.getUuid());
599
+            tpTransactionReply.setReplyUuidType(tpTransactionReplyBack.getUuidType());
600
+            tpTransactionReply.setReplyUuidName(tpTransactionReplyBack.getUuidName());
601
+            tpTransactionReply.setReplyUuidRole(tpTransactionReplyBack.getReplyUuidRole());
602
+            tpTransactionReply.setPublishType("0");
603
+        }
587 604
         tpTransactionReply.setReleaseIdentity("0");
588 605
         
589 606
         tpTransactionReply.setCreateDate(new Date());

+ 3
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml Ver arquivo

@@ -566,12 +566,13 @@
566 566
       and community_id = #{communityId}
567 567
       and rh.house_status = 1
568 568
     </where>
569
+    order by rh.sort desc, update_date desc
569 570
     <if test="priceFluctuate == 1" >
570
-        order by rh.sort desc, (rh.rental_price+0)  asc
571
+        , (rh.rental_price+0)  asc
571 572
     </if>
572 573
 
573 574
     <if test="priceFluctuate == 2" >
574
-        order by rh.sort desc, (rh.rental_price+0)  desc
575
+        , (rh.rental_price+0)  desc
575 576
     </if>
576 577
   </select>
577 578
 </mapper>

+ 4
- 3
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionReplyMapper.xml Ver arquivo

@@ -14,6 +14,7 @@
14 14
     <result column="reply_uuid_role" property="replyUuidRole" jdbcType="VARCHAR" />
15 15
     <result column="transaction_id" property="transactionId" jdbcType="INTEGER" />
16 16
     <result column="reply_content" property="replyContent" jdbcType="VARCHAR" />
17
+    <result column="publish_type" property="publishType" jdbcType="VARCHAR" />
17 18
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
18 19
     <result column="release_identity" property="releaseIdentity" jdbcType="VARCHAR" />
19 20
     <result column="room_no_name" property="roomNoName" jdbcType="INTEGER" />
@@ -21,7 +22,7 @@
21 22
   <sql id="Base_Column_List" >
22 23
     id, community_id, transaction_id,uuid,uuid_type,uuid_role,reply_uuid_role,
23 24
       uuid_name, reply_content,
24
-      reply_uuid, reply_uuid_type,reply_uuid_name, create_date,release_identity
25
+      reply_uuid, reply_uuid_type,reply_uuid_name, create_date,release_identity,publish_type
25 26
   </sql>
26 27
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
27 28
     select 
@@ -36,11 +37,11 @@
36 37
   <insert id="insert" parameterType="com.community.huiju.model.TpTransactionReply" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
37 38
     insert into tp_transaction_reply (id, community_id, transaction_id,uuid,uuid_type,uuid_role,reply_uuid_role,
38 39
       uuid_name, reply_content,
39
-      reply_uuid, reply_uuid_type,reply_uuid_name, create_date,release_identity
40
+      reply_uuid, reply_uuid_type,reply_uuid_name, create_date,release_identity,publish_type
40 41
       )
41 42
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{transactionId,jdbcType=INTEGER},#{uuid},#{uuidType},#{uuidRole},#{replyUuidRole},
42 43
       #{uuidName,jdbcType=VARCHAR}, #{replyContent,jdbcType=VARCHAR}, #{replyUuid,jdbcType=INTEGER},
43
-      #{replyUuidType,jdbcType=VARCHAR}, #{replyUuidName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP},#{releaseIdentity,jdbcType=VARCHAR}
44
+      #{replyUuidType,jdbcType=VARCHAR}, #{replyUuidName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP},#{releaseIdentity,jdbcType=VARCHAR},#{publishType,jdbcType=VARCHAR}
44 45
       )
45 46
   </insert>
46 47
   <insert id="insertSelective" parameterType="com.community.huiju.model.TpTransactionReply" >

+ 5
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TransactionReply.java Ver arquivo

@@ -90,6 +90,11 @@ public class TransactionReply implements Serializable {
90 90
      */
91 91
     private String releaseIdentity;
92 92
     
93
+    /**
94
+     * 发布类型1 是评论 0 是回复评论
95
+     */
96
+    private String publishType;
97
+    
93 98
     /**
94 99
      * 创建时间
95 100
      */

+ 3
- 3
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/IndexCountServiceImpl.java Ver arquivo

@@ -165,7 +165,7 @@ public class IndexCountServiceImpl implements IndexCountServiceI {
165 165
 		List<TpTicket> ticketList = indexCountMapper.getTicketList(communityId);
166 166
 		//已解决:状态为待评价+已评价+拒绝受理+被终止的工单总和
167 167
 		List<TpTicket> solvedTicketList = new ArrayList<>();
168
-		//未解决:等待分配+正在处理
168
+		//未解决:等待分配 + 待处理 +正在处理
169 169
 		List<TpTicket> unsolvedTicketList = new ArrayList<>();
170 170
 		//今日新增报修单
171 171
 		List<TpTicket> todayRepairTicketList = new ArrayList<>();
@@ -184,8 +184,8 @@ public class IndexCountServiceImpl implements IndexCountServiceI {
184 184
 					|| ticket.getStatus().equals("1") || ticket.getStatus().equals("6")){
185 185
 				solvedTicketList.add(ticket);
186 186
 			}
187
-			//未解决:等待分配+正在处理
188
-			if (ticket.getStatus().equals("0") || ticket.getStatus().equals("2")){
187
+			//未解决:等待分配 + 待处理 +正在处理
188
+			if (ticket.getStatus().equals("0") || ticket.getStatus().equals("2") || ticket.getStatus().equals("3")){
189 189
 				unsolvedTicketList.add(ticket);
190 190
 			}
191 191
 			//获取当天时间的数据

+ 4
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TransactionServiceImpl.java Ver arquivo

@@ -360,6 +360,8 @@ public class TransactionServiceImpl extends ServiceImpl<TpTransactionMapper, TpT
360 360
 					.setReplyUuidType(tpTransaction.getUuidType())
361 361
 					.setReplyUuidName(tpTransaction.getUuidName())
362 362
 					.setReplyUuidRole(replyRole)
363
+					.setPublishType("1")
364
+					.setReleaseIdentity("1")
363 365
 					.setCreateDate(LocalDateTime.now());
364 366
 		}
365 367
 		if (Type!=1) {
@@ -376,6 +378,8 @@ public class TransactionServiceImpl extends ServiceImpl<TpTransactionMapper, TpT
376 378
 					.setReplyUuidType("prop")
377 379
 					.setReplyUuidName(Reply.getUuidName())
378 380
 					.setReplyUuidRole("物业")
381
+					.setPublishType("0")
382
+					.setReleaseIdentity("1")
379 383
 					.setCreateDate(LocalDateTime.now());
380 384
 		}
381 385
 		transactionReplyMapper.insert(transactionReply);

+ 483
- 471
文档/MYSQL/smartCommunity.pdb
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 483
- 471
文档/MYSQL/smartCommunity.pdm
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo