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