예제 #1
0
 @Override
 public Bidding save(Bidding bidding) throws Exception {
   // TODO Auto-generated method stub
   if (StringUtils.isBlank(bidding.getBiddingId())) { // 新增
     biddingDao.insert(bidding);
   } else {
     biddingDao.update(bidding);
   }
   return bidding;
 }
예제 #2
0
 @Override
 public Bidding getBidding(String BiddingId) throws Exception {
   // TODO Auto-generated method stub
   Bidding bidding = biddingDao.selectById(BiddingId);
   bidding.setDictBiddingType(
       dictionaryDao.selectByFullCodeAndDictType(bidding.getBiddingTypeId(), "bidTypes"));
   return bidding;
 }
예제 #3
0
 @Override
 public List<Map<String, Object>> countForRoute(String year) throws Exception {
   // TODO Auto-generated method stub
   return biddingDao.countForRoute(year);
 }
예제 #4
0
 @Override
 public List<Bidding> selectByMainIdIsDels(
     Bidding bidding, String mainId, int pageIndex, int pageSize) {
   // TODO Auto-generated method stub
   return biddingDao.selectByMainIdIsDels(bidding, mainId, pageIndex, pageSize);
 }
예제 #5
0
 @Override
 public List<Bidding> getBiddingWithoutSelf(Bidding bidding, int pageIndex, int pageSize) {
   return biddingDao.selectIdNameWithoutSelf(bidding, pageIndex, pageSize);
 }
예제 #6
0
 @Override
 public List<Bidding> getBiddings(String[] biddingIdList) {
   return biddingDao.selectByBiddingIds(biddingIdList);
 }
예제 #7
0
 @Override
 public List<Bidding> selectfuzzy(Bidding bidding) throws Exception {
   // TODO Auto-generated method stub
   return biddingDao.selectfuzzy(bidding);
 }
예제 #8
0
 @Override
 public int delete(String biddingId) throws Exception {
   // TODO Auto-generated method stub
   return biddingDao.delete(biddingId);
 }
예제 #9
0
 @Override
 public List<Bidding> getBiddings(Bidding bidding, int pageIndex, int pageSize) throws Exception {
   // TODO Auto-generated method stub
   return biddingDao.select(bidding, pageIndex, pageSize);
 }
예제 #10
0
 @Override
 public Integer hasUsed(String biddingId) throws Exception {
   return biddingDao.countBiddingId(biddingId);
 }
예제 #11
0
 @Override
 public void updateCompleteTime() throws Exception {
   biddingDao.updateCompleteTimeNull();
   biddingDao.updateCompleteTime();
 }