村官员信息

This commit is contained in:
小魔仙~
2024-12-19 11:31:37 +08:00
parent 6a93d26331
commit 405cbab15c
6 changed files with 547 additions and 0 deletions

View File

@@ -0,0 +1,88 @@
package com.fastbee.rechargecard.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fastbee.common.annotation.Excel;
import com.fastbee.common.core.domain.BaseEntity;
/**
* 村官员信息对象 ng_Information_village_keeper
*
* @author kerwincui
* @date 2024-12-19
*/
@ApiModel(value = "NgInformationVillageKeeper",description = "村官员信息 ng_Information_village_keeper")
@Data
@EqualsAndHashCode(callSuper = true)
public class NgInformationVillageKeeper extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
@Excel(name = "主键")
@ApiModelProperty("主键")
private Long villageKeeperId;
/** 村官员编号 */
@Excel(name = "村官员编号")
@ApiModelProperty("村官员编号")
private String officialId;
/** 姓名 */
@Excel(name = "姓名")
@ApiModelProperty("姓名")
private String name;
/** 职位 */
@Excel(name = "职位")
@ApiModelProperty("职位")
private String position;
/** 所属区域 */
@Excel(name = "所属区域")
@ApiModelProperty("所属区域")
private String belongingRegion;
/** 性别 */
@Excel(name = "性别")
@ApiModelProperty("性别")
private String gender;
/** 年龄 */
@Excel(name = "年龄")
@ApiModelProperty("年龄")
private Long age;
/** 党派 */
@Excel(name = "党派")
@ApiModelProperty("党派")
private String partyMembership;
/** 联系方式 */
@Excel(name = "联系方式")
@ApiModelProperty("联系方式")
private String contactInformation;
/** 任职日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "任职日期", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty("任职日期")
private Date appointmentDate;
/** 教育背景 */
@Excel(name = "教育背景")
@ApiModelProperty("教育背景")
private String educationBackground;
/** 工作经历 */
@Excel(name = "工作经历")
@ApiModelProperty("工作经历")
private String workExperience;
}

View File

@@ -0,0 +1,63 @@
package com.fastbee.rechargecard.mapper;
import java.util.List;
import com.fastbee.rechargecard.domain.NgInformationVillageKeeper;
import org.apache.ibatis.annotations.Mapper;
/**
* 村官员信息Mapper接口
*
* @author kerwincui
* @date 2024-12-19
*/
@Mapper
public interface NgInformationVillageKeeperMapper
{
/**
* 查询村官员信息
*
* @param villageKeeperId 村官员信息主键
* @return 村官员信息
*/
public NgInformationVillageKeeper selectNgInformationVillageKeeperByVillageKeeperId(Long villageKeeperId);
/**
* 查询村官员信息列表
*
* @param ngInformationVillageKeeper 村官员信息
* @return 村官员信息集合
*/
public List<NgInformationVillageKeeper> selectNgInformationVillageKeeperList(NgInformationVillageKeeper ngInformationVillageKeeper);
/**
* 新增村官员信息
*
* @param ngInformationVillageKeeper 村官员信息
* @return 结果
*/
public int insertNgInformationVillageKeeper(NgInformationVillageKeeper ngInformationVillageKeeper);
/**
* 修改村官员信息
*
* @param ngInformationVillageKeeper 村官员信息
* @return 结果
*/
public int updateNgInformationVillageKeeper(NgInformationVillageKeeper ngInformationVillageKeeper);
/**
* 删除村官员信息
*
* @param villageKeeperId 村官员信息主键
* @return 结果
*/
public int deleteNgInformationVillageKeeperByVillageKeeperId(Long villageKeeperId);
/**
* 批量删除村官员信息
*
* @param villageKeeperIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteNgInformationVillageKeeperByVillageKeeperIds(Long[] villageKeeperIds);
}

View File

@@ -0,0 +1,61 @@
package com.fastbee.rechargecard.service;
import java.util.List;
import com.fastbee.rechargecard.domain.NgInformationVillageKeeper;
/**
* 村官员信息Service接口
*
* @author kerwincui
* @date 2024-12-19
*/
public interface INgInformationVillageKeeperService
{
/**
* 查询村官员信息
*
* @param villageKeeperId 村官员信息主键
* @return 村官员信息
*/
public NgInformationVillageKeeper selectNgInformationVillageKeeperByVillageKeeperId(Long villageKeeperId);
/**
* 查询村官员信息列表
*
* @param ngInformationVillageKeeper 村官员信息
* @return 村官员信息集合
*/
public List<NgInformationVillageKeeper> selectNgInformationVillageKeeperList(NgInformationVillageKeeper ngInformationVillageKeeper);
/**
* 新增村官员信息
*
* @param ngInformationVillageKeeper 村官员信息
* @return 结果
*/
public int insertNgInformationVillageKeeper(NgInformationVillageKeeper ngInformationVillageKeeper);
/**
* 修改村官员信息
*
* @param ngInformationVillageKeeper 村官员信息
* @return 结果
*/
public int updateNgInformationVillageKeeper(NgInformationVillageKeeper ngInformationVillageKeeper);
/**
* 批量删除村官员信息
*
* @param villageKeeperIds 需要删除的村官员信息主键集合
* @return 结果
*/
public int deleteNgInformationVillageKeeperByVillageKeeperIds(Long[] villageKeeperIds);
/**
* 删除村官员信息信息
*
* @param villageKeeperId 村官员信息主键
* @return 结果
*/
public int deleteNgInformationVillageKeeperByVillageKeeperId(Long villageKeeperId);
}

View File

@@ -0,0 +1,96 @@
package com.fastbee.rechargecard.service.impl;
import java.util.List;
import com.fastbee.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fastbee.rechargecard.mapper.NgInformationVillageKeeperMapper;
import com.fastbee.rechargecard.domain.NgInformationVillageKeeper;
import com.fastbee.rechargecard.service.INgInformationVillageKeeperService;
/**
* 村官员信息Service业务层处理
*
* @author kerwincui
* @date 2024-12-19
*/
@Service
public class NgInformationVillageKeeperServiceImpl implements INgInformationVillageKeeperService
{
@Autowired
private NgInformationVillageKeeperMapper ngInformationVillageKeeperMapper;
/**
* 查询村官员信息
*
* @param villageKeeperId 村官员信息主键
* @return 村官员信息
*/
@Override
public NgInformationVillageKeeper selectNgInformationVillageKeeperByVillageKeeperId(Long villageKeeperId)
{
return ngInformationVillageKeeperMapper.selectNgInformationVillageKeeperByVillageKeeperId(villageKeeperId);
}
/**
* 查询村官员信息列表
*
* @param ngInformationVillageKeeper 村官员信息
* @return 村官员信息
*/
@Override
public List<NgInformationVillageKeeper> selectNgInformationVillageKeeperList(NgInformationVillageKeeper ngInformationVillageKeeper)
{
return ngInformationVillageKeeperMapper.selectNgInformationVillageKeeperList(ngInformationVillageKeeper);
}
/**
* 新增村官员信息
*
* @param ngInformationVillageKeeper 村官员信息
* @return 结果
*/
@Override
public int insertNgInformationVillageKeeper(NgInformationVillageKeeper ngInformationVillageKeeper)
{
ngInformationVillageKeeper.setCreateTime(DateUtils.getNowDate());
return ngInformationVillageKeeperMapper.insertNgInformationVillageKeeper(ngInformationVillageKeeper);
}
/**
* 修改村官员信息
*
* @param ngInformationVillageKeeper 村官员信息
* @return 结果
*/
@Override
public int updateNgInformationVillageKeeper(NgInformationVillageKeeper ngInformationVillageKeeper)
{
ngInformationVillageKeeper.setUpdateTime(DateUtils.getNowDate());
return ngInformationVillageKeeperMapper.updateNgInformationVillageKeeper(ngInformationVillageKeeper);
}
/**
* 批量删除村官员信息
*
* @param villageKeeperIds 需要删除的村官员信息主键
* @return 结果
*/
@Override
public int deleteNgInformationVillageKeeperByVillageKeeperIds(Long[] villageKeeperIds)
{
return ngInformationVillageKeeperMapper.deleteNgInformationVillageKeeperByVillageKeeperIds(villageKeeperIds);
}
/**
* 删除村官员信息信息
*
* @param villageKeeperId 村官员信息主键
* @return 结果
*/
@Override
public int deleteNgInformationVillageKeeperByVillageKeeperId(Long villageKeeperId)
{
return ngInformationVillageKeeperMapper.deleteNgInformationVillageKeeperByVillageKeeperId(villageKeeperId);
}
}