Jelajahi Sumber

***********************WX*****************************
关系调整

张维新 4 tahun lalu
induk
melakukan
0c0bbd5b8a

+ 3 - 0
datacenter/src/main/kotlin/com/persagy/server/services/relation_calc/RelationCalcService.kt

@@ -350,6 +350,7 @@ open class RelationCalcService {
                 val entity = relationTypeProjectservice.select(SFilter.eq("projectId", projectId), SFilter.eq("relationType", "eq2sp_in"), SFilter.eq("zoneType",tables!!)).entity()
                 val entity = relationTypeProjectservice.select(SFilter.eq("projectId", projectId), SFilter.eq("relationType", "eq2sp_in"), SFilter.eq("zoneType",tables!!)).entity()
                 if (entity!=null){
                 if (entity!=null){
                     entity.computationalState = 3
                     entity.computationalState = 3
+                    entity.computingTime = IdUtils.time()
                     relationTypeProjectservice.update(entity)
                     relationTypeProjectservice.update(entity)
                 }
                 }
             } catch (e: Exception) {
             } catch (e: Exception) {
@@ -365,6 +366,7 @@ open class RelationCalcService {
                     val entity = relationTypeProjectservice.select(SFilter.eq("projectId", projectId), SFilter.eq("relationType", "eq2sp_in"), SFilter.eq("zoneType",tables!!)).entity()
                     val entity = relationTypeProjectservice.select(SFilter.eq("projectId", projectId), SFilter.eq("relationType", "eq2sp_in"), SFilter.eq("zoneType",tables!!)).entity()
                     if (entity!=null){
                     if (entity!=null){
                         entity.computationalState = 1
                         entity.computationalState = 1
+                        entity.computingTime = IdUtils.time()
                         relationTypeProjectservice.update(entity)
                         relationTypeProjectservice.update(entity)
                     }
                     }
                 } catch (e: Exception) {
                 } catch (e: Exception) {
@@ -377,6 +379,7 @@ open class RelationCalcService {
                 val entity = relationTypeProjectservice.select(SFilter.eq("projectId", projectId), SFilter.eq("relationType", "eq2sp_in"), SFilter.eq("zoneType",tables!!)).entity()
                 val entity = relationTypeProjectservice.select(SFilter.eq("projectId", projectId), SFilter.eq("relationType", "eq2sp_in"), SFilter.eq("zoneType",tables!!)).entity()
                 if (entity!=null){
                 if (entity!=null){
                     entity.computationalState = 5
                     entity.computationalState = 5
+                    entity.computingTime = IdUtils.time()
                     relationTypeProjectservice.update(entity)
                     relationTypeProjectservice.update(entity)
                 }
                 }
             }
             }