| 
						
						
						
					 | 
					 | 
					@ -1,23 +1,30 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					package com.glxp.api.controller.inv;
 | 
					 | 
					 | 
					 | 
					package com.glxp.api.controller.inv;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import cn.hutool.core.exceptions.ExceptionUtil;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import cn.hutool.core.thread.ThreadUtil;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 | 
					 | 
					 | 
					 | 
					import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.github.pagehelper.PageInfo;
 | 
					 | 
					 | 
					 | 
					import com.github.pagehelper.PageInfo;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.common.res.BaseResponse;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.common.res.BaseResponse;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.common.util.ResultVOUtils;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.common.util.ResultVOUtils;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.glxp.api.constant.BasicExportTypeEnum;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.constant.Constant;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.constant.Constant;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.constant.DeviceStatus;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.constant.DeviceStatus;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.entity.inv.DeviceInspectTaskDetailEntity;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.entity.inv.DeviceInspectTaskDetailEntity;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.entity.inv.DeviceInspectTaskEntity;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.entity.inv.DeviceInspectTaskEntity;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.glxp.api.entity.system.SyncDataSetEntity;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.http.sync.SpGetHttpClient;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.http.sync.SpGetHttpClient;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.req.inv.FilterDeviceInspectTakeRequest;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.req.inv.FilterDeviceInspectTakeRequest;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.res.inv.DeviceInspectTakeResponse;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.res.inv.DeviceInspectTakeResponse;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.res.sync.SpsSyncDeviceTakeResponse;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.res.sync.SpsSyncDeviceTakeResponse;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.service.inv.DeviceInspectTaskDetailService;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.service.inv.DeviceInspectTaskDetailService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.service.inv.DeviceInspectTaskService;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.service.inv.DeviceInspectTaskService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.glxp.api.service.sync.HeartService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.glxp.api.service.sync.SyncDataSetService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.util.GennerOrderUtils;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.util.GennerOrderUtils;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.util.OkHttpCli;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.util.OkHttpCli;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.util.OrderNoTypeBean;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.util.OrderNoTypeBean;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j;
 | 
					 | 
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.apache.commons.lang3.exception.ExceptionUtils;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.GetMapping;
 | 
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.GetMapping;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.PostMapping;
 | 
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.PostMapping;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.RequestBody;
 | 
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.RequestBody;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -56,18 +63,19 @@ public class DeviceInspectTakeController {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        PageInfo<DeviceInspectTakeResponse> pageInfo = new PageInfo<>(list);
 | 
					 | 
					 | 
					 | 
					        PageInfo<DeviceInspectTakeResponse> pageInfo = new PageInfo<>(list);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return ResultVOUtils.page(pageInfo);
 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.page(pageInfo);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/uploadDeviceInspecTake")
 | 
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/uploadDeviceInspecTake")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse uploadDeviceInspecTake(@RequestBody DeviceInspectTaskEntity deviceInspectTaskEntity) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse uploadDeviceInspecTake(@RequestBody DeviceInspectTaskEntity deviceInspectTaskEntity) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        deviceInspectTaskEntity.setUpdateTime(new Date());
 | 
					 | 
					 | 
					 | 
					        deviceInspectTaskEntity.setUpdateTime(new Date());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if(deviceInspectTaskEntity.getStatus() == DeviceStatus.DEVICE_STATUS_TEMP_DURINGINSPECTTION){
 | 
					 | 
					 | 
					 | 
					        if (deviceInspectTaskEntity.getStatus() == DeviceStatus.DEVICE_STATUS_TEMP_DURINGINSPECTTION) {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            deviceInspectTaskEntity.setStrartTime(new Date());
 | 
					 | 
					 | 
					 | 
					            deviceInspectTaskEntity.setStrartTime(new Date());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }else if (deviceInspectTaskEntity.getStatus() == DeviceStatus.DEVICE_STATUS_TEMP_INSPECTED){
 | 
					 | 
					 | 
					 | 
					        } else if (deviceInspectTaskEntity.getStatus() == DeviceStatus.DEVICE_STATUS_TEMP_INSPECTED) {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            deviceInspectTaskEntity.setEndTime(new Date());
 | 
					 | 
					 | 
					 | 
					            deviceInspectTaskEntity.setEndTime(new Date());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        boolean falg=deviceInspectTaskService.updateById(deviceInspectTaskEntity);
 | 
					 | 
					 | 
					 | 
					        boolean falg = deviceInspectTaskService.updateById(deviceInspectTaskEntity);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        UploadDeviceTake(deviceInspectTaskEntity.getId(),2);
 | 
					 | 
					 | 
					 | 
					        UploadDeviceTake(deviceInspectTaskEntity.getId(), 2);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if(!falg){
 | 
					 | 
					 | 
					 | 
					        if (!falg) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999,"更新失败");
 | 
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999, "更新失败");
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -75,53 +83,65 @@ public class DeviceInspectTakeController {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/uploadDeviceTake")
 | 
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/uploadDeviceTake")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse uploadDeviceTake(@RequestBody DeviceInspectTaskEntity deviceInspectTaskEntity) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse uploadDeviceTake(@RequestBody DeviceInspectTaskEntity deviceInspectTaskEntity) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        deviceInspectTaskEntity.setUpdateTime(new Date());
 | 
					 | 
					 | 
					 | 
					        deviceInspectTaskEntity.setUpdateTime(new Date());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        boolean falg=deviceInspectTaskService.updateById(deviceInspectTaskEntity);
 | 
					 | 
					 | 
					 | 
					        boolean falg = deviceInspectTaskService.updateById(deviceInspectTaskEntity);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if(deviceInspectTaskEntity.getStatus() == 2){
 | 
					 | 
					 | 
					 | 
					        if (deviceInspectTaskEntity.getStatus() == 2) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            UploadDeviceTake(deviceInspectTaskEntity.getId(),1);
 | 
					 | 
					 | 
					 | 
					            UploadDeviceTake(deviceInspectTaskEntity.getId(), 1);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if(!falg){
 | 
					 | 
					 | 
					 | 
					        if (!falg) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999,"更新失败");
 | 
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999, "更新失败");
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/addDeviceInspecTake")
 | 
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/addDeviceInspecTake")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse addDeviceInspecTake(@RequestBody  DeviceInspectTaskEntity deviceInspectTaskEntity) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse addDeviceInspecTake(@RequestBody DeviceInspectTaskEntity deviceInspectTaskEntity) {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        String orderId = gennerOrderUtils.createStOrderNo(new OrderNoTypeBean(Constant.DEVICE_INSPECT_PLAN_ORDER, "yyyyMMdd"));
 | 
					 | 
					 | 
					 | 
					        String orderId = gennerOrderUtils.createStOrderNo(new OrderNoTypeBean(Constant.DEVICE_INSPECT_PLAN_ORDER, "yyyyMMdd"));
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        deviceInspectTaskEntity.setOrderId(orderId);
 | 
					 | 
					 | 
					 | 
					        deviceInspectTaskEntity.setOrderId(orderId);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        deviceInspectTaskEntity.setCreateTime(new Date());
 | 
					 | 
					 | 
					 | 
					        deviceInspectTaskEntity.setCreateTime(new Date());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					         deviceInspectTaskService.addDeviceInspectTask(deviceInspectTaskEntity);
 | 
					 | 
					 | 
					 | 
					        deviceInspectTaskService.addDeviceInspectTask(deviceInspectTaskEntity);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					         return ResultVOUtils.success(deviceInspectTaskEntity);
 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.success(deviceInspectTaskEntity);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/delectDeviceInspecTake")
 | 
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/delectDeviceInspecTake")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse delectDeviceInspecTake(@RequestBody  DeviceInspectTaskEntity deviceInspectTaskEntity) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse delectDeviceInspecTake(@RequestBody DeviceInspectTaskEntity deviceInspectTaskEntity) {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        deviceInspectTaskService.delectDeviceInspectTask(deviceInspectTaskEntity);
 | 
					 | 
					 | 
					 | 
					        deviceInspectTaskService.delectDeviceInspectTask(deviceInspectTaskEntity);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        deviceInspectTaskDetailService.remove(new QueryWrapper<DeviceInspectTaskDetailEntity>().eq("taskOrderIdFk",deviceInspectTaskEntity.getOrderId()));
 | 
					 | 
					 | 
					 | 
					        deviceInspectTaskDetailService.remove(new QueryWrapper<DeviceInspectTaskDetailEntity>().eq("taskOrderIdFk", deviceInspectTaskEntity.getOrderId()));
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        UploadDeviceTake(deviceInspectTaskEntity.getId(),3);
 | 
					 | 
					 | 
					 | 
					        UploadDeviceTake(deviceInspectTaskEntity.getId(), 3);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return ResultVOUtils.success(deviceInspectTaskEntity);
 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.success(deviceInspectTaskEntity);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    void UploadDeviceTake(Integer id,Integer type){
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //提交上传到自助
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //查询任务表
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        DeviceInspectTaskEntity deviceInspectTaskEntity=deviceInspectTaskService.getById(id);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        List<DeviceInspectTaskDetailEntity> deviceInspectTaskDetailEntityList = deviceInspectTaskDetailService
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                .list(new QueryWrapper<DeviceInspectTaskDetailEntity>().eq("taskOrderIdFk",deviceInspectTaskEntity.getOrderId()));
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        SpsSyncDeviceTakeResponse spsSyncDeviceTakeResponse=new SpsSyncDeviceTakeResponse();
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        spsSyncDeviceTakeResponse.setDeviceInspectTaskEntity(deviceInspectTaskEntity);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        spsSyncDeviceTakeResponse.setDeviceInspectTaskDetailEntityList(deviceInspectTaskDetailEntityList);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        spsSyncDeviceTakeResponse.setType(type);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        spGetHttpClient.postAllDeviceTake(spsSyncDeviceTakeResponse);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    @Resource
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    HeartService heartService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    @Resource
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    SyncDataSetService syncDataSetService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    void UploadDeviceTake(Integer id, Integer type) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        //提交上传到自助
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        //查询任务表
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					//        DeviceInspectTaskEntity deviceInspectTaskEntity = deviceInspectTaskService.getById(id);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					//        List<DeviceInspectTaskDetailEntity> deviceInspectTaskDetailEntityList = deviceInspectTaskDetailService
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					//                .list(new QueryWrapper<DeviceInspectTaskDetailEntity>().eq("taskOrderIdFk", deviceInspectTaskEntity.getOrderId()));
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					//        SpsSyncDeviceTakeResponse spsSyncDeviceTakeResponse = new SpsSyncDeviceTakeResponse();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					//        spsSyncDeviceTakeResponse.setDeviceInspectTaskEntity(deviceInspectTaskEntity);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					//        spsSyncDeviceTakeResponse.setDeviceInspectTaskDetailEntityList(deviceInspectTaskDetailEntityList);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					//        spsSyncDeviceTakeResponse.setType(type);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					//        spGetHttpClient.postAllDeviceTake(spsSyncDeviceTakeResponse);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        SyncDataSetEntity syncDataSetEntity = syncDataSetService.findSet();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        ThreadUtil.execAsync(() -> {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            try {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                heartService.pushData(syncDataSetEntity, null, BasicExportTypeEnum.DEVICE_TASK);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            } catch (Exception e) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                log.error(ExceptionUtils.getStackTrace(e));
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                e.printStackTrace();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        });
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    //------------------------------------------ 详情方法--------------------------------------------------------------//
 | 
					 | 
					 | 
					 | 
					    //------------------------------------------ 详情方法--------------------------------------------------------------//
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -132,21 +152,21 @@ public class DeviceInspectTakeController {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/detail/uploadDeviceInspecTakeDetail")
 | 
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/detail/uploadDeviceInspecTakeDetail")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse uploadDeviceInspecTakeDetail(@RequestBody  DeviceInspectTaskDetailEntity deviceInspectTaskDetailEntity) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse uploadDeviceInspecTakeDetail(@RequestBody DeviceInspectTaskDetailEntity deviceInspectTaskDetailEntity) {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        deviceInspectTaskDetailEntity.setUpdateTime(new Date());
 | 
					 | 
					 | 
					 | 
					        deviceInspectTaskDetailEntity.setUpdateTime(new Date());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					       boolean falg=deviceInspectTaskDetailService.uploadDeviceInspecTakeDetail(deviceInspectTaskDetailEntity);
 | 
					 | 
					 | 
					 | 
					        boolean falg = deviceInspectTaskDetailService.uploadDeviceInspecTakeDetail(deviceInspectTaskDetailEntity);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					       if(!falg){
 | 
					 | 
					 | 
					 | 
					        if (!falg) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					           return ResultVOUtils.error(999,"更新失败");
 | 
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999, "更新失败");
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					       }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/detail/addDeviceInspecTakeDetail")
 | 
					 | 
					 | 
					 | 
					    @PostMapping("/udiwms/inv/device/inspect/take/detail/addDeviceInspecTakeDetail")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse addDeviceInspecTakeDetail(@RequestBody  DeviceInspectTaskDetailEntity deviceInspectTaskDetailEntity) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse addDeviceInspecTakeDetail(@RequestBody DeviceInspectTaskDetailEntity deviceInspectTaskDetailEntity) {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        boolean falg=deviceInspectTaskDetailService.addDeviceInspectTaskDelect(deviceInspectTaskDetailEntity);
 | 
					 | 
					 | 
					 | 
					        boolean falg = deviceInspectTaskDetailService.addDeviceInspectTaskDelect(deviceInspectTaskDetailEntity);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if(!falg){
 | 
					 | 
					 | 
					 | 
					        if (!falg) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999,"更新失败");
 | 
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999, "更新失败");
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -154,13 +174,12 @@ public class DeviceInspectTakeController {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @GetMapping("/udiwms/inv/device/inspect/take/detail/delectDeviceInspecTakeDetail")
 | 
					 | 
					 | 
					 | 
					    @GetMapping("/udiwms/inv/device/inspect/take/detail/delectDeviceInspecTakeDetail")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse delecttDeviceInspecTakeDetail(String id) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse delecttDeviceInspecTakeDetail(String id) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        boolean falg=deviceInspectTaskDetailService.removeById(id);
 | 
					 | 
					 | 
					 | 
					        boolean falg = deviceInspectTaskDetailService.removeById(id);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if(!falg){
 | 
					 | 
					 | 
					 | 
					        if (!falg) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999,"删除失败");
 | 
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(999, "删除失败");
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.success();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
 
 |