Blame view

parking-module-pay/src/main/java/com/zteits/pay/dao/impl/ParkLotTempInfoDaoImpl.java 1.29 KB
55f68655   王彪总   新项目
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
35
36
37
38
39
40
41
42
  package com.zteits.pay.dao.impl;
  
  import com.zteits.clouds.api.dto.pay.param.ParkLotTempInfoBatchSaveReq;
  import com.zteits.pay.dao.ParkLotTempInfoDao;
  import com.zteits.pay.mapper.smapper.TdBTempParklotSMapper;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Service;
  import org.springframework.util.CollectionUtils;
  
  /**
   * Copyright: Copyright (c) 2017  zteits
   *
   * @ClassName: com.zteits.pay.dao.impl
   * @Description:
   * @version: v1.0.0
   * @author: atao
   * @date: 2017/10/14   下午1:22
   * Modification History:
   * Date         Author          Version      Description
   * ---------------------------------------------------------*
   * 2017/10/14      atao          v1.0.0          创建
   */
  @Service
  public class ParkLotTempInfoDaoImpl implements ParkLotTempInfoDao {
  
      @Autowired
      private TdBTempParklotSMapper tdBTempParklotSMapper;
  
      @Override
      public Integer batchSaveParkLotTempInfo(ParkLotTempInfoBatchSaveReq req) {
  
          if (CollectionUtils.isEmpty(req.getTempParklotDTOList())) {
              return 0;
          }
          return tdBTempParklotSMapper.batchSaveParkLotTempInfo(req.getTempParklotDTOList());
      }
  
      @Override
      public void truncateParkLotTempInfo() {
          tdBTempParklotSMapper.truncateParkLotTempInfo();
      }
  }