Ver código fonte

新拍场景默认是已支付状态,补拍、重算的场景,支付状态无需改变

dengsixing 1 ano atrás
pai
commit
a7301a2d6d

+ 5 - 1
src/main/java/com/fdkankan/contro/mq/service/impl/BuildSceneServiceImpl.java

@@ -261,7 +261,11 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
             Integer cameraType = Integer.parseInt(message.getBuildContext().get("cameraType").toString());
             Integer cameraType = Integer.parseInt(message.getBuildContext().get("cameraType").toString());
             Map<String, String> uploadFiles = getUploadFiles(scenePlus,path,cameraType,fdageData);
             Map<String, String> uploadFiles = getUploadFiles(scenePlus,path,cameraType,fdageData);
 
 
-            scenePlus.setPayStatus(PayStatus.PAY.code());
+            String rebuild = message.getRebuild();
+            //新拍场景默认是已支付状态,补拍、重算的场景,支付状态无需改变
+            if("0".equals(rebuild)){
+                scenePlus.setPayStatus(PayStatus.PAY.code());
+            }
             scenePlus.setUpdateTime(new Date());
             scenePlus.setUpdateTime(new Date());
             scenePlus.setSceneStatus(SceneStatus.NO_DISPLAY.code());
             scenePlus.setSceneStatus(SceneStatus.NO_DISPLAY.code());