main
黄海 2 years ago
parent 245874bc45
commit beba2be730

@ -84,7 +84,9 @@ public class YpModel {
* @param task_id
*/
public void startTask(int task_id) {
String sql = "update t_yp_task set b_use=1,is_run=1 where task_id=?";
String sql = "update t_yp_task set is_run=0 where is_run=1";
Db.update(sql);
sql = "update t_yp_task set b_use=1,is_run=1 where task_id=?";
Db.update(sql, task_id);
}

Loading…
Cancel
Save