|
@@ -1,21 +1,21 @@
|
1
|
1
|
package com.huiju.welcome.controller;
|
2
|
2
|
|
3
|
3
|
|
|
4
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
5
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
4
|
6
|
import com.huiju.welcome.common.base.BaseController;
|
5
|
7
|
import com.huiju.welcome.common.base.ResponseBean;
|
6
|
8
|
import com.huiju.welcome.model.TaCustomer;
|
7
|
9
|
import com.huiju.welcome.model.TaCustomerTransfer;
|
|
10
|
+import com.huiju.welcome.model.TdGoodsType;
|
8
|
11
|
import com.huiju.welcome.service.ITaCustomerService;
|
9
|
12
|
import com.huiju.welcome.service.ITaCustomerTransferService;
|
|
13
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
14
|
+import io.swagger.annotations.ApiOperation;
|
10
|
15
|
import org.slf4j.Logger;
|
11
|
16
|
import org.slf4j.LoggerFactory;
|
12
|
17
|
import org.springframework.beans.factory.annotation.Autowired;
|
13
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
14
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
15
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
16
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
17
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
18
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
18
|
+import org.springframework.web.bind.annotation.*;
|
19
|
19
|
|
20
|
20
|
import java.time.LocalDateTime;
|
21
|
21
|
|
|
@@ -125,4 +125,21 @@ public class TaCustomerTransferController extends BaseController {
|
125
|
125
|
}
|
126
|
126
|
return responseBean;
|
127
|
127
|
}
|
|
128
|
+
|
|
129
|
+ @ApiOperation(value = "人员流转记录", notes = "人员流转记录")
|
|
130
|
+ @ApiImplicitParams({
|
|
131
|
+ })
|
|
132
|
+ @RequestMapping(value = "/taCustomerTransfer", method = RequestMethod.GET)
|
|
133
|
+ public ResponseBean customerTransferList(@RequestParam(defaultValue = "1") int pageNum,
|
|
134
|
+ @RequestParam(defaultValue = "10") int pageSize,
|
|
135
|
+ @RequestParam(value = "fromUserName",required = false) String fromUserName,
|
|
136
|
+ @RequestParam(value = "fromUserId",required = false) Integer fromUserId,
|
|
137
|
+ @RequestParam(value = "toUserName",required = false) String toUserName,
|
|
138
|
+ @RequestParam(value = "toUserId",required = false) Integer toUserId) {
|
|
139
|
+ IPage<TaCustomerTransfer> pg = new Page<>(pageNum, pageSize);
|
|
140
|
+
|
|
141
|
+ ResponseBean userManagement= iTaCustomerTransferService.customerTransferList(pg,fromUserName,fromUserId,toUserName,toUserId);
|
|
142
|
+
|
|
143
|
+ return userManagement;
|
|
144
|
+ }
|
128
|
145
|
}
|