@Test
public void testDeleteByPrimaryKey() throws Exception  {

	SmsInstruction instruction = new SmsInstruction();
	instruction.setCouponCode("couponCode");
	instruction.setCouponId("23,233,231");
	instruction.setDescription("测试用例");
	instruction.setInstructionCode("test321");
	smsInstructionDAO.save(instruction);
	
	smsInstructionDAO.deleteByPrimaryKey(instruction.getInstructionCode());
	
	Statement stat = conn.createStatement();
	ResultSet rs = stat.executeQuery("SELECT * FROM sms_instruction WHERE instruction_code = 'test321'");
	
	if (rs.next()) {
		fail("删除记录有错误");
	}
}