|
@@ -1,6 +1,7 @@
|
1
|
1
|
package com.huiju.estateagents.property.service.impl;
|
2
|
2
|
import com.alibaba.fastjson.JSONArray;
|
3
|
3
|
import com.alibaba.fastjson.JSONObject;
|
|
4
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
4
|
5
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
5
|
6
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
6
|
7
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -1104,4 +1105,24 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
|
1104
|
1105
|
response.addSuccess("成功");
|
1105
|
1106
|
return response;
|
1106
|
1107
|
}
|
|
1108
|
+
|
|
1109
|
+ /**
|
|
1110
|
+ * 获取维修人员的工单列表
|
|
1111
|
+ *
|
|
1112
|
+ * @param pageNum
|
|
1113
|
+ * @param pageSize
|
|
1114
|
+ * @param userId
|
|
1115
|
+ * @param orgId
|
|
1116
|
+ * @return
|
|
1117
|
+ */
|
|
1118
|
+ @Override
|
|
1119
|
+ public ResponseBean getWorkerList(Integer pageNum, Integer pageSize, Integer userId, Integer orgId) {
|
|
1120
|
+ IPage<TpTicket> page = new Page<>(pageNum,pageSize);
|
|
1121
|
+ LambdaQueryWrapper<TpTicket> tpTicketLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
1122
|
+ tpTicketLambdaQueryWrapper.eq(TpTicket::getOrgId,orgId);
|
|
1123
|
+ tpTicketLambdaQueryWrapper.eq(TpTicket::getTpUserId,userId);
|
|
1124
|
+ tpTicketLambdaQueryWrapper.orderByDesc(TpTicket::getCreateDate);
|
|
1125
|
+ IPage<TpTicket> tpTicketIPage = tpTicketMapper.selectPage(page, tpTicketLambdaQueryWrapper);
|
|
1126
|
+ return ResponseBean.success(tpTicketIPage);
|
|
1127
|
+ }
|
1107
|
1128
|
}
|