package thread;
import java.util.concurrent.ExecutionException;
import cputils.CPHMWYService;
/**
* (C) Copyright 2012 ZWW
*/
/**
* @author ZWW
* @date 2014-3-22 下午7:49:41
* @version V1.0
*/
public class WYServiceThread implements Runnable{
private String issueNo;
private boolean onsale;
public WYServiceThread(String issueNo,boolean onsale){
this.issueNo = issueNo;
this.onsale = onsale;
}
@Override
public void run() {
CPHMWYService service = new CPHMWYService();
service.setOnsale(onsale);
try {
service.writeWYHMData(issueNo, onsale);
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
}
}