ConnRecordServiceImpl implements ConnRecordService { @Override public Long saveConnRecord(ConnRecord connRecord) { return connRecordDAO.saveConnRecord(connRecord); }  void setConnTypeDAO(ConnTypeDAO connTypeDAO); @Override Long saveConnRecord(ConnRecord connRecord); void setConnRecordDAO(ConnRecordDAO connRecordDAO); @Override Page<ConnRecord> queryConnRecordPage(String mobile,
			Long pageSize, Long currentPage); @Override Page<ConnRecord> queryConnRecordPage(Long userId,
			Long pageSize, Long currentPage); @Override List<ConnType> queryConnTypeCallBack(String callBack); @Override List<ConnType> quueryConnTypeByConnType(ConnType connType); @Override Page<ConnRecord> queryConnRecordWithPage(ConnRecord connRecord, long pageSize, int page);  }
@Test public void testSaveConnRecord() { ConnRecord connRecord = new ConnRecord(); connRecord.setCallTypeId(183L); connRecord.setUserId(1L); connRecord.setOperatorUserId("lv1236"); connRecord.setFeedbackTime(new Date()); connRecord.setMemo("conn record insert test"); connRecord.setCreateDate(new Date()); connRecord.setMobile("13044102235"); connRecord.setPlaceName("test上海欢乐"); connRecord.setCallBack("true"); connRecord.setChannelId(2L); connRecord.setVisitTime(new Date()); connRecord.setToPlaceName("四川"); connRecord.setFromPlaceName("上海"); connRecord.setDay(1L); connRecord.setQuantity(3L); connRecord.setProductId(2266L); connRecord.setProductZone("test"); connRecord.setBusinessType("test business type"); connRecord.setServiceType("serviceType"); connRecord.setSubServiceType("subServiceType"); Long connRecordId = connRecordService.saveConnRecord(connRecord); System.out.println("connRecordId:"+connRecordId); Assert.assertTrue((connRecordId>0?true:false)); }