package com.zteits.park.dao.impl; import org.apache.commons.lang3.StringUtils; import com.zteits.clouds.api.dto.park.dto.SmsTemplateConfigRltParkingDTO; import com.zteits.clouds.api.dto.park.param.SmsTemplateConfigRltParkingRequest; import com.zteits.park.dao.SmsTemplateConfigRltParkingDao; import com.zteits.park.domain.SmsTemplateConfigRltParking; import com.zteits.park.domain.SmsTemplateConfigRltParkingExample; import com.zteits.park.mapper.SmsTemplateConfigRltParkingMapper; import com.zteits.park.mapper.smapper.SmsTemplateConfigRltParkingSMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.List; /** * Copyright: Copyright (c) 2019 ZTE-ITS * * @Description: * @ProjectName: zteits-clouds * @Package: com.zteits.park.dao.impl * @ClassName: SmsTemplateConfigRltParkingDaoImpl * Modification History: * Date Author Version Description * ---------------------------------------------------------* * 2021/12/24 wb v1.0.0 创建 */ @Component public class SmsTemplateConfigRltParkingDaoImpl implements SmsTemplateConfigRltParkingDao { @Autowired private SmsTemplateConfigRltParkingMapper smsTemplateConfigRltParkingMapper; @Autowired private SmsTemplateConfigRltParkingSMapper smsTemplateConfigRltParkingSMapper; @Override public int saveSmsTemplateConfigRltParking(SmsTemplateConfigRltParking smsTemplateConfigRltParking) { return smsTemplateConfigRltParkingMapper.insertSelective(smsTemplateConfigRltParking); } @Override public int updateByExampleSelective(SmsTemplateConfigRltParking record, SmsTemplateConfigRltParkingExample example) { return 0; } @Override public int updateByPrimaryKeySelective(SmsTemplateConfigRltParking record) { return 0; } @Override public List selectByExample(SmsTemplateConfigRltParkingExample example) { return smsTemplateConfigRltParkingMapper.selectByExample(example); } @Override public SmsTemplateConfigRltParking queryByPrimaryKey(Long id) { return null; } @Override public List querySmsTemplateConfigRltParking(SmsTemplateConfigRltParkingRequest request) { SmsTemplateConfigRltParkingExample smsTemplateConfigRltParkingExample = new SmsTemplateConfigRltParkingExample(); SmsTemplateConfigRltParkingExample.Criteria criteria = smsTemplateConfigRltParkingExample.createCriteria(); if(StringUtils.isNotEmpty(request.getSmsId())){ criteria.andSmsIdEqualTo(request.getSmsId()); } return smsTemplateConfigRltParkingMapper.selectByExample(smsTemplateConfigRltParkingExample); } @Override public int batchDeleteSmsTemplateConfigRltParkingByPrimaryKey(List ids, String opId, String opName) { return 0; } @Override public int deleteByExample(SmsTemplateConfigRltParkingExample example) { return smsTemplateConfigRltParkingMapper.deleteByExample(example); } @Override public SmsTemplateConfigRltParkingDTO selectByPlNo(SmsTemplateConfigRltParkingRequest request) { return smsTemplateConfigRltParkingSMapper.selectByPlNo(request); } }