wangzhinan 3 år sedan
förälder
incheckning
2d89a7db23

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/a3service/MedicineOrderService.java

@ -249,7 +249,7 @@ public class MedicineOrderService extends BaseJpaService<Mediicineorder, Mediici
     */
    public  JSONObject sumamount(String beg, String end) throws Exception {
        JSONObject result = new JSONObject();
        String sql = "select count(t.amount) from t_mediicine_order t where t.prescribe_time >= '" + beg + "' and t.prescribe_time <= '" + end + "'";
        String sql = "select sum(t.amount) from t_mediicine_order t where t.prescribe_time >= '" + beg + "' and t.prescribe_time <= '" + end + "'";
        int count = jdbcTemplate.queryForObject(sql,Integer.class);
        Date startDate = DateUtil.strToDateShort(beg);
        Date endDate = DateUtil.strToDateShort(end);