瀏覽代碼

修改 推送项目

master
PoffyZhang 1 年之前
父節點
當前提交
34236abeb4
共有 2 個文件被更改,包括 12 次插入9 次删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存