Переглянути джерело

[task-2866] 人员档案功能重构 / 【后端】人员档案外部信息接口开发

Li Yuan 1 рік тому
батько
коміт
035321f912
15 змінених файлів з 936 додано та 0 видалено
  1. 82 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/api/IConfidentialityStatementService.java
  2. 64 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/domain/ConfidentialityStatement.java
  3. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/ConfidentialityStatementDao.java
  4. 21 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/ConfidentialityStatementQueryDao.java
  5. 26 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/ConfidentialityStatementDaoImpl.java
  6. 35 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/ConfidentialityStatementQueryDaoImpl.java
  7. 35 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/ConfidentialityStatementPo.java
  8. 233 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/ConfidentialityStatementTbl.java
  9. 123 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/provider/ConfidentialityStatementProvider.java
  10. 18 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/ConfidentialityStatementRepository.java
  11. 56 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/ConfidentialityStatementRepositoryImpl.java
  12. 4 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/EmployeeInfoRepositoryImpl.java
  13. 108 0
      ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/employee/persistence/mapping/ConfidentialityStatement.map.xml
  14. 60 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/domain/ConfidentialityStatementTest.java
  15. 55 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/persistence/dao/ConfidentialityStatementDaoTest.java

+ 82 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/api/IConfidentialityStatementService.java

@@ -0,0 +1,82 @@
+package com.lc.ibps.components.employee.api;
+
+import java.util.List;
+
+import org.hibernate.validator.constraints.NotBlank;
+import org.hibernate.validator.constraints.NotEmpty;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.lc.ibps.cloud.entity.APIPageList;
+import com.lc.ibps.cloud.entity.APIRequest;
+import com.lc.ibps.cloud.entity.APIResult;
+import javax.validation.Valid;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+
+
+
+/**
+ * 保密声明 接口
+ *
+ *<pre> 
+ * 构建组:ibps-provider-confidentialityStatement-api
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:35
+ *</pre>
+ */
+@Validated
+@RequestMapping(value = "/employee/confidentialityStatement")
+@RestController
+public interface IConfidentialityStatementService {
+
+	/**
+	 * 
+	 * 【保密声明】列表(分页条件查询)数据
+	 *
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/query", method = RequestMethod.POST)
+	public APIResult<APIPageList<ConfidentialityStatementPo>> query(
+			@RequestBody(required = true) APIRequest request);
+	
+	/**
+	 * 
+	 * 根据id查询【保密声明】
+	 *
+	 * @param id
+	 * @return
+	 */
+	@RequestMapping(value = "/get", method = { RequestMethod.GET })
+	public APIResult<ConfidentialityStatementPo> get(
+//			@NotBlank(message = "{com.lc.ibps.components.provider.ConfidentialityStatementProvider.id}") 
+			@RequestParam(name = "id", required = true) String id);
+	
+	/**
+	 * 
+	 * 批量删除【保密声明】记录
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@RequestMapping(value = "/remove", method = { RequestMethod.POST })
+	public APIResult<Void> remove(
+//			@NotEmpty(message = "{com.lc.ibps.components.provider.ConfidentialityStatementProvider.ids}")
+			@RequestParam(name = "ids", required = true) String[] ids);
+	
+	/**
+	 * 
+	 * 保存【保密声明】记录
+	 *
+	 * @param confidentialityStatementPo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = { RequestMethod.POST })
+	public APIResult<Void> save(
+ 			@RequestBody(required = true) @Valid ConfidentialityStatementPo confidentialityStatementPo);
+}

+ 64 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/domain/ConfidentialityStatement.java

@@ -0,0 +1,64 @@
+package com.lc.ibps.components.employee.domain;
+
+
+import javax.annotation.Resource;
+
+import org.springframework.context.annotation.Scope;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.stereotype.Service;
+
+import com.lc.ibps.base.core.util.BeanUtils;
+import com.lc.ibps.base.core.util.AppUtil;
+import com.lc.ibps.base.framework.domain.AbstractDomain;
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.components.employee.persistence.dao.ConfidentialityStatementDao;
+import com.lc.ibps.components.employee.persistence.dao.ConfidentialityStatementQueryDao;
+import com.lc.ibps.components.employee.repository.ConfidentialityStatementRepository;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+
+/**
+ * 保密声明 领域对象实体
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:34
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Service
+@Transactional
+@Scope("prototype")
+public class ConfidentialityStatement extends AbstractDomain<String, ConfidentialityStatementPo>{
+	
+	@Resource
+	private ConfidentialityStatementDao confidentialityStatementDao;
+	@Resource
+	private ConfidentialityStatementQueryDao confidentialityStatementQueryDao;
+	@Resource
+	private ConfidentialityStatementRepository confidentialityStatementRepository;
+
+
+	protected void init(){
+		//
+	}
+	
+	@Override
+	protected IQueryDao<String, ConfidentialityStatementPo> getInternalQueryDao() {
+		return confidentialityStatementQueryDao;
+	}
+	
+	@Override
+	protected IDao<String, ConfidentialityStatementPo> getInternalDao() {
+		return confidentialityStatementDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "confidentialityStatement";
+	}
+	
+	
+	
+}

+ 16 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/ConfidentialityStatementDao.java

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+
+/**
+ * 保密声明 Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:33
+ *</pre>
+ */
+public interface ConfidentialityStatementDao extends IDao<String, ConfidentialityStatementPo> {
+}

+ 21 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/ConfidentialityStatementQueryDao.java

@@ -0,0 +1,21 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import com.lc.ibps.api.base.page.Page;
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.base.framework.persistence.entity.AbstractPo;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+
+import java.util.List;
+
+/**
+ * 保密声明 查询Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:32
+ *</pre>
+ */
+public interface ConfidentialityStatementQueryDao extends IQueryDao<String, ConfidentialityStatementPo> {
+    List<ConfidentialityStatementPo> findByEmployeeId(String employeeId, Page page);
+}

+ 26 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/ConfidentialityStatementDaoImpl.java

@@ -0,0 +1,26 @@
+package com.lc.ibps.components.employee.persistence.dao.impl;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisDaoImpl;
+import com.lc.ibps.components.employee.persistence.dao.ConfidentialityStatementDao;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+
+/**
+ * 保密声明 Dao接口的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:32
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Repository
+public class ConfidentialityStatementDaoImpl extends MyBatisDaoImpl<String, ConfidentialityStatementPo> implements ConfidentialityStatementDao{
+
+    @Override
+    public String getNamespace() {
+        return ConfidentialityStatementPo.class.getName();
+    }
+}

+ 35 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/ConfidentialityStatementQueryDaoImpl.java

@@ -0,0 +1,35 @@
+package com.lc.ibps.components.employee.persistence.dao.impl;
+
+
+import com.lc.ibps.api.base.page.Page;
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisQueryDaoImpl;
+import com.lc.ibps.components.employee.persistence.dao.ConfidentialityStatementQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+
+import java.util.List;
+
+/**
+ *保密声明 查询Dao的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:32
+ *</pre>
+ */
+ @SuppressWarnings("serial")
+@Repository
+public class ConfidentialityStatementQueryDaoImpl extends MyBatisQueryDaoImpl<String, ConfidentialityStatementPo> implements ConfidentialityStatementQueryDao{
+
+    @Override
+    public String getNamespace() {
+        return ConfidentialityStatementPo.class.getName();
+    }
+
+    @Override
+    public List<ConfidentialityStatementPo> findByEmployeeId(String employeeId, Page page) {
+        return findByKey("findByEmployeeId", b().a("employeeId", employeeId).p(),page);
+    }
+}

+ 35 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/ConfidentialityStatementPo.java

@@ -0,0 +1,35 @@
+package com.lc.ibps.components.employee.persistence.entity;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import com.lc.ibps.base.core.util.JacksonUtil;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * 保密声明 实体对象
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:31
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "保密声明对象")
+public class ConfidentialityStatementPo extends ConfidentialityStatementTbl{
+
+	public static ConfidentialityStatementPo fromJsonString(String data){
+		if(JacksonUtil.isNotJsonObject(data)){
+			return null;
+		}
+		return JacksonUtil.getDTO(data, ConfidentialityStatementPo.class);
+	}
+	
+	public static List<ConfidentialityStatementPo> fromJsonArrayString(String listData){
+		if(JacksonUtil.isNotJsonArray(listData)){
+			return Collections.emptyList();
+		}
+		return JacksonUtil.getDTOList(listData, ConfidentialityStatementPo.class);
+	}
+}

+ 233 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/ConfidentialityStatementTbl.java

@@ -0,0 +1,233 @@
+package com.lc.ibps.components.employee.persistence.entity;
+
+import java.util.Date;
+
+import com.lc.ibps.base.framework.persistence.entity.AbstractPo;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * 保密声明 表对象
+ * 
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:31
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "保密声明对象")
+public class ConfidentialityStatementTbl extends AbstractPo<String>{
+	@ApiModelProperty(value = "主键")
+	protected String  id; 		/*主键*/
+	@ApiModelProperty(value = "租户ID")
+	protected String  tenantId; 		/*租户ID*/
+	@ApiModelProperty(value = "IP地址")
+	protected String  ip; 		/*IP地址*/
+	@ApiModelProperty(value = "是否过审")
+	protected String  shiFouGuoShen; 		/*是否过审*/
+	@ApiModelProperty(value = "地点")
+	protected String  diDian; 		/*地点*/
+	@ApiModelProperty(value = "编制人")
+	protected String  bianZhiRen; 		/*编制人*/
+	@ApiModelProperty(value = "编制部门")
+	protected String  bianZhiBuMen; 		/*编制部门*/
+	@ApiModelProperty(value = "编制时间")
+	protected String  bianZhiShiJian; 		/*编制时间*/
+	@ApiModelProperty(value = "快照")
+	protected String  kuaiZhao; 		/*快照*/
+	@ApiModelProperty(value = "保密人")
+	protected String  baoMiRen; 		/*保密人*/
+	@ApiModelProperty(value = "说明")
+	protected String  shuoMing; 		/*说明*/
+	@ApiModelProperty(value = "附件")
+	protected String  fuJian; 		/*附件*/
+	@ApiModelProperty(value = "选择人员")
+	protected String  xuanZeRenYuan; 		/*选择人员*/
+	@ApiModelProperty(value = "需签订人员")
+	protected String  xuQianDingRen; 		/*需签订人员*/
+	@ApiModelProperty(value = "uuid")
+	protected String  uuid; 		/*uuid*/
+
+	public void setId(String id) 
+	{
+		this.id = id;
+	}
+	/**
+	 * 返回 主键
+	 * @return
+	 */
+	public String getId() 
+	{
+		return this.id;
+	}
+	public void setTenantId(String tenantId) 
+	{
+		this.tenantId = tenantId;
+	}
+	/**
+	 * 返回 租户ID
+	 * @return
+	 */
+	public String getTenantId() 
+	{
+		return this.tenantId;
+	}
+	public void setIp(String ip) 
+	{
+		this.ip = ip;
+	}
+	/**
+	 * 返回 IP地址
+	 * @return
+	 */
+	public String getIp() 
+	{
+		return this.ip;
+	}
+	public void setShiFouGuoShen(String shiFouGuoShen) 
+	{
+		this.shiFouGuoShen = shiFouGuoShen;
+	}
+	/**
+	 * 返回 是否过审
+	 * @return
+	 */
+	public String getShiFouGuoShen() 
+	{
+		return this.shiFouGuoShen;
+	}
+	public void setDiDian(String diDian) 
+	{
+		this.diDian = diDian;
+	}
+	/**
+	 * 返回 地点
+	 * @return
+	 */
+	public String getDiDian() 
+	{
+		return this.diDian;
+	}
+	public void setBianZhiRen(String bianZhiRen) 
+	{
+		this.bianZhiRen = bianZhiRen;
+	}
+	/**
+	 * 返回 编制人
+	 * @return
+	 */
+	public String getBianZhiRen() 
+	{
+		return this.bianZhiRen;
+	}
+	public void setBianZhiBuMen(String bianZhiBuMen) 
+	{
+		this.bianZhiBuMen = bianZhiBuMen;
+	}
+	/**
+	 * 返回 编制部门
+	 * @return
+	 */
+	public String getBianZhiBuMen() 
+	{
+		return this.bianZhiBuMen;
+	}
+	public void setBianZhiShiJian(String bianZhiShiJian) 
+	{
+		this.bianZhiShiJian = bianZhiShiJian;
+	}
+	/**
+	 * 返回 编制时间
+	 * @return
+	 */
+	public String getBianZhiShiJian() 
+	{
+		return this.bianZhiShiJian;
+	}
+	public void setKuaiZhao(String kuaiZhao) 
+	{
+		this.kuaiZhao = kuaiZhao;
+	}
+	/**
+	 * 返回 快照
+	 * @return
+	 */
+	public String getKuaiZhao() 
+	{
+		return this.kuaiZhao;
+	}
+	public void setBaoMiRen(String baoMiRen) 
+	{
+		this.baoMiRen = baoMiRen;
+	}
+	/**
+	 * 返回 保密人
+	 * @return
+	 */
+	public String getBaoMiRen() 
+	{
+		return this.baoMiRen;
+	}
+	public void setShuoMing(String shuoMing) 
+	{
+		this.shuoMing = shuoMing;
+	}
+	/**
+	 * 返回 说明
+	 * @return
+	 */
+	public String getShuoMing() 
+	{
+		return this.shuoMing;
+	}
+	public void setFuJian(String fuJian) 
+	{
+		this.fuJian = fuJian;
+	}
+	/**
+	 * 返回 附件
+	 * @return
+	 */
+	public String getFuJian() 
+	{
+		return this.fuJian;
+	}
+	public void setXuanZeRenYuan(String xuanZeRenYuan) 
+	{
+		this.xuanZeRenYuan = xuanZeRenYuan;
+	}
+	/**
+	 * 返回 选择人员
+	 * @return
+	 */
+	public String getXuanZeRenYuan() 
+	{
+		return this.xuanZeRenYuan;
+	}
+	public void setXuQianDingRen(String xuQianDingRen) 
+	{
+		this.xuQianDingRen = xuQianDingRen;
+	}
+	/**
+	 * 返回 需签订人员
+	 * @return
+	 */
+	public String getXuQianDingRen() 
+	{
+		return this.xuQianDingRen;
+	}
+	public void setUuid(String uuid) 
+	{
+		this.uuid = uuid;
+	}
+	/**
+	 * 返回 uuid
+	 * @return
+	 */
+	public String getUuid() 
+	{
+		return this.uuid;
+	}
+	
+}

+ 123 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/provider/ConfidentialityStatementProvider.java

@@ -0,0 +1,123 @@
+package com.lc.ibps.components.employee.provider;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.springframework.stereotype.Service;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import com.lc.ibps.api.base.constants.StateEnum;
+import com.lc.ibps.api.base.query.QueryFilter;
+import com.lc.ibps.base.core.constants.StringPool;
+import com.lc.ibps.base.core.util.BeanUtils;
+import com.lc.ibps.cloud.entity.APIPageList;
+import com.lc.ibps.cloud.entity.APIRequest;
+import com.lc.ibps.cloud.entity.APIResult;
+import com.lc.ibps.cloud.provider.GenericProvider;
+import com.lc.ibps.components.employee.api.IConfidentialityStatementService;
+import com.lc.ibps.components.employee.domain.ConfidentialityStatement;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+import com.lc.ibps.components.employee.repository.ConfidentialityStatementRepository;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import io.swagger.annotations.Extension;
+import io.swagger.annotations.ExtensionProperty;
+
+/**
+ * 保密声明 服务类
+ * <pre>
+ * 构建组:ibps-provider-confidentialityStatement
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:35
+ *</pre>
+ */
+@Api(tags = "保密声明管理", value = "保密声明数据")
+@Service
+public class ConfidentialityStatementProvider extends GenericProvider implements IConfidentialityStatementService{
+
+	@Resource
+	private ConfidentialityStatementRepository confidentialityStatementRepository;
+
+	@ApiOperation(value = "保密声明列表(分页条件查询)数据", notes = "保密声明列表(分页条件查询)数据")
+	@Override
+	public APIResult<APIPageList<ConfidentialityStatementPo>> query(
+			@ApiParam(name = "request", value = "传入查询请求json字符串", required = true) 
+			@RequestBody(required = true) APIRequest request) {
+		APIResult<APIPageList<ConfidentialityStatementPo>> result = new APIResult<>();
+		try {
+			QueryFilter queryFilter = getQueryFilter(request);
+			List<ConfidentialityStatementPo> data = confidentialityStatementRepository.query(queryFilter);
+			APIPageList<ConfidentialityStatementPo> apiPageData = getAPIPageList(data);
+			result.setData(apiPageData);
+		} catch (Exception e) {
+			// TODO ERROR => other error message
+			setExceptionResult(result, StateEnum.ERROR.getCode(), StateEnum.ERROR.getText(), e);
+		}
+		return result;
+	}
+
+	@ApiOperation(value = "根据id查询保密声明", notes = "根据id查询保密声明")
+	@Override
+	public APIResult<ConfidentialityStatementPo> get(
+			@ApiParam(name = "id", value = "查询id", required = true) 
+			@RequestParam(name = "id", required = true) String id) {
+		APIResult<ConfidentialityStatementPo> result = new APIResult<>();
+		try {
+			ConfidentialityStatementPo confidentialityStatementPo = confidentialityStatementRepository.get(id);
+			result.setData(confidentialityStatementPo);
+		} catch (Exception e) {
+			setExceptionResult(result, StateEnum.ERROR.getCode(), StateEnum.ERROR.getText(), e);
+		}
+		return result;
+	}
+	
+	@ApiOperation(value = "保存", notes = "保存保密声明信息", 
+			extensions = {
+					@Extension(properties = {
+							@ExtensionProperty(name = "submitCtrl", value = StringPool.Y)
+					})
+			})
+	@Override
+	public APIResult<Void> save(
+			@ApiParam(name = "confidentialityStatementPo", value = "保密声明对象", required = true)  
+			@RequestBody(required = true) ConfidentialityStatementPo confidentialityStatementPo) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			logger.info(" com.lc.ibps.components.provider.ConfidentialityStatementProvider.save()--->confidentialityStatementPo: {}", confidentialityStatementPo.toString());
+			ConfidentialityStatement domain = confidentialityStatementRepository.newInstance(confidentialityStatementPo);
+			domain.save();
+			result.setMessage("保存保密声明成功");
+		} catch (Exception e) {
+			setExceptionResult(result, StateEnum.ERROR.getCode(), StateEnum.ERROR.getText(), e);
+		}
+		return result;
+	}
+
+	@ApiOperation(value = "删除", notes = "删除保密声明", 
+			extensions = {
+					@Extension(properties = {
+							@ExtensionProperty(name = "submitCtrl", value = StringPool.Y)
+					})
+			})
+	@Override
+	public APIResult<Void> remove(
+			@ApiParam(name = "ids", value = "保密声明ID数组", required = true)  
+			@RequestParam(name = "ids", required = true) String[] ids) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			ConfidentialityStatement domain = confidentialityStatementRepository.newInstance();
+			domain.deleteByIds(ids);
+			result.setMessage("删除保密声明成功");
+		} catch (Exception e) {
+			setExceptionResult(result, StateEnum.ERROR.getCode(), StateEnum.ERROR.getText(), e);
+		}
+		return result;
+	}
+	
+}

+ 18 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/ConfidentialityStatementRepository.java

@@ -0,0 +1,18 @@
+package com.lc.ibps.components.employee.repository;
+
+import com.lc.ibps.base.framework.repository.IRepository;
+import com.lc.ibps.components.employee.domain.ConfidentialityStatement;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+
+/**
+ * 保密声明 仓库接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:33
+ *</pre>
+ */
+public interface ConfidentialityStatementRepository extends IRepository<String, ConfidentialityStatementPo,ConfidentialityStatement>{
+
+}

+ 56 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/ConfidentialityStatementRepositoryImpl.java

@@ -0,0 +1,56 @@
+package com.lc.ibps.components.employee.repository.impl;
+
+
+import javax.annotation.Resource;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.core.util.AppUtil;
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.base.framework.repository.AbstractRepository;
+import com.lc.ibps.components.employee.domain.ConfidentialityStatement;
+import com.lc.ibps.components.employee.repository.ConfidentialityStatementRepository;
+import com.lc.ibps.components.employee.persistence.dao.ConfidentialityStatementQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+
+/**
+ * 保密声明 仓库的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:33
+ *</pre>
+ */
+@Repository
+public class ConfidentialityStatementRepositoryImpl extends AbstractRepository<String, ConfidentialityStatementPo,ConfidentialityStatement> implements ConfidentialityStatementRepository{
+	  
+	@Resource
+	private  ConfidentialityStatementQueryDao confidentialityStatementQueryDao;
+
+	public ConfidentialityStatement newInstance() {
+		ConfidentialityStatementPo po = new ConfidentialityStatementPo();
+		ConfidentialityStatement confidentialityStatement = AppUtil.getBean(ConfidentialityStatement.class);
+		confidentialityStatement.setData(po);
+		return confidentialityStatement;
+	}
+
+	public ConfidentialityStatement newInstance(ConfidentialityStatementPo po) {
+		ConfidentialityStatement confidentialityStatement = AppUtil.getBean(ConfidentialityStatement.class);
+		confidentialityStatement.setData(po);
+		return confidentialityStatement;
+	} 
+	
+	@Override
+	protected IQueryDao<String, ConfidentialityStatementPo> getQueryDao() {
+		return confidentialityStatementQueryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "confidentialityStatement";
+	}
+	
+
+	
+}

+ 4 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/EmployeeInfoRepositoryImpl.java

@@ -58,6 +58,8 @@ public class EmployeeInfoRepositoryImpl extends AbstractRepository<String, Emplo
 	private KyzlQueryDao kyzlQueryDao;//科研专利
 	@Resource
 	private JxjyxmxshdQueryDao jxjyxmxshdQueryDao;//继续教育
+	@Resource
+	private ConfidentialityStatementQueryDao confidentialityStatementQueryDao; //保密声明
 
 	public EmployeeInfo newInstance() {
 		EmployeeInfoPo po = new EmployeeInfoPo();
@@ -130,6 +132,8 @@ public class EmployeeInfoRepositoryImpl extends AbstractRepository<String, Emplo
 			data = kyzlQueryDao.findByEmployeeId(employeeId,page);
 		}else if("jxjy".equalsIgnoreCase(type)){  //继续教育
 			data = jxjyxmxshdQueryDao.findByEmployeeId(employeeId,page);
+		}else if("bmsm".equalsIgnoreCase(type)){  //保密声明
+			data = confidentialityStatementQueryDao.findByEmployeeId(employeeId,page);
 		}
 		return (List<AbstractPo>) data;
 	}

+ 108 - 0
ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/employee/persistence/mapping/ConfidentialityStatement.map.xml

@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo">
+	<!--<cache type="net.oschina.j2cache.mybatis.J2CacheAdapter"/>-->
+	<resultMap id="ConfidentialityStatementPo" type="com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo">
+		<id property="id" column="ID_" jdbcType="VARCHAR"/>
+		<result property="tenantId" column="TENANT_ID_" jdbcType="VARCHAR"/>
+		<result property="ip" column="IP_" jdbcType="VARCHAR"/>
+		<result property="createBy" column="CREATE_BY_" jdbcType="VARCHAR"/>
+		<result property="createTime" column="CREATE_TIME_" jdbcType="TIMESTAMP"/>
+		<result property="updateBy" column="UPDATE_BY_" jdbcType="VARCHAR"/>
+		<result property="updateTime" column="UPDATE_TIME_" jdbcType="TIMESTAMP"/>
+		<result property="shiFouGuoShen" column="SHI_FOU_GUO_SHEN_" jdbcType="VARCHAR"/>
+		<result property="diDian" column="DI_DIAN_" jdbcType="VARCHAR"/>
+		<result property="bianZhiRen" column="BIAN_ZHI_REN_" jdbcType="VARCHAR"/>
+		<result property="bianZhiBuMen" column="BIAN_ZHI_BU_MEN_" jdbcType="VARCHAR"/>
+		<result property="bianZhiShiJian" column="BIAN_ZHI_SHI_JIAN" jdbcType="VARCHAR"/>
+		<result property="kuaiZhao" column="KUAI_ZHAO_" jdbcType="VARCHAR"/>
+		<result property="baoMiRen" column="BAO_MI_REN_" jdbcType="VARCHAR"/>
+		<result property="shuoMing" column="SHUO_MING_" jdbcType="BLOB"/>
+		<result property="fuJian" column="FU_JIAN_" jdbcType="BLOB"/>
+		<result property="xuanZeRenYuan" column="XUAN_ZE_REN_YUAN_" jdbcType="BLOB"/>
+		<result property="xuQianDingRen" column="XU_QIAN_DING_REN_" jdbcType="BLOB"/>
+		<result property="uuid" column="UUID_" jdbcType="VARCHAR"/>
+	</resultMap>
+	
+	<sql id="columns">
+		ID_,TENANT_ID_,IP_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_,SHI_FOU_GUO_SHEN_,DI_DIAN_,BIAN_ZHI_REN_,BIAN_ZHI_BU_MEN_,BIAN_ZHI_SHI_JIAN,KUAI_ZHAO_,BAO_MI_REN_,SHUO_MING_,FU_JIAN_,XUAN_ZE_REN_YUAN_,XU_QIAN_DING_REN_,UUID_
+	</sql>
+	
+	<insert id="create" parameterType="com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo">
+		INSERT INTO T_BMSM
+		(<include refid="columns"/>)
+		VALUES 
+		(#{id,jdbcType=VARCHAR}, #{tenantId,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{shiFouGuoShen,jdbcType=VARCHAR}, #{diDian,jdbcType=VARCHAR}, #{bianZhiRen,jdbcType=VARCHAR}, #{bianZhiBuMen,jdbcType=VARCHAR}, #{bianZhiShiJian,jdbcType=VARCHAR}, #{kuaiZhao,jdbcType=VARCHAR}, #{baoMiRen,jdbcType=VARCHAR}, #{shuoMing,jdbcType=BLOB}, #{fuJian,jdbcType=BLOB}, #{xuanZeRenYuan,jdbcType=BLOB}, #{xuQianDingRen,jdbcType=BLOB}, #{uuid,jdbcType=VARCHAR})
+	</insert>
+	
+	<select id="get" parameterType="java.lang.String" resultMap="ConfidentialityStatementPo">
+		SELECT <include refid="columns"/> FROM T_BMSM 
+		WHERE 
+		ID_=#{id}
+	</select>
+	
+	
+	<sql id="querySql" >
+		SELECT <include refid="columns"/> FROM T_BMSM
+		<where>
+			<if test="@o.Ognl@isNotEmpty(whereSql)">
+				${whereSql}
+			</if>
+		</where>
+		<if test="@o.Ognl@isNotEmpty(orderBySql)">
+			ORDER BY ${orderBySql}
+		</if>
+		<if test="@o.Ognl@isEmpty(orderBySql)">
+			ORDER BY ID_ DESC
+		</if>
+	</sql>
+	
+	<select id="query" parameterType="java.util.Map" resultMap="ConfidentialityStatementPo">
+		<include refid="querySql"/>
+	</select>
+	
+	<select id="queryIds" parameterType="java.util.Map" resultMap="ConfidentialityStatementPo">
+		SELECT ID_ FROM (<include refid="querySql"/>) T
+	</select>
+	
+	<select id="findByIds" resultMap="ConfidentialityStatementPo">
+		SELECT <include refid="columns"/> FROM T_BMSM
+			WHERE ID_ in 
+			<foreach item="id" index="index" collection="ids" open="(" separator="," close=")">  
+				#{id}  
+			</foreach>  		
+			ORDER BY ID_ DESC			
+	</select>
+	<select id="findByEmployeeId" resultMap="ConfidentialityStatementPo">
+		SELECT * FROM  t_bmsm WHERE bao_mi_ren_=#{employeeId}
+	</select>
+	<update id="update" parameterType="com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo">
+		UPDATE T_BMSM SET
+		TENANT_ID_=#{tenantId,jdbcType=VARCHAR},
+		IP_=#{ip,jdbcType=VARCHAR},
+		UPDATE_BY_=#{updateBy,jdbcType=VARCHAR},
+		UPDATE_TIME_=#{updateTime,jdbcType=TIMESTAMP},
+		SHI_FOU_GUO_SHEN_=#{shiFouGuoShen,jdbcType=VARCHAR},
+		DI_DIAN_=#{diDian,jdbcType=VARCHAR},
+		BIAN_ZHI_REN_=#{bianZhiRen,jdbcType=VARCHAR},
+		BIAN_ZHI_BU_MEN_=#{bianZhiBuMen,jdbcType=VARCHAR},
+		BIAN_ZHI_SHI_JIAN=#{bianZhiShiJian,jdbcType=VARCHAR},
+		KUAI_ZHAO_=#{kuaiZhao,jdbcType=VARCHAR},
+		BAO_MI_REN_=#{baoMiRen,jdbcType=VARCHAR},
+		SHUO_MING_=#{shuoMing,jdbcType=BLOB},
+		FU_JIAN_=#{fuJian,jdbcType=BLOB},
+		XUAN_ZE_REN_YUAN_=#{xuanZeRenYuan,jdbcType=BLOB},
+		XU_QIAN_DING_REN_=#{xuQianDingRen,jdbcType=BLOB},
+		UUID_=#{uuid,jdbcType=VARCHAR}
+		WHERE
+		ID_=#{id}
+	</update>
+	
+	<delete id="remove" parameterType="java.lang.String">
+		DELETE FROM T_BMSM 
+		WHERE
+		ID_=#{id}
+	</delete>
+	
+	
+</mapper>

+ 60 - 0
ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/domain/ConfidentialityStatementTest.java

@@ -0,0 +1,60 @@
+package com.lc.ibps.components.employee.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.springframework.test.annotation.Rollback;
+
+import com.lc.ibps.components.employee.domain.ConfidentialityStatement;
+import com.lc.ibps.components.employee.repository.ConfidentialityStatementRepository;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 保密声明 领域对象实体单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:34
+ *</pre>
+ */
+public class ConfidentialityStatementTest extends EmployeeBaseTest{
+	 
+	@Resource
+	private ConfidentialityStatementRepository confidentialityStatementRepository;
+	
+	@Test
+	@Rollback(true)
+	public void create(){				
+		ConfidentialityStatement confidentialityStatement = confidentialityStatementRepository.newInstance();
+		
+		ConfidentialityStatementPo confidentialityStatementPo=new ConfidentialityStatementPo();
+		confidentialityStatementPo.setId(idGenerator.getId());
+		
+		confidentialityStatement.setData(confidentialityStatementPo);
+		
+		List<String> ids = new ArrayList<String>();
+		
+		confidentialityStatement.create();	
+		ids.add(confidentialityStatement.getId());
+						
+		ConfidentialityStatement confidentialityStatement2 = confidentialityStatementRepository.newInstance();
+		confidentialityStatementPo.setId(idGenerator.getId());
+		confidentialityStatement2.setData(confidentialityStatementPo);
+		
+		confidentialityStatement2.create();
+		ids.add(confidentialityStatement2.getId());
+		
+		List<ConfidentialityStatementPo> confidentialityStatementPoList = confidentialityStatementRepository.findByIds(ids);
+		Assert.assertTrue(confidentialityStatementPoList.size()>=2);
+		
+		List<ConfidentialityStatementPo>confidentialityStatement1 = confidentialityStatementRepository.findAll();
+		Assert.assertTrue(confidentialityStatement1.size()>=2);
+
+	}
+}

+ 55 - 0
ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/persistence/dao/ConfidentialityStatementDaoTest.java

@@ -0,0 +1,55 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import javax.annotation.Resource;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.springframework.test.annotation.Rollback;
+
+import com.lc.ibps.components.employee.persistence.dao.ConfidentialityStatementDao;
+import com.lc.ibps.components.employee.persistence.dao.ConfidentialityStatementQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.ConfidentialityStatementPo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 保密声明 dao单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-12-05 14:56:32
+ *</pre>
+ */
+public class ConfidentialityStatementDaoTest extends EmployeeBaseTest{
+
+	@Resource
+	private ConfidentialityStatementDao confidentialityStatementDao;
+	
+	@Resource
+	private ConfidentialityStatementQueryDao confidentialityStatementQueryDao;
+		
+	@Test
+	@Rollback(true)
+	public void testCrud(){
+		ConfidentialityStatementPo confidentialityStatementPo=new ConfidentialityStatementPo();
+		confidentialityStatementPo.setId(idGenerator.getId());
+		
+		//创建一实体
+		confidentialityStatementDao.create(confidentialityStatementPo);
+        Assert.assertNotNull(confidentialityStatementPo.getId());
+        logger.debug("confidentialityStatementPo1:"+ confidentialityStatementPo.getId());
+		//获取一实体
+		ConfidentialityStatementPo confidentialityStatementPo2=confidentialityStatementQueryDao.get(confidentialityStatementPo.getId());
+		Assert.assertNotNull(confidentialityStatementPo2);
+		logger.debug("confidentialityStatementPo2:" + confidentialityStatementPo2.toString());
+		//更新一实体
+		confidentialityStatementDao.update(confidentialityStatementPo2);
+		
+		ConfidentialityStatementPo confidentialityStatementPo3=confidentialityStatementQueryDao.get(confidentialityStatementPo.getId());
+		Assert.assertNotNull(confidentialityStatementPo3);
+		logger.debug("confidentialityStatementPo3:"+confidentialityStatementPo3.toString());
+		//删除一实体
+		//confidentialityStatementDao.remove(confidentialityStatementPo.getId());
+	}
+	
+}