|
@@ -84,6 +84,7 @@ public class TaDeviceJobController extends BaseController {
|
84
|
84
|
@GetMapping("/device-job/by-org")
|
85
|
85
|
public ResponseBean statis(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
86
|
86
|
@ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
|
|
87
|
+ @ApiParam("合作社ID") @RequestParam(value = "orgId", required = false) String orgId,
|
87
|
88
|
@ApiParam("合作社名称") @RequestParam(value = "orgName", required = false) String orgName,
|
88
|
89
|
@ApiParam("农机名称") @RequestParam(value = "machineryName", required = false) String machineryName,
|
89
|
90
|
@ApiParam("人员名称") @RequestParam(value = "userName", required = false) String userName,
|
|
@@ -96,8 +97,8 @@ public class TaDeviceJobController extends BaseController {
|
96
|
97
|
@ApiParam(value = "结束时间", example = "2022-10-31") @RequestParam(value = "endDate") String endDate) throws Exception {
|
97
|
98
|
|
98
|
99
|
IPage<TaDeviceJob> pg = new Page<>(pageNum, pageSize);
|
99
|
|
- IPage<TaDeviceJob> list = taDeviceJobService.statisOrgBy(pg, orgName, deviceKind, deviceNo, startDate, endDate, machineryName, userName, phone, machineryId, userId);
|
100
|
|
- Double totalArea = taDeviceJobService.statisTotalArea(orgName, deviceKind, deviceNo, startDate, endDate, machineryName, userName, phone, machineryId, userId);
|
|
100
|
+ IPage<TaDeviceJob> list = taDeviceJobService.statisOrgBy(pg, orgId, orgName, deviceKind, deviceNo, startDate, endDate, machineryName, userName, phone, machineryId, userId);
|
|
101
|
+ Double totalArea = taDeviceJobService.statisTotalArea(orgId, orgName, deviceKind, deviceNo, startDate, endDate, machineryName, userName, phone, machineryId, userId);
|
101
|
102
|
|
102
|
103
|
return ResponseBean.success(new HashMap<String, Object>(){{
|
103
|
104
|
put("list", list);
|
|
@@ -119,6 +120,7 @@ public class TaDeviceJobController extends BaseController {
|
119
|
120
|
@ApiOperation("设备作业统计-导出")
|
120
|
121
|
@GetMapping("/device-job/by-org/export")
|
121
|
122
|
public ResponseBean export(@ApiParam("合作社名称") @RequestParam(value = "orgName", required = false) String orgName,
|
|
123
|
+ @ApiParam("合作社ID") @RequestParam(value = "orgId", required = false) String orgId,
|
122
|
124
|
@ApiParam("农机名称") @RequestParam(value = "machineryName", required = false) String machineryName,
|
123
|
125
|
@ApiParam("人员名称") @RequestParam(value = "userName", required = false) String userName,
|
124
|
126
|
@ApiParam("农机ID") @RequestParam(value = "machineryId", required = false) String machineryId,
|
|
@@ -130,7 +132,7 @@ public class TaDeviceJobController extends BaseController {
|
130
|
132
|
@ApiParam(value = "结束时间", example = "2022-10-31") @RequestParam(value = "endDate") String endDate,
|
131
|
133
|
HttpServletResponse response) throws Exception {
|
132
|
134
|
|
133
|
|
- List<TaDeviceJob> list = taDeviceJobService.listOrgBy(orgName, deviceKind, deviceNo, startDate, endDate, machineryName, userName, phone, machineryId, userId);
|
|
135
|
+ List<TaDeviceJob> list = taDeviceJobService.listOrgBy(orgId, orgName, deviceKind, deviceNo, startDate, endDate, machineryName, userName, phone, machineryId, userId);
|
134
|
136
|
|
135
|
137
|
Double total = 0.0;
|
136
|
138
|
if (list != null || list.size() > 0) {
|