Просмотр исходного кода

[task-3657]设备档案卡接口新增

szjbdgzl 1 год назад
Родитель
Сommit
dac62a34ff
12 измененных файлов с 914 добавлено и 0 удалено
  1. 82 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/api/IPVRecordService.java
  2. 64 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/domain/PVRecord.java
  3. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/persistence/dao/PVRecordDao.java
  4. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/persistence/dao/PVRecordQueryDao.java
  5. 26 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/persistence/dao/impl/PVRecordDaoImpl.java
  6. 27 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/persistence/dao/impl/PVRecordQueryDaoImpl.java
  7. 35 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/persistence/entity/PVRecordPo.java
  8. 331 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/persistence/entity/PVRecordTbl.java
  9. 123 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/provider/PVRecordProvider.java
  10. 18 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/repository/PVRecordRepository.java
  11. 56 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/repository/impl/PVRecordRepositoryImpl.java
  12. 120 0
      ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/equipment/persistence/mapping/PVRecord.map.xml

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

@@ -0,0 +1,82 @@
+package com.lc.ibps.components.equipment.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.equipment.persistence.entity.PVRecordPo;
+
+
+
+/**
+ * 设备性能验证记录子表 接口
+ *
+ *<pre> 
+ * 构建组:ibps-provider-pVRecord-api
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:59
+ *</pre>
+ */
+@Validated
+@RequestMapping(value = "/equipment/pVRecord")
+@RestController
+public interface IPVRecordService {
+
+	/**
+	 * 
+	 * 【设备性能验证记录子表】列表(分页条件查询)数据
+	 *
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/query", method = RequestMethod.POST)
+	public APIResult<APIPageList<PVRecordPo>> query(
+			@RequestBody(required = true) APIRequest request);
+	
+	/**
+	 * 
+	 * 根据id查询【设备性能验证记录子表】
+	 *
+	 * @param id
+	 * @return
+	 */
+	@RequestMapping(value = "/get", method = { RequestMethod.GET })
+	public APIResult<PVRecordPo> get(
+//			@NotBlank(message = "{com.lc.ibps.components.provider.PVRecordProvider.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.PVRecordProvider.ids}")
+			@RequestParam(name = "ids", required = true) String[] ids);
+	
+	/**
+	 * 
+	 * 保存【设备性能验证记录子表】记录
+	 *
+	 * @param pVRecordPo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = { RequestMethod.POST })
+	public APIResult<Void> save(
+ 			@RequestBody(required = true) @Valid PVRecordPo pVRecordPo);
+}

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

@@ -0,0 +1,64 @@
+package com.lc.ibps.components.equipment.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.equipment.persistence.dao.PVRecordDao;
+import com.lc.ibps.components.equipment.persistence.dao.PVRecordQueryDao;
+import com.lc.ibps.components.equipment.repository.PVRecordRepository;
+import com.lc.ibps.components.equipment.persistence.entity.PVRecordPo;
+
+/**
+ * 设备性能验证记录子表 领域对象实体
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:58
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Service
+@Transactional
+@Scope("prototype")
+public class PVRecord extends AbstractDomain<String, PVRecordPo>{
+	
+	@Resource
+	private PVRecordDao pVRecordDao;
+	@Resource
+	private PVRecordQueryDao pVRecordQueryDao;
+	@Resource
+	private PVRecordRepository pVRecordRepository;
+
+
+	protected void init(){
+		//
+	}
+	
+	@Override
+	protected IQueryDao<String, PVRecordPo> getInternalQueryDao() {
+		return pVRecordQueryDao;
+	}
+	
+	@Override
+	protected IDao<String, PVRecordPo> getInternalDao() {
+		return pVRecordDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "pVRecord";
+	}
+	
+	
+	
+}

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

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.equipment.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.components.equipment.persistence.entity.PVRecordPo;
+
+/**
+ * 设备性能验证记录子表 Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:57
+ *</pre>
+ */
+public interface PVRecordDao extends IDao<String, PVRecordPo> {
+}

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

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.equipment.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.components.equipment.persistence.entity.PVRecordPo;
+
+/**
+ * 设备性能验证记录子表 查询Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:57
+ *</pre>
+ */
+public interface PVRecordQueryDao extends IQueryDao<String, PVRecordPo> {
+}

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

@@ -0,0 +1,26 @@
+package com.lc.ibps.components.equipment.persistence.dao.impl;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisDaoImpl;
+import com.lc.ibps.components.equipment.persistence.dao.PVRecordDao;
+import com.lc.ibps.components.equipment.persistence.entity.PVRecordPo;
+
+/**
+ * 设备性能验证记录子表 Dao接口的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:57
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Repository
+public class PVRecordDaoImpl extends MyBatisDaoImpl<String, PVRecordPo> implements PVRecordDao{
+
+    @Override
+    public String getNamespace() {
+        return PVRecordPo.class.getName();
+    }
+}

+ 27 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/persistence/dao/impl/PVRecordQueryDaoImpl.java

@@ -0,0 +1,27 @@
+package com.lc.ibps.components.equipment.persistence.dao.impl;
+
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisQueryDaoImpl;
+import com.lc.ibps.components.equipment.persistence.dao.PVRecordQueryDao;
+import com.lc.ibps.components.equipment.persistence.entity.PVRecordPo;
+
+/**
+ *设备性能验证记录子表 查询Dao的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:56
+ *</pre>
+ */
+ @SuppressWarnings("serial")
+@Repository
+public class PVRecordQueryDaoImpl extends MyBatisQueryDaoImpl<String, PVRecordPo> implements PVRecordQueryDao{
+
+    @Override
+    public String getNamespace() {
+        return PVRecordPo.class.getName();
+    }
+}

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

@@ -0,0 +1,35 @@
+package com.lc.ibps.components.equipment.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
+ * 创建时间:2025-01-15 11:10:55
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "设备性能验证记录子表对象")
+public class PVRecordPo extends PVRecordTbl{
+
+	public static PVRecordPo fromJsonString(String data){
+		if(JacksonUtil.isNotJsonObject(data)){
+			return null;
+		}
+		return JacksonUtil.getDTO(data, PVRecordPo.class);
+	}
+	
+	public static List<PVRecordPo> fromJsonArrayString(String listData){
+		if(JacksonUtil.isNotJsonArray(listData)){
+			return Collections.emptyList();
+		}
+		return JacksonUtil.getDTOList(listData, PVRecordPo.class);
+	}
+}

+ 331 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/equipment/persistence/entity/PVRecordTbl.java

@@ -0,0 +1,331 @@
+package com.lc.ibps.components.equipment.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
+ * 创建时间:2025-01-15 11:10:56
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "设备性能验证记录子表对象")
+public class PVRecordTbl extends AbstractPo<String>{
+	@ApiModelProperty(value = "主键")
+	protected String  id; 		/*主键*/
+	@ApiModelProperty(value = "外键")
+	protected String  parentId; 		/*外键*/
+	@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  xiangMu; 		/*验证项目*/
+	@ApiModelProperty(value = "检测方法")
+	protected String  fangFa; 		/*检测方法*/
+	@ApiModelProperty(value = "项目名称")
+	protected String  mingCheng; 		/*项目名称*/
+	@ApiModelProperty(value = "试剂厂商")
+	protected String  changShang; 		/*试剂厂商*/
+	@ApiModelProperty(value = "验证日期")
+	protected String  riQi; 		/*验证日期*/
+	@ApiModelProperty(value = "附件")
+	protected String  fuJian; 		/*附件*/
+	@ApiModelProperty(value = "设备名称")
+	protected String  sheBeiMingChen; 		/*设备名称*/
+	@ApiModelProperty(value = "设备编号")
+	protected String  sheBeiBianHao; 		/*设备编号*/
+	@ApiModelProperty(value = "记录人")
+	protected String  jiLuRen; 		/*记录人*/
+	@ApiModelProperty(value = "方法名")
+	protected String  fangFaMing; 		/*方法名*/
+	@ApiModelProperty(value = "设备名")
+	protected String  sheBeiMing; 		/*设备名*/
+	@ApiModelProperty(value = "厂商名")
+	protected String  changShangMing; 		/*厂商名*/
+
+	public void setId(String id) 
+	{
+		this.id = id;
+	}
+	/**
+	 * 返回 主键
+	 * @return
+	 */
+	public String getId() 
+	{
+		return this.id;
+	}
+	public void setParentId(String parentId) 
+	{
+		this.parentId = parentId;
+	}
+	/**
+	 * 返回 外键
+	 * @return
+	 */
+	public String getParentId() 
+	{
+		return this.parentId;
+	}
+	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 setXiangMu(String xiangMu) 
+	{
+		this.xiangMu = xiangMu;
+	}
+	/**
+	 * 返回 验证项目
+	 * @return
+	 */
+	public String getXiangMu() 
+	{
+		return this.xiangMu;
+	}
+	public void setFangFa(String fangFa) 
+	{
+		this.fangFa = fangFa;
+	}
+	/**
+	 * 返回 检测方法
+	 * @return
+	 */
+	public String getFangFa() 
+	{
+		return this.fangFa;
+	}
+	public void setMingCheng(String mingCheng) 
+	{
+		this.mingCheng = mingCheng;
+	}
+	/**
+	 * 返回 项目名称
+	 * @return
+	 */
+	public String getMingCheng() 
+	{
+		return this.mingCheng;
+	}
+	public void setChangShang(String changShang) 
+	{
+		this.changShang = changShang;
+	}
+	/**
+	 * 返回 试剂厂商
+	 * @return
+	 */
+	public String getChangShang() 
+	{
+		return this.changShang;
+	}
+	public void setRiQi(String riQi) 
+	{
+		this.riQi = riQi;
+	}
+	/**
+	 * 返回 验证日期
+	 * @return
+	 */
+	public String getRiQi() 
+	{
+		return this.riQi;
+	}
+	public void setFuJian(String fuJian) 
+	{
+		this.fuJian = fuJian;
+	}
+	/**
+	 * 返回 附件
+	 * @return
+	 */
+	public String getFuJian() 
+	{
+		return this.fuJian;
+	}
+	public void setSheBeiMingChen(String sheBeiMingChen) 
+	{
+		this.sheBeiMingChen = sheBeiMingChen;
+	}
+	/**
+	 * 返回 设备名称
+	 * @return
+	 */
+	public String getSheBeiMingChen() 
+	{
+		return this.sheBeiMingChen;
+	}
+	public void setSheBeiBianHao(String sheBeiBianHao) 
+	{
+		this.sheBeiBianHao = sheBeiBianHao;
+	}
+	/**
+	 * 返回 设备编号
+	 * @return
+	 */
+	public String getSheBeiBianHao() 
+	{
+		return this.sheBeiBianHao;
+	}
+	public void setJiLuRen(String jiLuRen) 
+	{
+		this.jiLuRen = jiLuRen;
+	}
+	/**
+	 * 返回 记录人
+	 * @return
+	 */
+	public String getJiLuRen() 
+	{
+		return this.jiLuRen;
+	}
+	public void setFangFaMing(String fangFaMing) 
+	{
+		this.fangFaMing = fangFaMing;
+	}
+	/**
+	 * 返回 方法名
+	 * @return
+	 */
+	public String getFangFaMing() 
+	{
+		return this.fangFaMing;
+	}
+	public void setSheBeiMing(String sheBeiMing) 
+	{
+		this.sheBeiMing = sheBeiMing;
+	}
+	/**
+	 * 返回 设备名
+	 * @return
+	 */
+	public String getSheBeiMing() 
+	{
+		return this.sheBeiMing;
+	}
+	public void setChangShangMing(String changShangMing) 
+	{
+		this.changShangMing = changShangMing;
+	}
+	/**
+	 * 返回 厂商名
+	 * @return
+	 */
+	public String getChangShangMing() 
+	{
+		return this.changShangMing;
+	}
+	
+}

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

@@ -0,0 +1,123 @@
+package com.lc.ibps.components.equipment.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.equipment.api.IPVRecordService;
+import com.lc.ibps.components.equipment.domain.PVRecord;
+import com.lc.ibps.components.equipment.persistence.entity.PVRecordPo;
+import com.lc.ibps.components.equipment.repository.PVRecordRepository;
+
+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-pVRecord
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:59
+ *</pre>
+ */
+@Api(tags = "设备性能验证记录子表管理", value = "设备性能验证记录子表数据")
+@Service
+public class PVRecordProvider extends GenericProvider implements IPVRecordService{
+
+	@Resource
+	private PVRecordRepository pVRecordRepository;
+
+	@ApiOperation(value = "设备性能验证记录子表列表(分页条件查询)数据", notes = "设备性能验证记录子表列表(分页条件查询)数据")
+	@Override
+	public APIResult<APIPageList<PVRecordPo>> query(
+			@ApiParam(name = "request", value = "传入查询请求json字符串", required = true) 
+			@RequestBody(required = true) APIRequest request) {
+		APIResult<APIPageList<PVRecordPo>> result = new APIResult<>();
+		try {
+			QueryFilter queryFilter = getQueryFilter(request);
+			List<PVRecordPo> data = pVRecordRepository.query(queryFilter);
+			APIPageList<PVRecordPo> 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<PVRecordPo> get(
+			@ApiParam(name = "id", value = "查询id", required = true) 
+			@RequestParam(name = "id", required = true) String id) {
+		APIResult<PVRecordPo> result = new APIResult<>();
+		try {
+			PVRecordPo pVRecordPo = pVRecordRepository.get(id);
+			result.setData(pVRecordPo);
+		} 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 = "pVRecordPo", value = "设备性能验证记录子表对象", required = true)  
+			@RequestBody(required = true) PVRecordPo pVRecordPo) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			logger.info(" com.lc.ibps.components.provider.PVRecordProvider.save()--->pVRecordPo: {}", pVRecordPo.toString());
+			PVRecord domain = pVRecordRepository.newInstance(pVRecordPo);
+			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 {
+			PVRecord domain = pVRecordRepository.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/equipment/repository/PVRecordRepository.java

@@ -0,0 +1,18 @@
+package com.lc.ibps.components.equipment.repository;
+
+import com.lc.ibps.base.framework.repository.IRepository;
+import com.lc.ibps.components.equipment.domain.PVRecord;
+import com.lc.ibps.components.equipment.persistence.entity.PVRecordPo;
+
+/**
+ * 设备性能验证记录子表 仓库接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:58
+ *</pre>
+ */
+public interface PVRecordRepository extends IRepository<String, PVRecordPo,PVRecord>{
+
+}

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

@@ -0,0 +1,56 @@
+package com.lc.ibps.components.equipment.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.equipment.domain.PVRecord;
+import com.lc.ibps.components.equipment.repository.PVRecordRepository;
+import com.lc.ibps.components.equipment.persistence.dao.PVRecordQueryDao;
+import com.lc.ibps.components.equipment.persistence.entity.PVRecordPo;
+
+/**
+ * 设备性能验证记录子表 仓库的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2025-01-15 11:10:58
+ *</pre>
+ */
+@Repository
+public class PVRecordRepositoryImpl extends AbstractRepository<String, PVRecordPo,PVRecord> implements PVRecordRepository{
+	  
+	@Resource
+	private  PVRecordQueryDao pVRecordQueryDao;
+
+	public PVRecord newInstance() {
+		PVRecordPo po = new PVRecordPo();
+		PVRecord pVRecord = AppUtil.getBean(PVRecord.class);
+		pVRecord.setData(po);
+		return pVRecord;
+	}
+
+	public PVRecord newInstance(PVRecordPo po) {
+		PVRecord pVRecord = AppUtil.getBean(PVRecord.class);
+		pVRecord.setData(po);
+		return pVRecord;
+	} 
+	
+	@Override
+	protected IQueryDao<String, PVRecordPo> getQueryDao() {
+		return pVRecordQueryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "pVRecord";
+	}
+	
+
+	
+}

+ 120 - 0
ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/equipment/persistence/mapping/PVRecord.map.xml

@@ -0,0 +1,120 @@
+<?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.equipment.persistence.entity.PVRecordPo">
+	<!--<cache type="net.oschina.j2cache.mybatis.J2CacheAdapter"/>-->
+	<resultMap id="PVRecordPo" type="com.lc.ibps.components.equipment.persistence.entity.PVRecordPo">
+		<id property="id" column="ID_" jdbcType="VARCHAR"/>
+		<result property="parentId" column="PARENT_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="xiangMu" column="XIANG_MU_" jdbcType="VARCHAR"/>
+		<result property="fangFa" column="FANG_FA_" jdbcType="VARCHAR"/>
+		<result property="mingCheng" column="MING_CHENG_" jdbcType="VARCHAR"/>
+		<result property="changShang" column="CHANG_SHANG_" jdbcType="VARCHAR"/>
+		<result property="riQi" column="RI_QI_" jdbcType="VARCHAR"/>
+		<result property="fuJian" column="FU_JIAN_" jdbcType="BLOB"/>
+		<result property="sheBeiMingChen" column="SHE_BEI_MING_CHEN" jdbcType="VARCHAR"/>
+		<result property="sheBeiBianHao" column="SHE_BEI_BIAN_HAO_" jdbcType="VARCHAR"/>
+		<result property="jiLuRen" column="JI_LU_REN_" jdbcType="VARCHAR"/>
+		<result property="fangFaMing" column="FANG_FA_MING_" jdbcType="VARCHAR"/>
+		<result property="sheBeiMing" column="SHE_BEI_MING_" jdbcType="VARCHAR"/>
+		<result property="changShangMing" column="CHANG_SHANG_MING_" jdbcType="VARCHAR"/>
+	</resultMap>
+	
+	<sql id="columns">
+		ID_,PARENT_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_,XIANG_MU_,FANG_FA_,MING_CHENG_,CHANG_SHANG_,RI_QI_,FU_JIAN_,SHE_BEI_MING_CHEN,SHE_BEI_BIAN_HAO_,JI_LU_REN_,FANG_FA_MING_,SHE_BEI_MING_,CHANG_SHANG_MING_
+	</sql>
+	
+	<insert id="create" parameterType="com.lc.ibps.components.equipment.persistence.entity.PVRecordPo">
+		INSERT INTO T_XNYZJLZB
+		(<include refid="columns"/>)
+		VALUES 
+		(#{id,jdbcType=VARCHAR}, #{parentId,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}, #{xiangMu,jdbcType=VARCHAR}, #{fangFa,jdbcType=VARCHAR}, #{mingCheng,jdbcType=VARCHAR}, #{changShang,jdbcType=VARCHAR}, #{riQi,jdbcType=VARCHAR}, #{fuJian,jdbcType=BLOB}, #{sheBeiMingChen,jdbcType=VARCHAR}, #{sheBeiBianHao,jdbcType=VARCHAR}, #{jiLuRen,jdbcType=VARCHAR}, #{fangFaMing,jdbcType=VARCHAR}, #{sheBeiMing,jdbcType=VARCHAR}, #{changShangMing,jdbcType=VARCHAR})
+	</insert>
+	
+	<select id="get" parameterType="java.lang.String" resultMap="PVRecordPo">
+		SELECT <include refid="columns"/> FROM T_XNYZJLZB 
+		WHERE 
+		ID_=#{id}
+	</select>
+	
+	
+	<sql id="querySql" >
+		SELECT <include refid="columns"/> FROM T_XNYZJLZB
+		<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="PVRecordPo">
+		<include refid="querySql"/>
+	</select>
+	
+	<select id="queryIds" parameterType="java.util.Map" resultMap="PVRecordPo">
+		SELECT ID_ FROM (<include refid="querySql"/>) T
+	</select>
+	
+	<select id="findByIds" resultMap="PVRecordPo">
+		SELECT <include refid="columns"/> FROM T_XNYZJLZB
+			WHERE ID_ in 
+			<foreach item="id" index="index" collection="ids" open="(" separator="," close=")">  
+				#{id}  
+			</foreach>  		
+			ORDER BY ID_ DESC			
+	</select>	
+	
+	<update id="update" parameterType="com.lc.ibps.components.equipment.persistence.entity.PVRecordPo">
+		UPDATE T_XNYZJLZB SET
+		PARENT_ID_=#{parentId,jdbcType=VARCHAR},
+		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},
+		XIANG_MU_=#{xiangMu,jdbcType=VARCHAR},
+		FANG_FA_=#{fangFa,jdbcType=VARCHAR},
+		MING_CHENG_=#{mingCheng,jdbcType=VARCHAR},
+		CHANG_SHANG_=#{changShang,jdbcType=VARCHAR},
+		RI_QI_=#{riQi,jdbcType=VARCHAR},
+		FU_JIAN_=#{fuJian,jdbcType=BLOB},
+		SHE_BEI_MING_CHEN=#{sheBeiMingChen,jdbcType=VARCHAR},
+		SHE_BEI_BIAN_HAO_=#{sheBeiBianHao,jdbcType=VARCHAR},
+		JI_LU_REN_=#{jiLuRen,jdbcType=VARCHAR},
+		FANG_FA_MING_=#{fangFaMing,jdbcType=VARCHAR},
+		SHE_BEI_MING_=#{sheBeiMing,jdbcType=VARCHAR},
+		CHANG_SHANG_MING_=#{changShangMing,jdbcType=VARCHAR}
+		WHERE
+		ID_=#{id}
+	</update>
+	
+	<delete id="remove" parameterType="java.lang.String">
+		DELETE FROM T_XNYZJLZB 
+		WHERE
+		ID_=#{id}
+	</delete>
+	
+	
+</mapper>