to_char

to_date(to_char(to_date(#{conds.currentTime,jdbcType=VARCHAR},'YYYY-MM-DD hh24:mi:ss'),'hh24:mi:ss'),'hh24:mi:ss')

to_data里面直接写'2017-04-04'的格式

在to_char中写会报错

上面是截取时间的意思

string 转jsonObject

String jsonStr = urlUtil.getData(url);
JsonObject json = new JsonParser().parse(jsonStr).getAsJsonObject();

原文地址:https://www.cnblogs.com/Baronboy/p/7472980.html