发表于: 2017-12-29 22:09:22

1 550


今天完成的事情:

今天主要还是和前端以前测接口调接口,还有漏掉的接口都得补一下,工作量还是蛮大的

使用的sql的统计函数,但是了解了一下,说尽量不要用,会影响数据库性能,不符合三层架构模式

try {
moneyPriceSQL="SELECT SUM(moneyPrice) AS moneyPrice FROM period GROUP BY belongId="+orderId+",belong="+belong;
starPriceSQL="SELECT SUM(starPrice) AS starPrice FROM period GROUP BY belongId="+orderId+",belong="+0;
rowSet1 = jdbcTemplate.queryForRowSet(moneyPriceSQL);
rowSet2 = jdbcTemplate.queryForRowSet(starPriceSQL);
while (rowSet1.next()) {
map.put("moneyPrice",rowSet1.getBigDecimal("moneyPrice"));
}
while (rowSet2.next()) {
map.put("starPrice", rowSet2.getInt("starPrice"));
}


明天计划完成的事情:

明天写一下定时任务

遇到的问题:

今天写了一个接口,千疮百孔,改到吐血

收获:学习前后端合作



返回列表 返回列表
评论

    分享到