Просмотр исходного кода

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

张延森 4 лет назад
Родитель
Сommit
9149045329

+ 1
- 1
src/main/java/com/huiju/estateagents/property/dao/TpTicketMapper.java Просмотреть файл

30
      * @param map
30
      * @param map
31
      * @return
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
     TpTicket selectTpTicketName(@Param("orgId")Integer orgId, @Param("type")String type, @Param("ticketTitle")String ticketTitle);
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 Просмотреть файл

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
         ticketVO.setCurrentUserName(userID.toString());
147
         ticketVO.setCurrentUserName(userID.toString());
145
 
148
 
470
         parameter.put("type", 2);
473
         parameter.put("type", 2);
471
         // 报修
474
         // 报修
472
         Page<TpTicket> pageRepairs = new Page(pageNum, pageSize);
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
         List<TpTicket> tpTicketRepairsList = tpTicketIPage.getRecords();
477
         List<TpTicket> tpTicketRepairsList = tpTicketIPage.getRecords();
475
         List<TpTicketVO> repairsList = Lists.newArrayList();
478
         List<TpTicketVO> repairsList = Lists.newArrayList();
476
         tpTicketVOConvert(tpTicketRepairsList, repairsList);
479
         tpTicketVOConvert(tpTicketRepairsList, repairsList);
479
         //  1:投诉   2:报修 3:联系物业
482
         //  1:投诉   2:报修 3:联系物业
480
         parameter.put("type", 1);
483
         parameter.put("type", 1);
481
         Page<TpTicket> pageComplaint = new Page(pageNum, pageSize);
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
         List<TpTicket> tpTicketComplaintList = tpTicketIPageComplaint.getRecords();
486
         List<TpTicket> tpTicketComplaintList = tpTicketIPageComplaint.getRecords();
484
         List<TpTicketVO> complaintList = Lists.newArrayList();
487
         List<TpTicketVO> complaintList = Lists.newArrayList();
485
         tpTicketVOConvert(tpTicketComplaintList, complaintList);
488
         tpTicketVOConvert(tpTicketComplaintList, complaintList);
488
         //  1:投诉   2:报修 3:联系物业
491
         //  1:投诉   2:报修 3:联系物业
489
         parameter.put("type", 3);
492
         parameter.put("type", 3);
490
         Page<TpTicket> pageLiaison = new Page(pageNum, pageSize);
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
         List<TpTicket> tpTicketLiaisonList = tpTicketIPageLiaison.getRecords();
495
         List<TpTicket> tpTicketLiaisonList = tpTicketIPageLiaison.getRecords();
493
         List<TpTicketVO> liaisonList = Lists.newArrayList();
496
         List<TpTicketVO> liaisonList = Lists.newArrayList();
494
         tpTicketVOConvert(tpTicketLiaisonList, liaisonList);
497
         tpTicketVOConvert(tpTicketLiaisonList, liaisonList);
584
         parameter.put("type", tpTicket.getType());
587
         parameter.put("type", tpTicket.getType());
585
 
588
 
586
         Page<TpTicket> pagelist = new Page<>(pageNum, pageSize);
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
         List<TpTicket> tpTicketList = tpTicketIPage.getRecords();
591
         List<TpTicket> tpTicketList = tpTicketIPage.getRecords();
589
 
592
 
590
         List<TpTicketVO> tpTicketVOList = Lists.newArrayList();
593
         List<TpTicketVO> tpTicketVOList = Lists.newArrayList();

+ 2
- 1
src/main/java/com/huiju/estateagents/property/vo/TpTicketVO.java Просмотреть файл

1
 package com.huiju.estateagents.property.vo;
1
 package com.huiju.estateagents.property.vo;
2
 
2
 
3
+import com.huiju.estateagents.center.taUser.entity.TaUser;
3
 import com.huiju.estateagents.property.model.TpTicket;
4
 import com.huiju.estateagents.property.model.TpTicket;
4
 import com.huiju.estateagents.property.model.TpTicketRecord;
5
 import com.huiju.estateagents.property.model.TpTicketRecord;
5
 import com.huiju.estateagents.property.model.TpTicketRecordComment;
6
 import com.huiju.estateagents.property.model.TpTicketRecordComment;
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 Просмотреть файл

73
          *
73
          *
74
         from tp_ticket
74
         from tp_ticket
75
         <trim prefix="where" prefixOverrides="and">
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
             <if test="type != null" >
82
             <if test="type != null" >
83
                 and type = #{type,jdbcType=CHAR}
83
                 and type = #{type,jdbcType=CHAR}
84
             </if>
84
             </if>