Compare commits

..

No commits in common. 'f8bcdf13613eacd99d4fcf845ccce540493e39bc' and '4a0393942961de317de66747e1187488b3253c1b' have entirely different histories.

@ -86,7 +86,7 @@ public class SolarenergyService {
//处理时间,如果不为空,则为预测指定日期太阳辐射值,否则为计算当前时间太阳辐射值
Calendar calendar = Calendar.getInstance();
if (!StringUtils.isEmpty(time) && !time.equals("")){
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
calendar.setTime(simpleDateFormat.parse(time));
} catch (Exception e) {

Loading…
Cancel
Save