Przeglądaj źródła

Merge branch 'master' of http://git.ycjcjy.com/xiangsong/xs-service

张延森 4 lat temu
rodzic
commit
9149045329

+ 1
- 1
src/main/java/com/huiju/estateagents/property/dao/TpTicketMapper.java Wyświetl plik

@@ -30,7 +30,7 @@ public interface TpTicketMapper extends BaseMapper<TpTicket> {
30 30
      * @param map
31 31
      * @return
32 32
      */
33
-    IPage<TpTicket> selectByCommuniytIdAndByTaUserIdAndByType(Page page,@Param("type") String type);
33
+    IPage<TpTicket> selectByCommuniytIdAndByTaUserIdAndByType(Page page,@Param("type") String type,@Param("personId") String personId,@Param("orgId") Integer orgId);
34 34
 
35 35
     TpTicket selectTpTicketName(@Param("orgId")Integer orgId, @Param("type")String type, @Param("ticketTitle")String ticketTitle);
36 36
 

+ 8
- 5
src/main/java/com/huiju/estateagents/property/service/impl/TpTicketServiceImpl.java Wyświetl plik

@@ -139,7 +139,10 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
139 139
         }
140 140
 
141 141
         /*所有物业端本小区的人员*/
142
-//        ticketVO.setTpUsersList(userMapper.getUser( userID,orgId));
142
+        QueryWrapper<TaUser> taUserQueryWrapper =new QueryWrapper<>();
143
+        taUserQueryWrapper.eq("org_id",orgId);
144
+        taUserQueryWrapper.ne("user_id",userID);
145
+        ticketVO.setTpUsersList(taUserMapper.selectList(taUserQueryWrapper));
143 146
         /*本人*/
144 147
         ticketVO.setCurrentUserName(userID.toString());
145 148
 
@@ -470,7 +473,7 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
470 473
         parameter.put("type", 2);
471 474
         // 报修
472 475
         Page<TpTicket> pageRepairs = new Page(pageNum, pageSize);
473
-        IPage<TpTicket> tpTicketIPage = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageRepairs, tpTicket.getType());
476
+        IPage<TpTicket> tpTicketIPage = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageRepairs, tpTicket.getType(),tpTicket.getPersonId(),tpTicket.getOrgId());
474 477
         List<TpTicket> tpTicketRepairsList = tpTicketIPage.getRecords();
475 478
         List<TpTicketVO> repairsList = Lists.newArrayList();
476 479
         tpTicketVOConvert(tpTicketRepairsList, repairsList);
@@ -479,7 +482,7 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
479 482
         //  1:投诉   2:报修 3:联系物业
480 483
         parameter.put("type", 1);
481 484
         Page<TpTicket> pageComplaint = new Page(pageNum, pageSize);
482
-        IPage<TpTicket> tpTicketIPageComplaint = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageComplaint, tpTicket.getType());
485
+        IPage<TpTicket> tpTicketIPageComplaint = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageComplaint, tpTicket.getType(), tpTicket.getPersonId(),tpTicket.getOrgId());
483 486
         List<TpTicket> tpTicketComplaintList = tpTicketIPageComplaint.getRecords();
484 487
         List<TpTicketVO> complaintList = Lists.newArrayList();
485 488
         tpTicketVOConvert(tpTicketComplaintList, complaintList);
@@ -488,7 +491,7 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
488 491
         //  1:投诉   2:报修 3:联系物业
489 492
         parameter.put("type", 3);
490 493
         Page<TpTicket> pageLiaison = new Page(pageNum, pageSize);
491
-        IPage<TpTicket> tpTicketIPageLiaison = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageLiaison, tpTicket.getType());
494
+        IPage<TpTicket> tpTicketIPageLiaison = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageLiaison, tpTicket.getType(),tpTicket.getPersonId(),tpTicket.getOrgId());
492 495
         List<TpTicket> tpTicketLiaisonList = tpTicketIPageLiaison.getRecords();
493 496
         List<TpTicketVO> liaisonList = Lists.newArrayList();
494 497
         tpTicketVOConvert(tpTicketLiaisonList, liaisonList);
@@ -584,7 +587,7 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
584 587
         parameter.put("type", tpTicket.getType());
585 588
 
586 589
         Page<TpTicket> pagelist = new Page<>(pageNum, pageSize);
587
-        IPage<TpTicket> tpTicketIPage = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pagelist, tpTicket.getType());
590
+        IPage<TpTicket> tpTicketIPage = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pagelist, tpTicket.getType(),tpTicket.getPersonId(),tpTicket.getOrgId());
588 591
         List<TpTicket> tpTicketList = tpTicketIPage.getRecords();
589 592
 
590 593
         List<TpTicketVO> tpTicketVOList = Lists.newArrayList();

+ 2
- 1
src/main/java/com/huiju/estateagents/property/vo/TpTicketVO.java Wyświetl plik

@@ -1,5 +1,6 @@
1 1
 package com.huiju.estateagents.property.vo;
2 2
 
3
+import com.huiju.estateagents.center.taUser.entity.TaUser;
3 4
 import com.huiju.estateagents.property.model.TpTicket;
4 5
 import com.huiju.estateagents.property.model.TpTicketRecord;
5 6
 import com.huiju.estateagents.property.model.TpTicketRecordComment;
@@ -69,7 +70,7 @@ public class TpTicketVO extends TpTicket {
69 70
     /**
70 71
      * 物业端所有小区人员
71 72
      */
72
-    private List<User> tpUsersList;
73
+    private List<TaUser> tpUsersList;
73 74
 
74 75
     /**
75 76
      * 本人

+ 6
- 6
src/main/resources/mapper/property/TpTicketMapper.xml Wyświetl plik

@@ -73,12 +73,12 @@
73 73
          *
74 74
         from tp_ticket
75 75
         <trim prefix="where" prefixOverrides="and">
76
-<!--            <if test="orgId != null" >-->
77
-<!--                and org_id = #{orgId,jdbcType=INTEGER}-->
78
-<!--            </if>-->
79
-<!--            <if test="taUserId != null" >-->
80
-<!--                and ta_user_id = #{taUserId,jdbcType=INTEGER}-->
81
-<!--            </if>-->
76
+            <if test="orgId != null" >
77
+                and org_id = #{orgId,jdbcType=INTEGER}
78
+            </if>
79
+            <if test="personId!= null" >
80
+                and person_id = #{personId}
81
+            </if>
82 82
             <if test="type != null" >
83 83
                 and type = #{type,jdbcType=CHAR}
84 84
             </if>