|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.uas.platform.b2c.prod.product.common.dao.CommonCountDao;
|
|
import com.uas.platform.b2c.prod.product.common.dao.CommonCountDao;
|
|
|
import com.uas.platform.b2c.prod.product.common.model.CommonCount;
|
|
import com.uas.platform.b2c.prod.product.common.model.CommonCount;
|
|
|
import com.uas.platform.core.util.HttpUtil;
|
|
import com.uas.platform.core.util.HttpUtil;
|
|
|
|
|
+import java.util.Date;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
@@ -49,6 +50,7 @@ public class CommonTask {
|
|
|
// 默认,通过执行SQL语句获取数据结果
|
|
// 默认,通过执行SQL语句获取数据结果
|
|
|
commonCount.setCount(jdbcTemplate.queryForObject(commonCount.getSql(), Double.class));
|
|
commonCount.setCount(jdbcTemplate.queryForObject(commonCount.getSql(), Double.class));
|
|
|
}
|
|
}
|
|
|
|
|
+ commonCount.setUpdateTime(new Date());
|
|
|
}
|
|
}
|
|
|
commonCountDao.save(commonCounts);
|
|
commonCountDao.save(commonCounts);
|
|
|
}
|
|
}
|