Browse Source

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

张维新 4 years ago
parent
commit
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()
                 if (entity!=null){
                     entity.computationalState = 3
+                    entity.computingTime = IdUtils.time()
                     relationTypeProjectservice.update(entity)
                 }
             } 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()
                     if (entity!=null){
                         entity.computationalState = 1
+                        entity.computingTime = IdUtils.time()
                         relationTypeProjectservice.update(entity)
                     }
                 } 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()
                 if (entity!=null){
                     entity.computationalState = 5
+                    entity.computingTime = IdUtils.time()
                     relationTypeProjectservice.update(entity)
                 }
             }