|  | @ -249,7 +249,7 @@ public class MedicineOrderService extends BaseJpaService<Mediicineorder, Mediici
 | 
												
													
														
															|  |      */
 |  |      */
 | 
												
													
														
															|  |     public  JSONObject sumamount(String beg, String end) throws Exception {
 |  |     public  JSONObject sumamount(String beg, String end) throws Exception {
 | 
												
													
														
															|  |         JSONObject result = new JSONObject();
 |  |         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);
 |  |         int count = jdbcTemplate.queryForObject(sql,Integer.class);
 | 
												
													
														
															|  |         Date startDate = DateUtil.strToDateShort(beg);
 |  |         Date startDate = DateUtil.strToDateShort(beg);
 | 
												
													
														
															|  |         Date endDate = DateUtil.strToDateShort(end);
 |  |         Date endDate = DateUtil.strToDateShort(end);
 |