2,209
社区成员
发帖
与我相关
我的任务
分享
Intent intent1 = getIntent();
String key1 = intent1.getStringExtra("one");
String sum_turnover = "select sum(turnover) from svalue where date like "+"'%" + key1 + "%'";
String sum_tc = "select sum(tc) from svalue where date like "+"'%" + key1 + "%'";
Cursor cursor1 = db.rawQuery(sum_turnover,null);
while ((cursor1.moveToNext())) {
String stu = cursor1.getString(4);
sturnover.setText(stu);
cursor1.close();