|
@@ -7,6 +7,7 @@ import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.aspose.cells.*;
|
|
import com.aspose.cells.*;
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.rongwei.bscommon.sys.config.api.ResponseVO;
|
|
import com.rongwei.bscommon.sys.config.api.ResponseVO;
|
|
import com.rongwei.bscommon.sys.dao.LuckysheetDao;
|
|
import com.rongwei.bscommon.sys.dao.LuckysheetDao;
|
|
@@ -15,12 +16,9 @@ import com.rongwei.bscommon.sys.service.*;
|
|
import com.rongwei.bscommon.sys.utils.LuckySheet4SummaryHelp;
|
|
import com.rongwei.bscommon.sys.utils.LuckySheet4SummaryHelp;
|
|
import com.rongwei.bscommon.sys.utils.ProjectSummaryExcelHelp;
|
|
import com.rongwei.bscommon.sys.utils.ProjectSummaryExcelHelp;
|
|
import com.rongwei.bscommon.sys.utils.XlsSheetUtil;
|
|
import com.rongwei.bscommon.sys.utils.XlsSheetUtil;
|
|
-import com.rongwei.bsentity.domain.ZhcxProjectDeviceNumberDo;
|
|
|
|
-import com.rongwei.bsentity.domain.ZhcxProjectManageDo;
|
|
|
|
|
|
+import com.rongwei.bsentity.domain.*;
|
|
import com.rongwei.bscommon.sys.dao.ZhcxProjectManageDao;
|
|
import com.rongwei.bscommon.sys.dao.ZhcxProjectManageDao;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
-import com.rongwei.bsentity.domain.ZhcxProjectRectifyDo;
|
|
|
|
-import com.rongwei.bsentity.domain.ZhcxProjectRectifyMachineDo;
|
|
|
|
import com.rongwei.bsentity.dto.RectifyDto;
|
|
import com.rongwei.bsentity.dto.RectifyDto;
|
|
import com.rongwei.bsentity.dto.RectifyMachineDto;
|
|
import com.rongwei.bsentity.dto.RectifyMachineDto;
|
|
import com.rongwei.bsentity.dto.RectifyReportDto;
|
|
import com.rongwei.bsentity.dto.RectifyReportDto;
|
|
@@ -84,6 +82,10 @@ public class ZhcxProjectManageServiceImpl extends ServiceImpl<ZhcxProjectManageD
|
|
private ZhcxProjectManageDao zhcxProjectManageDao;
|
|
private ZhcxProjectManageDao zhcxProjectManageDao;
|
|
@Autowired
|
|
@Autowired
|
|
private LuckySheetService luckySheetFeignService;
|
|
private LuckySheetService luckySheetFeignService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ZhcxProjectManageRectifyBatchService projectManageRectifyBatchService;
|
|
|
|
+
|
|
|
|
+
|
|
private static final Color[] COLORS = {Color.fromArgb(255, 255, 204),
|
|
private static final Color[] COLORS = {Color.fromArgb(255, 255, 204),
|
|
Color.fromArgb(210, 242, 210),
|
|
Color.fromArgb(210, 242, 210),
|
|
Color.fromArgb(255, 252, 213, 180),
|
|
Color.fromArgb(255, 252, 213, 180),
|
|
@@ -1076,9 +1078,19 @@ public class ZhcxProjectManageServiceImpl extends ServiceImpl<ZhcxProjectManageD
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
private SaveSummaryDataBo assembleSaveSummaryDataParam(SavePorjectSummaryDto dto) {
|
|
private SaveSummaryDataBo assembleSaveSummaryDataParam(SavePorjectSummaryDto dto) {
|
|
- //机号列表
|
|
|
|
- List<ZhcxProjectDeviceNumberDo> deviceNumList = projectDeviceNumberService.getByProjectId(dto.getProjectId());
|
|
|
|
|
|
+
|
|
|
|
+ List<ZhcxProjectDeviceNumberDo> deviceNumList = null;
|
|
Map<String, ZhcxProjectDeviceNumberDo> deviceNumMap = new LinkedHashMap<>();
|
|
Map<String, ZhcxProjectDeviceNumberDo> deviceNumMap = new LinkedHashMap<>();
|
|
|
|
+ //机号列表
|
|
|
|
+ if(ObjectUtil.isNotEmpty(dto.getBatchId())) {
|
|
|
|
+ ZhcxProjectManageRectifyBatchDo batchDo = projectManageRectifyBatchService.getById(dto.getBatchId());
|
|
|
|
+ String[] machineIds = batchDo.getMachinenoid().split(",");
|
|
|
|
+ LambdaQueryWrapper<ZhcxProjectDeviceNumberDo> queryWrapper = Wrappers.lambdaQuery();
|
|
|
|
+ queryWrapper.in(ZhcxProjectDeviceNumberDo::getId, Arrays.asList(machineIds));
|
|
|
|
+ deviceNumList = projectDeviceNumberService.list(queryWrapper);
|
|
|
|
+ } else {
|
|
|
|
+ deviceNumList = projectDeviceNumberService.getByProjectId(dto.getProjectId());
|
|
|
|
+ }
|
|
deviceNumList.forEach(item -> deviceNumMap.put(item.getDeviceNumber(), item));
|
|
deviceNumList.forEach(item -> deviceNumMap.put(item.getDeviceNumber(), item));
|
|
|
|
|
|
//组织机构
|
|
//组织机构
|