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(); } }