andrew 4 gadus atpakaļ
vecāks
revīzija
536f70cc87
34 mainītis faili ar 1048 papildinājumiem un 132 dzēšanām
  1. 5
    5
      src/main/java/com/huiju/estateagents/property/controller/AnnouncementTelController.java
  2. 2
    2
      src/main/java/com/huiju/estateagents/property/controller/BillController.java
  3. 11
    12
      src/main/java/com/huiju/estateagents/property/controller/BillInvoiceController.java
  4. 1
    1
      src/main/java/com/huiju/estateagents/property/controller/BillStatementController.java
  5. 6
    6
      src/main/java/com/huiju/estateagents/property/controller/BuildingOwnerInfoController.java
  6. 1
    3
      src/main/java/com/huiju/estateagents/property/controller/CarouselSettingController.java
  7. 8
    8
      src/main/java/com/huiju/estateagents/property/controller/HotelController.java
  8. 1
    1
      src/main/java/com/huiju/estateagents/property/controller/IndexCountController.java
  9. 3
    3
      src/main/java/com/huiju/estateagents/property/controller/MessageController.java
  10. 0
    5
      src/main/java/com/huiju/estateagents/property/controller/RoleController.java
  11. 1
    1
      src/main/java/com/huiju/estateagents/property/controller/TaVisitorLicenseSettingController.java
  12. 2
    2
      src/main/java/com/huiju/estateagents/property/controller/TpAnnouncementController.java
  13. 5
    5
      src/main/java/com/huiju/estateagents/property/controller/TpEquipmentController.java
  14. 5
    6
      src/main/java/com/huiju/estateagents/property/controller/TpRentalHouseController.java
  15. 5
    6
      src/main/java/com/huiju/estateagents/property/controller/TpShopController.java
  16. 1
    1
      src/main/java/com/huiju/estateagents/property/controller/TpShopSettingController.java
  17. 6
    6
      src/main/java/com/huiju/estateagents/property/controller/TpShopTypeController.java
  18. 161
    11
      src/main/java/com/huiju/estateagents/property/controller/TpTicketController.java
  19. 7
    9
      src/main/java/com/huiju/estateagents/property/controller/TransactionController.java
  20. 1
    5
      src/main/java/com/huiju/estateagents/property/controller/UserVerifyController.java
  21. 14
    0
      src/main/java/com/huiju/estateagents/property/dao/TdImagesMapper.java
  22. 14
    0
      src/main/java/com/huiju/estateagents/property/dao/TpTicketMapper.java
  23. 22
    0
      src/main/java/com/huiju/estateagents/property/dao/TpTicketRecordCommentMapper.java
  24. 4
    0
      src/main/java/com/huiju/estateagents/property/dao/TpTicketRecordMapper.java
  25. 7
    0
      src/main/java/com/huiju/estateagents/property/model/TpTicket.java
  26. 6
    0
      src/main/java/com/huiju/estateagents/property/model/TpTicketRecord.java
  27. 74
    0
      src/main/java/com/huiju/estateagents/property/service/TpTicketService.java
  28. 543
    9
      src/main/java/com/huiju/estateagents/property/service/impl/TpTicketServiceImpl.java
  29. 49
    22
      src/main/java/com/huiju/estateagents/property/vo/TpTicketVO.java
  30. 1
    3
      src/main/java/com/huiju/estateagents/service/impl/TaNewsServiceImpl.java
  31. 12
    0
      src/main/resources/mapper/property/TdImagesMapper.xml
  32. 34
    0
      src/main/resources/mapper/property/TpTicketMapper.xml
  33. 17
    0
      src/main/resources/mapper/property/TpTicketRecordCommentMapper.xml
  34. 19
    0
      src/main/resources/mapper/property/TpTicketRecordMapper.xml

+ 5
- 5
src/main/java/com/huiju/estateagents/property/controller/AnnouncementTelController.java Parādīt failu

45
 			@ApiImplicitParam(paramType = "query", dataType = "String", name = "remark", value = "备注(模糊查询)"),
45
 			@ApiImplicitParam(paramType = "query", dataType = "String", name = "remark", value = "备注(模糊查询)"),
46
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
46
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
47
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
47
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
48
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
48
+
49
 	})
49
 	})
50
 	@RequestMapping(value = "/tels",method = RequestMethod.GET)
50
 	@RequestMapping(value = "/tels",method = RequestMethod.GET)
51
 	public ResponseBean getList(@RequestParam(value = "name", required = false) String name,
51
 	public ResponseBean getList(@RequestParam(value = "name", required = false) String name,
67
 	// @ApiOperation(value = "添加物业端号码", notes = "添加物业端号码")
67
 	// @ApiOperation(value = "添加物业端号码", notes = "添加物业端号码")
68
 	@ApiImplicitParams({
68
 	@ApiImplicitParams({
69
 			@ApiImplicitParam(dataTypeClass = String.class, paramType = "AnnouncementTel", name = "announcementTel", value = "电话号码实体类"),
69
 			@ApiImplicitParam(dataTypeClass = String.class, paramType = "AnnouncementTel", name = "announcementTel", value = "电话号码实体类"),
70
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
70
+
71
 	})
71
 	})
72
 	@RequestMapping(value = "/tel/add",method = RequestMethod.POST)
72
 	@RequestMapping(value = "/tel/add",method = RequestMethod.POST)
73
 	public ResponseBean addTel(@Valid @RequestBody AnnouncementTel announcementTel, HttpServletRequest request){
73
 	public ResponseBean addTel(@Valid @RequestBody AnnouncementTel announcementTel, HttpServletRequest request){
105
 	// @ApiOperation(value = "根据ID修改物业端号码", notes = "根据ID修改物业端号码")
105
 	// @ApiOperation(value = "根据ID修改物业端号码", notes = "根据ID修改物业端号码")
106
 	@ApiImplicitParams({
106
 	@ApiImplicitParams({
107
 			@ApiImplicitParam(paramType = "body", dataType = "AnnouncementTel", name = "announcementTel", value = "电话号码实体类"),
107
 			@ApiImplicitParam(paramType = "body", dataType = "AnnouncementTel", name = "announcementTel", value = "电话号码实体类"),
108
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
108
+
109
 	})
109
 	})
110
 	@RequestMapping(value = "/tel/update", method = RequestMethod.PUT)
110
 	@RequestMapping(value = "/tel/update", method = RequestMethod.PUT)
111
 	public ResponseBean updateTel(@Valid @RequestBody AnnouncementTel announcementTel, HttpServletRequest request) {
111
 	public ResponseBean updateTel(@Valid @RequestBody AnnouncementTel announcementTel, HttpServletRequest request) {
156
 	// @ApiOperation(value = "获取Id获取物业端号码详情", notes = "获取Id获取物业端号码详情")
156
 	// @ApiOperation(value = "获取Id获取物业端号码详情", notes = "获取Id获取物业端号码详情")
157
 	@ApiImplicitParams({
157
 	@ApiImplicitParams({
158
 			@ApiImplicitParam(paramType = "Path", dataType = "integer", name = "id", value = "主键Id"),
158
 			@ApiImplicitParam(paramType = "Path", dataType = "integer", name = "id", value = "主键Id"),
159
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
159
+
160
 	})
160
 	})
161
 	@RequestMapping(value = "/tel/{id}",method = RequestMethod.GET)
161
 	@RequestMapping(value = "/tel/{id}",method = RequestMethod.GET)
162
 	public ResponseBean getNoticeById(@PathVariable(value ="id") Integer id, HttpServletRequest request){
162
 	public ResponseBean getNoticeById(@PathVariable(value ="id") Integer id, HttpServletRequest request){
169
 	// @ApiOperation(value = "根据ID批量删除物业端号码", notes = "根据ID批量删除物业端号码")
169
 	// @ApiOperation(value = "根据ID批量删除物业端号码", notes = "根据ID批量删除物业端号码")
170
 	@ApiImplicitParams({
170
 	@ApiImplicitParams({
171
 			@ApiImplicitParam(paramType = "body", dataType = "integer", name = "ids", value = "主键Id"),
171
 			@ApiImplicitParam(paramType = "body", dataType = "integer", name = "ids", value = "主键Id"),
172
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
172
+
173
 	})
173
 	})
174
 	@RequestMapping(value = "/tel/delete", method = RequestMethod.POST)
174
 	@RequestMapping(value = "/tel/delete", method = RequestMethod.POST)
175
 	public ResponseBean deleteNotice(@RequestBody List<Integer> ids, HttpServletRequest request) {
175
 	public ResponseBean deleteNotice(@RequestBody List<Integer> ids, HttpServletRequest request) {

+ 2
- 2
src/main/java/com/huiju/estateagents/property/controller/BillController.java Parādīt failu

131
     // @ApiOperation(value = "根据 id集合 删除缴费项", notes = "根据 id集合 删除缴费项")
131
     // @ApiOperation(value = "根据 id集合 删除缴费项", notes = "根据 id集合 删除缴费项")
132
     @ApiImplicitParams({
132
     @ApiImplicitParams({
133
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "ids", value = "id编号集合"),
133
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "ids", value = "id编号集合"),
134
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
134
+
135
     })
135
     })
136
     @RequestMapping(value = "/bill/deleteBillBeach", method = RequestMethod.POST)
136
     @RequestMapping(value = "/bill/deleteBillBeach", method = RequestMethod.POST)
137
     public ResponseBean deleteBillBeach(HttpServletRequest request,
137
     public ResponseBean deleteBillBeach(HttpServletRequest request,
146
     // @ApiOperation(value = "下载Excel模板", notes = "下载Excel模板")
146
     // @ApiOperation(value = "下载Excel模板", notes = "下载Excel模板")
147
     @ApiImplicitParams({
147
     @ApiImplicitParams({
148
 //            @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billExplain收费组说明"),
148
 //            @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billExplain收费组说明"),
149
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
149
+
150
     })
150
     })
151
     @RequestMapping(value = "/bill/downloadExcel", method = RequestMethod.GET)
151
     @RequestMapping(value = "/bill/downloadExcel", method = RequestMethod.GET)
152
     public void exportExcel(HttpServletResponse response, HttpServletRequest request) {
152
     public void exportExcel(HttpServletResponse response, HttpServletRequest request) {

+ 11
- 12
src/main/java/com/huiju/estateagents/property/controller/BillInvoiceController.java Parādīt failu

49
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billId: 缴费项目id," +
49
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billId: 缴费项目id," +
50
                     "phase: 期,building: 栋,unit: 单元,roomNo: 户号,ownerName: 业主姓名," +
50
                     "phase: 期,building: 栋,unit: 单元,roomNo: 户号,ownerName: 业主姓名," +
51
                     "billStatus: 缴费状态,payName: 缴费人,pageSize: 一页多少行,pageNum: 第几页"),
51
                     "billStatus: 缴费状态,payName: 缴费人,pageSize: 一页多少行,pageNum: 第几页"),
52
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
53
     })
52
     })
54
     @RequestMapping(value = "/bill/invoice/list", method = RequestMethod.POST)
53
     @RequestMapping(value = "/bill/invoice/list", method = RequestMethod.POST)
55
     public ResponseBean getBillList(HttpServletRequest request, @RequestBody String parameter) {
54
     public ResponseBean getBillList(HttpServletRequest request, @RequestBody String parameter) {
62
     // @ApiOperation(value = "修改缴费项 收费项名称,缴费项说明,截止时间", notes = "修改缴费项 收费项名称,缴费项说明,截止时间")
61
     // @ApiOperation(value = "修改缴费项 收费项名称,缴费项说明,截止时间", notes = "修改缴费项 收费项名称,缴费项说明,截止时间")
63
     @ApiImplicitParams({
62
     @ApiImplicitParams({
64
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billName收费项名称,billExplain缴费项说明,endDate截止时间"),
63
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billName收费项名称,billExplain缴费项说明,endDate截止时间"),
65
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
64
+
66
     })
65
     })
67
     @RequestMapping(value = "/bill/invoice/updateBill", method = RequestMethod.PUT)
66
     @RequestMapping(value = "/bill/invoice/updateBill", method = RequestMethod.PUT)
68
     public ResponseBean updateBill(HttpServletRequest request, @RequestBody String parameter) {
67
     public ResponseBean updateBill(HttpServletRequest request, @RequestBody String parameter) {
76
     // @ApiOperation(value = "根据 id集合 删除缴费单", notes = "根据 id集合 删除缴费单")
75
     // @ApiOperation(value = "根据 id集合 删除缴费单", notes = "根据 id集合 删除缴费单")
77
     @ApiImplicitParams({
76
     @ApiImplicitParams({
78
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "ids", value = "id集合"),
77
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "ids", value = "id集合"),
79
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
78
+
80
     })
79
     })
81
     @RequestMapping(value = "/bill/invoice/delete", method = RequestMethod.POST)
80
     @RequestMapping(value = "/bill/invoice/delete", method = RequestMethod.POST)
82
     public ResponseBean delete(HttpServletRequest request, @RequestBody List<Integer> ids) {
81
     public ResponseBean delete(HttpServletRequest request, @RequestBody List<Integer> ids) {
90
     // @ApiOperation(value = "设置线下缴费", notes = "设置线下缴费")
89
     // @ApiOperation(value = "设置线下缴费", notes = "设置线下缴费")
91
     @ApiImplicitParams({
90
     @ApiImplicitParams({
92
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "ids", value = "id集合"),
91
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "ids", value = "id集合"),
93
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
92
+
94
     })
93
     })
95
     @RequestMapping(value = "/bill/invoice/offlinePayment", method = RequestMethod.POST)
94
     @RequestMapping(value = "/bill/invoice/offlinePayment", method = RequestMethod.POST)
96
     public ResponseBean offlinePayment(HttpServletRequest request, @RequestBody List<Integer> ids) {
95
     public ResponseBean offlinePayment(HttpServletRequest request, @RequestBody List<Integer> ids) {
105
     @ApiImplicitParams({
104
     @ApiImplicitParams({
106
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billId缴费项编号,phase期/区," +
105
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billId缴费项编号,phase期/区," +
107
                     "building栋,unit单元,roomNo户号,worthOf截止时间(催缴日期),billInvoiceExplain收费单说明,payPrice收费金额"),
106
                     "building栋,unit单元,roomNo户号,worthOf截止时间(催缴日期),billInvoiceExplain收费单说明,payPrice收费金额"),
108
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
107
+
109
     })
108
     })
110
     @RequestMapping(value = "/bill/invoice/addTempBillInvoice", method = RequestMethod.POST)
109
     @RequestMapping(value = "/bill/invoice/addTempBillInvoice", method = RequestMethod.POST)
111
     public ResponseBean addTempBillInvoice(HttpServletRequest request, @RequestBody String parameter) {
110
     public ResponseBean addTempBillInvoice(HttpServletRequest request, @RequestBody String parameter) {
118
     // @ApiOperation(value = "由前台批量添加收费单, 进行统一的提交, 修改为有效", notes = "由前台批量添加收费单, 进行统一的提交, 修改为有效")
117
     // @ApiOperation(value = "由前台批量添加收费单, 进行统一的提交, 修改为有效", notes = "由前台批量添加收费单, 进行统一的提交, 修改为有效")
119
     @ApiImplicitParams({
118
     @ApiImplicitParams({
120
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "ids", value = "id集合"),
119
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "ids", value = "id集合"),
121
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
120
+
122
     })
121
     })
123
     @RequestMapping(value = "/bill/invoice/updateBillInvoiceStatus", method = RequestMethod.POST)
122
     @RequestMapping(value = "/bill/invoice/updateBillInvoiceStatus", method = RequestMethod.POST)
124
     public ResponseBean updateBillInvoiceStatus(HttpServletRequest request, @RequestBody List<Integer> ids) {
123
     public ResponseBean updateBillInvoiceStatus(HttpServletRequest request, @RequestBody List<Integer> ids) {
131
     // @ApiOperation(value = "查询前台批量添加的收费单, 状态是作废", notes = "查询前台批量添加的收费单, 状态是作废")
130
     // @ApiOperation(value = "查询前台批量添加的收费单, 状态是作废", notes = "查询前台批量添加的收费单, 状态是作废")
132
     @ApiImplicitParams({
131
     @ApiImplicitParams({
133
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
132
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
134
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
133
+
135
     })
134
     })
136
     @RequestMapping(value = "/bill/invoice/getTempBillInvoice/{billId}", method = RequestMethod.GET)
135
     @RequestMapping(value = "/bill/invoice/getTempBillInvoice/{billId}", method = RequestMethod.GET)
137
     public ResponseBean getTempBillInvoice(HttpServletRequest request, @PathVariable("billId") Integer billId) {
136
     public ResponseBean getTempBillInvoice(HttpServletRequest request, @PathVariable("billId") Integer billId) {
144
     // @ApiOperation(value = "根据id删除收费单, 只能删除作废的", notes = "根据id删除收费单, 只能删除作废的")
143
     // @ApiOperation(value = "根据id删除收费单, 只能删除作废的", notes = "根据id删除收费单, 只能删除作废的")
145
     @ApiImplicitParams({
144
     @ApiImplicitParams({
146
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
145
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
147
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
146
+
148
     })
147
     })
149
     @RequestMapping(value = "/bill/invoice/deleteTempBillInvoice/{billId}", method = RequestMethod.DELETE)
148
     @RequestMapping(value = "/bill/invoice/deleteTempBillInvoice/{billId}", method = RequestMethod.DELETE)
150
     public ResponseBean deleteTempBillInvoice(HttpServletRequest request, @PathVariable("billId") Integer billId) {
149
     public ResponseBean deleteTempBillInvoice(HttpServletRequest request, @PathVariable("billId") Integer billId) {
158
     @ApiImplicitParams({
157
     @ApiImplicitParams({
159
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
158
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
160
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "payPrice金额"),
159
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "payPrice金额"),
161
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
160
+
162
     })
161
     })
163
     @RequestMapping(value = "/bill/invoice/updateBillInvoiceIdPayPrice/{billId}", method = RequestMethod.POST)
162
     @RequestMapping(value = "/bill/invoice/updateBillInvoiceIdPayPrice/{billId}", method = RequestMethod.POST)
164
     public ResponseBean updateBillInvoiceIdPayPrice(HttpServletRequest request, @PathVariable Integer billId, @RequestBody String parameter) {
163
     public ResponseBean updateBillInvoiceIdPayPrice(HttpServletRequest request, @PathVariable Integer billId, @RequestBody String parameter) {
173
     @ApiImplicitParams({
172
     @ApiImplicitParams({
174
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
173
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
175
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billInvoiceExplain收费说明"),
174
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billInvoiceExplain收费说明"),
176
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
175
+
177
     })
176
     })
178
     @RequestMapping(value = "/bill/invoice/updateBillInvoiceIdBillInvoiceExplain/{billId}", method = RequestMethod.POST)
177
     @RequestMapping(value = "/bill/invoice/updateBillInvoiceIdBillInvoiceExplain/{billId}", method = RequestMethod.POST)
179
     public ResponseBean updateBillInvoiceIdBillInvoiceExplain(HttpServletRequest request, @PathVariable Integer billId, @RequestBody String parameter) {
178
     public ResponseBean updateBillInvoiceIdBillInvoiceExplain(HttpServletRequest request, @PathVariable Integer billId, @RequestBody String parameter) {
199
     // @ApiOperation(value = "导出Excel", notes = "导出Excel")
198
     // @ApiOperation(value = "导出Excel", notes = "导出Excel")
200
     @ApiImplicitParams({
199
     @ApiImplicitParams({
201
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
200
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "缴费id"),
202
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
201
+
203
     })
202
     })
204
     @RequestMapping(value = "/bill/invoice/exportExcel/{billId}", method = RequestMethod.GET)
203
     @RequestMapping(value = "/bill/invoice/exportExcel/{billId}", method = RequestMethod.GET)
205
     public void exportExcel(HttpServletResponse response, HttpServletRequest request, @PathVariable("billId") Integer billId) {
204
     public void exportExcel(HttpServletResponse response, HttpServletRequest request, @PathVariable("billId") Integer billId) {
223
     // @ApiOperation(value = "根据缴费项id, 查询草稿", notes = "根据缴费项id, 查询草稿")
222
     // @ApiOperation(value = "根据缴费项id, 查询草稿", notes = "根据缴费项id, 查询草稿")
224
     @ApiImplicitParams({
223
     @ApiImplicitParams({
225
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "billId缴费项id,pageNum当前页,pageSize一页多少行"),
224
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "billId", value = "billId缴费项id,pageNum当前页,pageSize一页多少行"),
226
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
225
+
227
     })
226
     })
228
     @RequestMapping(value = "/bill/invoice/getInvoiceInvalid", method = RequestMethod.POST)
227
     @RequestMapping(value = "/bill/invoice/getInvoiceInvalid", method = RequestMethod.POST)
229
     public ResponseBean getInvoiceInvalid(HttpServletRequest request, @RequestBody String parameter) {
228
     public ResponseBean getInvoiceInvalid(HttpServletRequest request, @RequestBody String parameter) {

+ 1
- 1
src/main/java/com/huiju/estateagents/property/controller/BillStatementController.java Parādīt failu

55
 
55
 
56
     // @ApiOperation(value = "导出Excel", notes = "导出Excel")
56
     // @ApiOperation(value = "导出Excel", notes = "导出Excel")
57
     @ApiImplicitParams({
57
     @ApiImplicitParams({
58
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
58
+
59
     })
59
     })
60
     @RequestMapping(value = "/bill/statement/exportExcel", method = RequestMethod.GET)
60
     @RequestMapping(value = "/bill/statement/exportExcel", method = RequestMethod.GET)
61
     public void exportExcel(HttpServletResponse response, HttpServletRequest request) {
61
     public void exportExcel(HttpServletResponse response, HttpServletRequest request) {

+ 6
- 6
src/main/java/com/huiju/estateagents/property/controller/BuildingOwnerInfoController.java Parādīt failu

120
     // @ApiOperation(value = "修改楼栋业务信息", notes = "修改楼栋业主信息")
120
     // @ApiOperation(value = "修改楼栋业务信息", notes = "修改楼栋业主信息")
121
     @ApiImplicitParams({
121
     @ApiImplicitParams({
122
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter",value = "userVerifyId审核编号;roleId角色编号;verifyStatus审核 true通过;false不通过;remark备注"),
122
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter",value = "userVerifyId审核编号;roleId角色编号;verifyStatus审核 true通过;false不通过;remark备注"),
123
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
123
+
124
     })
124
     })
125
     @RequestMapping(value = "/building/update", method = RequestMethod.PUT)
125
     @RequestMapping(value = "/building/update", method = RequestMethod.PUT)
126
     public ResponseBean update(@RequestBody String parameter, HttpServletRequest request){
126
     public ResponseBean update(@RequestBody String parameter, HttpServletRequest request){
136
                     "unitId单元;levelId楼层;roomNoId户号;" +
136
                     "unitId单元;levelId楼层;roomNoId户号;" +
137
                     "ownerName业主姓名;" +
137
                     "ownerName业主姓名;" +
138
                     "ownerTel业主手机号;roleId角色id;gender性别 1:男   2:女;"),
138
                     "ownerTel业主手机号;roleId角色id;gender性别 1:男   2:女;"),
139
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
139
+
140
     })
140
     })
141
     @RequestMapping(value = "/building/add", method = RequestMethod.POST)
141
     @RequestMapping(value = "/building/add", method = RequestMethod.POST)
142
     public ResponseBean add(@RequestBody String parameter, HttpServletRequest request){
142
     public ResponseBean add(@RequestBody String parameter, HttpServletRequest request){
149
     // @ApiOperation(value = "批量删除楼栋业主信息", notes = "批量删除楼栋业主信息")
149
     // @ApiOperation(value = "批量删除楼栋业主信息", notes = "批量删除楼栋业主信息")
150
     @ApiImplicitParams({
150
     @ApiImplicitParams({
151
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "ids",value = "id集合"),
151
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "ids",value = "id集合"),
152
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
152
+
153
     })
153
     })
154
     @RequestMapping(value = "/building/delete", method = RequestMethod.DELETE)
154
     @RequestMapping(value = "/building/delete", method = RequestMethod.DELETE)
155
     public ResponseBean delete(@RequestBody List<Integer> ids, HttpServletRequest request){
155
     public ResponseBean delete(@RequestBody List<Integer> ids, HttpServletRequest request){
265
     // @ApiOperation(value = "小区楼栋资料表",nickname ="小区楼栋资料表")
265
     // @ApiOperation(value = "小区楼栋资料表",nickname ="小区楼栋资料表")
266
     @ApiImplicitParams({
266
     @ApiImplicitParams({
267
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="phase:期,building:楼栋 ,unit:单元,level:楼层,roomNo:户号, pageNum:每页显示多少条,pageSzie:当前页数"),
267
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="phase:期,building:楼栋 ,unit:单元,level:楼层,roomNo:户号, pageNum:每页显示多少条,pageSzie:当前页数"),
268
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")})
268
+            })
269
     @RequestMapping(value="/buildinglist",method = RequestMethod.POST)
269
     @RequestMapping(value="/buildinglist",method = RequestMethod.POST)
270
     public ResponseBean buildinglist(@RequestBody String paramets, HttpServletRequest request){
270
     public ResponseBean buildinglist(@RequestBody String paramets, HttpServletRequest request){
271
         TaUser userElement = getTaUser(request);
271
         TaUser userElement = getTaUser(request);
300
     // @ApiOperation(value = "下载Excel模板(小区楼栋信息)", notes = "下载Excel模板(小区楼栋信息)")
300
     // @ApiOperation(value = "下载Excel模板(小区楼栋信息)", notes = "下载Excel模板(小区楼栋信息)")
301
     @ApiImplicitParams({
301
     @ApiImplicitParams({
302
 //            @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billExplain收费组说明"),
302
 //            @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "billExplain收费组说明"),
303
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
303
+
304
     })
304
     })
305
     @RequestMapping(value = "/building/downloadExcel", method = RequestMethod.GET)
305
     @RequestMapping(value = "/building/downloadExcel", method = RequestMethod.GET)
306
     public void exportExcel(HttpServletResponse response, HttpServletRequest request) {
306
     public void exportExcel(HttpServletResponse response, HttpServletRequest request) {
320
     // @ApiOperation(value = "住户资料详情",nickname ="住户资料详情")
320
     // @ApiOperation(value = "住户资料详情",nickname ="住户资料详情")
321
     @ApiImplicitParams({
321
     @ApiImplicitParams({
322
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:楼栋住户ID"),
322
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:楼栋住户ID"),
323
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")})
323
+            })
324
     @RequestMapping(value="/building/details",method = RequestMethod.POST)
324
     @RequestMapping(value="/building/details",method = RequestMethod.POST)
325
     public ResponseBean buildingDetails(@RequestBody String paramets, HttpServletRequest request){
325
     public ResponseBean buildingDetails(@RequestBody String paramets, HttpServletRequest request){
326
         TaUser userElement = getTaUser(request);
326
         TaUser userElement = getTaUser(request);

+ 1
- 3
src/main/java/com/huiju/estateagents/property/controller/CarouselSettingController.java Parādīt failu

42
 
42
 
43
     // @ApiOperation(value = "添加/修改公告的Banner数量", notes = "添加/修改公告的Banner数量")
43
     // @ApiOperation(value = "添加/修改公告的Banner数量", notes = "添加/修改公告的Banner数量")
44
     @ApiImplicitParams({
44
     @ApiImplicitParams({
45
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
46
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "parameter", value = "carouselNum数量值")
45
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "parameter", value = "carouselNum数量值")
47
     })
46
     })
48
     @RequestMapping(value = "/carousel/announcement/banner", method = RequestMethod.PUT)
47
     @RequestMapping(value = "/carousel/announcement/banner", method = RequestMethod.PUT)
79
 
78
 
80
     // @ApiOperation(value = "添加/修改活动的Banner数量", notes = "添加/修改活动的Banner数量")
79
     // @ApiOperation(value = "添加/修改活动的Banner数量", notes = "添加/修改活动的Banner数量")
81
     @ApiImplicitParams({
80
     @ApiImplicitParams({
82
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
83
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "parameter", value = "carouselNum数量值")
81
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "parameter", value = "carouselNum数量值")
84
     })
82
     })
85
     @RequestMapping(value = "/carousel/activity/banner", method = RequestMethod.PUT)
83
     @RequestMapping(value = "/carousel/activity/banner", method = RequestMethod.PUT)
114
 
112
 
115
     // @ApiOperation(value = "获取Banner数量", notes = "获取Banner数量")
113
     // @ApiOperation(value = "获取Banner数量", notes = "获取Banner数量")
116
     @ApiImplicitParams({
114
     @ApiImplicitParams({
117
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
115
+            ,
118
     })
116
     })
119
     @RequestMapping(value = "/carousel/getBanner", method = RequestMethod.GET)
117
     @RequestMapping(value = "/carousel/getBanner", method = RequestMethod.GET)
120
     public ResponseBean getBannerNum(HttpServletRequest request) {
118
     public ResponseBean getBannerNum(HttpServletRequest request) {

+ 8
- 8
src/main/java/com/huiju/estateagents/property/controller/HotelController.java Parādīt failu

52
                     "endTime:结束时间"+
52
                     "endTime:结束时间"+
53
                     "sort:权重")
53
                     "sort:权重")
54
     })
54
     })
55
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
55
+
56
     @RequestMapping(value = "/hotelRoomList", method = RequestMethod.POST)
56
     @RequestMapping(value = "/hotelRoomList", method = RequestMethod.POST)
57
     public ResponseBean hotelRoom(@RequestBody String parameter, HttpServletRequest request){
57
     public ResponseBean hotelRoom(@RequestBody String parameter, HttpServletRequest request){
58
         TaUser userElement = getTaUser(request);
58
         TaUser userElement = getTaUser(request);
69
                     "remark:(描述)"+
69
                     "remark:(描述)"+
70
                     "sort:权重")
70
                     "sort:权重")
71
     })
71
     })
72
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
72
+
73
     @RequestMapping(value = "/hotelRoomAdd", method = RequestMethod.POST)
73
     @RequestMapping(value = "/hotelRoomAdd", method = RequestMethod.POST)
74
     public ResponseBean hotelRoomAdd(@RequestBody String parameter, HttpServletRequest request){
74
     public ResponseBean hotelRoomAdd(@RequestBody String parameter, HttpServletRequest request){
75
         TaUser userElement = getTaUser(request);
75
         TaUser userElement = getTaUser(request);
80
     // @ApiOperation(value = "查询当前房间信息", notes = "查询当前房间信息")
80
     // @ApiOperation(value = "查询当前房间信息", notes = "查询当前房间信息")
81
     @ApiImplicitParams({
81
     @ApiImplicitParams({
82
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:房间ID")})
82
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:房间ID")})
83
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
83
+
84
     @RequestMapping(value = "/getRoom", method = RequestMethod.POST)
84
     @RequestMapping(value = "/getRoom", method = RequestMethod.POST)
85
     public ResponseBean getRoom(@RequestBody String parameter, HttpServletRequest request){
85
     public ResponseBean getRoom(@RequestBody String parameter, HttpServletRequest request){
86
         TaUser userElement = getTaUser(request);
86
         TaUser userElement = getTaUser(request);
101
                     "remark:(描述)"+
101
                     "remark:(描述)"+
102
                     "sort:权重")
102
                     "sort:权重")
103
     })
103
     })
104
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
104
+
105
     @RequestMapping(value = "/hotelRoomEdit", method = RequestMethod.POST)
105
     @RequestMapping(value = "/hotelRoomEdit", method = RequestMethod.POST)
106
     public ResponseBean hotelRoomEdit(@RequestBody String parameter, HttpServletRequest request){
106
     public ResponseBean hotelRoomEdit(@RequestBody String parameter, HttpServletRequest request){
107
         TaUser userElement = getTaUser(request);
107
         TaUser userElement = getTaUser(request);
113
     @ApiImplicitParams({
113
     @ApiImplicitParams({
114
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:[]房间ID,roomStatus:(1:是已上架 2:是已下架)"
114
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:[]房间ID,roomStatus:(1:是已上架 2:是已下架)"
115
             )})
115
             )})
116
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
116
+
117
     @RequestMapping(value = "/hotelRoomRoomStatus", method = RequestMethod.POST)
117
     @RequestMapping(value = "/hotelRoomRoomStatus", method = RequestMethod.POST)
118
     public ResponseBean hotelRoomRoomStatus(@RequestBody String parameter, HttpServletRequest request){
118
     public ResponseBean hotelRoomRoomStatus(@RequestBody String parameter, HttpServletRequest request){
119
         TaUser userElement = getTaUser(request);
119
         TaUser userElement = getTaUser(request);
123
     
123
     
124
     // @ApiOperation(value = "根据小区获取酒店数据", notes = "根据搜索条件获取角色列表")
124
     // @ApiOperation(value = "根据小区获取酒店数据", notes = "根据搜索条件获取角色列表")
125
     @ApiImplicitParams({
125
     @ApiImplicitParams({
126
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
126
+            ,
127
     })
127
     })
128
     @RequestMapping(value = "/getHotelData",method = RequestMethod.GET)
128
     @RequestMapping(value = "/getHotelData",method = RequestMethod.GET)
129
     public ResponseBean getHotelData(HttpServletRequest request) {
129
     public ResponseBean getHotelData(HttpServletRequest request) {
137
     // @ApiOperation(value = "添加酒店", notes = "添加酒店")
137
     // @ApiOperation(value = "添加酒店", notes = "添加酒店")
138
     @ApiImplicitParams({
138
     @ApiImplicitParams({
139
             @ApiImplicitParam(paramType = "body", dataType = "Hotel", name = "hotel", value = "酒店"),
139
             @ApiImplicitParam(paramType = "body", dataType = "Hotel", name = "hotel", value = "酒店"),
140
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
140
+
141
     })
141
     })
142
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
142
+
143
     @RequestMapping(value = "/addHotel", method = RequestMethod.POST)
143
     @RequestMapping(value = "/addHotel", method = RequestMethod.POST)
144
     public ResponseBean addHotel(@RequestBody Hotel hotel, HttpServletRequest request){
144
     public ResponseBean addHotel(@RequestBody Hotel hotel, HttpServletRequest request){
145
         TaUser userElement = getTaUser(request);
145
         TaUser userElement = getTaUser(request);

+ 1
- 1
src/main/java/com/huiju/estateagents/property/controller/IndexCountController.java Parādīt failu

31
 	
31
 	
32
 	// @ApiOperation(value = "获取物业端首页所有统计数据", notes = "获取物业端首页所有统计数据")
32
 	// @ApiOperation(value = "获取物业端首页所有统计数据", notes = "获取物业端首页所有统计数据")
33
 	@ApiImplicitParams({
33
 	@ApiImplicitParams({
34
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
34
+
35
 	})
35
 	})
36
 	@RequestMapping(value = "/index/count", method = RequestMethod.GET)
36
 	@RequestMapping(value = "/index/count", method = RequestMethod.GET)
37
 	public ResponseBean getIndexCount(HttpServletRequest request){
37
 	public ResponseBean getIndexCount(HttpServletRequest request){

+ 3
- 3
src/main/java/com/huiju/estateagents/property/controller/MessageController.java Parādīt failu

37
     @ApiImplicitParams({
37
     @ApiImplicitParams({
38
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "messageType:待办消息类型(-1:论坛,-2:工单,-3:缴费),status:(0:无效,1:有效),createDate:时间,messageContent:内容 ")
38
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "messageType:待办消息类型(-1:论坛,-2:工单,-3:缴费),status:(0:无效,1:有效),createDate:时间,messageContent:内容 ")
39
     })
39
     })
40
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
40
+
41
     @RequestMapping(value = "/messageLiset", method = RequestMethod.POST)
41
     @RequestMapping(value = "/messageLiset", method = RequestMethod.POST)
42
     public ResponseBean messageLiset(@RequestBody String parameter, HttpServletRequest request){
42
     public ResponseBean messageLiset(@RequestBody String parameter, HttpServletRequest request){
43
         TaUser userElement = getTaUser(request);
43
         TaUser userElement = getTaUser(request);
49
     @ApiImplicitParams({
49
     @ApiImplicitParams({
50
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "messageType:消息类型(-1:论坛,-2:工单,-3:缴费),readStatus:(0:未读,1:已读),createDate:时间,messageContent:内容 ")
50
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "messageType:消息类型(-1:论坛,-2:工单,-3:缴费),readStatus:(0:未读,1:已读),createDate:时间,messageContent:内容 ")
51
     })
51
     })
52
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
52
+
53
     @RequestMapping(value = "/myMessageList", method = RequestMethod.POST)
53
     @RequestMapping(value = "/myMessageList", method = RequestMethod.POST)
54
     public ResponseBean myMessageList(@RequestBody String parameter, HttpServletRequest request){
54
     public ResponseBean myMessageList(@RequestBody String parameter, HttpServletRequest request){
55
         TaUser userElement = getTaUser(request);
55
         TaUser userElement = getTaUser(request);
61
     @ApiImplicitParams({
61
     @ApiImplicitParams({
62
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:(多个) ")
62
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:(多个) ")
63
     })
63
     })
64
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
64
+
65
     @RequestMapping(value = "/delectRead", method = RequestMethod.POST)
65
     @RequestMapping(value = "/delectRead", method = RequestMethod.POST)
66
     public ResponseBean delectRead(@RequestBody String parameter, HttpServletRequest request){
66
     public ResponseBean delectRead(@RequestBody String parameter, HttpServletRequest request){
67
         TaUser userElement = getTaUser(request);
67
         TaUser userElement = getTaUser(request);

+ 0
- 5
src/main/java/com/huiju/estateagents/property/controller/RoleController.java Parādīt failu

34
 			@ApiImplicitParam(paramType = "query", dataType = "String", name = "roleName", value = "帖子标题(模糊查询)"),
34
 			@ApiImplicitParam(paramType = "query", dataType = "String", name = "roleName", value = "帖子标题(模糊查询)"),
35
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
35
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
36
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
36
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
37
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
38
 	})
37
 	})
39
 	@RequestMapping(value = "/roles",method = RequestMethod.GET)
38
 	@RequestMapping(value = "/roles",method = RequestMethod.GET)
40
 	public ResponseBean getRoleList(@RequestParam(value = "roleName", required = false) String roleName,
39
 	public ResponseBean getRoleList(@RequestParam(value = "roleName", required = false) String roleName,
49
 	
48
 	
50
 	// @ApiOperation(value = "添加角色", notes = "添加角色")
49
 	// @ApiOperation(value = "添加角色", notes = "添加角色")
51
 	@ApiImplicitParams({
50
 	@ApiImplicitParams({
52
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
53
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
51
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
54
 			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "sysRole", value = "roleName角色名称;description角色描述;menuArray菜单id集合")
52
 			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "sysRole", value = "roleName角色名称;description角色描述;menuArray菜单id集合")
55
 	})
53
 	})
64
 	// @ApiOperation(value = "获取角色详情", notes = "获取角色详情")
62
 	// @ApiOperation(value = "获取角色详情", notes = "获取角色详情")
65
 	@ApiImplicitParams({
63
 	@ApiImplicitParams({
66
 			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "角色id"),
64
 			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "角色id"),
67
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
68
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
65
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
69
 			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "sysRole", value = "roleName角色名称;description角色描述;menuArray菜单id集合")
66
 			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "sysRole", value = "roleName角色名称;description角色描述;menuArray菜单id集合")
70
 	})
67
 	})
80
 	// @ApiOperation(value = "修改角色", notes = "修改角色")
77
 	// @ApiOperation(value = "修改角色", notes = "修改角色")
81
 	@ApiImplicitParams({
78
 	@ApiImplicitParams({
82
 			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "角色id"),
79
 			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "角色id"),
83
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
84
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
80
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
85
 			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "sysRole", value = "roleName角色名称;description角色描述;menuArray菜单id集合")
81
 			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "sysRole", value = "roleName角色名称;description角色描述;menuArray菜单id集合")
86
 	})
82
 	})
95
 	
91
 	
96
 	// @ApiOperation(value = "删除角色", notes = "删除角色")
92
 	// @ApiOperation(value = "删除角色", notes = "删除角色")
97
 	@ApiImplicitParams({
93
 	@ApiImplicitParams({
98
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
99
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
94
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
100
 			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "sysRole", value = "idArray角色id集合")
95
 			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "sysRole", value = "idArray角色id集合")
101
 	})
96
 	})

+ 1
- 1
src/main/java/com/huiju/estateagents/property/controller/TaVisitorLicenseSettingController.java Parādīt failu

52
 
52
 
53
     // @ApiOperation(value = "查看是否开启访客车辆邀请", notes = "查看是否开启访客车辆邀请")
53
     // @ApiOperation(value = "查看是否开启访客车辆邀请", notes = "查看是否开启访客车辆邀请")
54
     @ApiImplicitParams({
54
     @ApiImplicitParams({
55
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
55
+
56
     })
56
     })
57
     @RequestMapping(value = "/visitor", method = RequestMethod.GET)
57
     @RequestMapping(value = "/visitor", method = RequestMethod.GET)
58
     public ResponseBean getVisitorLicense(HttpServletRequest request) {
58
     public ResponseBean getVisitorLicense(HttpServletRequest request) {

+ 2
- 2
src/main/java/com/huiju/estateagents/property/controller/TpAnnouncementController.java Parādīt failu

29
     // @ApiOperation(value = "获取公告管理列表",nickname ="获取公告管理列表")
29
     // @ApiOperation(value = "获取公告管理列表",nickname ="获取公告管理列表")
30
     @ApiImplicitParams({
30
     @ApiImplicitParams({
31
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:公告编号,announcementTitle:公告标题 ,current:每页显示多少条,current:每页显示多少条,pageSzie:当前页数")})
31
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:公告编号,announcementTitle:公告标题 ,current:每页显示多少条,current:每页显示多少条,pageSzie:当前页数")})
32
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
32
+
33
     @RequestMapping(value="/tpAnnouncement",method = RequestMethod.POST)
33
     @RequestMapping(value="/tpAnnouncement",method = RequestMethod.POST)
34
     public ResponseBean tpAnnouncement(@RequestBody String paramets, HttpServletRequest request){
34
     public ResponseBean tpAnnouncement(@RequestBody String paramets, HttpServletRequest request){
35
         TaUser userElement = getTaUser(request);
35
         TaUser userElement = getTaUser(request);
41
     @ApiImplicitParams({
41
     @ApiImplicitParams({
42
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="announcementTitle:公告标题," +
42
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="announcementTitle:公告标题," +
43
                     "announcementCarouselImg:轮播图,announcementContent:内容,contentImg:内容图片,sort:权重值,status:'0 是已作废 1 是已发布   2 是草稿 3 是已修改',")})
43
                     "announcementCarouselImg:轮播图,announcementContent:内容,contentImg:内容图片,sort:权重值,status:'0 是已作废 1 是已发布   2 是草稿 3 是已修改',")})
44
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
44
+
45
     @RequestMapping(value="/addAnnouncement",method = RequestMethod.POST)
45
     @RequestMapping(value="/addAnnouncement",method = RequestMethod.POST)
46
     public ResponseBean addAnnouncement(@RequestBody String paramets, HttpServletRequest request){
46
     public ResponseBean addAnnouncement(@RequestBody String paramets, HttpServletRequest request){
47
         TaUser userElement = getTaUser(request);
47
         TaUser userElement = getTaUser(request);

+ 5
- 5
src/main/java/com/huiju/estateagents/property/controller/TpEquipmentController.java Parādīt failu

37
     // @ApiOperation(value = "根据类型查询设备表", notes = "根据类型查询设备表")
37
     // @ApiOperation(value = "根据类型查询设备表", notes = "根据类型查询设备表")
38
     @ApiImplicitParams({
38
     @ApiImplicitParams({
39
         @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "type", value = "1 监控 2 访客机 3 可是对讲"),
39
         @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "type", value = "1 监控 2 访客机 3 可是对讲"),
40
-        @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
40
+
41
     })
41
     })
42
     public ResponseBean getAll(@RequestParam("type") Integer type, HttpServletRequest request) {
42
     public ResponseBean getAll(@RequestParam("type") Integer type, HttpServletRequest request) {
43
         ResponseBean responseBean = new ResponseBean();
43
         ResponseBean responseBean = new ResponseBean();
51
     // @ApiOperation(value = "添加或修改监控设备", notes = "添加或修改监控设备")
51
     // @ApiOperation(value = "添加或修改监控设备", notes = "添加或修改监控设备")
52
     @ApiImplicitParams({
52
     @ApiImplicitParams({
53
             @ApiImplicitParam(paramType = "body", dataTypeClass = Integer.class, name = "parameter", value = "监控设备数据"),
53
             @ApiImplicitParam(paramType = "body", dataTypeClass = Integer.class, name = "parameter", value = "监控设备数据"),
54
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
54
+
55
     })
55
     })
56
     public ResponseBean saveOrUpdateMonitoring(@RequestBody String parameter, HttpServletRequest request) {
56
     public ResponseBean saveOrUpdateMonitoring(@RequestBody String parameter, HttpServletRequest request) {
57
         ResponseBean responseBean = new ResponseBean();
57
         ResponseBean responseBean = new ResponseBean();
64
     // @ApiOperation(value = "删除设备", notes = "删除设备")
64
     // @ApiOperation(value = "删除设备", notes = "删除设备")
65
     @ApiImplicitParams({
65
     @ApiImplicitParams({
66
             @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "设备id"),
66
             @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "设备id"),
67
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
67
+
68
     })
68
     })
69
     public ResponseBean deleteEquipmentById(@PathVariable("id") Integer id, HttpServletRequest request){
69
     public ResponseBean deleteEquipmentById(@PathVariable("id") Integer id, HttpServletRequest request){
70
         ResponseBean responseBean = new ResponseBean();
70
         ResponseBean responseBean = new ResponseBean();
76
     // @ApiOperation(value = "批量删除设备", notes = "批量删除设备")
76
     // @ApiOperation(value = "批量删除设备", notes = "批量删除设备")
77
     @ApiImplicitParams({
77
     @ApiImplicitParams({
78
             @ApiImplicitParam(paramType = "body", dataTypeClass = Integer.class, name = "ids", value = "设备id"),
78
             @ApiImplicitParam(paramType = "body", dataTypeClass = Integer.class, name = "ids", value = "设备id"),
79
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
79
+
80
     })
80
     })
81
     public ResponseBean deleteBachEquipmentById(@RequestBody List<Integer> ids, HttpServletRequest request){
81
     public ResponseBean deleteBachEquipmentById(@RequestBody List<Integer> ids, HttpServletRequest request){
82
         ResponseBean responseBean = new ResponseBean();
82
         ResponseBean responseBean = new ResponseBean();
90
     @ApiImplicitParams({
90
     @ApiImplicitParams({
91
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "type", value = "1 监控 2 访客机 3 可是对讲"),
91
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "type", value = "1 监控 2 访客机 3 可是对讲"),
92
             @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "设备id"),
92
             @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "设备id"),
93
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
93
+
94
     })
94
     })
95
     public ResponseBean getMonitoringById(@RequestParam("type") Integer type, @PathVariable("id") Integer id, HttpServletRequest request) {
95
     public ResponseBean getMonitoringById(@RequestParam("type") Integer type, @PathVariable("id") Integer id, HttpServletRequest request) {
96
         ResponseBean responseBean = new ResponseBean();
96
         ResponseBean responseBean = new ResponseBean();

+ 5
- 6
src/main/java/com/huiju/estateagents/property/controller/TpRentalHouseController.java Parādīt failu

50
 			@ApiImplicitParam(paramType = "query", dataType = "String", name = "houseStatus", value = "上架状态"),
50
 			@ApiImplicitParam(paramType = "query", dataType = "String", name = "houseStatus", value = "上架状态"),
51
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
51
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
52
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
52
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
53
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
54
 	})
53
 	})
55
 	@RequestMapping(value = "/rentals",method = RequestMethod.GET)
54
 	@RequestMapping(value = "/rentals",method = RequestMethod.GET)
56
 	public ResponseBean getRentalList(@RequestParam(value = "id") Integer id,
55
 	public ResponseBean getRentalList(@RequestParam(value = "id") Integer id,
72
 	// @ApiOperation(value = "添加公寓", notes = "添加公寓")
71
 	// @ApiOperation(value = "添加公寓", notes = "添加公寓")
73
 	@ApiImplicitParams({
72
 	@ApiImplicitParams({
74
 			@ApiImplicitParam(paramType = "body", dataType = "TpRentalHouse", name = "rentalHouse", value = "公寓"),
73
 			@ApiImplicitParam(paramType = "body", dataType = "TpRentalHouse", name = "rentalHouse", value = "公寓"),
75
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
74
+
76
 	})
75
 	})
77
 	@RequestMapping(value = "/rental/add",method = RequestMethod.POST)
76
 	@RequestMapping(value = "/rental/add",method = RequestMethod.POST)
78
 	public ResponseBean saveRental(@RequestBody TpRentalHouse rentalHouse, HttpServletRequest request){
77
 	public ResponseBean saveRental(@RequestBody TpRentalHouse rentalHouse, HttpServletRequest request){
85
 	// @ApiOperation(value = "更新公寓", notes = "更新公寓")
84
 	// @ApiOperation(value = "更新公寓", notes = "更新公寓")
86
 	@ApiImplicitParams({
85
 	@ApiImplicitParams({
87
 			@ApiImplicitParam(paramType = "body", dataType = "TpRentalHouse", name = "rentalHouse", value = "公寓"),
86
 			@ApiImplicitParam(paramType = "body", dataType = "TpRentalHouse", name = "rentalHouse", value = "公寓"),
88
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
87
+
89
 	})
88
 	})
90
 	@RequestMapping(value = "/rental/update",method = RequestMethod.POST)
89
 	@RequestMapping(value = "/rental/update",method = RequestMethod.POST)
91
 	public ResponseBean updateRental(@RequestBody TpRentalHouse rentalHouse, HttpServletRequest request){
90
 	public ResponseBean updateRental(@RequestBody TpRentalHouse rentalHouse, HttpServletRequest request){
98
 	// @ApiOperation(value = "获取公寓信息", notes = "获取公寓信息")
97
 	// @ApiOperation(value = "获取公寓信息", notes = "获取公寓信息")
99
 	@ApiImplicitParams({
98
 	@ApiImplicitParams({
100
 			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "id", value = "公寓Id"),
99
 			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "id", value = "公寓Id"),
101
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
100
+
102
 	})
101
 	})
103
 	@RequestMapping(value = "/rental/get/{id}",method = RequestMethod.GET)
102
 	@RequestMapping(value = "/rental/get/{id}",method = RequestMethod.GET)
104
 	public ResponseBean getRental(@PathVariable Integer id, HttpServletRequest request){
103
 	public ResponseBean getRental(@PathVariable Integer id, HttpServletRequest request){
112
 	// @ApiOperation(value = "上架房间", notes = "上架房间")
111
 	// @ApiOperation(value = "上架房间", notes = "上架房间")
113
 	@ApiImplicitParams({
112
 	@ApiImplicitParams({
114
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "房间id集合"),
113
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "房间id集合"),
115
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
114
+
116
 	})
115
 	})
117
 	@RequestMapping(value = "/rental/shelf",method = RequestMethod.POST)
116
 	@RequestMapping(value = "/rental/shelf",method = RequestMethod.POST)
118
 	public ResponseBean shelfRental(@RequestBody String jsonString, HttpServletRequest request){
117
 	public ResponseBean shelfRental(@RequestBody String jsonString, HttpServletRequest request){
142
 	// @ApiOperation(value = "下架房间", notes = "下架房间")
141
 	// @ApiOperation(value = "下架房间", notes = "下架房间")
143
 	@ApiImplicitParams({
142
 	@ApiImplicitParams({
144
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "房间id集合"),
143
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "房间id集合"),
145
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
144
+
146
 	})
145
 	})
147
 	@RequestMapping(value = "/rental/obtained",method = RequestMethod.POST)
146
 	@RequestMapping(value = "/rental/obtained",method = RequestMethod.POST)
148
 	public ResponseBean obtainedRental(@RequestBody String jsonString, HttpServletRequest request){
147
 	public ResponseBean obtainedRental(@RequestBody String jsonString, HttpServletRequest request){

+ 5
- 6
src/main/java/com/huiju/estateagents/property/controller/TpShopController.java Parādīt failu

47
 			@ApiImplicitParam(paramType = "query", dataType = "String", name = "shopStatus", value = "上架状态"),
47
 			@ApiImplicitParam(paramType = "query", dataType = "String", name = "shopStatus", value = "上架状态"),
48
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
48
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
49
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
49
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
50
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
51
 	})
50
 	})
52
 	@RequestMapping(value = "/shops",method = RequestMethod.GET)
51
 	@RequestMapping(value = "/shops",method = RequestMethod.GET)
53
 	public ResponseBean getShopList(@RequestParam(value = "id") Integer id,
52
 	public ResponseBean getShopList(@RequestParam(value = "id") Integer id,
66
 	// @ApiOperation(value = "添加商铺", notes = "添加商铺")
65
 	// @ApiOperation(value = "添加商铺", notes = "添加商铺")
67
 	@ApiImplicitParams({
66
 	@ApiImplicitParams({
68
 			@ApiImplicitParam(paramType = "body", dataType = "TpShop", name = "shop", value = "商铺"),
67
 			@ApiImplicitParam(paramType = "body", dataType = "TpShop", name = "shop", value = "商铺"),
69
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
68
+
70
 	})
69
 	})
71
 	@RequestMapping(value = "/shop/add",method = RequestMethod.POST)
70
 	@RequestMapping(value = "/shop/add",method = RequestMethod.POST)
72
 	public ResponseBean saveShop(@RequestBody TpShop shop, HttpServletRequest request){
71
 	public ResponseBean saveShop(@RequestBody TpShop shop, HttpServletRequest request){
79
 	// @ApiOperation(value = "获取商铺信息", notes = "获取商铺信息")
78
 	// @ApiOperation(value = "获取商铺信息", notes = "获取商铺信息")
80
 	@ApiImplicitParams({
79
 	@ApiImplicitParams({
81
 			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "id", value = "商铺Id"),
80
 			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "id", value = "商铺Id"),
82
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
81
+
83
 	})
82
 	})
84
 	@RequestMapping(value = "/shop/get/{id}",method = RequestMethod.GET)
83
 	@RequestMapping(value = "/shop/get/{id}",method = RequestMethod.GET)
85
 	public ResponseBean getShop(@PathVariable Integer id, HttpServletRequest request){
84
 	public ResponseBean getShop(@PathVariable Integer id, HttpServletRequest request){
93
 	// @ApiOperation(value = "更新商铺", notes = "更新商铺")
92
 	// @ApiOperation(value = "更新商铺", notes = "更新商铺")
94
 	@ApiImplicitParams({
93
 	@ApiImplicitParams({
95
 			@ApiImplicitParam(paramType = "body", dataType = "TpShop", name = "shop", value = "商铺"),
94
 			@ApiImplicitParam(paramType = "body", dataType = "TpShop", name = "shop", value = "商铺"),
96
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
95
+
97
 	})
96
 	})
98
 	@RequestMapping(value = "/shop/update",method = RequestMethod.POST)
97
 	@RequestMapping(value = "/shop/update",method = RequestMethod.POST)
99
 	public ResponseBean updateShop(@RequestBody TpShop shop, HttpServletRequest request){
98
 	public ResponseBean updateShop(@RequestBody TpShop shop, HttpServletRequest request){
106
 	// @ApiOperation(value = "上架商铺", notes = "上架商铺")
105
 	// @ApiOperation(value = "上架商铺", notes = "上架商铺")
107
 	@ApiImplicitParams({
106
 	@ApiImplicitParams({
108
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "商铺id集合"),
107
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "商铺id集合"),
109
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
108
+
110
 	})
109
 	})
111
 	@RequestMapping(value = "/shop/shelf",method = RequestMethod.POST)
110
 	@RequestMapping(value = "/shop/shelf",method = RequestMethod.POST)
112
 	public ResponseBean shelfShop(@RequestBody String jsonString, HttpServletRequest request){
111
 	public ResponseBean shelfShop(@RequestBody String jsonString, HttpServletRequest request){
136
 	// @ApiOperation(value = "下架商铺", notes = "下架商铺")
135
 	// @ApiOperation(value = "下架商铺", notes = "下架商铺")
137
 	@ApiImplicitParams({
136
 	@ApiImplicitParams({
138
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "商铺id集合"),
137
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "商铺id集合"),
139
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
138
+
140
 	})
139
 	})
141
 	@RequestMapping(value = "/shop/obtained",method = RequestMethod.POST)
140
 	@RequestMapping(value = "/shop/obtained",method = RequestMethod.POST)
142
 	public ResponseBean obtainedShop(@RequestBody String jsonString, HttpServletRequest request){
141
 	public ResponseBean obtainedShop(@RequestBody String jsonString, HttpServletRequest request){

+ 1
- 1
src/main/java/com/huiju/estateagents/property/controller/TpShopSettingController.java Parādīt failu

39
 	// @ApiOperation(value = "商铺配置启动和关闭", notes = "商铺配置启动和关闭")
39
 	// @ApiOperation(value = "商铺配置启动和关闭", notes = "商铺配置启动和关闭")
40
 	@ApiImplicitParams({
40
 	@ApiImplicitParams({
41
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "商铺配置值"),
41
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "商铺配置值"),
42
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
42
+
43
 	})
43
 	})
44
 	@RequestMapping(value = "/shop/add/setting",method = RequestMethod.POST)
44
 	@RequestMapping(value = "/shop/add/setting",method = RequestMethod.POST)
45
 	public ResponseBean changeShopSetting(@RequestBody String jsonString, HttpServletRequest request){
45
 	public ResponseBean changeShopSetting(@RequestBody String jsonString, HttpServletRequest request){

+ 6
- 6
src/main/java/com/huiju/estateagents/property/controller/TpShopTypeController.java Parādīt failu

41
 	@ApiImplicitParams({
41
 	@ApiImplicitParams({
42
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
42
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
43
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
43
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
44
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
44
+
45
 	})
45
 	})
46
 	@RequestMapping(value = "/shop/types",method = RequestMethod.GET)
46
 	@RequestMapping(value = "/shop/types",method = RequestMethod.GET)
47
 	public ResponseBean getTypesList(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
47
 	public ResponseBean getTypesList(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
55
 	// @ApiOperation(value = "添加商铺类型", notes = "添加商铺类型")
55
 	// @ApiOperation(value = "添加商铺类型", notes = "添加商铺类型")
56
 	@ApiImplicitParams({
56
 	@ApiImplicitParams({
57
 			@ApiImplicitParam(paramType = "body", dataType = "TpShopType", name = "shopType", value = "商铺类型"),
57
 			@ApiImplicitParam(paramType = "body", dataType = "TpShopType", name = "shopType", value = "商铺类型"),
58
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
58
+
59
 	})
59
 	})
60
 	@RequestMapping(value = "/shop/add/type",method = RequestMethod.POST)
60
 	@RequestMapping(value = "/shop/add/type",method = RequestMethod.POST)
61
 	public ResponseBean saveShopType(@RequestBody TpShopType shopType, HttpServletRequest request){
61
 	public ResponseBean saveShopType(@RequestBody TpShopType shopType, HttpServletRequest request){
86
 	// @ApiOperation(value = "获取商铺类型", notes = "获取商铺类型")
86
 	// @ApiOperation(value = "获取商铺类型", notes = "获取商铺类型")
87
 	@ApiImplicitParams({
87
 	@ApiImplicitParams({
88
 			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "id", value = "商铺类型Id"),
88
 			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "id", value = "商铺类型Id"),
89
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
89
+
90
 	})
90
 	})
91
 	@RequestMapping(value = "/shop/get/type/{id}",method = RequestMethod.GET)
91
 	@RequestMapping(value = "/shop/get/type/{id}",method = RequestMethod.GET)
92
 	public ResponseBean getShopType(@PathVariable Integer id, HttpServletRequest request){
92
 	public ResponseBean getShopType(@PathVariable Integer id, HttpServletRequest request){
100
 	// @ApiOperation(value = "更新商铺类型", notes = "更新商铺类型")
100
 	// @ApiOperation(value = "更新商铺类型", notes = "更新商铺类型")
101
 	@ApiImplicitParams({
101
 	@ApiImplicitParams({
102
 			@ApiImplicitParam(paramType = "body", dataType = "TpShopType", name = "shopType", value = "商铺类型"),
102
 			@ApiImplicitParam(paramType = "body", dataType = "TpShopType", name = "shopType", value = "商铺类型"),
103
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
103
+
104
 	})
104
 	})
105
 	@RequestMapping(value = "/shop/update/type",method = RequestMethod.POST)
105
 	@RequestMapping(value = "/shop/update/type",method = RequestMethod.POST)
106
 	public ResponseBean updateShopType(@RequestBody TpShopType shopType, HttpServletRequest request){
106
 	public ResponseBean updateShopType(@RequestBody TpShopType shopType, HttpServletRequest request){
129
 	// @ApiOperation(value = "删除商铺类型", notes = "删除商铺类型")
129
 	// @ApiOperation(value = "删除商铺类型", notes = "删除商铺类型")
130
 	@ApiImplicitParams({
130
 	@ApiImplicitParams({
131
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "商铺id集合"),
131
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "商铺id集合"),
132
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
132
+
133
 	})
133
 	})
134
 	@RequestMapping(value = "/shop/delete/type",method = RequestMethod.DELETE)
134
 	@RequestMapping(value = "/shop/delete/type",method = RequestMethod.DELETE)
135
 	public ResponseBean deleteShopType(@RequestBody String jsonString, HttpServletRequest request){
135
 	public ResponseBean deleteShopType(@RequestBody String jsonString, HttpServletRequest request){
142
 	@ApiImplicitParams({
142
 	@ApiImplicitParams({
143
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
143
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
144
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
144
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
145
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
145
+
146
 	})
146
 	})
147
 	@RequestMapping(value = "/shop/type/select",method = RequestMethod.GET)
147
 	@RequestMapping(value = "/shop/type/select",method = RequestMethod.GET)
148
 	public ResponseBean getTypesSelect(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
148
 	public ResponseBean getTypesSelect(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,

+ 161
- 11
src/main/java/com/huiju/estateagents/property/controller/TpTicketController.java Parādīt failu

4
 import com.huiju.estateagents.base.BaseController;
4
 import com.huiju.estateagents.base.BaseController;
5
 import com.huiju.estateagents.base.ResponseBean;
5
 import com.huiju.estateagents.base.ResponseBean;
6
 import com.huiju.estateagents.center.taUser.entity.TaUser;
6
 import com.huiju.estateagents.center.taUser.entity.TaUser;
7
+import com.huiju.estateagents.property.common.Constant;
7
 import com.huiju.estateagents.property.common.UserElement;
8
 import com.huiju.estateagents.property.common.UserElement;
9
+import com.huiju.estateagents.property.model.TpTicket;
10
+import com.huiju.estateagents.property.model.TpTicketRecordComment;
8
 import com.huiju.estateagents.property.service.IUserService;
11
 import com.huiju.estateagents.property.service.IUserService;
9
 import com.huiju.estateagents.property.service.TpTicketService;
12
 import com.huiju.estateagents.property.service.TpTicketService;
10
 import io.swagger.annotations.Api;
13
 import io.swagger.annotations.Api;
12
 import io.swagger.annotations.ApiImplicitParams;
15
 import io.swagger.annotations.ApiImplicitParams;
13
 import io.swagger.annotations.ApiOperation;
16
 import io.swagger.annotations.ApiOperation;
14
 import org.springframework.beans.factory.annotation.Autowired;
17
 import org.springframework.beans.factory.annotation.Autowired;
15
-import org.springframework.web.bind.annotation.RequestBody;
16
-import org.springframework.web.bind.annotation.RequestMapping;
17
-import org.springframework.web.bind.annotation.RequestMethod;
18
-import org.springframework.web.bind.annotation.RestController;
18
+import org.springframework.web.bind.annotation.*;
19
 
19
 
20
 import javax.servlet.http.HttpServletRequest;
20
 import javax.servlet.http.HttpServletRequest;
21
 import javax.servlet.http.HttpSession;
21
 import javax.servlet.http.HttpSession;
22
+import java.io.IOException;
22
 
23
 
23
 /**
24
 /**
24
  * <p>
25
  * <p>
30
  */
31
  */
31
 @RestController
32
 @RestController
32
 @RequestMapping("/")
33
 @RequestMapping("/")
33
-@Api(value = "工单列表API", description = "工单列表API")
34
+@Api(value = "工单列表API", tags = "工单列表API")
34
 public class TpTicketController extends BaseController {
35
 public class TpTicketController extends BaseController {
35
     @Autowired
36
     @Autowired
36
     private IUserService userService;
37
     private IUserService userService;
45
                     "status:流转状态(0:待分配  1:拒绝受理 2:待处理 3:正在处理 4:待评价 5:已评价 6:已终止')" +
46
                     "status:流转状态(0:待分配  1:拒绝受理 2:待处理 3:正在处理 4:待评价 5:已评价 6:已终止')" +
46
                     "tpUserId:当前处理人" )
47
                     "tpUserId:当前处理人" )
47
     })
48
     })
48
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
49
     @RequestMapping(value = "/ticketLiset", method = RequestMethod.POST)
49
     @RequestMapping(value = "/ticketLiset", method = RequestMethod.POST)
50
     public ResponseBean ticketLiset(@RequestBody String parameter, HttpServletRequest request){
50
     public ResponseBean ticketLiset(@RequestBody String parameter, HttpServletRequest request){
51
         TaUser userElement = getTaUser(request);
51
         TaUser userElement = getTaUser(request);
57
     @ApiImplicitParams({
57
     @ApiImplicitParams({
58
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:工单编号")
58
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:工单编号")
59
     })
59
     })
60
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
60
+
61
     @RequestMapping(value = "/ticketDetails", method = RequestMethod.POST)
61
     @RequestMapping(value = "/ticketDetails", method = RequestMethod.POST)
62
     public ResponseBean ticketDetails(@RequestBody String parameter, HttpServletRequest request){
62
     public ResponseBean ticketDetails(@RequestBody String parameter, HttpServletRequest request){
63
         TaUser userElement = getTaUser(request);
63
         TaUser userElement = getTaUser(request);
69
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "content:对话内容,imageUrl:[]图片,ticketId:工单id," +
69
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "content:对话内容,imageUrl:[]图片,ticketId:工单id," +
70
                     "status:工单状态(0:待分配  1:拒绝受理 2:待处理 3:正在处理 4:待评价 5:已评价 6:已终止)")
70
                     "status:工单状态(0:待分配  1:拒绝受理 2:待处理 3:正在处理 4:待评价 5:已评价 6:已终止)")
71
     })
71
     })
72
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
72
+
73
     @RequestMapping(value = "/addRecordComment", method = RequestMethod.POST)
73
     @RequestMapping(value = "/addRecordComment", method = RequestMethod.POST)
74
     public ResponseBean addRecordComment(@RequestBody String parameter, HttpServletRequest request){
74
     public ResponseBean addRecordComment(@RequestBody String parameter, HttpServletRequest request){
75
         TaUser userElement = getTaUser(request);
75
         TaUser userElement = getTaUser(request);
81
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "ticketId:工单id," +
81
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "ticketId:工单id," +
82
                     "id:当前处理人id")
82
                     "id:当前处理人id")
83
     })
83
     })
84
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
84
+
85
     @RequestMapping(value = "/addRecord", method = RequestMethod.POST)
85
     @RequestMapping(value = "/addRecord", method = RequestMethod.POST)
86
     public ResponseBean addRecord(@RequestBody String parameter, HttpServletRequest request){
86
     public ResponseBean addRecord(@RequestBody String parameter, HttpServletRequest request){
87
         TaUser userElement = getTaUser(request);
87
         TaUser userElement = getTaUser(request);
92
     @ApiImplicitParams({
92
     @ApiImplicitParams({
93
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "ticketId:工单id,textContent:拒绝的内容" )
93
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "ticketId:工单id,textContent:拒绝的内容" )
94
     })
94
     })
95
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
95
+
96
     @RequestMapping(value = "/updateTicketStatus", method = RequestMethod.POST)
96
     @RequestMapping(value = "/updateTicketStatus", method = RequestMethod.POST)
97
     public ResponseBean updateTicketStatus(@RequestBody String parameter, HttpServletRequest request){
97
     public ResponseBean updateTicketStatus(@RequestBody String parameter, HttpServletRequest request){
98
         TaUser userElement = getTaUser(request);
98
         TaUser userElement = getTaUser(request);
104
     @ApiImplicitParams({
104
     @ApiImplicitParams({
105
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "content:对话内容,imageUrl:[]图片,ticketId:工单id" )
105
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "content:对话内容,imageUrl:[]图片,ticketId:工单id" )
106
     })
106
     })
107
-    @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
107
+
108
     @RequestMapping(value = "/updateTicket", method = RequestMethod.POST)
108
     @RequestMapping(value = "/updateTicket", method = RequestMethod.POST)
109
     public ResponseBean updateTicket(@RequestBody String parameter, HttpServletRequest request){
109
     public ResponseBean updateTicket(@RequestBody String parameter, HttpServletRequest request){
110
         TaUser userElement = getTaUser(request);
110
         TaUser userElement = getTaUser(request);
111
         ResponseBean  responseBean = tpTicketService.updateTicket(parameter,userElement.getUserId(),userElement.getOrgId(),userElement.getUserName(),userElement.getLoginName());
111
         ResponseBean  responseBean = tpTicketService.updateTicket(parameter,userElement.getUserId(),userElement.getOrgId(),userElement.getUserName(),userElement.getLoginName());
112
         return responseBean;
112
         return responseBean;
113
     }
113
     }
114
+
115
+
116
+    @RequestMapping(value = "/wx/tickets/{orgId}", method = RequestMethod.GET)
117
+    @ApiOperation(value = "获取 报修/投诉/联系单 各3条数据", notes = "根据 小区编号,第几页,一页多少行")
118
+    @ApiImplicitParams({
119
+            @ApiImplicitParam(paramType = "path",dataType = "Integer",name = "orgId",value = "小区编号"),
120
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageNum",value = "第几页"),
121
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageSize",value = "一页多少数据"),
122
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
123
+    })
124
+    @Deprecated
125
+    public ResponseBean getService(@PathVariable(value = "orgId") Integer orgId,
126
+                                   @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
127
+                                   @RequestParam(value = "pageSize", defaultValue = "3") Integer pageSize,
128
+                                   HttpServletRequest request) {
129
+        ResponseBean response = new ResponseBean();
130
+        
131
+        TaUser userElement = getTaUser(request);
132
+
133
+        TpTicket tpTicket = new TpTicket();
134
+        tpTicket.setOrgId(Integer.valueOf(orgId));
135
+        tpTicket.setTaUserId(userElement.getUserId());
136
+
137
+        response = tpTicketService.getList(tpTicket, pageNum, pageSize);
138
+        return response;
139
+    }
140
+
141
+    @ApiOperation(value = "获取报修/投诉/联系单进度详情数据", notes = "获取报修/投诉/联系单进度详情数据")
142
+    @ApiImplicitParams({
143
+            @ApiImplicitParam(paramType = "path", dataType = "Integer", name = "orgId", value = "小区编号"),
144
+            @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "ticketId", value = "报修id")
145
+    })
146
+    @RequestMapping(value = "/wx/ticket/schedule/{orgId}", method = RequestMethod.GET)
147
+    public ResponseBean getTicketSchedule(@PathVariable(value = "orgId") Integer orgId, @RequestParam Integer ticketId) {
148
+        ResponseBean responseBean = new ResponseBean();
149
+        TpTicket ticket = tpTicketService.getTicketSchedule(String.valueOf(orgId), ticketId);
150
+        if (null != ticket) {
151
+            responseBean.addSuccess(ticket);
152
+        }else {
153
+            responseBean.addError("没有该工单!");
154
+        }
155
+
156
+        return responseBean;
157
+    }
158
+
159
+    @RequestMapping(value = "/wx/tickets/list/{orgId}", method = RequestMethod.GET)
160
+    @ApiOperation(value = "获取 报修/投诉/联系单 数据列表", notes = "根据 小区编号,工单类型,第几页,一页多少行")
161
+    @ApiImplicitParams({
162
+            @ApiImplicitParam(paramType = "path",dataType = "Integer",name = "orgId", value = "小区编号"),
163
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageNum", value = "第几页"),
164
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageSize", value = "一页多少数据"),
165
+            @ApiImplicitParam(paramType = "query",dataType = "String",name = "type", value = "工单类型 (1:投诉   2:报修 3:联系物业)"),
166
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
167
+
168
+    })
169
+    public ResponseBean getServiceList(@PathVariable(value = "orgId") Integer orgId,
170
+                                       @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
171
+                                       @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
172
+                                       @RequestParam(value = "type") String type,
173
+                                       HttpServletRequest request) {
174
+        ResponseBean responseBean = new ResponseBean();
175
+
176
+        TaUser userElement = getTaUser(request);
177
+
178
+        TpTicket tpTicket = new TpTicket();
179
+        tpTicket.setOrgId(Integer.valueOf(orgId));
180
+        tpTicket.setTaUserId(userElement.getUserId());
181
+        tpTicket.setType(type);
182
+
183
+        responseBean = tpTicketService.getByTypeList(tpTicket, pageNum, pageSize);
184
+
185
+        return responseBean;
186
+
187
+    }
188
+
189
+    @ApiOperation(value = "回复 报修/投诉/联系单 追问接口", notes = "回复 报修/投诉/联系单 追问接口")
190
+    @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "orgId", value = "小区Id"),
191
+            @ApiImplicitParam(name = "tpTicketRecordComment", value = "回复记录参数(ticketId:工单id,content:回复时间,ticketRecordCommentId:需要回复的id)", paramType = "body"),
192
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")})
193
+    @RequestMapping(value = "/wx/ticket/reply/{orgId}", method = RequestMethod.POST)
194
+    public ResponseBean updateTicketsReply(@PathVariable(value = "orgId") Integer orgId, @RequestBody TpTicketRecordComment tpTicketRecordComment, HttpServletRequest request){
195
+        TaUser userElement = getTaUser(request);
196
+        Integer userId = userElement.getUserId();
197
+        ResponseBean responseBean = new ResponseBean();
198
+
199
+        tpTicketRecordComment.setOrgId(orgId);
200
+        Integer size = tpTicketService.updateTicketsReply(tpTicketRecordComment, userId);
201
+        if (size > 0){
202
+            responseBean.addSuccess(size);
203
+        } else {
204
+            responseBean.addError("更新失败");
205
+        }
206
+        return responseBean;
207
+    }
208
+
209
+    @ApiOperation(value = "添加 报修/投诉/联系单", notes = "添加 报修/投诉/联系单")
210
+    @ApiImplicitParams({
211
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =
212
+                    "ticketTitle:工单标题,ticketContent:工单内容,type: 1:投诉   2:报修 3:联系物业 , repairType:0:公共区域  1: 房屋质量  2:户内设施, imageUrl:图片地址 "),
213
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
214
+    })
215
+    @RequestMapping(value = "/wx/addtpTicket", method = RequestMethod.POST)
216
+    @ResponseBody
217
+    public ResponseBean addTransaction(@RequestBody String paramets, HttpServletRequest request) throws IOException {
218
+        ResponseBean responseBean = new ResponseBean();
219
+        TaUser userElement = getTaUser(request);
220
+        ResponseBean response = tpTicketService.addAiTicketService(userElement, paramets);
221
+        return response;
222
+    }
223
+
224
+    @ApiOperation(value = "修改 报修/投诉/联系单", notes = "修改 报修/投诉/联系单")
225
+    @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "ticketId", value = "工单Id"),
226
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "parameter", value =
227
+                    "ticketTitle:工单标题,ticketContent:工单内容,type: 1:投诉   2:报修 3:联系物业 , imageUrl:图片地址 "),
228
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
229
+    })
230
+    @RequestMapping(value = "/wx/updateTicket/{ticketId}", method = RequestMethod.POST)
231
+    public ResponseBean updateTicketContent(@PathVariable("ticketId") Integer ticketId,
232
+                                            @RequestBody String parameter,
233
+                                            HttpServletRequest request) {
234
+        ResponseBean responseBean = new ResponseBean();
235
+        TaUser userElement = getTaUser(request);
236
+        responseBean = tpTicketService.updateTicketContent(ticketId, parameter,userElement);
237
+        return responseBean;
238
+    }
239
+
240
+    @ApiOperation(value = "报修进度终止", notes = "报修进度终止")
241
+    @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "orgId", value = "小区Id"),
242
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "ticketId", value = "帖子Id"),
243
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")})
244
+    @RequestMapping(value = "/wx/stopTicket/{orgId}", method = RequestMethod.GET)
245
+    public ResponseBean stopTicket(@PathVariable("orgId") Integer orgId, @RequestParam("ticketId") Integer ticketId, HttpServletRequest request) {
246
+        TaUser userElement = getTaUser(request);
247
+
248
+        ResponseBean responseBean = new ResponseBean();
249
+        responseBean = tpTicketService.stopTpTicketRecord(orgId, ticketId, userElement);
250
+        return responseBean;
251
+    }
252
+
253
+    @ApiOperation(value = "添加工单对话", notes = "添加工单对话")
254
+    @ApiImplicitParams({
255
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "content:对话内容,imageUrl:[]图片,ticketId:工单id," )
256
+    })
257
+
258
+    @RequestMapping(value = "/wx/addWxRecordComment", method = RequestMethod.POST)
259
+    public ResponseBean addWxRecordComment(@RequestBody String parameter, HttpServletRequest request){
260
+        TaUser userElement = getTaUser(request);
261
+        ResponseBean  responseBean = tpTicketService.addWxRecordComment(parameter,userElement.getUserId(),userElement.getOrgId(),userElement.getUserName());
262
+        return responseBean;
263
+    }
114
 }
264
 }

+ 7
- 9
src/main/java/com/huiju/estateagents/property/controller/TransactionController.java Parādīt failu

39
 					"userName:发布人,status:状态,pageNum:总数,pageSize当前页"
39
 					"userName:发布人,status:状态,pageNum:总数,pageSize当前页"
40
 					)
40
 					)
41
 	})
41
 	})
42
-	@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
42
+
43
 	@RequestMapping(value = "/transactions",method = RequestMethod.POST)
43
 	@RequestMapping(value = "/transactions",method = RequestMethod.POST)
44
 	public ResponseBean getList(@RequestBody String parameter, HttpServletRequest request){
44
 	public ResponseBean getList(@RequestBody String parameter, HttpServletRequest request){
45
 		TaUser userElement = getTaUser(request);
45
 		TaUser userElement = getTaUser(request);
49
 	
49
 	
50
 	// @ApiOperation(value = "获取二手租赁详情", notes = "获取二手租赁详情")
50
 	// @ApiOperation(value = "获取二手租赁详情", notes = "获取二手租赁详情")
51
 	@ApiImplicitParams({
51
 	@ApiImplicitParams({
52
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
53
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
52
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
54
 			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "交易id")
53
 			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "交易id")
55
 	})
54
 	})
63
 	
62
 	
64
 	// @ApiOperation(value = "作废二手租赁", notes = "作废二手租赁")
63
 	// @ApiOperation(value = "作废二手租赁", notes = "作废二手租赁")
65
 	@ApiImplicitParams({
64
 	@ApiImplicitParams({
66
-			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
67
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
65
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
68
 			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "交易id")
66
 			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "交易id")
69
 	})
67
 	})
79
 	@ApiImplicitParams({
77
 	@ApiImplicitParams({
80
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="transactionTitle:话题标题," +
78
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="transactionTitle:话题标题," +
81
 					"type:0 代表 二手(卖二手物品)  1 是代表 求购 (买二手物品) 2 是代表 租赁(租二手物品)3其他话题,contentImg:图片,sort:权重值,status:'0 是已作废 1 是已发布  2 是草稿 ")})
79
 					"type:0 代表 二手(卖二手物品)  1 是代表 求购 (买二手物品) 2 是代表 租赁(租二手物品)3其他话题,contentImg:图片,sort:权重值,status:'0 是已作废 1 是已发布  2 是草稿 ")})
82
-	@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
80
+
83
 	@RequestMapping(value="/transactions/add",method = RequestMethod.POST)
81
 	@RequestMapping(value="/transactions/add",method = RequestMethod.POST)
84
 	public ResponseBean transactionsAdd(@RequestBody String paramets, HttpServletRequest request){
82
 	public ResponseBean transactionsAdd(@RequestBody String paramets, HttpServletRequest request){
85
 		TaUser userElement = getTaUser(request);
83
 		TaUser userElement = getTaUser(request);
91
 	@ApiImplicitParams({
89
 	@ApiImplicitParams({
92
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="transactionTitle:话题标题," +
90
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="transactionTitle:话题标题," +
93
 					"type:0 代表 二手(卖二手物品)  1 是代表 求购 (买二手物品) 2 是代表 租赁(租二手物品)3其他话题,contentImg:图片,sort:权重值,status:'0 是已作废 1 是已发布  2 是草稿 ")})
91
 					"type:0 代表 二手(卖二手物品)  1 是代表 求购 (买二手物品) 2 是代表 租赁(租二手物品)3其他话题,contentImg:图片,sort:权重值,status:'0 是已作废 1 是已发布  2 是草稿 ")})
94
-	@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
92
+
95
 	@RequestMapping(value="/transactions/updata",method = RequestMethod.POST)
93
 	@RequestMapping(value="/transactions/updata",method = RequestMethod.POST)
96
 	public ResponseBean transactionsUpdata(@RequestBody String paramets, HttpServletRequest request){
94
 	public ResponseBean transactionsUpdata(@RequestBody String paramets, HttpServletRequest request){
97
 		TaUser userElement = getTaUser(request);
95
 		TaUser userElement = getTaUser(request);
101
 	// @ApiOperation(value = "删除二手租赁",nickname ="删除二手租赁")
99
 	// @ApiOperation(value = "删除二手租赁",nickname ="删除二手租赁")
102
 	@ApiImplicitParams({
100
 	@ApiImplicitParams({
103
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:帖子id(多个)" )})
101
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:帖子id(多个)" )})
104
-	@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
102
+
105
 	@RequestMapping(value="/transactions/delete",method = RequestMethod.POST)
103
 	@RequestMapping(value="/transactions/delete",method = RequestMethod.POST)
106
 	public ResponseBean transactionsDelete(@RequestBody String paramets, HttpServletRequest request){
104
 	public ResponseBean transactionsDelete(@RequestBody String paramets, HttpServletRequest request){
107
 		TaUser userElement = getTaUser(request);
105
 		TaUser userElement = getTaUser(request);
113
 	@ApiImplicitParams({
111
 	@ApiImplicitParams({
114
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:帖子id,replyTaUserName:被回复人,taUserName:回复人," +
112
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:帖子id,replyTaUserName:被回复人,taUserName:回复人," +
115
 					"status:(0回复我的,1回复全部物业人员的,2全部物业人员回复的,3话题发起人回复的),createDate:时间" )})
113
 					"status:(0回复我的,1回复全部物业人员的,2全部物业人员回复的,3话题发起人回复的),createDate:时间" )})
116
-	@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
114
+
117
 	@RequestMapping(value="/transactionReplyList",method = RequestMethod.POST)
115
 	@RequestMapping(value="/transactionReplyList",method = RequestMethod.POST)
118
 	public ResponseBean transactionReplyList(@RequestBody String paramets, HttpServletRequest request){
116
 	public ResponseBean transactionReplyList(@RequestBody String paramets, HttpServletRequest request){
119
 		TaUser userElement = getTaUser(request);
117
 		TaUser userElement = getTaUser(request);
133
 	// @ApiOperation(value = "添加二手帖子评论",nickname ="添加二手帖子评论")
131
 	// @ApiOperation(value = "添加二手帖子评论",nickname ="添加二手帖子评论")
134
 	@ApiImplicitParams({
132
 	@ApiImplicitParams({
135
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:帖子id,contentImg:评论所带图片,replyContent:评论内容" )})
133
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="id:帖子id,contentImg:评论所带图片,replyContent:评论内容" )})
136
-	@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
134
+
137
 	@RequestMapping(value="/transactionReply/add",method = RequestMethod.POST)
135
 	@RequestMapping(value="/transactionReply/add",method = RequestMethod.POST)
138
 	public ResponseBean transactionReplyAdd(@RequestBody String paramets, HttpServletRequest request){
136
 	public ResponseBean transactionReplyAdd(@RequestBody String paramets, HttpServletRequest request){
139
 		TaUser userElement = getTaUser(request);
137
 		TaUser userElement = getTaUser(request);
144
 	// @ApiOperation(value = "二手帖子举报列表",nickname ="二手帖子举报列表")
142
 	// @ApiOperation(value = "二手帖子举报列表",nickname ="二手帖子举报列表")
145
 	@ApiImplicitParams({
143
 	@ApiImplicitParams({
146
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =":举报人姓名,reportPhone:举报人电话,transactionId:帖子ID" )})
144
 			@ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =":举报人姓名,reportPhone:举报人电话,transactionId:帖子ID" )})
147
-	@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
145
+
148
 	@RequestMapping(value="/transactionReportList",method = RequestMethod.POST)
146
 	@RequestMapping(value="/transactionReportList",method = RequestMethod.POST)
149
 	public ResponseBean transactionReportList(@RequestBody String paramets, HttpServletRequest request){
147
 	public ResponseBean transactionReportList(@RequestBody String paramets, HttpServletRequest request){
150
 		TaUser userElement = getTaUser(request);
148
 		TaUser userElement = getTaUser(request);

+ 1
- 5
src/main/java/com/huiju/estateagents/property/controller/UserVerifyController.java Parādīt failu

39
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "idCard", value = "身份证"),
39
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "idCard", value = "身份证"),
40
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "pageNum", value = "第几页"),
40
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "pageNum", value = "第几页"),
41
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "pageSize", value = "一页多少行"),
41
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "pageSize", value = "一页多少行"),
42
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token"),
43
     })
42
     })
44
     public ResponseBean getAll(@RequestParam(value = "phone", required = false) String phone,
43
     public ResponseBean getAll(@RequestParam(value = "phone", required = false) String phone,
45
                                @RequestParam(value = "userName", required = false) String userName,
44
                                @RequestParam(value = "userName", required = false) String userName,
57
     @RequestMapping(value = "/user/verify/audit/{userVerifyId}", method = RequestMethod.PUT)
56
     @RequestMapping(value = "/user/verify/audit/{userVerifyId}", method = RequestMethod.PUT)
58
     // @ApiOperation(value = "审核用户", notes = "审核用户")
57
     // @ApiOperation(value = "审核用户", notes = "审核用户")
59
     @ApiImplicitParams({
58
     @ApiImplicitParams({
60
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token"),
61
             @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "userVerifyId", value = "审核id"),
59
             @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "userVerifyId", value = "审核id"),
62
             @ApiImplicitParam(paramType = "query", dataTypeClass = Boolean.class, name = "verifyStatus", value = "true通过;false不通过"),
60
             @ApiImplicitParam(paramType = "query", dataTypeClass = Boolean.class, name = "verifyStatus", value = "true通过;false不通过"),
63
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "remark", value = "审核不通过的原因"),
61
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "remark", value = "审核不通过的原因"),
76
     @RequestMapping(value = "/ta/user/has", method = RequestMethod.GET)
74
     @RequestMapping(value = "/ta/user/has", method = RequestMethod.GET)
77
     // @ApiOperation(value = "校验移动端手机号是否注册", notes = "校验移动端手机号是否注册")
75
     // @ApiOperation(value = "校验移动端手机号是否注册", notes = "校验移动端手机号是否注册")
78
     @ApiImplicitParams({
76
     @ApiImplicitParams({
79
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token"),
80
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "ownerTel", value = "手机号"),
77
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "ownerTel", value = "手机号"),
81
     })
78
     })
82
     public ResponseBean taUserHas(@RequestParam("ownerTel") String ownerTel,
79
     public ResponseBean taUserHas(@RequestParam("ownerTel") String ownerTel,
102
     @RequestMapping(value = "/ta/user/hasOwner", method = RequestMethod.GET)
99
     @RequestMapping(value = "/ta/user/hasOwner", method = RequestMethod.GET)
103
     // @ApiOperation(value = "根据 期/栋/单元/楼层/户号 校验是否有业主", notes = "根据 期/栋/单元/楼层/户号 校验是否有业主")
100
     // @ApiOperation(value = "根据 期/栋/单元/楼层/户号 校验是否有业主", notes = "根据 期/栋/单元/楼层/户号 校验是否有业主")
104
     @ApiImplicitParams({
101
     @ApiImplicitParams({
105
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token"),
106
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "ownerTel", value = "审核id"),
102
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "ownerTel", value = "审核id"),
107
     })
103
     })
108
     public ResponseBean taUserHasOwner(@RequestParam("phaseId") Integer phaseId,
104
     public ResponseBean taUserHasOwner(@RequestParam("phaseId") Integer phaseId,
154
     @RequestMapping(value = "/user/verifyinfo/{userVerifyId}", method = RequestMethod.PUT)
150
     @RequestMapping(value = "/user/verifyinfo/{userVerifyId}", method = RequestMethod.PUT)
155
     // @ApiOperation(value = "楼栋详情页面审核", notes = "楼栋详情页面审核")
151
     // @ApiOperation(value = "楼栋详情页面审核", notes = "楼栋详情页面审核")
156
     @ApiImplicitParams({
152
     @ApiImplicitParams({
157
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token"),
153
+
158
             @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "userVerifyId", value = "审核id"),
154
             @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "userVerifyId", value = "审核id"),
159
             @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "roleState", value = "1:业主,2:租客,3:家属"),
155
             @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "roleState", value = "1:业主,2:租客,3:家属"),
160
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "verifyStatus", value = "0 是未审核1是审核通过2是审核不通过"),
156
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "verifyStatus", value = "0 是未审核1是审核通过2是审核不通过"),

+ 14
- 0
src/main/java/com/huiju/estateagents/property/dao/TdImagesMapper.java Parādīt failu

4
 import com.huiju.estateagents.property.model.TdImages;
4
 import com.huiju.estateagents.property.model.TdImages;
5
 import org.apache.ibatis.annotations.Mapper;
5
 import org.apache.ibatis.annotations.Mapper;
6
 
6
 
7
+import java.util.List;
8
+import java.util.Map;
9
+
7
 /**
10
 /**
8
  * <p>
11
  * <p>
9
  * 图片表 Mapper 接口
12
  * 图片表 Mapper 接口
15
 @Mapper
18
 @Mapper
16
 public interface TdImagesMapper extends BaseMapper<TdImages> {
19
 public interface TdImagesMapper extends BaseMapper<TdImages> {
17
 
20
 
21
+    List<TdImages> getByUUIDAndByType(Map<String,Object> map);
22
+
23
+
24
+    /**
25
+     * 批量删除
26
+     *  根据 uuid 和 type
27
+     * @param map
28
+     * @return
29
+     */
30
+    int deleteByUuidAndType(Map map);
31
+
18
 }
32
 }

+ 14
- 0
src/main/java/com/huiju/estateagents/property/dao/TpTicketMapper.java Parādīt failu

8
 import org.apache.ibatis.annotations.Mapper;
8
 import org.apache.ibatis.annotations.Mapper;
9
 import org.apache.ibatis.annotations.Param;
9
 import org.apache.ibatis.annotations.Param;
10
 
10
 
11
+import java.util.List;
12
+import java.util.Map;
13
+
11
 /**
14
 /**
12
  * <p>
15
  * <p>
13
  * 工单表 Mapper 接口
16
  * 工单表 Mapper 接口
21
 
24
 
22
     IPage<TpTicket> ticketList(Page page, @Param("ticket") TpTicket ticket, @Param("userName") String UserNmae, @Param("updateUserNmae") String updateUserNmae, @Param("orgId") Integer orgId);
25
     IPage<TpTicket> ticketList(Page page, @Param("ticket") TpTicket ticket, @Param("userName") String UserNmae, @Param("updateUserNmae") String updateUserNmae, @Param("orgId") Integer orgId);
23
     TpTicketVO ticketDetails(@Param("id") Integer id);
26
     TpTicketVO ticketDetails(@Param("id") Integer id);
27
+
28
+    /**
29
+     * 根据 小区ID 用户ID 类型 查询数据
30
+     * @param map
31
+     * @return
32
+     */
33
+    IPage<TpTicket> selectByCommuniytIdAndByTaUserIdAndByType(Page page,Map map);
34
+
35
+    TpTicket selectTpTicketName(@Param("communityId")Integer communityId, @Param("type")String type, @Param("ticketTitle")String ticketTitle);
36
+
37
+    void updateTpUserId(@Param("ticketId") Integer ticketId);
24
 }
38
 }

+ 22
- 0
src/main/java/com/huiju/estateagents/property/dao/TpTicketRecordCommentMapper.java Parādīt failu

1
 package com.huiju.estateagents.property.dao;
1
 package com.huiju.estateagents.property.dao;
2
 
2
 
3
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
3
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.huiju.estateagents.property.model.TpTicketRecord;
4
 import com.huiju.estateagents.property.model.TpTicketRecordComment;
5
 import com.huiju.estateagents.property.model.TpTicketRecordComment;
5
 import org.apache.ibatis.annotations.Mapper;
6
 import org.apache.ibatis.annotations.Mapper;
6
 
7
 
8
+import java.util.List;
9
+import java.util.Map;
10
+
7
 /**
11
 /**
8
  * <p>
12
  * <p>
9
  * 物业端工单追问表 Mapper 接口
13
  * 物业端工单追问表 Mapper 接口
15
 @Mapper
19
 @Mapper
16
 public interface TpTicketRecordCommentMapper extends BaseMapper<TpTicketRecordComment> {
20
 public interface TpTicketRecordCommentMapper extends BaseMapper<TpTicketRecordComment> {
17
 
21
 
22
+    /**
23
+     * 根据工单ID,最新的几条 查询出最新的追答记录
24
+     *
25
+     *  size 表示最新几条
26
+     *  tickerId 工单ID
27
+     *
28
+     * @param map
29
+     * @return
30
+     */
31
+    List<TpTicketRecordComment> selectByTicketId(Map map);
32
+
33
+    /**
34
+     * 查询出这个处理撞他下所有的回复数据
35
+     * @param tpTicketRecord
36
+     * @return
37
+     */
38
+    List<TpTicketRecordComment> selectByTicketRecordId(TpTicketRecord tpTicketRecord);
39
+
18
 }
40
 }

+ 4
- 0
src/main/java/com/huiju/estateagents/property/dao/TpTicketRecordMapper.java Parādīt failu

5
 import org.apache.ibatis.annotations.Mapper;
5
 import org.apache.ibatis.annotations.Mapper;
6
 import org.apache.ibatis.annotations.Param;
6
 import org.apache.ibatis.annotations.Param;
7
 
7
 
8
+import java.util.List;
9
+
8
 /**
10
 /**
9
  * <p>
11
  * <p>
10
  * 工单处理表 Mapper 接口
12
  * 工单处理表 Mapper 接口
25
     void updateTicketRecord(TpTicketRecord tpTicketRecord);
27
     void updateTicketRecord(TpTicketRecord tpTicketRecord);
26
 
28
 
27
     String statusName(@Param("status") String status);
29
     String statusName(@Param("status") String status);
30
+
31
+    List<TpTicketRecord> getTicketRecordByTicketId(@Param("orgId") String orgId, @Param("ticketId") Integer ticketId);
28
 }
32
 }

+ 7
- 0
src/main/java/com/huiju/estateagents/property/model/TpTicket.java Parādīt failu

1
 package com.huiju.estateagents.property.model;
1
 package com.huiju.estateagents.property.model;
2
 
2
 
3
 import com.baomidou.mybatisplus.annotation.IdType;
3
 import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableField;
4
 import com.baomidou.mybatisplus.annotation.TableId;
5
 import com.baomidou.mybatisplus.annotation.TableId;
5
 import com.baomidou.mybatisplus.annotation.TableName;
6
 import com.baomidou.mybatisplus.annotation.TableName;
6
 import lombok.Data;
7
 import lombok.Data;
9
 
10
 
10
 import java.io.Serializable;
11
 import java.io.Serializable;
11
 import java.time.LocalDateTime;
12
 import java.time.LocalDateTime;
13
+import java.util.List;
12
 
14
 
13
 /**
15
 /**
14
  * <p>
16
  * <p>
102
     private LocalDateTime updateDate;
104
     private LocalDateTime updateDate;
103
 
105
 
104
 
106
 
107
+    @TableField(exist = false)
108
+    private String [] tdImagesList;
109
+
110
+    @TableField(exist = false)
111
+    private List<TpTicketRecord> ticketRecordList;
105
 }
112
 }

+ 6
- 0
src/main/java/com/huiju/estateagents/property/model/TpTicketRecord.java Parādīt failu

72
      */
72
      */
73
     @TableField(exist = false)
73
     @TableField(exist = false)
74
     private String statusName;
74
     private String statusName;
75
+
76
+    @TableField(exist = false)
77
+    private String ticketStatusName;
78
+
79
+    @TableField(exist = false)
80
+    private List<TpTicketRecordComment> ticketRecordCommentList;
75
 }
81
 }

+ 74
- 0
src/main/java/com/huiju/estateagents/property/service/TpTicketService.java Parādīt failu

2
 
2
 
3
 import com.baomidou.mybatisplus.extension.service.IService;
3
 import com.baomidou.mybatisplus.extension.service.IService;
4
 import com.huiju.estateagents.base.ResponseBean;
4
 import com.huiju.estateagents.base.ResponseBean;
5
+import com.huiju.estateagents.center.taUser.entity.TaUser;
5
 import com.huiju.estateagents.property.model.TpTicket;
6
 import com.huiju.estateagents.property.model.TpTicket;
7
+import com.huiju.estateagents.property.model.TpTicketRecordComment;
8
+
9
+import java.io.IOException;
6
 
10
 
7
 /**
11
 /**
8
  * <p>
12
  * <p>
65
      * @return
69
      * @return
66
      */
70
      */
67
     ResponseBean updateTicket(String parameter, Integer id, Integer orgId, String userName, String longName);
71
     ResponseBean updateTicket(String parameter, Integer id, Integer orgId, String userName, String longName);
72
+
73
+
74
+    /**
75
+     * 根据 小区ID 用户ID 类型 查询数据
76
+     * @param tpTicket
77
+     * @param pageCode
78
+     * @param pageSize
79
+     * @return 返回 维修/投诉/联系单 各 pageSize 条
80
+     */
81
+    ResponseBean getList(TpTicket tpTicket,Integer pageCode, Integer pageSize);
82
+
83
+    /**
84
+     * 根据 小区ID 用户ID 类型 查询数据
85
+     * @param tpTicket
86
+     * @param pageNum
87
+     * @param pageSize
88
+     * @return 返回 维修/投诉/联系单 记录列表
89
+     */
90
+    ResponseBean getByTypeList(TpTicket tpTicket, Integer pageNum, Integer pageSize);
91
+
92
+    /**
93
+     * 获取报修详情
94
+     * @param orgId
95
+     * @param ticketId
96
+     * @return
97
+     */
98
+    TpTicket getTicketSchedule(String orgId, Integer ticketId);
99
+
100
+
101
+    /**
102
+     * 添加 维修/投诉/联系单
103
+     * @param userElement
104
+     * @param parameter
105
+     * @return
106
+     */
107
+    ResponseBean addAiTicketService(TaUser userElement, String parameter) throws IOException;
108
+
109
+    /**
110
+     * 回复工单
111
+     * @param tpTicketRecordComment
112
+     * @return
113
+     */
114
+    @Deprecated
115
+    Integer updateTicketsReply(TpTicketRecordComment tpTicketRecordComment, Integer userId);
116
+
117
+    /**
118
+     * 修改 维修/投诉/联系单 内容
119
+     * @param ticketId
120
+     * @param parameter
121
+     * @param userElement
122
+     */
123
+    ResponseBean updateTicketContent(Integer ticketId, String parameter,TaUser userElement);
124
+
125
+    /**
126
+     * 终止 维修/投诉/联系单
127
+     * @param orgId
128
+     * @param ticketId
129
+     * @return
130
+     */
131
+    ResponseBean stopTpTicketRecord(Integer orgId, Integer ticketId, TaUser userElement);
132
+
133
+    /**
134
+     * 添加工单对话
135
+     * @param parameter
136
+     * @param verifyId
137
+     * @param orgId
138
+     * @param userName
139
+     * @return
140
+     */
141
+    ResponseBean addWxRecordComment(String parameter, Integer verifyId, Integer orgId, String userName);
68
 }
142
 }

+ 543
- 9
src/main/java/com/huiju/estateagents/property/service/impl/TpTicketServiceImpl.java Parādīt failu

5
 import com.baomidou.mybatisplus.core.metadata.IPage;
5
 import com.baomidou.mybatisplus.core.metadata.IPage;
6
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
8
+import com.google.common.collect.Lists;
9
+import com.google.common.collect.Maps;
8
 import com.huiju.estateagents.base.ResponseBean;
10
 import com.huiju.estateagents.base.ResponseBean;
9
-import com.huiju.estateagents.center.taUser.mapper.TaUserMapper;
11
+import com.huiju.estateagents.center.taUser.entity.TaUser;
10
 import com.huiju.estateagents.property.common.Constant;
12
 import com.huiju.estateagents.property.common.Constant;
11
 import com.huiju.estateagents.property.dao.*;
13
 import com.huiju.estateagents.property.dao.*;
12
 import com.huiju.estateagents.property.model.*;
14
 import com.huiju.estateagents.property.model.*;
15
 import org.springframework.beans.BeanUtils;
17
 import org.springframework.beans.BeanUtils;
16
 import org.springframework.beans.factory.annotation.Autowired;
18
 import org.springframework.beans.factory.annotation.Autowired;
17
 import org.springframework.stereotype.Service;
19
 import org.springframework.stereotype.Service;
20
+import org.springframework.transaction.annotation.Transactional;
18
 
21
 
22
+import java.io.IOException;
19
 import java.time.LocalDateTime;
23
 import java.time.LocalDateTime;
20
-import java.util.ArrayList;
21
-import java.util.HashMap;
22
-import java.util.List;
24
+import java.time.ZoneId;
25
+import java.util.*;
23
 
26
 
24
 /**
27
 /**
25
  * <p>
28
  * <p>
47
     @Autowired
50
     @Autowired
48
     private TpTicketRecordCommentMapper tpTicketRecordCommentMapper;
51
     private TpTicketRecordCommentMapper tpTicketRecordCommentMapper;
49
 
52
 
50
-//    @Autowired
51
-//    private TaUserMapper taUserMapper;
52
-
53
     @Autowired
53
     @Autowired
54
     private MessageMapper messageMapper;
54
     private MessageMapper messageMapper;
55
 
55
 
114
         /*查询当前受理人*/
114
         /*查询当前受理人*/
115
         ticketVO.setTpUserNmae(userMapper.selectByIdUserName(ticketVO.getTpUserId()));
115
         ticketVO.setTpUserNmae(userMapper.selectByIdUserName(ticketVO.getTpUserId()));
116
         /*所有物业端本小区的人员*/
116
         /*所有物业端本小区的人员*/
117
-        ticketVO.setUserList(userMapper.getUser( userID,orgId));
117
+        ticketVO.setTpUsersList(userMapper.getUser( userID,orgId));
118
         /*本人*/
118
         /*本人*/
119
-        ticketVO.setCurrentUserName(userID);
119
+        ticketVO.setCurrentUserName(userID.toString());
120
 
120
 
121
 
121
 
122
         /*查询工单类容的图片*/
122
         /*查询工单类容的图片*/
426
         response.addSuccess("成功");
426
         response.addSuccess("成功");
427
         return response;
427
         return response;
428
     }
428
     }
429
+
430
+
431
+    @Override
432
+    public ResponseBean getList(TpTicket tpTicket, Integer pageNum, Integer pageSize) {
433
+
434
+        ResponseBean<Map<String, Object>> responseBean = new ResponseBean();
435
+        // 最终返回值
436
+        Map<String, Object> result = Maps.newHashMap();
437
+
438
+        Map<String, Object> parameter = Maps.newHashMap();
439
+        parameter.put("communityId", tpTicket.getOrgId());
440
+        parameter.put("taUserId", tpTicket.getTaUserId());
441
+
442
+        //  1:投诉   2:报修 3:联系物业
443
+        parameter.put("type", 2);
444
+        // 报修
445
+        Page<TpTicket> pageRepairs = new Page(pageNum, pageSize);
446
+        IPage<TpTicket> tpTicketIPage = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageRepairs, parameter);
447
+        List<TpTicket> tpTicketRepairsList = tpTicketIPage.getRecords();
448
+        List<TpTicketVO> repairsList = Lists.newArrayList();
449
+        tpTicketVOConvert(tpTicketRepairsList, repairsList);
450
+
451
+        // 投诉
452
+        //  1:投诉   2:报修 3:联系物业
453
+        parameter.put("type", 1);
454
+        Page<TpTicket> pageComplaint = new Page(pageNum, pageSize);
455
+        IPage<TpTicket> tpTicketIPageComplaint = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageComplaint, parameter);
456
+        List<TpTicket> tpTicketComplaintList = tpTicketIPageComplaint.getRecords();
457
+        List<TpTicketVO> complaintList = Lists.newArrayList();
458
+        tpTicketVOConvert(tpTicketComplaintList, complaintList);
459
+
460
+        // 联系工单
461
+        //  1:投诉   2:报修 3:联系物业
462
+        parameter.put("type", 3);
463
+        Page<TpTicket> pageLiaison = new Page(pageNum, pageSize);
464
+        IPage<TpTicket> tpTicketIPageLiaison = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pageLiaison, parameter);
465
+        List<TpTicket> tpTicketLiaisonList = tpTicketIPageLiaison.getRecords();
466
+        List<TpTicketVO> liaisonList = Lists.newArrayList();
467
+        tpTicketVOConvert(tpTicketLiaisonList, liaisonList);
468
+        Long[] arr = new Long[]{pageComplaint.getTotal(), pageLiaison.getTotal(), pageRepairs.getTotal()};
469
+        Arrays.sort(arr);
470
+        result.put("repairs", repairsList);
471
+        result.put("complaint", complaintList);
472
+        result.put("liaison", liaisonList);
473
+        result.put("total", arr[2]);
474
+
475
+        responseBean.addSuccess(result);
476
+        return responseBean;
477
+    }
478
+
479
+    /**
480
+     * 公共方法, 获取一条数据
481
+     *
482
+     * @param map
483
+     * @return
484
+     */
485
+    private TpTicketRecordComment getTicketRecordComment(Map map) {
486
+        List<TpTicketRecordComment> list = tpTicketRecordCommentMapper.selectByTicketId(map);
487
+        return null == list
488
+                ? null : list.size() == 0
489
+                ? null : list.get(0);
490
+    }
491
+
492
+    /**
493
+     * 数据转换,并填充数据
494
+     *
495
+     * @param target
496
+     * @param source
497
+     * @return
498
+     */
499
+    public void tpTicketVOConvert(List<TpTicket> source, List<TpTicketVO> target) {
500
+
501
+        // 获取联系号码簿(物业号码)
502
+        // List<TpannouncementTel> tpannouncementTel = tpannouncementTelMapper.getTpannouncementTel();
503
+
504
+        // 查询参数
505
+        Map<String, Object> lastRecordMap = Maps.newHashMap();
506
+        // 表示查询出最新的一条
507
+        lastRecordMap.put("size", 1);
508
+
509
+        source.stream().forEach(e -> {
510
+            TpTicketVO tpTicketVO = new TpTicketVO();
511
+            BeanUtils.copyProperties(e, tpTicketVO);
512
+            // 设置工单编号
513
+            lastRecordMap.put("tickerId", e.getId());
514
+            TpTicketRecordComment comment = getTicketRecordComment(lastRecordMap);
515
+            List<TpTicketRecord> recordList = tpTicketRecordMapper.getTicketRecordByTicketId(e.getOrgId() + "", e.getId());
516
+            // 报修类型:0:公共区域  1: 房屋质量  2::户内设施  PS : 报修的情况下才有报修类型
517
+            String repairType = e.getRepairType();
518
+            String repairName = repairType == null ?
519
+                    null : "0".equals(repairType) ?
520
+                    "公共区域" : "1".equals(repairType) ?
521
+                    "房屋质量" : "2".equals(repairType) ?
522
+                    "户内设施" : null;
523
+            tpTicketVO.setRepairName(repairName);
524
+            tpTicketVO.setStatus(recordList.get(recordList.size() - 1).getStatus());
525
+            tpTicketVO.setTicketStatusName(recordList.get(recordList.size() - 1).getTicketStatusName());
526
+            tpTicketVO.setTicketRecordDate(Date.from(recordList.get(recordList.size() - 1).getCreateDate().atZone(ZoneId.systemDefault()).toInstant()));
527
+            tpTicketVO.setTicketStatusContent(recordList.get(recordList.size() - 1).getContent());
528
+            if (null != comment) {
529
+                tpTicketVO.setCommentContent(comment.getContent());
530
+                tpTicketVO.setCommentCreateDate(Date.from(comment.getCreateDate().atZone(ZoneId.systemDefault()).toInstant()));
531
+            }
532
+
533
+//            // 0:待分配  1:拒绝受理 2:待处理 3:正在处理 4:待评价 5:已评价 6:被终止
534
+//
535
+//            // 0:待分配  需要出现物业号码簿
536
+//            if ("0".equals(e.getStatus())) {
537
+//                Map<String, Object> map = Maps.newHashMap();
538
+//                map.put("message","联系物业号码簿");
539
+//                map.put("data",tpannouncementTel);
540
+//                tpTicketVO.setContactBook(map);
541
+//            }
542
+
543
+            target.add(tpTicketVO);
544
+        });
545
+    }
546
+
547
+    @Override
548
+    public ResponseBean getByTypeList(TpTicket tpTicket, Integer pageNum, Integer pageSize) {
549
+
550
+        ResponseBean response = new ResponseBean();
551
+
552
+        Map<String, Object> parameter = Maps.newHashMap();
553
+        parameter.put("communityId", tpTicket.getOrgId());
554
+        parameter.put("taUserId", tpTicket.getTaUserId());
555
+
556
+        //  1:投诉   2:报修 3:联系物业
557
+        parameter.put("type", tpTicket.getType());
558
+
559
+        Page<TpTicket> pagelist = new Page<>(pageNum, pageSize);
560
+        IPage<TpTicket> tpTicketIPage = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(pagelist, parameter);
561
+        List<TpTicket> tpTicketList = tpTicketIPage.getRecords();
562
+
563
+        List<TpTicketVO> tpTicketVOList = Lists.newArrayList();
564
+        tpTicketVOConvert(tpTicketList, tpTicketVOList);
565
+        Map<String, Object> map = Maps.newHashMap();
566
+        map.put("pagelist", tpTicketVOList);
567
+        map.put("total", pagelist.getTotal());
568
+
569
+        response.addSuccess(map);
570
+
571
+        return response;
572
+    }
573
+
574
+    /**
575
+     * 获取报修详情
576
+     *
577
+     * @param orgId
578
+     * @param ticketId
579
+     * @return
580
+     */
581
+    @Override
582
+    @Transactional(rollbackFor = Exception.class)
583
+    public TpTicket getTicketSchedule(String orgId, Integer ticketId) {
584
+        //查看工单详情
585
+        TpTicket ticket = tpTicketMapper.selectById(ticketId);
586
+        if (null != ticket) {
587
+            //工单进度
588
+            List<TpTicketRecord> ticketRecordList = tpTicketRecordMapper.getTicketRecordByTicketId(orgId, ticketId);
589
+            //工单回复
590
+            ticketRecordList.stream().forEach(tpTicketRecord -> {
591
+                List<TpTicketRecordComment> ticketRecordCommentList = tpTicketRecordCommentMapper.selectByTicketRecordId(tpTicketRecord);
592
+                //遍历工单下每条对话信息的id去查对话图片
593
+                for (TpTicketRecordComment tpTicketRecordComment : ticketRecordCommentList) {
594
+                    Map<String, Object> map = Maps.newHashMap();
595
+                    map.put("uuid", tpTicketRecordComment.getId());
596
+                    map.put("type", "reply");
597
+                    List<TdImages> tdImagesList = tdImagesMapper.getByUUIDAndByType(map);
598
+                    tpTicketRecordComment.setImgURL(tdImagesList);
599
+                }
600
+                tpTicketRecord.setTicketRecordCommentList(ticketRecordCommentList);
601
+            });
602
+
603
+            Map<String, Object> map = Maps.newHashMap();
604
+            map.put("uuid", ticket.getId());
605
+            map.put("type", "service");
606
+            List<TdImages> tdImagesList = tdImagesMapper.getByUUIDAndByType(map);
607
+
608
+            // 图片数组
609
+            String[] imgageArr = new String[tdImagesList.size()];
610
+
611
+            for (int i = 0; i < tdImagesList.size(); i++) {
612
+                imgageArr[i] = tdImagesList.get(i).getImageUrl();
613
+            }
614
+
615
+            ticket.setTdImagesList(imgageArr);
616
+            ticket.setTicketRecordList(ticketRecordList);
617
+
618
+//            // 把该工单的消息变为 已读
619
+//            TpMessage tpMessage = new TpMessage();
620
+//            tpMessage.setSource("1");
621
+//            tpMessage.setModelType("1");
622
+//            tpMessage.setMessageType(ticket.getType());
623
+//
624
+//            tpMessage = tpMessageMapper.selectTicketMessage(tpMessage);
625
+//            tpMessage.setReadStatus("1");
626
+//
627
+//            //  变为已读
628
+//            tpMessageMapper.updateByPrimaryKeySelective(tpMessage);
629
+
630
+        }
631
+        return ticket;
632
+    }
633
+
634
+    @Override
635
+    @Transactional(rollbackFor = Exception.class)
636
+    public ResponseBean addAiTicketService(TaUser userElement, String parameter) throws IOException {
637
+        ResponseBean response = new ResponseBean();
638
+        JSONObject jsonObject = JSONObject.parseObject(parameter);
639
+        String imageUrl = (String) jsonObject.get("imageUrl");
640
+
641
+
642
+        TpTicket tpTicket = JSONObject.parseObject(parameter, TpTicket.class);
643
+
644
+        /**
645
+         * 工单表 -> 工单处理表 -> 消息表
646
+         * 依次插入相关数据, 该工单默认的第一条数据(待分配), 是工单标题,
647
+         */
648
+
649
+        tpTicket.setOrgId(userElement.getOrgId());
650
+        // 2.1以后为ta_user_verify为中心不再是已用户ta_user为中心
651
+        tpTicket.setTaUserId(userElement.getUserId());
652
+        // 默认待分配
653
+        tpTicket.setStatus("0");
654
+        // 2.1以后为ta_user_verify为中心不再是已用户ta_user为中心
655
+        tpTicket.setCreateUser(userElement.getUserId());
656
+        tpTicket.setCreateDate(LocalDateTime.now());
657
+        tpTicket.setUpdateUser(userElement.getUserId());
658
+        //tpTicket.setUpdateDate(new Date());
659
+        //校验此工单是否已存在
660
+        TpTicket tpTicketName= tpTicketMapper.selectTpTicketName(userElement.getOrgId(),tpTicket.getType(),tpTicket.getTicketTitle());
661
+        if (null != tpTicketName){
662
+            response.addError("工单已存在");
663
+            return  response;
664
+        }
665
+        // 插入工单
666
+        tpTicketMapper.insert(tpTicket);
667
+        insertTdImage(tpTicket, imageUrl, userElement.getUserId());
668
+
669
+        Integer id = tpTicket.getId();
670
+        TpTicketRecord tpTicketRecord = new TpTicketRecord();
671
+        //获取当前插入的信息,维护工单记录表
672
+        TpTicket tpTicketReco = tpTicketMapper.selectById(id);
673
+        tpTicketRecord.setOrgId(userElement.getOrgId());
674
+        tpTicketRecord.setTicketId(tpTicketReco.getId());
675
+        // 1:投诉   2:报修 3:联系物业
676
+        String typeName = "2".equals(tpTicket.getType()) ? "报修" : "1".equals(tpTicket.getType()) ? "投诉" : "3".equals(tpTicket.getType()) ? "联系工单" : "未知类型";
677
+        tpTicketRecord.setContent("您的" + typeName + "正在分配物业处理人员, 若长时间无人处理, 请联系物业! 联系物业号码簿 >");
678
+        tpTicketRecord.setStatus(tpTicketReco.getStatus());
679
+        tpTicketRecord.setCreateUser(userElement.getUserId());
680
+        tpTicketRecord.setCreateDate(LocalDateTime.now());
681
+        // 插入工单处理表
682
+        tpTicketRecordMapper.insert(tpTicketRecord);
683
+        // 推物业端,推这个小区下的所有管理员
684
+//        List<TpUser> tpUserList= tpUserMapper.selectCommunityId(userElement.getOrgId());
685
+//        for (TpUser tpUser:tpUserList) {
686
+//            Map<String, Object> mapProp = new HashMap<>();
687
+//            mapProp.put("communityId", userElement.getOrgId());
688
+//            mapProp.put("createUserId", userElement.getUserVerifyId());
689
+//            mapProp.put("ticketId", tpTicket.getId());
690
+//            mapProp.put("title", tpTicket.getTicketTitle());
691
+//            mapProp.put("name", userElement.getUserName());
692
+//            mapProp.put("tpUserId", tpUser.getId());
693
+//            applicationContext.publishEvent(new MessageEvent(mapProp, Constant.TICKET_ADD, mapProp));
694
+//        }
695
+
696
+
697
+        response.addSuccess(tpTicketReco);
698
+        return response;
699
+    }
700
+
701
+    /**
702
+     * 存入图片
703
+     *
704
+     * @param tpTicket
705
+     * @param imageUrl
706
+     * @param userId
707
+     * @throws IOException
708
+     */
709
+    private void insertTdImage(TpTicket tpTicket, String imageUrl, Integer userId) {
710
+        if (null == imageUrl || "".equals(imageUrl)) {
711
+            return;
712
+        }
713
+        String[] imgArr = imageUrl.split(",");
714
+        for (String img : imgArr) {
715
+            TdImages tdImages = new TdImages();
716
+            Integer uuId = tpTicket.getId();
717
+            tdImages.setImageUrl(img);
718
+            tdImages.setType(Constant.SERVICE);
719
+            tdImages.setUuid(uuId);
720
+            tdImages.setCreateUser(userId);
721
+            tdImages.setCreateTime(LocalDateTime.now());
722
+            tdImagesMapper.insert(tdImages);
723
+        }
724
+
725
+    }
726
+
727
+
728
+    /**
729
+     * 回复工单
730
+     *
731
+     * @param tpTicketRecordComment
732
+     * @return
733
+     */
734
+    @Override
735
+    public Integer updateTicketsReply(TpTicketRecordComment tpTicketRecordComment, Integer userId) {
736
+        //查询用户名
737
+        User taUser = userMapper.selectById(userId);
738
+
739
+        TpTicket  tpTicket= tpTicketMapper.selectById(tpTicketRecordComment.getTicketId());
740
+        TpTicketRecord ticketRecord= tpTicketRecordMapper.selectTpTicketRecord(tpTicketRecordComment.getTicketId(), Integer.valueOf(tpTicket.getStatus()));
741
+
742
+        tpTicketRecordComment.setUserName(taUser.getUserName());
743
+        tpTicketRecordComment.setParentId(tpTicketRecordComment.getId());
744
+        tpTicketRecordComment.setUuid(userId);
745
+        tpTicketRecordComment.setTicketRecordId(ticketRecord.getId());
746
+        tpTicketRecordComment.setUserType(Constant.TICKET_USER_TYPE);
747
+        tpTicketRecordComment.setCreateDate(LocalDateTime.now());
748
+        //插入回复数据
749
+        return tpTicketRecordCommentMapper.insert(tpTicketRecordComment);
750
+
751
+    }
752
+
753
+    @Override
754
+    @Transactional(rollbackFor = Exception.class)
755
+    public ResponseBean updateTicketContent(Integer ticketId, String parameter, TaUser userElement) {
756
+        ResponseBean responseBean = new ResponseBean();
757
+
758
+        JSONObject jsonObject = JSONObject.parseObject(parameter);
759
+        String imageUrl = (String) jsonObject.get("imageUrl");
760
+
761
+
762
+        TpTicket tpTicket = JSONObject.parseObject(parameter, TpTicket.class);
763
+
764
+        // 删除旧图片链接
765
+        Map<String, Object> map = Maps.newHashMap();
766
+        map.put("uuid", ticketId);
767
+        map.put("type", "service");
768
+        tdImagesMapper.deleteByUuidAndType(map);
769
+
770
+        insertTdImage(tpTicket, imageUrl, userElement.getUserId());
771
+
772
+        TpTicket ticket = tpTicketMapper.selectById(ticketId);
773
+        ticket.setTicketTitle(tpTicket.getTicketTitle());
774
+        ticket.setTicketContent(tpTicket.getTicketContent());
775
+
776
+        tpTicketMapper.updateById(ticket);
777
+        // 维护1.5版本消息
778
+//        Integer messageTicket= tpMessageMapper.selectTicket(ticketId);
779
+//        if (!"".equals(messageTicket)) {
780
+//            TpMessage tpMessage = new TpMessage();
781
+//            tpMessage.setMessageContent("工单“" + tpTicket.getTicketTitle() + "”已被分配给您,点击查看并处理");
782
+//            tpMessage.setUpdateDate(new Date());
783
+//            tpMessage.setUpdateUser(userElement.getUserVerifyId());
784
+//            tpMessageMapper.updateTickMessage(tpMessage);
785
+//        }
786
+        // 修改消息以后推送物业端
787
+        // 推物业端,推这个小区下的所有管理员
788
+//        List<TpUser> tpUserList= tpUserMapper.selectCommunityId(ticket.getOrgId());
789
+//        for (TpUser tpUser:tpUserList) {
790
+//            Map<String, Object> mapProp = new HashMap<>();
791
+//            mapProp.put("communityId", ticket.getOrgId());
792
+//            mapProp.put("createUserId", userElement.getUserVerifyId());
793
+//            mapProp.put("ticketId", ticketId);
794
+//            mapProp.put("title", tpTicket.getTicketTitle());
795
+//            mapProp.put("name", userElement.getUserName());
796
+//            mapProp.put("tpUserId", tpUser.getId());
797
+//            applicationContext.publishEvent(new MessageEvent(mapProp, Constant.TICKET_UPDATE, mapProp));
798
+//        }
799
+        responseBean.addSuccess("操作成功!");
800
+        return responseBean;
801
+    }
802
+
803
+    @Transactional(rollbackFor = Exception.class)
804
+    @Override
805
+    public ResponseBean stopTpTicketRecord(Integer orgId, Integer ticketId, TaUser userElement) {
806
+        ResponseBean responseBean = new ResponseBean();
807
+        try {
808
+            TpTicket tpTicket = new TpTicket();
809
+            tpTicket.setStatus("6");
810
+            tpTicket.setId(ticketId);
811
+            tpTicketMapper.updateById(tpTicket);
812
+            //根据1.4版本需要被终止时,清空当前工单受理人
813
+            tpTicketMapper.updateTpUserId(ticketId);
814
+
815
+            TpTicketRecord tpTicketRecord = new TpTicketRecord();
816
+            tpTicketRecord.setStatus("6");
817
+            tpTicketRecord.setTicketId(ticketId);
818
+            tpTicketRecord.setOrgId(orgId);
819
+
820
+            tpTicketRecord.setContent("您的联系单已被您自己终止,如果仍有问题,可以在服务页新增一个报修/投诉/联系单");
821
+            tpTicketRecord.setCreateUser(userElement.getUserId());
822
+            tpTicketRecord.setCreateDate(LocalDateTime.now());
823
+            tpTicketRecordMapper.insert(tpTicketRecord);
824
+            // 终止后维护tp_ticket_record_comment对话
825
+            Integer createUser= tpTicketMapper.selectById(ticketId).getCreateUser();
826
+            TaUserVerify taUserVerify= taUserVerifyMapper.selectById(createUser);
827
+
828
+            User taUser= userMapper.selectById(taUserVerify.getUserId());
829
+            TpTicketRecordComment tpTicketRecordComment = new TpTicketRecordComment();
830
+            tpTicketRecordComment.setOrgId(orgId);
831
+            tpTicketRecordComment.setTicketId(ticketId);
832
+            tpTicketRecordComment.setTicketRecordId(tpTicketRecord.getId());
833
+            tpTicketRecordComment.setUuid(userElement.getUserId());
834
+            tpTicketRecordComment.setUuid(taUserVerify.getId());
835
+            tpTicketRecordComment.setUserName(taUser.getUserName());
836
+            tpTicketRecordComment.setContent("业主终止工单,原因——无");
837
+            tpTicketRecordComment.setCreateDate(LocalDateTime.now());
838
+            tpTicketRecordCommentMapper.insert(tpTicketRecordComment);
839
+
840
+            TpTicket ticket= tpTicketMapper.selectById(ticketId);
841
+            // 推物业端,推这个小区下的所有管理员
842
+//            List<TpUser> tpUserList= tpUserMapper.selectCommunityId(communityId);
843
+//            for (TpUser tpUser:tpUserList) {
844
+//                Map<String, Object> mapProp = new HashMap<>();
845
+//                mapProp.put("communityId", communityId);
846
+//                mapProp.put("createUserId", userElement.getUserVerifyId());
847
+//                mapProp.put("title", ticket.getTicketTitle());
848
+//                mapProp.put("name", userElement.getUserName());
849
+//                mapProp.put("ticketId", ticketId);
850
+//                mapProp.put("tpUserId", tpUser.getId());
851
+//                applicationContext.publishEvent(new MessageEvent(mapProp, Constant.TICKET_TERMINATION, mapProp));
852
+//            }
853
+            return responseBean;
854
+        } catch (Exception e) {
855
+            e.printStackTrace();
856
+            responseBean.addError("服务器异常");
857
+            return responseBean;
858
+        }
859
+    }
860
+
861
+    /**
862
+     * 公共方法
863
+     * 把工单插入消息表
864
+     *
865
+     * @param tpTicket 工单
866
+     * @param userId   用户id
867
+     */
868
+    private Message insertTicketMessage(TpTicket tpTicket, Integer userId) {
869
+
870
+        Message tpMessage = new Message();
871
+        tpMessage.setOrgId(tpTicket.getOrgId());
872
+        // 消息类型  1:投诉   2:报修 3:联系物业  4: 访客  5:公告  6:系统通知  7:账单 8:活动
873
+        tpMessage.setMessageType(tpTicket.getType());
874
+        // 通知方式: APP 内通知
875
+        tpMessage.setAdviceType("1");
876
+        // 模板类型为 消息模板
877
+        tpMessage.setModelType("1");
878
+        tpMessage.setUuid(userId);
879
+        // 接收人类型: APP用户
880
+        tpMessage.setUuidType("1");
881
+        // 来源: APP 端用户
882
+        tpMessage.setSource("1");
883
+        // 这里的消息内容对应, 工单标题
884
+        tpMessage.setMessageContent(tpTicket.getTicketTitle());
885
+        tpMessage.setStatus("1");
886
+        // 阅读状态: 0未阅读
887
+        tpMessage.setReadStatus("0");
888
+        tpMessage.setCreateUser(userId);
889
+        tpMessage.setCreateDate(LocalDateTime.now());
890
+        tpMessage.setUpdateUser(userId);
891
+        tpMessage.setUpdateDate(LocalDateTime.now());
892
+
893
+        messageMapper.insert(tpMessage);
894
+
895
+        return tpMessage;
896
+
897
+    }
898
+    @Override
899
+    public ResponseBean addWxRecordComment(String parameter, Integer verifyId,Integer communityId,String userName) {
900
+        ResponseBean response=new ResponseBean();
901
+        JSONObject object= JSONObject.parseObject(parameter);
902
+
903
+        String  content = object.getString("content");
904
+        Integer  ticketId = object.getInteger("ticketId");
905
+
906
+        /*根据工单Id和状态查出工单记录ID*/
907
+        TpTicket  tpTicket= tpTicketMapper.selectById(ticketId);
908
+        TpTicketRecord ticketRecord= tpTicketRecordMapper.selectTpTicketRecord(ticketId, Integer.valueOf(tpTicket.getStatus()));
909
+        TpTicketRecordComment tpTicketRecordComment= new TpTicketRecordComment();
910
+        tpTicketRecordComment.setOrgId(communityId);
911
+        tpTicketRecordComment.setContent(content);
912
+        tpTicketRecordComment.setTicketId(ticketId);
913
+        tpTicketRecordComment.setTicketRecordId(ticketRecord.getId());
914
+        tpTicketRecordComment.setUuid(verifyId);
915
+        tpTicketRecordComment.setUserType("1");
916
+        tpTicketRecordComment.setUserName(userName);
917
+        tpTicketRecordComment.setCreateDate(LocalDateTime.now());
918
+        tpTicketRecordCommentMapper.insert(tpTicketRecordComment);
919
+        JSONArray contentImg = object.getJSONArray("imageUrl");
920
+        if (null!=contentImg){
921
+            String[] contentImgArray = contentImg.toArray(new String[]{});
922
+
923
+            for (String img : contentImgArray) {
924
+                TdImages tdImages = new TdImages();
925
+                tdImages.setImageUrl(img);
926
+                /*注意reply用于标记工单回复类的图片*/
927
+                tdImages.setType("reply");
928
+                tdImages.setUuid(tpTicketRecordComment.getId());
929
+                tdImages.setCreateTime(LocalDateTime.now());
930
+                tdImages.setCreateUser(verifyId);
931
+                tdImagesMapper.insert(tdImages);
932
+            }
933
+        }
934
+        //1.5版本推送消息message
935
+        //工单消息回复最最后一个物业人员
936
+
937
+        Message message = new Message();
938
+        message.setOrgId(communityId);
939
+        message.setModelType("1");
940
+        message.setMessageType(tpTicket.getType());
941
+        message.setAdviceType("4");
942
+        //查询当前工单处理
943
+//        TpTicket ticket= tpTicketMapper.getTicketTpUserId(ticketId,communityId);
944
+//        //考虑到工单没有分配,物业人员没有追问,只能塞本小区超级管理员ID
945
+//        TpTicketRecordComment recordComment= tpTicketRecordCommentMapper.getUuID(communityId,ticketId);
946
+//        Integer uuserID= toCommunitiesMapper.selectAndmin(communityId);
947
+//        // 查询工单创建人名称
948
+//        TaUserVerify taUserVerify = taUserVerifyMapper.selectByPrimaryKey(ticket.getCreateUser());
949
+//        TaUser taUser = taUserMapper.selectByPrimaryKey(taUserVerify.getUserId());
950
+        // app推送物业端的消息
951
+//        Map<String,Object> mapPorp = new HashMap<>();
952
+//        mapPorp.put("communityId",communityId);
953
+//        mapPorp.put("createUserId",tpTicket.getCreateUser());
954
+//        mapPorp.put("uuId",recordComment==null?uuserID:recordComment.getUuid());
955
+//        mapPorp.put("ticketId",ticketId);
956
+//        mapPorp.put("replyCount","业主"+taUser.getUserName()+"回复了工单“"+ticket.getTicketTitle()+"”,请处理");
957
+//        mapPorp.put("uuidType",Constant.UUID_TYPE_PROP);
958
+//        mapPorp.put("source",Constant.SOURCE_APP);
959
+//        applicationContext.publishEvent(new MessageEvent(tpTicket, Constant.TICKET_REPLY_PROP,mapPorp));
960
+        response.addSuccess("成功");
961
+        return response;
962
+    }
429
 }
963
 }

+ 49
- 22
src/main/java/com/huiju/estateagents/property/vo/TpTicketVO.java Parādīt failu

6
 import com.huiju.estateagents.property.model.User;
6
 import com.huiju.estateagents.property.model.User;
7
 import lombok.Data;
7
 import lombok.Data;
8
 
8
 
9
+import java.time.LocalDateTime;
10
+import java.util.Date;
9
 import java.util.List;
11
 import java.util.List;
12
+import java.util.Map;
10
 
13
 
11
 /**
14
 /**
12
  * version V1.0
15
  * version V1.0
18
  **/
21
  **/
19
 @Data
22
 @Data
20
 public class TpTicketVO extends TpTicket {
23
 public class TpTicketVO extends TpTicket {
21
-    /**
22
-     * 发起人
23
-     */
24
-    private String createUserNmae;
24
+
25
+    /** 小区编号 **/
26
+    private Integer communityId;
27
+
25
 
28
 
26
     /**
29
     /**
27
-     * 受理人
30
+     * 报修类型的名字
28
      */
31
      */
29
-    private String tpUserNmae;
32
+    private String repairName;
33
+
34
+    /** ====================================== **/
35
+
36
+
37
+    /** 流程状态名称 **/
38
+    private String ticketStatusName;
39
+
40
+    /** 流程状态内容 **/
41
+    private String ticketStatusContent;
42
+
43
+    /** 流程状态时间 **/
44
+    private Date ticketRecordDate;
45
+
46
+    /** 最新进展 **/
47
+    private String commentContent;
48
+
49
+    /** 最新进展的时间 **/
50
+    private Date commentCreateDate;
51
+
52
+    /** 联系物业号码簿 **/
53
+    private Map<String,Object> contactBook;
54
+
55
+    /**投诉流程状态**/
56
+    private String statusList;
30
 
57
 
31
     /**
58
     /**
32
-     *工单内容下的图片
59
+     * 工单发起人
33
      */
60
      */
34
-    private  List<String> contentImageUrl;
61
+    private String createUserNmae;
35
 
62
 
36
     /**
63
     /**
37
-     * 工单流程状态
64
+     * 发起人手机号码
38
      */
65
      */
39
-    private List<TpTicketRecord> recordList;
66
+    private String loginName;
40
 
67
 
41
     /**
68
     /**
42
-     * 工单对话图片
69
+     * 当前受理人
43
      */
70
      */
44
-    private  List<String> ticketRecordCommentImagesUrl;
71
+    private String tpUserNmae;
45
 
72
 
46
     /**
73
     /**
47
-     * 工单对话记录
74
+     * 物业端所有小区人员
48
      */
75
      */
49
-    private List<TpTicketRecordComment> tpTicketRecordCommentList;
76
+    private List<User> tpUsersList;
50
 
77
 
51
     /**
78
     /**
52
-     * 发起人手机号码
79
+     * 本人
53
      */
80
      */
54
-    private  String loginName;
81
+    private  String currentUserName;
55
 
82
 
56
     /**
83
     /**
57
-     * 所有当前小区的物业人员
84
+     * 工单内容图片
58
      */
85
      */
59
-    private List<User> userList;
86
+    private  List<String> contentImageUrl;
60
 
87
 
61
     /**
88
     /**
62
-     * 当前人
89
+     * 工单流程
63
      */
90
      */
64
-    private Integer CurrentUserName;
91
+    private List<TpTicketRecord> recordList;
65
 
92
 
66
     /**
93
     /**
67
-     * 工单状态集合
94
+     * 工单创建人房产
68
      */
95
      */
69
-    private List<Integer> statusList;
96
+    private  String houseProperty;
70
 }
97
 }

+ 1
- 3
src/main/java/com/huiju/estateagents/service/impl/TaNewsServiceImpl.java Parādīt failu

59
     public ResponseBean getList(Integer pageNum, Integer pageSize, String buildingId, Integer orgId, Integer newsTypeId, Integer newsStatus,String title, Integer cityId,List<TaPersonBuilding> personBuildingList) {
59
     public ResponseBean getList(Integer pageNum, Integer pageSize, String buildingId, Integer orgId, Integer newsTypeId, Integer newsStatus,String title, Integer cityId,List<TaPersonBuilding> personBuildingList) {
60
         ResponseBean responseBean = new ResponseBean();
60
         ResponseBean responseBean = new ResponseBean();
61
 
61
 
62
-        IPage<TaNews> page = new Page<>();
63
-        page.setCurrent(pageNum);
64
-        page.setSize(pageSize);
62
+        IPage<TaNews> page = new Page<>(pageNum,pageSize);
65
 
63
 
66
         QueryWrapper<TaNews> taNewsQueryWrapper = new QueryWrapper<>();
64
         QueryWrapper<TaNews> taNewsQueryWrapper = new QueryWrapper<>();
67
         taNewsQueryWrapper.eq(!StringUtils.isEmpty(buildingId),"building_id", buildingId);
65
         taNewsQueryWrapper.eq(!StringUtils.isEmpty(buildingId),"building_id", buildingId);

+ 12
- 0
src/main/resources/mapper/property/TdImagesMapper.xml Parādīt failu

2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
 <mapper namespace="com.huiju.estateagents.property.dao.TdImagesMapper">
3
 <mapper namespace="com.huiju.estateagents.property.dao.TdImagesMapper">
4
 
4
 
5
+    <select id="getByUUIDAndByType" parameterType="map" resultType="com.huiju.estateagents.property.model.TdImages">
6
+        select
7
+         *
8
+        from td_images
9
+        where uuid = #{uuid,jdbcType=INTEGER} and type = #{type,jdbcType=CHAR}
10
+        order by create_time DESC
11
+    </select>
12
+
13
+    <delete id="deleteByUuidAndType" parameterType="map" >
14
+    delete from td_images
15
+    where uuid = #{uuid,jdbcType=INTEGER} and type = #{type,jdbcType=CHAR}
16
+  </delete>
5
 </mapper>
17
 </mapper>

+ 34
- 0
src/main/resources/mapper/property/TpTicketMapper.xml Parādīt failu

68
         tp_ticket p
68
         tp_ticket p
69
         WHERE p.id=#{id,jdbcType=INTEGER}
69
         WHERE p.id=#{id,jdbcType=INTEGER}
70
     </select>
70
     </select>
71
+
72
+    <select id="selectByCommuniytIdAndByTaUserIdAndByType" parameterType="map" resultType="com.huiju.estateagents.property.model.TpTicket" >
73
+        select
74
+         *
75
+        from tp_ticket
76
+        <trim prefix="where" prefixOverrides="and">
77
+            <if test="communityId != null" >
78
+                and community_id = #{communityId,jdbcType=INTEGER}
79
+            </if>
80
+            <if test="taUserId != null" >
81
+                and ta_user_id = #{taUserId,jdbcType=INTEGER}
82
+            </if>
83
+            <if test="type != null" >
84
+                and type = #{type,jdbcType=CHAR}
85
+            </if>
86
+        </trim>
87
+        order by create_date DESC
88
+    </select>
89
+
90
+    <select id="selectTpTicketName" resultType="com.huiju.estateagents.property.model.TpTicket">
91
+    select
92
+    *
93
+    from tp_ticket
94
+    where community_id = #{communityId,jdbcType=INTEGER}
95
+     and ticket_title= #{ticketTitle,jdbcType=INTEGER}
96
+     and type = #{type,jdbcType=VARCHAR}
97
+  </select>
98
+
99
+    <update id="updateTpUserId" parameterType="int" >
100
+    update tp_ticket
101
+    set
102
+      tp_user_id =null
103
+    where id = #{ticketId,jdbcType=INTEGER}
104
+  </update>
71
 </mapper>
105
 </mapper>

+ 17
- 0
src/main/resources/mapper/property/TpTicketRecordCommentMapper.xml Parādīt failu

2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
 <mapper namespace="com.huiju.estateagents.property.dao.TpTicketRecordCommentMapper">
3
 <mapper namespace="com.huiju.estateagents.property.dao.TpTicketRecordCommentMapper">
4
 
4
 
5
+    <select id="selectByTicketId" parameterType="map" resultType="com.huiju.estateagents.property.model.TpTicketRecordComment" >
6
+    select ttrc.* from tp_ticket tp
7
+                inner join tp_ticket_record ttr on tp.id = ttr.ticket_id
8
+                inner join tp_ticket_record_comment ttrc on ttr.id = ttrc.ticket_record_id
9
+    where tp.id=#{tickerId,jdbcType=INTEGER} order by ttrc.create_date DESC LIMIT #{size,jdbcType=INTEGER}
10
+  </select>
11
+
12
+    <select id="selectByTicketRecordId" parameterType="com.huiju.estateagents.property.model.TpTicketRecord" resultType="com.huiju.estateagents.property.model.TpTicketRecordComment" >
13
+        SELECT
14
+         *
15
+        FROM
16
+        tp_ticket_record_comment
17
+        WHERE
18
+        community_id = #{communityId,jdbcType=INTEGER}
19
+        AND ticket_id = #{ticketId,jdbcType=INTEGER}
20
+        AND ticket_record_id = #{id,jdbcType=INTEGER}
21
+    </select>
5
 </mapper>
22
 </mapper>

+ 19
- 0
src/main/resources/mapper/property/TpTicketRecordMapper.xml Parādīt failu

39
         WHERE code= #{status,jdbcType=INTEGER}
39
         WHERE code= #{status,jdbcType=INTEGER}
40
           and group_id = 1
40
           and group_id = 1
41
     </select>
41
     </select>
42
+
43
+    <select id="getTicketRecordByTicketId" resultType="com.huiju.estateagents.property.model.TpTicketRecord">
44
+    SELECT
45
+        t.id,
46
+        t.status,
47
+        t.ticket_id AS ticketId,
48
+        t.community_id AS communityId,
49
+        t.content AS content,
50
+        t.create_date AS createDate,
51
+        d.NAME AS ticketStatusName
52
+    FROM
53
+        tp_ticket_record t
54
+        LEFT JOIN sys_dictionary d ON t.STATUS = d.CODE
55
+        AND d.group_id = ( SELECT id FROM sys_dictionary WHERE CODE = "ticket_status" )
56
+    WHERE
57
+        community_id = #{communityId,jdbcType=INTEGER}
58
+        AND ticket_id = #{ticketId,jdbcType=INTEGER}
59
+    order by t.status
60
+  </select>
42
 </mapper>
61
 </mapper>