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();

posted @ 2017-09-04 12:03  余***龙  阅读(173)  评论(0编辑  收藏  举报