Pārlūkot izejas kodu

修改 推送项目

tags/24080901
PoffyZhang pirms 1 gada
vecāks
revīzija
34236abeb4
2 mainītis faili ar 12 papildinājumiem un 9 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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();


Notiek ielāde…
Atcelt
Saglabāt