xiewj 2 tahun lalu
induk
melakukan
ab32780ba7

+ 2 - 0
src/main/java/com/fdkk/bim/service/impl/IntegralInfoServiceImpl.java

@@ -1,5 +1,6 @@
 package com.fdkk.bim.service.impl;
 
+import cn.hutool.core.date.DateTime;
 import cn.hutool.core.date.DateUnit;
 import cn.hutool.core.date.DateUtil;
 import cn.hutool.core.util.NumberUtil;
@@ -57,6 +58,7 @@ public class IntegralInfoServiceImpl extends ServiceImpl<IntegralInfoMapper, Int
                 dto.setText(new DingTalkTextDTO("BIM:广联达剩余积分小于"+bimConfig.getMixIntegral()+"剩余积分:"+i));
                 dingTalkClient.pushData(dto);
                 integralInfoEntity =new IntegralInfoEntity();
+                integralInfoEntity.setUpdateTime(new DateTime());
                 integralInfoEntity.setIntegral(i);
                 integralInfoEntity.setPushCount(1);
                 save(integralInfoEntity);

+ 2 - 1
startJar.sh

@@ -3,6 +3,7 @@ APP_DEBUG=
 APP_DUMPlOG=/mnt/fdkk_bim/logs/heapdump/heapdump.log
 date=`date`
 path=$(pwd)
+source /etc/profile
 
 
 usage() {
@@ -19,7 +20,7 @@ checkEnv(){
                         echo "prod config"
                         APP_NAME=fdkk-bim-prod.jar
                         APP_DEBUG=5527
-                      elif  [[ $1 = 'uat' ]] ; then
+          elif  [[ $1 = 'uat' ]] ; then
                         echo "uat config"
                         APP_NAME=fdkk-bim-uat.jar
                         APP_DEBUG=5522