EnqueteStatusChangeBatchAction.java 913 Bytes
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
/**
 *
 */
package jp.agentec.sinaburocast.action.batch;

import jp.agentec.sinaburocast.action.AbstractAction;
import jp.agentec.sinaburocast.common.util.PropertyUtil;
import jp.agentec.sinaburocast.service.EnqueteService;

import org.apache.log4j.Logger;
import org.seasar.struts.annotation.Execute;

/**
 * @author arakawa
 *
 */
public class EnqueteStatusChangeBatchAction extends AbstractAction {
	private final Logger logger = Logger.getLogger(getClass());

	public EnqueteService enqueteService;

	@Execute(validator=false)
	public String index() throws Exception {

		//アンケートステータスを未実施から実施中に変更する
		enqueteService.updateStatusToEnforcement(PropertyUtil.getString("BATCH_UPDATE"));

		//アンケートステータスを実施中から完了に変更する
		enqueteService.updateStatusToComplete(PropertyUtil.getString("BATCH_UPDATE"));

		return null;
	}

}