|
@@ -7,6 +7,7 @@ import cn.hutool.extra.qrcode.QrCodeUtil;
|
|
|
import cn.hutool.extra.qrcode.QrConfig;
|
|
import cn.hutool.extra.qrcode.QrConfig;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
+import com.fdkankan.common.constant.CommonStatus;
|
|
|
import com.fdkankan.common.constant.SceneSource;
|
|
import com.fdkankan.common.constant.SceneSource;
|
|
|
import com.fdkankan.common.constant.SceneVersionType;
|
|
import com.fdkankan.common.constant.SceneVersionType;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
@@ -61,6 +62,8 @@ public class SceneCopyServiceImpl implements ISceneCopyService {
|
|
|
ISceneMarkShapeService sceneMarkShapeService;
|
|
ISceneMarkShapeService sceneMarkShapeService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ISceneEvidenceService sceneEvidenceService;
|
|
private ISceneEvidenceService sceneEvidenceService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ISceneCopyLogService sceneCopyLogService;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void copyScene(String oldNum, String newNum) {
|
|
public void copyScene(String oldNum, String newNum) {
|
|
@@ -70,6 +73,12 @@ public class SceneCopyServiceImpl implements ISceneCopyService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Integer isCopyScene(String num) {
|
|
|
|
|
+ long count = sceneCopyLogService.count(new LambdaQueryWrapper<SceneCopyLog>().eq(SceneCopyLog::getNewNum, num));
|
|
|
|
|
+ return count > 0 ? CommonStatus.YES.code().intValue() : CommonStatus.NO.code().intValue();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private void cpV4(ScenePlus scenePlus, String oldNum, String newNum) {
|
|
private void cpV4(ScenePlus scenePlus, String oldNum, String newNum) {
|
|
|
try {
|
|
try {
|
|
|
Long plusId = scenePlus.getId();
|
|
Long plusId = scenePlus.getId();
|