mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
新增 用户鉴权卡实体
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import com.jsowell.common.annotation.Excel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 充电站鉴权卡对象 pile_auth_card
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-03-16
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class PileAuthCard {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 逻辑卡号
|
||||
*/
|
||||
@Excel(name = "逻辑卡号")
|
||||
private String logicCard;
|
||||
|
||||
/**
|
||||
* 物理卡号
|
||||
*/
|
||||
@Excel(name = "物理卡号")
|
||||
private String physicsCard;
|
||||
|
||||
/**
|
||||
* 所属用户的会员id
|
||||
*/
|
||||
@Excel(name = "所属用户的会员id")
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 删除标识(0-正常;1-删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.PileAuthCard;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 充电站鉴权卡Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-03-16
|
||||
*/
|
||||
@Repository
|
||||
public interface PileAuthCardMapper {
|
||||
/**
|
||||
* 查询充电站鉴权卡
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 充电站鉴权卡
|
||||
*/
|
||||
public PileAuthCard selectPileAuthCardById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡列表
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 充电站鉴权卡集合
|
||||
*/
|
||||
public List<PileAuthCard> selectPileAuthCardList(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 新增充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileAuthCard(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 修改充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileAuthCard(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 删除充电站鉴权卡
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileAuthCardById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除充电站鉴权卡
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileAuthCardByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.PileAuthCard;
|
||||
|
||||
/**
|
||||
* 充电站鉴权卡Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-03-16
|
||||
*/
|
||||
public interface IPileAuthCardService {
|
||||
/**
|
||||
* 查询充电站鉴权卡
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 充电站鉴权卡
|
||||
*/
|
||||
public PileAuthCard selectPileAuthCardById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡列表
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 充电站鉴权卡集合
|
||||
*/
|
||||
public List<PileAuthCard> selectPileAuthCardList(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 新增充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileAuthCard(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 修改充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileAuthCard(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 批量删除充电站鉴权卡
|
||||
*
|
||||
* @param ids 需要删除的充电站鉴权卡主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileAuthCardByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除充电站鉴权卡信息
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileAuthCardById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
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.PileAuthCardMapper;
|
||||
import com.jsowell.pile.domain.PileAuthCard;
|
||||
import com.jsowell.pile.service.IPileAuthCardService;
|
||||
|
||||
/**
|
||||
* 充电站鉴权卡Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-03-16
|
||||
*/
|
||||
@Service
|
||||
public class PileAuthCardServiceImpl implements IPileAuthCardService {
|
||||
@Autowired
|
||||
private PileAuthCardMapper pileAuthCardMapper;
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 充电站鉴权卡
|
||||
*/
|
||||
@Override
|
||||
public PileAuthCard selectPileAuthCardById(Long id) {
|
||||
return pileAuthCardMapper.selectPileAuthCardById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡列表
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 充电站鉴权卡
|
||||
*/
|
||||
@Override
|
||||
public List<PileAuthCard> selectPileAuthCardList(PileAuthCard pileAuthCard) {
|
||||
return pileAuthCardMapper.selectPileAuthCardList(pileAuthCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPileAuthCard(PileAuthCard pileAuthCard) {
|
||||
return pileAuthCardMapper.insertPileAuthCard(pileAuthCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePileAuthCard(PileAuthCard pileAuthCard) {
|
||||
return pileAuthCardMapper.updatePileAuthCard(pileAuthCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除充电站鉴权卡
|
||||
*
|
||||
* @param ids 需要删除的充电站鉴权卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePileAuthCardByIds(Long[] ids) {
|
||||
return pileAuthCardMapper.deletePileAuthCardByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除充电站鉴权卡信息
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePileAuthCardById(Long id) {
|
||||
return pileAuthCardMapper.deletePileAuthCardById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user