mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-25 13:35:15 +08:00
新增 第三方平台sn对应关系表
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jsowell.pile.mapper.ThirdpartySnRelationMapper;
|
||||
import com.jsowell.pile.domain.ThirdpartySnRelation;
|
||||
import com.jsowell.pile.service.IThirdpartySnRelationService;
|
||||
|
||||
/**
|
||||
* 万车充--第三方平台桩编号对应关系Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2024-03-09
|
||||
*/
|
||||
@Service
|
||||
public class ThirdpartySnRelationServiceImpl implements IThirdpartySnRelationService {
|
||||
@Autowired
|
||||
private ThirdpartySnRelationMapper thirdpartySnRelationMapper;
|
||||
|
||||
/**
|
||||
* 查询万车充--第三方平台桩编号对应关系
|
||||
*
|
||||
* @param id 万车充--第三方平台桩编号对应关系主键
|
||||
* @return 万车充--第三方平台桩编号对应关系
|
||||
*/
|
||||
@Override
|
||||
public ThirdpartySnRelation selectThirdpartySnRelationById(Long id) {
|
||||
return thirdpartySnRelationMapper.selectThirdpartySnRelationById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询万车充--第三方平台桩编号对应关系列表
|
||||
*
|
||||
* @param thirdpartySnRelation 万车充--第三方平台桩编号对应关系
|
||||
* @return 万车充--第三方平台桩编号对应关系
|
||||
*/
|
||||
@Override
|
||||
public List<ThirdpartySnRelation> selectThirdpartySnRelationList(ThirdpartySnRelation thirdpartySnRelation) {
|
||||
return thirdpartySnRelationMapper.selectThirdpartySnRelationList(thirdpartySnRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增万车充--第三方平台桩编号对应关系
|
||||
*
|
||||
* @param thirdpartySnRelation 万车充--第三方平台桩编号对应关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertThirdpartySnRelation(ThirdpartySnRelation thirdpartySnRelation) {
|
||||
thirdpartySnRelation.setCreateTime(DateUtils.getNowDate());
|
||||
return thirdpartySnRelationMapper.insertThirdpartySnRelation(thirdpartySnRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改万车充--第三方平台桩编号对应关系
|
||||
*
|
||||
* @param thirdpartySnRelation 万车充--第三方平台桩编号对应关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateThirdpartySnRelation(ThirdpartySnRelation thirdpartySnRelation) {
|
||||
thirdpartySnRelation.setUpdateTime(DateUtils.getNowDate());
|
||||
return thirdpartySnRelationMapper.updateThirdpartySnRelation(thirdpartySnRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除万车充--第三方平台桩编号对应关系
|
||||
*
|
||||
* @param ids 需要删除的万车充--第三方平台桩编号对应关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteThirdpartySnRelationByIds(Long[] ids) {
|
||||
return thirdpartySnRelationMapper.deleteThirdpartySnRelationByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除万车充--第三方平台桩编号对应关系信息
|
||||
*
|
||||
* @param id 万车充--第三方平台桩编号对应关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteThirdpartySnRelationById(Long id) {
|
||||
return thirdpartySnRelationMapper.deleteThirdpartySnRelationById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user