|
@@ -2,6 +2,7 @@ package com.fdkankan.sale.service.impl;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
@@ -115,8 +116,18 @@ public class RepairSaleService {
|
|
|
|
|
|
Repair repair = new Repair();
|
|
|
BeanUtils.copyProperties(param,repair);
|
|
|
+
|
|
|
+ Boolean flag = false;
|
|
|
+ List<List<Integer>> faultIds = param.getFaultIds();
|
|
|
+ for (List<Integer> list : faultIds) {
|
|
|
+ if(list.contains(6)){
|
|
|
+ flag = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ repair.setDictIds(JSONArray.parseArray(JSONObject.toJSONString(faultIds)));
|
|
|
+
|
|
|
repair.setCameraType(4);
|
|
|
- if(StringUtils.isNotBlank(param.getCameraSnCode())){
|
|
|
+ if(flag && StringUtils.isNotBlank(param.getCameraSnCode())){
|
|
|
Camera camera = cameraService.getBySnCode(param.getCameraSnCode());
|
|
|
if(camera == null){
|
|
|
throw new BusinessException(ResultCode.CAMERA_SN_NOT_EXITS);
|