Browse Source

[task-2943] 【后端】试剂耗材管理接口开发

Li Yuan 1 year ago
parent
commit
8ac7f9f8ba
29 changed files with 1955 additions and 0 deletions
  1. 90 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/api/IReagentConsumablesInventoryService.java
  2. 82 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/api/IReagentConsumablesTransactionService.java
  3. 67 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/domain/ReagentConsumablesInventory.java
  4. 64 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/domain/ReagentConsumablesTransaction.java
  5. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/dao/ReagentConsumablesInventoryDao.java
  6. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/dao/ReagentConsumablesInventoryQueryDao.java
  7. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/dao/ReagentConsumablesTransactionDao.java
  8. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/dao/ReagentConsumablesTransactionQueryDao.java
  9. 26 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/dao/impl/ReagentConsumablesInventoryDaoImpl.java
  10. 27 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/dao/impl/ReagentConsumablesInventoryQueryDaoImpl.java
  11. 26 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/dao/impl/ReagentConsumablesTransactionDaoImpl.java
  12. 27 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/dao/impl/ReagentConsumablesTransactionQueryDaoImpl.java
  13. 35 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/entity/ReagentConsumablesInventoryPo.java
  14. 275 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/entity/ReagentConsumablesInventoryTbl.java
  15. 35 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/entity/ReagentConsumablesTransactionPo.java
  16. 261 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/entity/ReagentConsumablesTransactionTbl.java
  17. 18 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/repository/ReagentConsumablesInventoryRepository.java
  18. 18 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/repository/ReagentConsumablesTransactionRepository.java
  19. 56 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/repository/impl/ReagentConsumablesInventoryRepositoryImpl.java
  20. 56 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/repository/impl/ReagentConsumablesTransactionRepositoryImpl.java
  21. 130 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/service/ReagentConsumablesInventoryProvider.java
  22. 121 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/service/ReagentConsumablesTransactionProvider.java
  23. 112 0
      ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/reagent/persistence/mapping/ReagentConsumablesInventory.map.xml
  24. 110 0
      ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/reagent/persistence/mapping/ReagentConsumablesTransaction.map.xml
  25. 25 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/ReagentBaseTest.java
  26. 60 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/reagent/domain/ReagentConsumablesInventoryTest.java
  27. 60 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/reagent/domain/ReagentConsumablesTransactionTest.java
  28. 55 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/reagent/persistence/dao/ReagentConsumablesInventoryDaoTest.java
  29. 55 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/reagent/persistence/dao/ReagentConsumablesTransactionDaoTest.java

+ 90 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/api/IReagentConsumablesInventoryService.java

@@ -0,0 +1,90 @@
+package com.lc.ibps.components.reagent.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.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+
+
+
+/**
+ * 试剂耗材库存表 接口
+ *
+ *<pre> 
+ * 构建组:ibps-provider-reagentConsumablesInventory-api
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:49
+ *</pre>
+ */
+@Validated
+@RequestMapping(value = "/reagent/reagentConsumablesInventory")
+@RestController
+public interface IReagentConsumablesInventoryService {
+
+	/**
+	 * 
+	 * 【试剂耗材库存表】列表(分页条件查询)数据
+	 *
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/query", method = RequestMethod.POST)
+	public APIResult<APIPageList<ReagentConsumablesInventoryPo>> query(
+			@RequestBody(required = true) APIRequest request);
+	
+	/**
+	 * 
+	 * 根据id查询【试剂耗材库存表】
+	 *
+	 * @param id
+	 * @return
+	 */
+	@RequestMapping(value = "/get", method = { RequestMethod.GET })
+	public APIResult<ReagentConsumablesInventoryPo> get(
+//			@NotBlank(message = "{com.lc.ibps.components.provider.ReagentConsumablesInventoryProvider.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.ReagentConsumablesInventoryProvider.ids}")
+			@RequestParam(name = "ids", required = true) String[] ids);
+	
+	/**
+	 * 
+	 * 保存【试剂耗材库存表】记录
+	 *
+	 * @param reagentConsumablesInventoryPo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = { RequestMethod.POST })
+	public APIResult<Void> save(
+ 			@RequestBody(required = true) @Valid ReagentConsumablesInventoryPo reagentConsumablesInventoryPo);
+
+	@RequestMapping(value = "/sync", method = { RequestMethod.POST })
+	public APIResult<Void> sync(
+//			@NotEmpty(message = "{com.lc.ibps.components.provider.ReagentConsumablesInventoryProvider.ids}")
+			@RequestParam(name = "id", required = true) String id,
+			@RequestParam(name = "action", required = true) String action);
+
+
+}

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

@@ -0,0 +1,82 @@
+package com.lc.ibps.components.reagent.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.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+
+
+
+/**
+ * 试剂耗材交易表 接口
+ *
+ *<pre> 
+ * 构建组:ibps-provider-reagentConsumablesTransaction-api
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:18
+ *</pre>
+ */
+@Validated
+@RequestMapping(value = "/reagent/reagentConsumablesTransaction")
+@RestController
+public interface IReagentConsumablesTransactionService {
+
+	/**
+	 * 
+	 * 【试剂耗材交易表】列表(分页条件查询)数据
+	 *
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/query", method = RequestMethod.POST)
+	public APIResult<APIPageList<ReagentConsumablesTransactionPo>> query(
+			@RequestBody(required = true) APIRequest request);
+	
+	/**
+	 * 
+	 * 根据id查询【试剂耗材交易表】
+	 *
+	 * @param id
+	 * @return
+	 */
+	@RequestMapping(value = "/get", method = { RequestMethod.GET })
+	public APIResult<ReagentConsumablesTransactionPo> get(
+//			@NotBlank(message = "{com.lc.ibps.components.provider.ReagentConsumablesTransactionProvider.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.ReagentConsumablesTransactionProvider.ids}")
+			@RequestParam(name = "ids", required = true) String[] ids);
+	
+	/**
+	 * 
+	 * 保存【试剂耗材交易表】记录
+	 *
+	 * @param reagentConsumablesTransactionPo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = { RequestMethod.POST })
+	public APIResult<Void> save(
+ 			@RequestBody(required = true) @Valid ReagentConsumablesTransactionPo reagentConsumablesTransactionPo);
+}

+ 67 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/domain/ReagentConsumablesInventory.java

@@ -0,0 +1,67 @@
+package com.lc.ibps.components.reagent.domain;
+
+
+import javax.annotation.Resource;
+
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesTransactionRepository;
+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.reagent.persistence.dao.ReagentConsumablesInventoryDao;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesInventoryQueryDao;
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesInventoryRepository;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+
+/**
+ * 试剂耗材库存表 领域对象实体
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:48
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Service
+@Transactional
+@Scope("prototype")
+public class ReagentConsumablesInventory extends AbstractDomain<String, ReagentConsumablesInventoryPo>{
+	
+	@Resource
+	private ReagentConsumablesInventoryDao reagentConsumablesInventoryDao;
+	@Resource
+	private ReagentConsumablesInventoryQueryDao reagentConsumablesInventoryQueryDao;
+	@Resource
+	private ReagentConsumablesInventoryRepository reagentConsumablesInventoryRepository;
+	@Resource
+	private ReagentConsumablesTransactionRepository ReagentConsumablesTransactionRepository;
+
+
+	protected void init(){
+		//
+	}
+	
+	@Override
+	protected IQueryDao<String, ReagentConsumablesInventoryPo> getInternalQueryDao() {
+		return reagentConsumablesInventoryQueryDao;
+	}
+	
+	@Override
+	protected IDao<String, ReagentConsumablesInventoryPo> getInternalDao() {
+		return reagentConsumablesInventoryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "reagentConsumablesInventory";
+	}
+	
+	
+	
+}

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

@@ -0,0 +1,64 @@
+package com.lc.ibps.components.reagent.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.reagent.persistence.dao.ReagentConsumablesTransactionDao;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesTransactionQueryDao;
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesTransactionRepository;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+
+/**
+ * 试剂耗材交易表 领域对象实体
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:17
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Service
+@Transactional
+@Scope("prototype")
+public class ReagentConsumablesTransaction extends AbstractDomain<String, ReagentConsumablesTransactionPo>{
+	
+	@Resource
+	private ReagentConsumablesTransactionDao reagentConsumablesTransactionDao;
+	@Resource
+	private ReagentConsumablesTransactionQueryDao reagentConsumablesTransactionQueryDao;
+	@Resource
+	private ReagentConsumablesTransactionRepository reagentConsumablesTransactionRepository;
+
+
+	protected void init(){
+		//
+	}
+	
+	@Override
+	protected IQueryDao<String, ReagentConsumablesTransactionPo> getInternalQueryDao() {
+		return reagentConsumablesTransactionQueryDao;
+	}
+	
+	@Override
+	protected IDao<String, ReagentConsumablesTransactionPo> getInternalDao() {
+		return reagentConsumablesTransactionDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "reagentConsumablesTransaction";
+	}
+	
+	
+	
+}

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

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.reagent.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+
+/**
+ * 试剂耗材库存表 Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:47
+ *</pre>
+ */
+public interface ReagentConsumablesInventoryDao extends IDao<String, ReagentConsumablesInventoryPo> {
+}

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

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.reagent.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+
+/**
+ * 试剂耗材库存表 查询Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:46
+ *</pre>
+ */
+public interface ReagentConsumablesInventoryQueryDao extends IQueryDao<String, ReagentConsumablesInventoryPo> {
+}

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

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.reagent.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+
+/**
+ * 试剂耗材交易表 Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:16
+ *</pre>
+ */
+public interface ReagentConsumablesTransactionDao extends IDao<String, ReagentConsumablesTransactionPo> {
+}

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

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.reagent.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+
+/**
+ * 试剂耗材交易表 查询Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:16
+ *</pre>
+ */
+public interface ReagentConsumablesTransactionQueryDao extends IQueryDao<String, ReagentConsumablesTransactionPo> {
+}

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

@@ -0,0 +1,26 @@
+package com.lc.ibps.components.reagent.persistence.dao.impl;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisDaoImpl;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesInventoryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+
+/**
+ * 试剂耗材库存表 Dao接口的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:46
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Repository
+public class ReagentConsumablesInventoryDaoImpl extends MyBatisDaoImpl<String, ReagentConsumablesInventoryPo> implements ReagentConsumablesInventoryDao{
+
+    @Override
+    public String getNamespace() {
+        return ReagentConsumablesInventoryPo.class.getName();
+    }
+}

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

@@ -0,0 +1,27 @@
+package com.lc.ibps.components.reagent.persistence.dao.impl;
+
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisQueryDaoImpl;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesInventoryQueryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+
+/**
+ *试剂耗材库存表 查询Dao的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:46
+ *</pre>
+ */
+ @SuppressWarnings("serial")
+@Repository
+public class ReagentConsumablesInventoryQueryDaoImpl extends MyBatisQueryDaoImpl<String, ReagentConsumablesInventoryPo> implements ReagentConsumablesInventoryQueryDao{
+
+    @Override
+    public String getNamespace() {
+        return ReagentConsumablesInventoryPo.class.getName();
+    }
+}

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

@@ -0,0 +1,26 @@
+package com.lc.ibps.components.reagent.persistence.dao.impl;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisDaoImpl;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesTransactionDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+
+/**
+ * 试剂耗材交易表 Dao接口的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:16
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Repository
+public class ReagentConsumablesTransactionDaoImpl extends MyBatisDaoImpl<String, ReagentConsumablesTransactionPo> implements ReagentConsumablesTransactionDao{
+
+    @Override
+    public String getNamespace() {
+        return ReagentConsumablesTransactionPo.class.getName();
+    }
+}

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

@@ -0,0 +1,27 @@
+package com.lc.ibps.components.reagent.persistence.dao.impl;
+
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisQueryDaoImpl;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesTransactionQueryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+
+/**
+ *试剂耗材交易表 查询Dao的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:15
+ *</pre>
+ */
+ @SuppressWarnings("serial")
+@Repository
+public class ReagentConsumablesTransactionQueryDaoImpl extends MyBatisQueryDaoImpl<String, ReagentConsumablesTransactionPo> implements ReagentConsumablesTransactionQueryDao{
+
+    @Override
+    public String getNamespace() {
+        return ReagentConsumablesTransactionPo.class.getName();
+    }
+}

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

@@ -0,0 +1,35 @@
+package com.lc.ibps.components.reagent.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-11-13 15:42:45
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "试剂耗材库存表对象")
+public class ReagentConsumablesInventoryPo extends ReagentConsumablesInventoryTbl{
+
+	public static ReagentConsumablesInventoryPo fromJsonString(String data){
+		if(JacksonUtil.isNotJsonObject(data)){
+			return null;
+		}
+		return JacksonUtil.getDTO(data, ReagentConsumablesInventoryPo.class);
+	}
+	
+	public static List<ReagentConsumablesInventoryPo> fromJsonArrayString(String listData){
+		if(JacksonUtil.isNotJsonArray(listData)){
+			return Collections.emptyList();
+		}
+		return JacksonUtil.getDTOList(listData, ReagentConsumablesInventoryPo.class);
+	}
+}

+ 275 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/entity/ReagentConsumablesInventoryTbl.java

@@ -0,0 +1,275 @@
+package com.lc.ibps.components.reagent.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-11-13 15:42:45
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "试剂耗材库存表对象")
+public class ReagentConsumablesInventoryTbl 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  mingCheng; 		/*名称*/
+	@ApiModelProperty(value = "存量")
+	protected String  cunLiang; 		/*存量*/
+	@ApiModelProperty(value = "编码")
+	protected String  bianMa; 		/*编码*/
+	@ApiModelProperty(value = "单位")
+	protected String  danWei; 		/*单位*/
+	@ApiModelProperty(value = "规格")
+	protected String  guiGe; 		/*规格*/
+	@ApiModelProperty(value = "生产厂家")
+	protected String  sCChangJia; 		/*生产厂家*/
+	@ApiModelProperty(value = "编号")
+	protected String  bianHao; 		/*编号*/
+	@ApiModelProperty(value = "批号")
+	protected String  piHao; 		/*批号*/
+	@ApiModelProperty(value = "有效期")
+	protected String  youXiaoQi; 		/*有效期*/
+
+	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 setMingCheng(String mingCheng) 
+	{
+		this.mingCheng = mingCheng;
+	}
+	/**
+	 * 返回 名称
+	 * @return
+	 */
+	public String getMingCheng() 
+	{
+		return this.mingCheng;
+	}
+	public void setCunLiang(String cunLiang) 
+	{
+		this.cunLiang = cunLiang;
+	}
+	/**
+	 * 返回 存量
+	 * @return
+	 */
+	public String getCunLiang() 
+	{
+		return this.cunLiang;
+	}
+	public void setBianMa(String bianMa) 
+	{
+		this.bianMa = bianMa;
+	}
+	/**
+	 * 返回 编码
+	 * @return
+	 */
+	public String getBianMa() 
+	{
+		return this.bianMa;
+	}
+	public void setDanWei(String danWei) 
+	{
+		this.danWei = danWei;
+	}
+	/**
+	 * 返回 单位
+	 * @return
+	 */
+	public String getDanWei() 
+	{
+		return this.danWei;
+	}
+	public void setGuiGe(String guiGe) 
+	{
+		this.guiGe = guiGe;
+	}
+	/**
+	 * 返回 规格
+	 * @return
+	 */
+	public String getGuiGe() 
+	{
+		return this.guiGe;
+	}
+	public void setSCChangJia(String sCChangJia) 
+	{
+		this.sCChangJia = sCChangJia;
+	}
+	/**
+	 * 返回 生产厂家
+	 * @return
+	 */
+	public String getSCChangJia() 
+	{
+		return this.sCChangJia;
+	}
+	public void setBianHao(String bianHao) 
+	{
+		this.bianHao = bianHao;
+	}
+	/**
+	 * 返回 编号
+	 * @return
+	 */
+	public String getBianHao() 
+	{
+		return this.bianHao;
+	}
+	public void setPiHao(String piHao) 
+	{
+		this.piHao = piHao;
+	}
+	/**
+	 * 返回 批号
+	 * @return
+	 */
+	public String getPiHao() 
+	{
+		return this.piHao;
+	}
+	public void setYouXiaoQi(String youXiaoQi) 
+	{
+		this.youXiaoQi = youXiaoQi;
+	}
+	/**
+	 * 返回 有效期
+	 * @return
+	 */
+	public String getYouXiaoQi() 
+	{
+		return this.youXiaoQi;
+	}
+	
+}

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

@@ -0,0 +1,35 @@
+package com.lc.ibps.components.reagent.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-11-13 15:50:15
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "试剂耗材交易表对象")
+public class ReagentConsumablesTransactionPo extends ReagentConsumablesTransactionTbl{
+
+	public static ReagentConsumablesTransactionPo fromJsonString(String data){
+		if(JacksonUtil.isNotJsonObject(data)){
+			return null;
+		}
+		return JacksonUtil.getDTO(data, ReagentConsumablesTransactionPo.class);
+	}
+	
+	public static List<ReagentConsumablesTransactionPo> fromJsonArrayString(String listData){
+		if(JacksonUtil.isNotJsonArray(listData)){
+			return Collections.emptyList();
+		}
+		return JacksonUtil.getDTOList(listData, ReagentConsumablesTransactionPo.class);
+	}
+}

+ 261 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/persistence/entity/ReagentConsumablesTransactionTbl.java

@@ -0,0 +1,261 @@
+package com.lc.ibps.components.reagent.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-11-13 15:50:15
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "试剂耗材交易表对象")
+public class ReagentConsumablesTransactionTbl 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  mingCheng; 		/*名称*/
+	@ApiModelProperty(value = "编码")
+	protected String  bianMa; 		/*编码*/
+	@ApiModelProperty(value = "交易类型")
+	protected String  jiaoYiLeiXing; 		/*交易类型*/
+	@ApiModelProperty(value = "数量")
+	protected String  shuLiang; 		/*数量*/
+	@ApiModelProperty(value = "批号")
+	protected String  piHao; 		/*批号*/
+	@ApiModelProperty(value = "单位")
+	protected String  danWei; 		/*单位*/
+	@ApiModelProperty(value = "生产厂家")
+	protected String  sCChangJia; 		/*生产厂家*/
+	@ApiModelProperty(value = "产品批号")
+	protected String  chanPinPiHao; 		/*产品批号*/
+
+	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 setMingCheng(String mingCheng) 
+	{
+		this.mingCheng = mingCheng;
+	}
+	/**
+	 * 返回 名称
+	 * @return
+	 */
+	public String getMingCheng() 
+	{
+		return this.mingCheng;
+	}
+	public void setBianMa(String bianMa) 
+	{
+		this.bianMa = bianMa;
+	}
+	/**
+	 * 返回 编码
+	 * @return
+	 */
+	public String getBianMa() 
+	{
+		return this.bianMa;
+	}
+	public void setJiaoYiLeiXing(String jiaoYiLeiXing) 
+	{
+		this.jiaoYiLeiXing = jiaoYiLeiXing;
+	}
+	/**
+	 * 返回 交易类型
+	 * @return
+	 */
+	public String getJiaoYiLeiXing() 
+	{
+		return this.jiaoYiLeiXing;
+	}
+	public void setShuLiang(String shuLiang) 
+	{
+		this.shuLiang = shuLiang;
+	}
+	/**
+	 * 返回 数量
+	 * @return
+	 */
+	public String getShuLiang() 
+	{
+		return this.shuLiang;
+	}
+	public void setPiHao(String piHao) 
+	{
+		this.piHao = piHao;
+	}
+	/**
+	 * 返回 批号
+	 * @return
+	 */
+	public String getPiHao() 
+	{
+		return this.piHao;
+	}
+	public void setDanWei(String danWei) 
+	{
+		this.danWei = danWei;
+	}
+	/**
+	 * 返回 单位
+	 * @return
+	 */
+	public String getDanWei() 
+	{
+		return this.danWei;
+	}
+	public void setSCChangJia(String sCChangJia) 
+	{
+		this.sCChangJia = sCChangJia;
+	}
+	/**
+	 * 返回 生产厂家
+	 * @return
+	 */
+	public String getSCChangJia() 
+	{
+		return this.sCChangJia;
+	}
+	public void setChanPinPiHao(String chanPinPiHao) 
+	{
+		this.chanPinPiHao = chanPinPiHao;
+	}
+	/**
+	 * 返回 产品批号
+	 * @return
+	 */
+	public String getChanPinPiHao() 
+	{
+		return this.chanPinPiHao;
+	}
+	
+}

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

@@ -0,0 +1,18 @@
+package com.lc.ibps.components.reagent.repository;
+
+import com.lc.ibps.base.framework.repository.IRepository;
+import com.lc.ibps.components.reagent.domain.ReagentConsumablesInventory;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+
+/**
+ * 试剂耗材库存表 仓库接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:47
+ *</pre>
+ */
+public interface ReagentConsumablesInventoryRepository extends IRepository<String, ReagentConsumablesInventoryPo,ReagentConsumablesInventory>{
+
+}

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

@@ -0,0 +1,18 @@
+package com.lc.ibps.components.reagent.repository;
+
+import com.lc.ibps.base.framework.repository.IRepository;
+import com.lc.ibps.components.reagent.domain.ReagentConsumablesTransaction;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+
+/**
+ * 试剂耗材交易表 仓库接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:17
+ *</pre>
+ */
+public interface ReagentConsumablesTransactionRepository extends IRepository<String, ReagentConsumablesTransactionPo,ReagentConsumablesTransaction>{
+
+}

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

@@ -0,0 +1,56 @@
+package com.lc.ibps.components.reagent.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.reagent.domain.ReagentConsumablesInventory;
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesInventoryRepository;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesInventoryQueryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+
+/**
+ * 试剂耗材库存表 仓库的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:47
+ *</pre>
+ */
+@Repository
+public class ReagentConsumablesInventoryRepositoryImpl extends AbstractRepository<String, ReagentConsumablesInventoryPo,ReagentConsumablesInventory> implements ReagentConsumablesInventoryRepository{
+	  
+	@Resource
+	private  ReagentConsumablesInventoryQueryDao reagentConsumablesInventoryQueryDao;
+
+	public ReagentConsumablesInventory newInstance() {
+		ReagentConsumablesInventoryPo po = new ReagentConsumablesInventoryPo();
+		ReagentConsumablesInventory reagentConsumablesInventory = AppUtil.getBean(ReagentConsumablesInventory.class);
+		reagentConsumablesInventory.setData(po);
+		return reagentConsumablesInventory;
+	}
+
+	public ReagentConsumablesInventory newInstance(ReagentConsumablesInventoryPo po) {
+		ReagentConsumablesInventory reagentConsumablesInventory = AppUtil.getBean(ReagentConsumablesInventory.class);
+		reagentConsumablesInventory.setData(po);
+		return reagentConsumablesInventory;
+	} 
+	
+	@Override
+	protected IQueryDao<String, ReagentConsumablesInventoryPo> getQueryDao() {
+		return reagentConsumablesInventoryQueryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "reagentConsumablesInventory";
+	}
+	
+
+	
+}

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

@@ -0,0 +1,56 @@
+package com.lc.ibps.components.reagent.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.reagent.domain.ReagentConsumablesTransaction;
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesTransactionRepository;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesTransactionQueryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+
+/**
+ * 试剂耗材交易表 仓库的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:16
+ *</pre>
+ */
+@Repository
+public class ReagentConsumablesTransactionRepositoryImpl extends AbstractRepository<String, ReagentConsumablesTransactionPo,ReagentConsumablesTransaction> implements ReagentConsumablesTransactionRepository{
+	  
+	@Resource
+	private  ReagentConsumablesTransactionQueryDao reagentConsumablesTransactionQueryDao;
+
+	public ReagentConsumablesTransaction newInstance() {
+		ReagentConsumablesTransactionPo po = new ReagentConsumablesTransactionPo();
+		ReagentConsumablesTransaction reagentConsumablesTransaction = AppUtil.getBean(ReagentConsumablesTransaction.class);
+		reagentConsumablesTransaction.setData(po);
+		return reagentConsumablesTransaction;
+	}
+
+	public ReagentConsumablesTransaction newInstance(ReagentConsumablesTransactionPo po) {
+		ReagentConsumablesTransaction reagentConsumablesTransaction = AppUtil.getBean(ReagentConsumablesTransaction.class);
+		reagentConsumablesTransaction.setData(po);
+		return reagentConsumablesTransaction;
+	} 
+	
+	@Override
+	protected IQueryDao<String, ReagentConsumablesTransactionPo> getQueryDao() {
+		return reagentConsumablesTransactionQueryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "reagentConsumablesTransaction";
+	}
+	
+
+	
+}

+ 130 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/service/ReagentConsumablesInventoryProvider.java

@@ -0,0 +1,130 @@
+package com.lc.ibps.components.reagent.service;
+
+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.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.reagent.api.IReagentConsumablesInventoryService;
+import com.lc.ibps.components.reagent.domain.ReagentConsumablesInventory;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesInventoryRepository;
+
+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-reagentConsumablesInventory
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:49
+ *</pre>
+ */
+@Api(tags = "试剂耗材库存表管理", value = "试剂耗材库存表数据")
+@Service
+public class ReagentConsumablesInventoryProvider extends GenericProvider implements IReagentConsumablesInventoryService{
+
+	@Resource
+	private ReagentConsumablesInventoryRepository reagentConsumablesInventoryRepository;
+
+
+
+	@ApiOperation(value = "试剂耗材库存表列表(分页条件查询)数据", notes = "试剂耗材库存表列表(分页条件查询)数据")
+	@Override
+	public APIResult<APIPageList<ReagentConsumablesInventoryPo>> query(
+			@ApiParam(name = "request", value = "传入查询请求json字符串", required = true) 
+			@RequestBody(required = true) APIRequest request) {
+		APIResult<APIPageList<ReagentConsumablesInventoryPo>> result = new APIResult<>();
+		try {
+			QueryFilter queryFilter = getQueryFilter(request);
+			List<ReagentConsumablesInventoryPo> data = reagentConsumablesInventoryRepository.query(queryFilter);
+			APIPageList<ReagentConsumablesInventoryPo> 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<ReagentConsumablesInventoryPo> get(
+			@ApiParam(name = "id", value = "查询id", required = true) 
+			@RequestParam(name = "id", required = true) String id) {
+		APIResult<ReagentConsumablesInventoryPo> result = new APIResult<>();
+		try {
+			ReagentConsumablesInventoryPo reagentConsumablesInventoryPo = reagentConsumablesInventoryRepository.get(id);
+			result.setData(reagentConsumablesInventoryPo);
+		} 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 = "reagentConsumablesInventoryPo", value = "试剂耗材库存表对象", required = true)  
+			@RequestBody(required = true) ReagentConsumablesInventoryPo reagentConsumablesInventoryPo) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			logger.info(" com.lc.ibps.components.provider.ReagentConsumablesInventoryProvider.save()--->reagentConsumablesInventoryPo: {}", reagentConsumablesInventoryPo.toString());
+			ReagentConsumablesInventory domain = reagentConsumablesInventoryRepository.newInstance(reagentConsumablesInventoryPo);
+			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 {
+			ReagentConsumablesInventory domain = reagentConsumablesInventoryRepository.newInstance();
+			domain.deleteByIds(ids);
+			result.setMessage("删除试剂耗材库存表成功");
+		} catch (Exception e) {
+			setExceptionResult(result, StateEnum.ERROR.getCode(), StateEnum.ERROR.getText(), e);
+		}
+		return result;
+	}
+
+
+	@Override
+	public APIResult<Void> sync(String id, String action) {
+		return null;
+	}
+
+
+}

+ 121 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/reagent/service/ReagentConsumablesTransactionProvider.java

@@ -0,0 +1,121 @@
+package com.lc.ibps.components.reagent.service;
+
+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.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.reagent.api.IReagentConsumablesTransactionService;
+import com.lc.ibps.components.reagent.domain.ReagentConsumablesTransaction;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesTransactionRepository;
+
+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-reagentConsumablesTransaction
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:18
+ *</pre>
+ */
+@Api(tags = "试剂耗材交易表管理", value = "试剂耗材交易表数据")
+@Service
+public class ReagentConsumablesTransactionProvider extends GenericProvider implements IReagentConsumablesTransactionService{
+
+	@Resource
+	private ReagentConsumablesTransactionRepository reagentConsumablesTransactionRepository;
+
+	@ApiOperation(value = "试剂耗材交易表列表(分页条件查询)数据", notes = "试剂耗材交易表列表(分页条件查询)数据")
+	@Override
+	public APIResult<APIPageList<ReagentConsumablesTransactionPo>> query(
+			@ApiParam(name = "request", value = "传入查询请求json字符串", required = true) 
+			@RequestBody(required = true) APIRequest request) {
+		APIResult<APIPageList<ReagentConsumablesTransactionPo>> result = new APIResult<>();
+		try {
+			QueryFilter queryFilter = getQueryFilter(request);
+			List<ReagentConsumablesTransactionPo> data = reagentConsumablesTransactionRepository.query(queryFilter);
+			APIPageList<ReagentConsumablesTransactionPo> 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<ReagentConsumablesTransactionPo> get(
+			@ApiParam(name = "id", value = "查询id", required = true) 
+			@RequestParam(name = "id", required = true) String id) {
+		APIResult<ReagentConsumablesTransactionPo> result = new APIResult<>();
+		try {
+			ReagentConsumablesTransactionPo reagentConsumablesTransactionPo = reagentConsumablesTransactionRepository.get(id);
+			result.setData(reagentConsumablesTransactionPo);
+		} 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 = "reagentConsumablesTransactionPo", value = "试剂耗材交易表对象", required = true)  
+			@RequestBody(required = true) ReagentConsumablesTransactionPo reagentConsumablesTransactionPo) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			logger.info(" com.lc.ibps.components.provider.ReagentConsumablesTransactionProvider.save()--->reagentConsumablesTransactionPo: {}", reagentConsumablesTransactionPo.toString());
+			ReagentConsumablesTransaction domain = reagentConsumablesTransactionRepository.newInstance(reagentConsumablesTransactionPo);
+			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 {
+			ReagentConsumablesTransaction domain = reagentConsumablesTransactionRepository.newInstance();
+			domain.deleteByIds(ids);
+			result.setMessage("删除试剂耗材交易表成功");
+		} catch (Exception e) {
+			setExceptionResult(result, StateEnum.ERROR.getCode(), StateEnum.ERROR.getText(), e);
+		}
+		return result;
+	}
+	
+}

+ 112 - 0
ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/reagent/persistence/mapping/ReagentConsumablesInventory.map.xml

@@ -0,0 +1,112 @@
+<?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.reagent.persistence.entity.ReagentConsumablesInventoryPo">
+	<!--<cache type="net.oschina.j2cache.mybatis.J2CacheAdapter"/>-->
+	<resultMap id="ReagentConsumablesInventoryPo" type="com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo">
+		<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="mingCheng" column="MING_CHENG_" jdbcType="VARCHAR"/>
+		<result property="cunLiang" column="CUN_LIANG_" jdbcType="VARCHAR"/>
+		<result property="bianMa" column="BIAN_MA_" jdbcType="VARCHAR"/>
+		<result property="danWei" column="DAN_WEI_" jdbcType="VARCHAR"/>
+		<result property="guiGe" column="GUI_GE_" jdbcType="VARCHAR"/>
+		<result property="sCChangJia" column="S_C_CHANG_JIA_" jdbcType="VARCHAR"/>
+		<result property="bianHao" column="BIAN_HAO_" jdbcType="VARCHAR"/>
+		<result property="piHao" column="PI_HAO_" jdbcType="VARCHAR"/>
+		<result property="youXiaoQi" column="YOU_XIAO_QI_" 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_,MING_CHENG_,CUN_LIANG_,BIAN_MA_,DAN_WEI_,GUI_GE_,S_C_CHANG_JIA_,BIAN_HAO_,PI_HAO_,YOU_XIAO_QI_
+	</sql>
+	
+	<insert id="create" parameterType="com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo">
+		INSERT INTO T_SJHCKCB
+		(<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}, #{mingCheng,jdbcType=VARCHAR}, #{cunLiang,jdbcType=VARCHAR}, #{bianMa,jdbcType=VARCHAR}, #{danWei,jdbcType=VARCHAR}, #{guiGe,jdbcType=VARCHAR}, #{sCChangJia,jdbcType=VARCHAR}, #{bianHao,jdbcType=VARCHAR}, #{piHao,jdbcType=VARCHAR}, #{youXiaoQi,jdbcType=VARCHAR})
+	</insert>
+	
+	<select id="get" parameterType="java.lang.String" resultMap="ReagentConsumablesInventoryPo">
+		SELECT <include refid="columns"/> FROM T_SJHCKCB 
+		WHERE 
+		ID_=#{id}
+	</select>
+	
+	
+	<sql id="querySql" >
+		SELECT <include refid="columns"/> FROM T_SJHCKCB
+		<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="ReagentConsumablesInventoryPo">
+		<include refid="querySql"/>
+	</select>
+	
+	<select id="queryIds" parameterType="java.util.Map" resultMap="ReagentConsumablesInventoryPo">
+		SELECT ID_ FROM (<include refid="querySql"/>) T
+	</select>
+	
+	<select id="findByIds" resultMap="ReagentConsumablesInventoryPo">
+		SELECT <include refid="columns"/> FROM T_SJHCKCB
+			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.reagent.persistence.entity.ReagentConsumablesInventoryPo">
+		UPDATE T_SJHCKCB 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},
+		MING_CHENG_=#{mingCheng,jdbcType=VARCHAR},
+		CUN_LIANG_=#{cunLiang,jdbcType=VARCHAR},
+		BIAN_MA_=#{bianMa,jdbcType=VARCHAR},
+		DAN_WEI_=#{danWei,jdbcType=VARCHAR},
+		GUI_GE_=#{guiGe,jdbcType=VARCHAR},
+		S_C_CHANG_JIA_=#{sCChangJia,jdbcType=VARCHAR},
+		BIAN_HAO_=#{bianHao,jdbcType=VARCHAR},
+		PI_HAO_=#{piHao,jdbcType=VARCHAR},
+		YOU_XIAO_QI_=#{youXiaoQi,jdbcType=VARCHAR}
+		WHERE
+		ID_=#{id}
+	</update>
+	
+	<delete id="remove" parameterType="java.lang.String">
+		DELETE FROM T_SJHCKCB 
+		WHERE
+		ID_=#{id}
+	</delete>
+	
+	
+</mapper>

+ 110 - 0
ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/reagent/persistence/mapping/ReagentConsumablesTransaction.map.xml

@@ -0,0 +1,110 @@
+<?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.reagent.persistence.entity.ReagentConsumablesTransactionPo">
+	<!--<cache type="net.oschina.j2cache.mybatis.J2CacheAdapter"/>-->
+	<resultMap id="ReagentConsumablesTransactionPo" type="com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo">
+		<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="mingCheng" column="MING_CHENG_" jdbcType="VARCHAR"/>
+		<result property="bianMa" column="BIAN_MA_" jdbcType="VARCHAR"/>
+		<result property="jiaoYiLeiXing" column="JIAO_YI_LEI_XING_" jdbcType="VARCHAR"/>
+		<result property="shuLiang" column="SHU_LIANG_" jdbcType="VARCHAR"/>
+		<result property="piHao" column="PI_HAO_" jdbcType="VARCHAR"/>
+		<result property="danWei" column="DAN_WEI_" jdbcType="VARCHAR"/>
+		<result property="sCChangJia" column="S_C_CHANG_JIA_" jdbcType="VARCHAR"/>
+		<result property="chanPinPiHao" column="CHAN_PIN_PI_HAO_" 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_,MING_CHENG_,BIAN_MA_,JIAO_YI_LEI_XING_,SHU_LIANG_,PI_HAO_,DAN_WEI_,S_C_CHANG_JIA_,CHAN_PIN_PI_HAO_
+	</sql>
+	
+	<insert id="create" parameterType="com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo">
+		INSERT INTO T_SJHCJYB
+		(<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}, #{mingCheng,jdbcType=VARCHAR}, #{bianMa,jdbcType=VARCHAR}, #{jiaoYiLeiXing,jdbcType=VARCHAR}, #{shuLiang,jdbcType=VARCHAR}, #{piHao,jdbcType=VARCHAR}, #{danWei,jdbcType=VARCHAR}, #{sCChangJia,jdbcType=VARCHAR}, #{chanPinPiHao,jdbcType=VARCHAR})
+	</insert>
+	
+	<select id="get" parameterType="java.lang.String" resultMap="ReagentConsumablesTransactionPo">
+		SELECT <include refid="columns"/> FROM T_SJHCJYB 
+		WHERE 
+		ID_=#{id}
+	</select>
+	
+	
+	<sql id="querySql" >
+		SELECT <include refid="columns"/> FROM T_SJHCJYB
+		<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="ReagentConsumablesTransactionPo">
+		<include refid="querySql"/>
+	</select>
+	
+	<select id="queryIds" parameterType="java.util.Map" resultMap="ReagentConsumablesTransactionPo">
+		SELECT ID_ FROM (<include refid="querySql"/>) T
+	</select>
+	
+	<select id="findByIds" resultMap="ReagentConsumablesTransactionPo">
+		SELECT <include refid="columns"/> FROM T_SJHCJYB
+			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.reagent.persistence.entity.ReagentConsumablesTransactionPo">
+		UPDATE T_SJHCJYB 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},
+		MING_CHENG_=#{mingCheng,jdbcType=VARCHAR},
+		BIAN_MA_=#{bianMa,jdbcType=VARCHAR},
+		JIAO_YI_LEI_XING_=#{jiaoYiLeiXing,jdbcType=VARCHAR},
+		SHU_LIANG_=#{shuLiang,jdbcType=VARCHAR},
+		PI_HAO_=#{piHao,jdbcType=VARCHAR},
+		DAN_WEI_=#{danWei,jdbcType=VARCHAR},
+		S_C_CHANG_JIA_=#{sCChangJia,jdbcType=VARCHAR},
+		CHAN_PIN_PI_HAO_=#{chanPinPiHao,jdbcType=VARCHAR}
+		WHERE
+		ID_=#{id}
+	</update>
+	
+	<delete id="remove" parameterType="java.lang.String">
+		DELETE FROM T_SJHCJYB 
+		WHERE
+		ID_=#{id}
+	</delete>
+	
+	
+</mapper>

+ 25 - 0
ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/ReagentBaseTest.java

@@ -0,0 +1,25 @@
+package com.lc.ibps.components;
+
+import javax.annotation.Resource;
+
+import org.springframework.test.context.ContextConfiguration;
+
+import com.lc.ibps.base.framework.test.BaseTestCase;
+import com.lc.ibps.api.base.id.IdGenerator;
+
+/**
+ * 测试基类。</br>
+ * 模块其下的测试类均继承该子类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:16
+ *</pre>
+ */
+@ContextConfiguration({"classpath:conf/components-test.xml"})
+public class ReagentBaseTest extends BaseTestCase{
+	
+	@Resource
+    protected IdGenerator idGenerator;
+}

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

@@ -0,0 +1,60 @@
+package com.lc.ibps.components.reagent.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.reagent.domain.ReagentConsumablesInventory;
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesInventoryRepository;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+import com.lc.ibps.components.ReagentBaseTest;
+
+/**
+ * 试剂耗材库存表 领域对象实体单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:48
+ *</pre>
+ */
+public class ReagentConsumablesInventoryTest extends ReagentBaseTest{
+	 
+	@Resource
+	private ReagentConsumablesInventoryRepository reagentConsumablesInventoryRepository;
+	
+	@Test
+	@Rollback(true)
+	public void create(){				
+		ReagentConsumablesInventory reagentConsumablesInventory = reagentConsumablesInventoryRepository.newInstance();
+		
+		ReagentConsumablesInventoryPo reagentConsumablesInventoryPo=new ReagentConsumablesInventoryPo();
+		reagentConsumablesInventoryPo.setId(idGenerator.getId());
+		
+		reagentConsumablesInventory.setData(reagentConsumablesInventoryPo);
+		
+		List<String> ids = new ArrayList<String>();
+		
+		reagentConsumablesInventory.create();	
+		ids.add(reagentConsumablesInventory.getId());
+						
+		ReagentConsumablesInventory reagentConsumablesInventory2 = reagentConsumablesInventoryRepository.newInstance();
+		reagentConsumablesInventoryPo.setId(idGenerator.getId());
+		reagentConsumablesInventory2.setData(reagentConsumablesInventoryPo);
+		
+		reagentConsumablesInventory2.create();
+		ids.add(reagentConsumablesInventory2.getId());
+		
+		List<ReagentConsumablesInventoryPo> reagentConsumablesInventoryPoList = reagentConsumablesInventoryRepository.findByIds(ids);
+		Assert.assertTrue(reagentConsumablesInventoryPoList.size()>=2);
+		
+		List<ReagentConsumablesInventoryPo>reagentConsumablesInventory1 = reagentConsumablesInventoryRepository.findAll();
+		Assert.assertTrue(reagentConsumablesInventory1.size()>=2);
+
+	}
+}

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

@@ -0,0 +1,60 @@
+package com.lc.ibps.components.reagent.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.reagent.domain.ReagentConsumablesTransaction;
+import com.lc.ibps.components.reagent.repository.ReagentConsumablesTransactionRepository;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+import com.lc.ibps.components.ReagentBaseTest;
+
+/**
+ * 试剂耗材交易表 领域对象实体单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:17
+ *</pre>
+ */
+public class ReagentConsumablesTransactionTest extends ReagentBaseTest{
+	 
+	@Resource
+	private ReagentConsumablesTransactionRepository reagentConsumablesTransactionRepository;
+	
+	@Test
+	@Rollback(true)
+	public void create(){				
+		ReagentConsumablesTransaction reagentConsumablesTransaction = reagentConsumablesTransactionRepository.newInstance();
+		
+		ReagentConsumablesTransactionPo reagentConsumablesTransactionPo=new ReagentConsumablesTransactionPo();
+		reagentConsumablesTransactionPo.setId(idGenerator.getId());
+		
+		reagentConsumablesTransaction.setData(reagentConsumablesTransactionPo);
+		
+		List<String> ids = new ArrayList<String>();
+		
+		reagentConsumablesTransaction.create();	
+		ids.add(reagentConsumablesTransaction.getId());
+						
+		ReagentConsumablesTransaction reagentConsumablesTransaction2 = reagentConsumablesTransactionRepository.newInstance();
+		reagentConsumablesTransactionPo.setId(idGenerator.getId());
+		reagentConsumablesTransaction2.setData(reagentConsumablesTransactionPo);
+		
+		reagentConsumablesTransaction2.create();
+		ids.add(reagentConsumablesTransaction2.getId());
+		
+		List<ReagentConsumablesTransactionPo> reagentConsumablesTransactionPoList = reagentConsumablesTransactionRepository.findByIds(ids);
+		Assert.assertTrue(reagentConsumablesTransactionPoList.size()>=2);
+		
+		List<ReagentConsumablesTransactionPo>reagentConsumablesTransaction1 = reagentConsumablesTransactionRepository.findAll();
+		Assert.assertTrue(reagentConsumablesTransaction1.size()>=2);
+
+	}
+}

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

@@ -0,0 +1,55 @@
+package com.lc.ibps.components.reagent.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.reagent.persistence.dao.ReagentConsumablesInventoryDao;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesInventoryQueryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesInventoryPo;
+import com.lc.ibps.components.ReagentBaseTest;
+
+/**
+ * 试剂耗材库存表 dao单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:42:46
+ *</pre>
+ */
+public class ReagentConsumablesInventoryDaoTest extends ReagentBaseTest{
+
+	@Resource
+	private ReagentConsumablesInventoryDao reagentConsumablesInventoryDao;
+	
+	@Resource
+	private ReagentConsumablesInventoryQueryDao reagentConsumablesInventoryQueryDao;
+		
+	@Test
+	@Rollback(true)
+	public void testCrud(){
+		ReagentConsumablesInventoryPo reagentConsumablesInventoryPo=new ReagentConsumablesInventoryPo();
+		reagentConsumablesInventoryPo.setId(idGenerator.getId());
+		
+		//创建一实体
+		reagentConsumablesInventoryDao.create(reagentConsumablesInventoryPo);
+        Assert.assertNotNull(reagentConsumablesInventoryPo.getId());
+        logger.debug("reagentConsumablesInventoryPo1:"+ reagentConsumablesInventoryPo.getId());
+		//获取一实体
+		ReagentConsumablesInventoryPo reagentConsumablesInventoryPo2=reagentConsumablesInventoryQueryDao.get(reagentConsumablesInventoryPo.getId());
+		Assert.assertNotNull(reagentConsumablesInventoryPo2);
+		logger.debug("reagentConsumablesInventoryPo2:" + reagentConsumablesInventoryPo2.toString());
+		//更新一实体
+		reagentConsumablesInventoryDao.update(reagentConsumablesInventoryPo2);
+		
+		ReagentConsumablesInventoryPo reagentConsumablesInventoryPo3=reagentConsumablesInventoryQueryDao.get(reagentConsumablesInventoryPo.getId());
+		Assert.assertNotNull(reagentConsumablesInventoryPo3);
+		logger.debug("reagentConsumablesInventoryPo3:"+reagentConsumablesInventoryPo3.toString());
+		//删除一实体
+		//reagentConsumablesInventoryDao.remove(reagentConsumablesInventoryPo.getId());
+	}
+	
+}

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

@@ -0,0 +1,55 @@
+package com.lc.ibps.components.reagent.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.reagent.persistence.dao.ReagentConsumablesTransactionDao;
+import com.lc.ibps.components.reagent.persistence.dao.ReagentConsumablesTransactionQueryDao;
+import com.lc.ibps.components.reagent.persistence.entity.ReagentConsumablesTransactionPo;
+import com.lc.ibps.components.ReagentBaseTest;
+
+/**
+ * 试剂耗材交易表 dao单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-11-13 15:50:15
+ *</pre>
+ */
+public class ReagentConsumablesTransactionDaoTest extends ReagentBaseTest{
+
+	@Resource
+	private ReagentConsumablesTransactionDao reagentConsumablesTransactionDao;
+	
+	@Resource
+	private ReagentConsumablesTransactionQueryDao reagentConsumablesTransactionQueryDao;
+		
+	@Test
+	@Rollback(true)
+	public void testCrud(){
+		ReagentConsumablesTransactionPo reagentConsumablesTransactionPo=new ReagentConsumablesTransactionPo();
+		reagentConsumablesTransactionPo.setId(idGenerator.getId());
+		
+		//创建一实体
+		reagentConsumablesTransactionDao.create(reagentConsumablesTransactionPo);
+        Assert.assertNotNull(reagentConsumablesTransactionPo.getId());
+        logger.debug("reagentConsumablesTransactionPo1:"+ reagentConsumablesTransactionPo.getId());
+		//获取一实体
+		ReagentConsumablesTransactionPo reagentConsumablesTransactionPo2=reagentConsumablesTransactionQueryDao.get(reagentConsumablesTransactionPo.getId());
+		Assert.assertNotNull(reagentConsumablesTransactionPo2);
+		logger.debug("reagentConsumablesTransactionPo2:" + reagentConsumablesTransactionPo2.toString());
+		//更新一实体
+		reagentConsumablesTransactionDao.update(reagentConsumablesTransactionPo2);
+		
+		ReagentConsumablesTransactionPo reagentConsumablesTransactionPo3=reagentConsumablesTransactionQueryDao.get(reagentConsumablesTransactionPo.getId());
+		Assert.assertNotNull(reagentConsumablesTransactionPo3);
+		logger.debug("reagentConsumablesTransactionPo3:"+reagentConsumablesTransactionPo3.toString());
+		//删除一实体
+		//reagentConsumablesTransactionDao.remove(reagentConsumablesTransactionPo.getId());
+	}
+	
+}