Sfoglia il codice sorgente

修改 推送项目

tags/24080901
PoffyZhang 1 anno fa
parent
commit
34236abeb4
2 ha cambiato i file con 12 aggiunte e 9 eliminazioni
  1. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java
  2. +9
    -9
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java Vedi File

@@ -312,6 +312,7 @@ public class ProjectConvert {
req.setBaseProjAmountOri(apply.getBaseProjAmountOri());
req.setBaseProjRemark(apply.getBaseProjRemark());
req.setBeseExpectedResults(apply.getBeseExpectedResults());
req.setBaseProjBasis(apply.getBaseProjBasis());
return req;
}

@@ -352,6 +353,7 @@ public class ProjectConvert {
req.setBaseProjAmountOri(apply.getBaseProjAmountOri());
req.setBaseProjRemark(apply.getBaseProjRemark());
req.setBeseExpectedResults(apply.getBeseExpectedResults());
req.setBaseProjBasis(apply.getBaseProjBasis());
return req;
}

@@ -397,6 +399,7 @@ public class ProjectConvert {
req.setBaseProjAmountOri(apply.getBaseProjAmountOri());
req.setBaseProjRemark(apply.getBaseProjRemark());
req.setBeseExpectedResults(apply.getBeseExpectedResults());
req.setBaseProjBasis(apply.getBaseProjBasis());
return req;
}



+ 9
- 9
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java Vedi File

@@ -68,15 +68,15 @@ public class SynProjectCollectionTask {
*/
@Scheduled(cron = "0 0 1 * * ?")
public void doTask() throws UnknownHostException {
// if (!HOST.equals(InetAddress.getLocalHost().getHostName())) {
// log.info("定时器没开启或者host不对! {}:{}",
// HOST,InetAddress.getLocalHost().getHostName());
// return
// }
// if(BizConst.PRE.equals(active)){
// log.info("预发环境不用同步!");
// return;
// }
if (!HOST.equals(InetAddress.getLocalHost().getHostName())) {
log.info("定时器没开启或者host不对! {}:{}",
HOST,InetAddress.getLocalHost().getHostName());
return;
}
if(BizConst.PRE.equals(active)){
log.info("预发环境不用同步!");
return;
}

StopWatch stopWatch = new StopWatch();
stopWatch.start();


Loading…
Annulla
Salva