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

[task-2121] 排班功能开发 / 【后端】调班申请接口开发

Li Yuan 1 год назад
Родитель
Сommit
2e6e0bda4f
28 измененных файлов с 1822 добавлено и 0 удалено
  1. 82 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/api/IAdjustmentDetailService.java
  2. 82 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/api/IAdjustmentService.java
  3. 108 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/domain/Adjustment.java
  4. 71 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/domain/AdjustmentDetail.java
  5. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/AdjustmentDao.java
  6. 22 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/AdjustmentDetailDao.java
  7. 24 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/AdjustmentDetailQueryDao.java
  8. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/AdjustmentQueryDao.java
  9. 26 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/AdjustmentDaoImpl.java
  10. 29 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/AdjustmentDetailDaoImpl.java
  11. 31 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/AdjustmentDetailQueryDaoImpl.java
  12. 27 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/AdjustmentQueryDaoImpl.java
  13. 35 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/AdjustmentDetailPo.java
  14. 191 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/AdjustmentDetailTbl.java
  15. 51 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/AdjustmentPo.java
  16. 135 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/AdjustmentTbl.java
  17. 123 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/provider/AdjustmentDetailProvider.java
  18. 123 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/provider/AdjustmentProvider.java
  19. 26 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/AdjustmentDetailRepository.java
  20. 23 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/AdjustmentRepository.java
  21. 63 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/AdjustmentDetailRepositoryImpl.java
  22. 79 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/AdjustmentRepositoryImpl.java
  23. 92 0
      ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/employee/persistence/mapping/Adjustment.map.xml
  24. 117 0
      ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/employee/persistence/mapping/AdjustmentDetail.map.xml
  25. 60 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/domain/AdjustmentDetailTest.java
  26. 60 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/domain/AdjustmentTest.java
  27. 55 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/persistence/dao/AdjustmentDaoTest.java
  28. 55 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/persistence/dao/AdjustmentDetailDaoTest.java

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

@@ -0,0 +1,82 @@
+package com.lc.ibps.components.employee.api;
+
+import java.util.List;
+
+import org.hibernate.validator.constraints.NotBlank;
+import org.hibernate.validator.constraints.NotEmpty;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.lc.ibps.cloud.entity.APIPageList;
+import com.lc.ibps.cloud.entity.APIRequest;
+import com.lc.ibps.cloud.entity.APIResult;
+import javax.validation.Valid;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+
+
+/**
+ * 调班详情表 接口
+ *
+ *<pre> 
+ * 构建组:ibps-provider-adjustmentDetail-api
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:50
+ *</pre>
+ */
+@Validated
+@RequestMapping(value = "/employee/adjustmentDetail")
+@RestController
+public interface IAdjustmentDetailService {
+
+	/**
+	 * 
+	 * 【调班详情表】列表(分页条件查询)数据
+	 *
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/query", method = RequestMethod.POST)
+	public APIResult<APIPageList<AdjustmentDetailPo>> query(
+			@RequestBody(required = true) APIRequest request);
+	
+	/**
+	 * 
+	 * 根据id查询【调班详情表】
+	 *
+	 * @param id
+	 * @return
+	 */
+	@RequestMapping(value = "/get", method = { RequestMethod.GET })
+	public APIResult<AdjustmentDetailPo> get(
+//			@NotBlank(message = "{com.lc.ibps.components.provider.AdjustmentDetailProvider.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.AdjustmentDetailProvider.ids}")
+			@RequestParam(name = "ids", required = true) String[] ids);
+	
+	/**
+	 * 
+	 * 保存【调班详情表】记录
+	 *
+	 * @param adjustmentDetailPo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = { RequestMethod.POST })
+	public APIResult<Void> save(
+ 			@RequestBody(required = true) @Valid AdjustmentDetailPo adjustmentDetailPo);
+}

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

@@ -0,0 +1,82 @@
+package com.lc.ibps.components.employee.api;
+
+import java.util.List;
+
+import org.hibernate.validator.constraints.NotBlank;
+import org.hibernate.validator.constraints.NotEmpty;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.lc.ibps.cloud.entity.APIPageList;
+import com.lc.ibps.cloud.entity.APIRequest;
+import com.lc.ibps.cloud.entity.APIResult;
+import javax.validation.Valid;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+
+
+
+/**
+ * 调班申请表 接口
+ *
+ *<pre> 
+ * 构建组:ibps-provider-adjustment-api
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:45
+ *</pre>
+ */
+@Validated
+@RequestMapping(value = "/employee/adjustment")
+@RestController
+public interface IAdjustmentService {
+
+	/**
+	 * 
+	 * 【调班申请表】列表(分页条件查询)数据
+	 *
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/query", method = RequestMethod.POST)
+	public APIResult<APIPageList<AdjustmentPo>> query(
+			@RequestBody(required = true) APIRequest request);
+	
+	/**
+	 * 
+	 * 根据id查询【调班申请表】
+	 *
+	 * @param id
+	 * @return
+	 */
+	@RequestMapping(value = "/get", method = { RequestMethod.GET })
+	public APIResult<AdjustmentPo> get(
+//			@NotBlank(message = "{com.lc.ibps.components.provider.AdjustmentProvider.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.AdjustmentProvider.ids}")
+			@RequestParam(name = "ids", required = true) String[] ids);
+	
+	/**
+	 * 
+	 * 保存【调班申请表】记录
+	 *
+	 * @param adjustmentPo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = { RequestMethod.POST })
+	public APIResult<Void> save(
+ 			@RequestBody(required = true) @Valid AdjustmentPo adjustmentPo);
+}

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

@@ -0,0 +1,108 @@
+package com.lc.ibps.components.employee.domain;
+
+
+import javax.annotation.Resource;
+
+import org.springframework.context.annotation.Scope;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.stereotype.Service;
+
+import com.lc.ibps.base.core.util.BeanUtils;
+import com.lc.ibps.base.core.util.string.StringUtil;
+import com.lc.ibps.base.core.util.AppUtil;
+import com.lc.ibps.base.framework.domain.AbstractDomain;
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDao;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentQueryDao;
+import com.lc.ibps.components.employee.repository.AdjustmentRepository;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+import com.lc.ibps.components.employee.repository.AdjustmentDetailRepository;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ * 调班申请表 领域对象实体
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:44
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Service
+@Transactional
+@Scope("prototype")
+public class Adjustment extends AbstractDomain<String, AdjustmentPo>{
+	
+	@Resource
+	private AdjustmentDao adjustmentDao;
+	@Resource
+	private AdjustmentQueryDao adjustmentQueryDao;
+	@Resource
+	private AdjustmentRepository adjustmentRepository;
+
+	@Resource
+	private AdjustmentDetailRepository adjustmentDetailRepository;
+
+	protected void init(){
+		//
+	}
+	
+	@Override
+	protected IQueryDao<String, AdjustmentPo> getInternalQueryDao() {
+		return adjustmentQueryDao;
+	}
+	
+	@Override
+	protected IDao<String, AdjustmentPo> getInternalDao() {
+		return adjustmentDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "adjustment";
+	}
+	
+	/**
+	 * 主从表一并保存 
+	 * void
+	 * @exception 
+	 * @since  1.0.0
+	 */
+	public void saveCascade(){
+		save();
+		if(getData().isDelBeforeSave()){
+			AdjustmentDetail adjustmentDetail = adjustmentDetailRepository.newInstance();
+			adjustmentDetail.deleteByMainId(getData().getId());
+		}
+		
+		AdjustmentDetail adjustmentDetail = adjustmentDetailRepository.newInstance();
+		if(BeanUtils.isNotEmpty(getData().getAdjustmentDetailPoList())){
+			for(AdjustmentDetailPo adjustmentDetailPo:getData().getAdjustmentDetailPoList()){
+				//设置外键
+				adjustmentDetailPo.setParentId(getData().getId());
+				adjustmentDetail.save(adjustmentDetailPo);
+			}
+		}
+	}	
+	
+	/**
+	 * 主从表一并删除 
+	 * void
+	 * @exception 
+	 * @since  1.0.0
+	 */
+	public void deleteByIdsCascade(String[] ids){
+		for(String id : ids){
+			AdjustmentPo po = adjustmentRepository.get(id);
+			AdjustmentDetail adjustmentDetail = adjustmentDetailRepository.newInstance();
+			if(BeanUtils.isNotEmpty(po) && BeanUtils.isNotEmpty(po.getId())){
+				adjustmentDetail.deleteByMainId(po.getId());
+			}	
+		}
+		deleteByIds(ids);
+	}
+	
+	
+}

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

@@ -0,0 +1,71 @@
+package com.lc.ibps.components.employee.domain;
+
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.springframework.context.annotation.Scope;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.stereotype.Service;
+
+import com.lc.ibps.base.core.util.BeanUtils;
+import com.lc.ibps.base.core.util.AppUtil;
+import com.lc.ibps.base.framework.domain.AbstractDomain;
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDetailDao;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDetailQueryDao;
+import com.lc.ibps.components.employee.repository.AdjustmentDetailRepository;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ * 调班详情表 领域对象实体
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:50
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Service
+@Transactional
+@Scope("prototype")
+public class AdjustmentDetail extends AbstractDomain<String, AdjustmentDetailPo>{
+	
+	@Resource
+	private AdjustmentDetailDao adjustmentDetailDao;
+	@Resource
+	private AdjustmentDetailQueryDao adjustmentDetailQueryDao;
+	@Resource
+	private AdjustmentDetailRepository adjustmentDetailRepository;
+
+
+	protected void init(){
+		//
+	}
+	
+	@Override
+	protected IQueryDao<String, AdjustmentDetailPo> getInternalQueryDao() {
+		return adjustmentDetailQueryDao;
+	}
+	
+	@Override
+	protected IDao<String, AdjustmentDetailPo> getInternalDao() {
+		return adjustmentDetailDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "adjustmentDetail";
+	}
+	
+	
+	public void deleteByMainId(String mainId) {
+		List<AdjustmentDetailPo> list = adjustmentDetailRepository.findByMainId(mainId);
+		for (AdjustmentDetailPo po : list) {
+			delete(po.getId());
+		}
+	}
+	
+}

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

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+
+/**
+ * 调班申请表 Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:43
+ *</pre>
+ */
+public interface AdjustmentDao extends IDao<String, AdjustmentPo> {
+}

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

@@ -0,0 +1,22 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ * 调班详情表 Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:48
+ *</pre>
+ */
+public interface AdjustmentDetailDao extends IDao<String, AdjustmentDetailPo> {
+	/**
+	 * 根据主表id删除 调班详情表 记录
+	 * @param mainId 
+	 * void
+	 */
+	public void deleteByMainId(String mainId);
+}

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

@@ -0,0 +1,24 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import java.util.List;
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ * 调班详情表 查询Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:48
+ *</pre>
+ */
+public interface AdjustmentDetailQueryDao extends IQueryDao<String, AdjustmentDetailPo> {
+	/**
+	 * 根据主表ID查询 调班详情表 列表
+	 * @param mainId
+	 * @return 
+	 * List<AdjustmentDetailPo>
+	 */
+	public List<AdjustmentDetailPo> findByMainId(String mainId);
+}

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

@@ -0,0 +1,16 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+
+/**
+ * 调班申请表 查询Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:43
+ *</pre>
+ */
+public interface AdjustmentQueryDao extends IQueryDao<String, AdjustmentPo> {
+}

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

@@ -0,0 +1,26 @@
+package com.lc.ibps.components.employee.persistence.dao.impl;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisDaoImpl;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+
+/**
+ * 调班申请表 Dao接口的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:43
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Repository
+public class AdjustmentDaoImpl extends MyBatisDaoImpl<String, AdjustmentPo> implements AdjustmentDao{
+
+    @Override
+    public String getNamespace() {
+        return AdjustmentPo.class.getName();
+    }
+}

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

@@ -0,0 +1,29 @@
+package com.lc.ibps.components.employee.persistence.dao.impl;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisDaoImpl;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDetailDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ * 调班详情表 Dao接口的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:48
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Repository
+public class AdjustmentDetailDaoImpl extends MyBatisDaoImpl<String, AdjustmentDetailPo> implements AdjustmentDetailDao{
+
+    @Override
+    public String getNamespace() {
+        return AdjustmentDetailPo.class.getName();
+    }
+	public void deleteByMainId(String mainId) {
+		deleteByKey("deleteByMainId", b().a("mainId", mainId).p());		
+	}
+}

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

@@ -0,0 +1,31 @@
+package com.lc.ibps.components.employee.persistence.dao.impl;
+
+import java.util.List;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisQueryDaoImpl;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDetailQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ *调班详情表 查询Dao的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:48
+ *</pre>
+ */
+ @SuppressWarnings("serial")
+@Repository
+public class AdjustmentDetailQueryDaoImpl extends MyBatisQueryDaoImpl<String, AdjustmentDetailPo> implements AdjustmentDetailQueryDao{
+
+    @Override
+    public String getNamespace() {
+        return AdjustmentDetailPo.class.getName();
+    }
+	public List<AdjustmentDetailPo> findByMainId(String mainId) {
+		return findByKey("findByMainId", b().a("mainId", mainId).p());
+	}
+}

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

@@ -0,0 +1,27 @@
+package com.lc.ibps.components.employee.persistence.dao.impl;
+
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.db.ddd.dao.MyBatisQueryDaoImpl;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+
+/**
+ *调班申请表 查询Dao的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:42
+ *</pre>
+ */
+ @SuppressWarnings("serial")
+@Repository
+public class AdjustmentQueryDaoImpl extends MyBatisQueryDaoImpl<String, AdjustmentPo> implements AdjustmentQueryDao{
+
+    @Override
+    public String getNamespace() {
+        return AdjustmentPo.class.getName();
+    }
+}

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

@@ -0,0 +1,35 @@
+package com.lc.ibps.components.employee.persistence.entity;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import com.lc.ibps.base.core.util.JacksonUtil;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * 调班详情表 实体对象
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:47
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "调班详情表对象")
+public class AdjustmentDetailPo extends AdjustmentDetailTbl{
+
+	public static AdjustmentDetailPo fromJsonString(String data){
+		if(JacksonUtil.isNotJsonObject(data)){
+			return null;
+		}
+		return JacksonUtil.getDTO(data, AdjustmentDetailPo.class);
+	}
+	
+	public static List<AdjustmentDetailPo> fromJsonArrayString(String listData){
+		if(JacksonUtil.isNotJsonArray(listData)){
+			return Collections.emptyList();
+		}
+		return JacksonUtil.getDTOList(listData, AdjustmentDetailPo.class);
+	}
+}

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

@@ -0,0 +1,191 @@
+package com.lc.ibps.components.employee.persistence.entity;
+
+import java.util.Date;
+
+import com.lc.ibps.base.framework.persistence.entity.AbstractPo;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * 调班详情表 表对象
+ * 
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:48
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "调班详情表对象")
+public class AdjustmentDetailTbl 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 = "记录ID")
+	protected String  recordId; 		/*记录ID*/
+	@ApiModelProperty(value = "调班前班次")
+	protected String  beforeAdjust; 		/*调班前班次*/
+	@ApiModelProperty(value = "调班前日期")
+	protected String  beforeDate; 		/*调班前日期*/
+	@ApiModelProperty(value = "调班后班次")
+	protected String  afterAdjust; 		/*调班后班次*/
+	@ApiModelProperty(value = "调班后日期")
+	protected String  afterDate; 		/*调班后日期*/
+	@ApiModelProperty(value = "状态")
+	protected String  status; 		/*状态*/
+	@ApiModelProperty(value = "当事人")
+	protected String  party; 		/*当事人*/
+	@ApiModelProperty(value = "审核时间")
+	protected String  auditTime; 		/*审核时间*/
+
+	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 setRecordId(String recordId) 
+	{
+		this.recordId = recordId;
+	}
+	/**
+	 * 返回 记录ID
+	 * @return
+	 */
+	public String getRecordId() 
+	{
+		return this.recordId;
+	}
+	public void setBeforeAdjust(String beforeAdjust) 
+	{
+		this.beforeAdjust = beforeAdjust;
+	}
+	/**
+	 * 返回 调班前班次
+	 * @return
+	 */
+	public String getBeforeAdjust() 
+	{
+		return this.beforeAdjust;
+	}
+	public void setBeforeDate(String beforeDate) 
+	{
+		this.beforeDate = beforeDate;
+	}
+	/**
+	 * 返回 调班前日期
+	 * @return
+	 */
+	public String getBeforeDate() 
+	{
+		return this.beforeDate;
+	}
+	public void setAfterAdjust(String afterAdjust) 
+	{
+		this.afterAdjust = afterAdjust;
+	}
+	/**
+	 * 返回 调班后班次
+	 * @return
+	 */
+	public String getAfterAdjust() 
+	{
+		return this.afterAdjust;
+	}
+	public void setAfterDate(String afterDate) 
+	{
+		this.afterDate = afterDate;
+	}
+	/**
+	 * 返回 调班后日期
+	 * @return
+	 */
+	public String getAfterDate() 
+	{
+		return this.afterDate;
+	}
+	public void setStatus(String status) 
+	{
+		this.status = status;
+	}
+	/**
+	 * 返回 状态
+	 * @return
+	 */
+	public String getStatus() 
+	{
+		return this.status;
+	}
+	public void setParty(String party) 
+	{
+		this.party = party;
+	}
+	/**
+	 * 返回 当事人
+	 * @return
+	 */
+	public String getParty() 
+	{
+		return this.party;
+	}
+	public void setAuditTime(String auditTime) 
+	{
+		this.auditTime = auditTime;
+	}
+	/**
+	 * 返回 审核时间
+	 * @return
+	 */
+	public String getAuditTime() 
+	{
+		return this.auditTime;
+	}
+	
+}

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

@@ -0,0 +1,51 @@
+package com.lc.ibps.components.employee.persistence.entity;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.ArrayList;
+import com.lc.ibps.base.core.util.JacksonUtil;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * 调班申请表 实体对象
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:42
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "调班申请表对象")
+public class AdjustmentPo extends AdjustmentTbl{
+	private boolean delBeforeSave = true;
+	public boolean isDelBeforeSave() {
+		return delBeforeSave;
+	}
+	public void setDelBeforeSave(boolean delBeforeSave) {
+		this.delBeforeSave = delBeforeSave;
+	}	
+	
+	private List<AdjustmentDetailPo> adjustmentDetailPoList = new ArrayList<AdjustmentDetailPo>();
+	public List<AdjustmentDetailPo> getAdjustmentDetailPoList() {
+		return adjustmentDetailPoList;
+	}
+	public void setAdjustmentDetailPoList(List<AdjustmentDetailPo> adjustmentDetailPoList) {
+		this.adjustmentDetailPoList = adjustmentDetailPoList;
+	}
+
+	public static AdjustmentPo fromJsonString(String data){
+		if(JacksonUtil.isNotJsonObject(data)){
+			return null;
+		}
+		return JacksonUtil.getDTO(data, AdjustmentPo.class);
+	}
+	
+	public static List<AdjustmentPo> fromJsonArrayString(String listData){
+		if(JacksonUtil.isNotJsonArray(listData)){
+			return Collections.emptyList();
+		}
+		return JacksonUtil.getDTOList(listData, AdjustmentPo.class);
+	}
+}

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

@@ -0,0 +1,135 @@
+package com.lc.ibps.components.employee.persistence.entity;
+
+import java.util.Date;
+
+import com.lc.ibps.base.framework.persistence.entity.AbstractPo;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * 调班申请表 表对象
+ * 
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:42
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "调班申请表对象")
+public class AdjustmentTbl 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  diDian; 		/*地点*/
+	@ApiModelProperty(value = "调班原因")
+	protected String  reason; 		/*调班原因*/
+	@ApiModelProperty(value = "状态")
+	protected String  status; 		/*状态*/
+	@ApiModelProperty(value = "执行人")
+	protected String  executor; 		/*执行人*/
+	@ApiModelProperty(value = "执行时间")
+	protected String  executeDate; 		/*执行时间*/
+
+	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 setDiDian(String diDian) 
+	{
+		this.diDian = diDian;
+	}
+	/**
+	 * 返回 地点
+	 * @return
+	 */
+	public String getDiDian() 
+	{
+		return this.diDian;
+	}
+	public void setReason(String reason) 
+	{
+		this.reason = reason;
+	}
+	/**
+	 * 返回 调班原因
+	 * @return
+	 */
+	public String getReason() 
+	{
+		return this.reason;
+	}
+	public void setStatus(String status) 
+	{
+		this.status = status;
+	}
+	/**
+	 * 返回 状态
+	 * @return
+	 */
+	public String getStatus() 
+	{
+		return this.status;
+	}
+	public void setExecutor(String executor) 
+	{
+		this.executor = executor;
+	}
+	/**
+	 * 返回 执行人
+	 * @return
+	 */
+	public String getExecutor() 
+	{
+		return this.executor;
+	}
+	public void setExecuteDate(String executeDate) 
+	{
+		this.executeDate = executeDate;
+	}
+	/**
+	 * 返回 执行时间
+	 * @return
+	 */
+	public String getExecuteDate() 
+	{
+		return this.executeDate;
+	}
+	
+}

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

@@ -0,0 +1,123 @@
+package com.lc.ibps.components.employee.provider;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.springframework.stereotype.Service;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import com.lc.ibps.api.base.constants.StateEnum;
+import com.lc.ibps.api.base.query.QueryFilter;
+import com.lc.ibps.base.core.constants.StringPool;
+import com.lc.ibps.base.core.util.BeanUtils;
+import com.lc.ibps.cloud.entity.APIPageList;
+import com.lc.ibps.cloud.entity.APIRequest;
+import com.lc.ibps.cloud.entity.APIResult;
+import com.lc.ibps.cloud.provider.GenericProvider;
+import com.lc.ibps.components.employee.api.IAdjustmentDetailService;
+import com.lc.ibps.components.employee.domain.AdjustmentDetail;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+import com.lc.ibps.components.employee.repository.AdjustmentDetailRepository;
+
+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-adjustmentDetail
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:50
+ *</pre>
+ */
+@Api(tags = "调班详情表管理", value = "调班详情表数据")
+@Service
+public class AdjustmentDetailProvider extends GenericProvider implements IAdjustmentDetailService{
+
+	@Resource
+	private AdjustmentDetailRepository adjustmentDetailRepository;
+
+	@ApiOperation(value = "调班详情表列表(分页条件查询)数据", notes = "调班详情表列表(分页条件查询)数据")
+	@Override
+	public APIResult<APIPageList<AdjustmentDetailPo>> query(
+			@ApiParam(name = "request", value = "传入查询请求json字符串", required = true) 
+			@RequestBody(required = true) APIRequest request) {
+		APIResult<APIPageList<AdjustmentDetailPo>> result = new APIResult<>();
+		try {
+			QueryFilter queryFilter = getQueryFilter(request);
+			List<AdjustmentDetailPo> data = adjustmentDetailRepository.query(queryFilter);
+			APIPageList<AdjustmentDetailPo> 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<AdjustmentDetailPo> get(
+			@ApiParam(name = "id", value = "查询id", required = true) 
+			@RequestParam(name = "id", required = true) String id) {
+		APIResult<AdjustmentDetailPo> result = new APIResult<>();
+		try {
+			AdjustmentDetailPo adjustmentDetailPo = adjustmentDetailRepository.get(id);
+			result.setData(adjustmentDetailPo);
+		} 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 = "adjustmentDetailPo", value = "调班详情表对象", required = true)  
+			@RequestBody(required = true) AdjustmentDetailPo adjustmentDetailPo) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			logger.info(" com.lc.ibps.components.provider.AdjustmentDetailProvider.save()--->adjustmentDetailPo: {}", adjustmentDetailPo.toString());
+			AdjustmentDetail domain = adjustmentDetailRepository.newInstance(adjustmentDetailPo);
+			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 {
+			AdjustmentDetail domain = adjustmentDetailRepository.newInstance();
+			domain.deleteByIds(ids);
+			result.setMessage("删除调班详情表成功");
+		} catch (Exception e) {
+			setExceptionResult(result, StateEnum.ERROR.getCode(), StateEnum.ERROR.getText(), e);
+		}
+		return result;
+	}
+	
+}

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

@@ -0,0 +1,123 @@
+package com.lc.ibps.components.employee.provider;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.springframework.stereotype.Service;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import com.lc.ibps.api.base.constants.StateEnum;
+import com.lc.ibps.api.base.query.QueryFilter;
+import com.lc.ibps.base.core.constants.StringPool;
+import com.lc.ibps.base.core.util.BeanUtils;
+import com.lc.ibps.cloud.entity.APIPageList;
+import com.lc.ibps.cloud.entity.APIRequest;
+import com.lc.ibps.cloud.entity.APIResult;
+import com.lc.ibps.cloud.provider.GenericProvider;
+import com.lc.ibps.components.employee.api.IAdjustmentService;
+import com.lc.ibps.components.employee.domain.Adjustment;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+import com.lc.ibps.components.employee.repository.AdjustmentRepository;
+
+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-adjustment
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:45
+ *</pre>
+ */
+@Api(tags = "调班申请表管理", value = "调班申请表数据")
+@Service
+public class AdjustmentProvider extends GenericProvider implements IAdjustmentService{
+
+	@Resource
+	private AdjustmentRepository adjustmentRepository;
+
+	@ApiOperation(value = "调班申请表列表(分页条件查询)数据", notes = "调班申请表列表(分页条件查询)数据")
+	@Override
+	public APIResult<APIPageList<AdjustmentPo>> query(
+			@ApiParam(name = "request", value = "传入查询请求json字符串", required = true) 
+			@RequestBody(required = true) APIRequest request) {
+		APIResult<APIPageList<AdjustmentPo>> result = new APIResult<>();
+		try {
+			QueryFilter queryFilter = getQueryFilter(request);
+			List<AdjustmentPo> data = adjustmentRepository.query(queryFilter);
+			APIPageList<AdjustmentPo> 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<AdjustmentPo> get(
+			@ApiParam(name = "id", value = "查询id", required = true) 
+			@RequestParam(name = "id", required = true) String id) {
+		APIResult<AdjustmentPo> result = new APIResult<>();
+		try {
+			AdjustmentPo adjustmentPo = adjustmentRepository.loadCascade(id);
+			result.setData(adjustmentPo);
+		} 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 = "adjustmentPo", value = "调班申请表对象", required = true)  
+			@RequestBody(required = true) AdjustmentPo adjustmentPo) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			logger.info(" com.lc.ibps.components.provider.AdjustmentProvider.save()--->adjustmentPo: {}", adjustmentPo.toString());
+			Adjustment domain = adjustmentRepository.newInstance(adjustmentPo);
+			domain.saveCascade();
+			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 {
+			Adjustment domain = adjustmentRepository.newInstance();
+			domain.deleteByIdsCascade(ids);
+			result.setMessage("删除调班申请表成功");
+		} catch (Exception e) {
+			setExceptionResult(result, StateEnum.ERROR.getCode(), StateEnum.ERROR.getText(), e);
+		}
+		return result;
+	}
+	
+}

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

@@ -0,0 +1,26 @@
+package com.lc.ibps.components.employee.repository;
+
+import java.util.List;
+import com.lc.ibps.base.framework.repository.IRepository;
+import com.lc.ibps.components.employee.domain.AdjustmentDetail;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ * 调班详情表 仓库接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:49
+ *</pre>
+ */
+public interface AdjustmentDetailRepository extends IRepository<String, AdjustmentDetailPo,AdjustmentDetail>{
+	 /**
+	 * 根据主表ID查询 调班详情表 列表
+	 * @param mainId
+	 * @return 
+	 * List<AdjustmentDetailPo>
+	 */
+	public List<AdjustmentDetailPo> findByMainId(String mainId);
+
+}

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

@@ -0,0 +1,23 @@
+package com.lc.ibps.components.employee.repository;
+
+import com.lc.ibps.base.framework.repository.IRepository;
+import com.lc.ibps.components.employee.domain.Adjustment;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+
+/**
+ * 调班申请表 仓库接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:44
+ *</pre>
+ */
+public interface AdjustmentRepository extends IRepository<String, AdjustmentPo,Adjustment>{
+
+	/**
+	 * 查询全部子表的数据,并设置到主表Po中 
+	 * void
+	 */
+	public AdjustmentPo loadCascade(String id);
+}

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

@@ -0,0 +1,63 @@
+package com.lc.ibps.components.employee.repository.impl;
+
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.core.util.AppUtil;
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.base.framework.repository.AbstractRepository;
+import com.lc.ibps.components.employee.domain.AdjustmentDetail;
+import com.lc.ibps.components.employee.repository.AdjustmentDetailRepository;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDetailQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ * 调班详情表 仓库的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:49
+ *</pre>
+ */
+@Repository
+public class AdjustmentDetailRepositoryImpl extends AbstractRepository<String, AdjustmentDetailPo,AdjustmentDetail> implements AdjustmentDetailRepository{
+	  
+	@Resource
+	private  AdjustmentDetailQueryDao adjustmentDetailQueryDao;
+
+	public AdjustmentDetail newInstance() {
+		AdjustmentDetailPo po = new AdjustmentDetailPo();
+		AdjustmentDetail adjustmentDetail = AppUtil.getBean(AdjustmentDetail.class);
+		adjustmentDetail.setData(po);
+		return adjustmentDetail;
+	}
+
+	public AdjustmentDetail newInstance(AdjustmentDetailPo po) {
+		AdjustmentDetail adjustmentDetail = AppUtil.getBean(AdjustmentDetail.class);
+		adjustmentDetail.setData(po);
+		return adjustmentDetail;
+	} 
+	
+	@Override
+	protected IQueryDao<String, AdjustmentDetailPo> getQueryDao() {
+		return adjustmentDetailQueryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "adjustmentDetail";
+	}
+	
+	@Override
+	public List<AdjustmentDetailPo> findByMainId(String mainId) {
+		List<AdjustmentDetailPo> list = findByKey("findByMainId", "findIdsByMainId",
+				b().a("mainId", mainId).p());
+		return list;
+	}
+
+	
+}

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

@@ -0,0 +1,79 @@
+package com.lc.ibps.components.employee.repository.impl;
+
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.springframework.stereotype.Repository;
+
+import com.lc.ibps.base.core.util.string.StringUtil;
+import com.lc.ibps.base.core.util.BeanUtils;
+import com.lc.ibps.base.core.util.AppUtil;
+import com.lc.ibps.base.framework.persistence.dao.IQueryDao;
+import com.lc.ibps.base.framework.repository.AbstractRepository;
+import com.lc.ibps.components.employee.domain.Adjustment;
+import com.lc.ibps.components.employee.repository.AdjustmentRepository;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+import com.lc.ibps.components.employee.repository.AdjustmentDetailRepository;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+
+/**
+ * 调班申请表 仓库的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:43
+ *</pre>
+ */
+@Repository
+public class AdjustmentRepositoryImpl extends AbstractRepository<String, AdjustmentPo,Adjustment> implements AdjustmentRepository{
+	  
+	@Resource
+	private  AdjustmentQueryDao adjustmentQueryDao;
+	@Resource
+	private  AdjustmentDetailRepository adjustmentDetailRepository;
+
+	public Adjustment newInstance() {
+		AdjustmentPo po = new AdjustmentPo();
+		Adjustment adjustment = AppUtil.getBean(Adjustment.class);
+		adjustment.setData(po);
+		return adjustment;
+	}
+
+	public Adjustment newInstance(AdjustmentPo po) {
+		Adjustment adjustment = AppUtil.getBean(Adjustment.class);
+		adjustment.setData(po);
+		return adjustment;
+	} 
+	
+	@Override
+	protected IQueryDao<String, AdjustmentPo> getQueryDao() {
+		return adjustmentQueryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "adjustment";
+	}
+	
+
+	/**
+	 * 查询全部子表的数据,并设置到主表Po中 
+	 * void
+	 */
+	@Override
+	public AdjustmentPo loadCascade(String id){
+		AdjustmentPo adjustmentPo = null;
+		if(StringUtil.isNotEmpty(id)){
+			adjustmentPo = get(id);
+			if(BeanUtils.isNotEmpty(adjustmentPo) && BeanUtils.isNotEmpty(adjustmentPo.getId())){
+				List<AdjustmentDetailPo> adjustmentDetailPoList = adjustmentDetailRepository.findByMainId(adjustmentPo.getId());
+				adjustmentPo.setAdjustmentDetailPoList(adjustmentDetailPoList);
+			}
+		}
+		return adjustmentPo;
+	}
+	
+}

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

@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.lc.ibps.components.employee.persistence.entity.AdjustmentPo">
+	<!--<cache type="net.oschina.j2cache.mybatis.J2CacheAdapter"/>-->
+	<resultMap id="AdjustmentPo" type="com.lc.ibps.components.employee.persistence.entity.AdjustmentPo">
+		<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="diDian" column="DI_DIAN_" jdbcType="VARCHAR"/>
+		<result property="reason" column="REASON_" jdbcType="VARCHAR"/>
+		<result property="status" column="STATUS" jdbcType="VARCHAR"/>
+		<result property="executor" column="EXECUTOR_" jdbcType="VARCHAR"/>
+		<result property="executeDate" column="EXECUTE_DATE_" jdbcType="VARCHAR"/>
+	</resultMap>
+	
+	<sql id="columns">
+		ID_,TENANT_ID_,IP_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_,DI_DIAN_,REASON_,STATUS,EXECUTOR_,EXECUTE_DATE_
+	</sql>
+	
+	<insert id="create" parameterType="com.lc.ibps.components.employee.persistence.entity.AdjustmentPo">
+		INSERT INTO T_ADJUSTMENT
+		(<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}, #{diDian,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{executor,jdbcType=VARCHAR}, #{executeDate,jdbcType=VARCHAR})
+	</insert>
+	
+	<select id="get" parameterType="java.lang.String" resultMap="AdjustmentPo">
+		SELECT <include refid="columns"/> FROM T_ADJUSTMENT 
+		WHERE 
+		ID_=#{id}
+	</select>
+	
+	
+	<sql id="querySql" >
+		SELECT <include refid="columns"/> FROM T_ADJUSTMENT
+		<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="AdjustmentPo">
+		<include refid="querySql"/>
+	</select>
+	
+	<select id="queryIds" parameterType="java.util.Map" resultMap="AdjustmentPo">
+		SELECT ID_ FROM (<include refid="querySql"/>) T
+	</select>
+	
+	<select id="findByIds" resultMap="AdjustmentPo">
+		SELECT <include refid="columns"/> FROM T_ADJUSTMENT
+			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.employee.persistence.entity.AdjustmentPo">
+		UPDATE T_ADJUSTMENT SET
+		TENANT_ID_=#{tenantId,jdbcType=VARCHAR},
+		IP_=#{ip,jdbcType=VARCHAR},
+		UPDATE_BY_=#{updateBy,jdbcType=VARCHAR},
+		UPDATE_TIME_=#{updateTime,jdbcType=TIMESTAMP},
+		DI_DIAN_=#{diDian,jdbcType=VARCHAR},
+		REASON_=#{reason,jdbcType=VARCHAR},
+		STATUS=#{status,jdbcType=VARCHAR},
+		EXECUTOR_=#{executor,jdbcType=VARCHAR},
+		EXECUTE_DATE_=#{executeDate,jdbcType=VARCHAR}
+		WHERE
+		ID_=#{id}
+	</update>
+	
+	<delete id="remove" parameterType="java.lang.String">
+		DELETE FROM T_ADJUSTMENT 
+		WHERE
+		ID_=#{id}
+	</delete>
+	
+	
+</mapper>

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

@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo">
+	<!--<cache type="net.oschina.j2cache.mybatis.J2CacheAdapter"/>-->
+	<resultMap id="AdjustmentDetailPo" type="com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo">
+		<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="recordId" column="RECORD_ID_" jdbcType="VARCHAR"/>
+		<result property="beforeAdjust" column="BEFORE_ADJUST_" jdbcType="VARCHAR"/>
+		<result property="beforeDate" column="BEFORE_DATE_" jdbcType="VARCHAR"/>
+		<result property="afterAdjust" column="AFTER_ADJUST_" jdbcType="VARCHAR"/>
+		<result property="afterDate" column="AFTER_DATE_" jdbcType="VARCHAR"/>
+		<result property="status" column="STATUS_" jdbcType="VARCHAR"/>
+		<result property="party" column="PARTY_" jdbcType="VARCHAR"/>
+		<result property="auditTime" column="AUDIT_TIME_" jdbcType="VARCHAR"/>
+	</resultMap>
+	
+	<sql id="columns">
+		ID_,PARENT_ID_,TENANT_ID_,IP_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_,RECORD_ID_,BEFORE_ADJUST_,BEFORE_DATE_,AFTER_ADJUST_,AFTER_DATE_,STATUS_,PARTY_,AUDIT_TIME_
+	</sql>
+	
+	<insert id="create" parameterType="com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo">
+		INSERT INTO T_ADJUSTMENT_DETAIL
+		(<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}, #{recordId,jdbcType=VARCHAR}, #{beforeAdjust,jdbcType=VARCHAR}, #{beforeDate,jdbcType=VARCHAR}, #{afterAdjust,jdbcType=VARCHAR}, #{afterDate,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{party,jdbcType=VARCHAR}, #{auditTime,jdbcType=VARCHAR})
+	</insert>
+	
+	<select id="get" parameterType="java.lang.String" resultMap="AdjustmentDetailPo">
+		SELECT <include refid="columns"/> FROM T_ADJUSTMENT_DETAIL 
+		WHERE 
+		ID_=#{id}
+	</select>
+	
+	
+	<sql id="querySql" >
+		SELECT <include refid="columns"/> FROM T_ADJUSTMENT_DETAIL
+		<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="AdjustmentDetailPo">
+		<include refid="querySql"/>
+	</select>
+	
+	<select id="queryIds" parameterType="java.util.Map" resultMap="AdjustmentDetailPo">
+		SELECT ID_ FROM (<include refid="querySql"/>) T
+	</select>
+	
+	<select id="findByIds" resultMap="AdjustmentDetailPo">
+		SELECT <include refid="columns"/> FROM T_ADJUSTMENT_DETAIL
+			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.employee.persistence.entity.AdjustmentDetailPo">
+		UPDATE T_ADJUSTMENT_DETAIL 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},
+		RECORD_ID_=#{recordId,jdbcType=VARCHAR},
+		BEFORE_ADJUST_=#{beforeAdjust,jdbcType=VARCHAR},
+		BEFORE_DATE_=#{beforeDate,jdbcType=VARCHAR},
+		AFTER_ADJUST_=#{afterAdjust,jdbcType=VARCHAR},
+		AFTER_DATE_=#{afterDate,jdbcType=VARCHAR},
+		STATUS_=#{status,jdbcType=VARCHAR},
+		PARTY_=#{party,jdbcType=VARCHAR},
+		AUDIT_TIME_=#{auditTime,jdbcType=VARCHAR}
+		WHERE
+		ID_=#{id}
+	</update>
+	
+	<delete id="remove" parameterType="java.lang.String">
+		DELETE FROM T_ADJUSTMENT_DETAIL 
+		WHERE
+		ID_=#{id}
+	</delete>
+	
+	<delete id="deleteByMainId">
+	    DELETE FROM T_ADJUSTMENT_DETAIL
+	    WHERE
+	    PARENT_ID_=#{mainId}
+	</delete>    
+	
+	<select id="findByMainId" resultMap="AdjustmentDetailPo">
+	    SELECT <include refid="columns"/>
+	    FROM T_ADJUSTMENT_DETAIL 
+	    WHERE PARENT_ID_=#{mainId}
+	</select>
+	
+	<select id="findIdsByMainId" parameterType="java.util.Map" resultMap="AdjustmentDetailPo">
+		SELECT ID_ FROM T_ADJUSTMENT_DETAIL
+	    WHERE
+	    PARENT_ID_=#{mainId}
+	</select>
+	
+</mapper>

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

@@ -0,0 +1,60 @@
+package com.lc.ibps.components.employee.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.springframework.test.annotation.Rollback;
+
+import com.lc.ibps.components.employee.domain.AdjustmentDetail;
+import com.lc.ibps.components.employee.repository.AdjustmentDetailRepository;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 调班详情表 领域对象实体单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:49
+ *</pre>
+ */
+public class AdjustmentDetailTest extends EmployeeBaseTest{
+	 
+	@Resource
+	private AdjustmentDetailRepository adjustmentDetailRepository;
+	
+	@Test
+	@Rollback(true)
+	public void create(){				
+		AdjustmentDetail adjustmentDetail = adjustmentDetailRepository.newInstance();
+		
+		AdjustmentDetailPo adjustmentDetailPo=new AdjustmentDetailPo();
+		adjustmentDetailPo.setId(idGenerator.getId());
+		
+		adjustmentDetail.setData(adjustmentDetailPo);
+		
+		List<String> ids = new ArrayList<String>();
+		
+		adjustmentDetail.create();	
+		ids.add(adjustmentDetail.getId());
+						
+		AdjustmentDetail adjustmentDetail2 = adjustmentDetailRepository.newInstance();
+		adjustmentDetailPo.setId(idGenerator.getId());
+		adjustmentDetail2.setData(adjustmentDetailPo);
+		
+		adjustmentDetail2.create();
+		ids.add(adjustmentDetail2.getId());
+		
+		List<AdjustmentDetailPo> adjustmentDetailPoList = adjustmentDetailRepository.findByIds(ids);
+		Assert.assertTrue(adjustmentDetailPoList.size()>=2);
+		
+		List<AdjustmentDetailPo>adjustmentDetail1 = adjustmentDetailRepository.findAll();
+		Assert.assertTrue(adjustmentDetail1.size()>=2);
+
+	}
+}

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

@@ -0,0 +1,60 @@
+package com.lc.ibps.components.employee.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.springframework.test.annotation.Rollback;
+
+import com.lc.ibps.components.employee.domain.Adjustment;
+import com.lc.ibps.components.employee.repository.AdjustmentRepository;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 调班申请表 领域对象实体单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:44
+ *</pre>
+ */
+public class AdjustmentTest extends EmployeeBaseTest{
+	 
+	@Resource
+	private AdjustmentRepository adjustmentRepository;
+	
+	@Test
+	@Rollback(true)
+	public void create(){				
+		Adjustment adjustment = adjustmentRepository.newInstance();
+		
+		AdjustmentPo adjustmentPo=new AdjustmentPo();
+		adjustmentPo.setId(idGenerator.getId());
+		
+		adjustment.setData(adjustmentPo);
+		
+		List<String> ids = new ArrayList<String>();
+		
+		adjustment.create();	
+		ids.add(adjustment.getId());
+						
+		Adjustment adjustment2 = adjustmentRepository.newInstance();
+		adjustmentPo.setId(idGenerator.getId());
+		adjustment2.setData(adjustmentPo);
+		
+		adjustment2.create();
+		ids.add(adjustment2.getId());
+		
+		List<AdjustmentPo> adjustmentPoList = adjustmentRepository.findByIds(ids);
+		Assert.assertTrue(adjustmentPoList.size()>=2);
+		
+		List<AdjustmentPo>adjustment1 = adjustmentRepository.findAll();
+		Assert.assertTrue(adjustment1.size()>=2);
+
+	}
+}

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

@@ -0,0 +1,55 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import javax.annotation.Resource;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.springframework.test.annotation.Rollback;
+
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDao;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentPo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 调班申请表 dao单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:42
+ *</pre>
+ */
+public class AdjustmentDaoTest extends EmployeeBaseTest{
+
+	@Resource
+	private AdjustmentDao adjustmentDao;
+	
+	@Resource
+	private AdjustmentQueryDao adjustmentQueryDao;
+		
+	@Test
+	@Rollback(true)
+	public void testCrud(){
+		AdjustmentPo adjustmentPo=new AdjustmentPo();
+		adjustmentPo.setId(idGenerator.getId());
+		
+		//创建一实体
+		adjustmentDao.create(adjustmentPo);
+        Assert.assertNotNull(adjustmentPo.getId());
+        logger.debug("adjustmentPo1:"+ adjustmentPo.getId());
+		//获取一实体
+		AdjustmentPo adjustmentPo2=adjustmentQueryDao.get(adjustmentPo.getId());
+		Assert.assertNotNull(adjustmentPo2);
+		logger.debug("adjustmentPo2:" + adjustmentPo2.toString());
+		//更新一实体
+		adjustmentDao.update(adjustmentPo2);
+		
+		AdjustmentPo adjustmentPo3=adjustmentQueryDao.get(adjustmentPo.getId());
+		Assert.assertNotNull(adjustmentPo3);
+		logger.debug("adjustmentPo3:"+adjustmentPo3.toString());
+		//删除一实体
+		//adjustmentDao.remove(adjustmentPo.getId());
+	}
+	
+}

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

@@ -0,0 +1,55 @@
+package com.lc.ibps.components.employee.persistence.dao;
+
+import javax.annotation.Resource;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.springframework.test.annotation.Rollback;
+
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDetailDao;
+import com.lc.ibps.components.employee.persistence.dao.AdjustmentDetailQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.AdjustmentDetailPo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 调班详情表 dao单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 11:49:48
+ *</pre>
+ */
+public class AdjustmentDetailDaoTest extends EmployeeBaseTest{
+
+	@Resource
+	private AdjustmentDetailDao adjustmentDetailDao;
+	
+	@Resource
+	private AdjustmentDetailQueryDao adjustmentDetailQueryDao;
+		
+	@Test
+	@Rollback(true)
+	public void testCrud(){
+		AdjustmentDetailPo adjustmentDetailPo=new AdjustmentDetailPo();
+		adjustmentDetailPo.setId(idGenerator.getId());
+		
+		//创建一实体
+		adjustmentDetailDao.create(adjustmentDetailPo);
+        Assert.assertNotNull(adjustmentDetailPo.getId());
+        logger.debug("adjustmentDetailPo1:"+ adjustmentDetailPo.getId());
+		//获取一实体
+		AdjustmentDetailPo adjustmentDetailPo2=adjustmentDetailQueryDao.get(adjustmentDetailPo.getId());
+		Assert.assertNotNull(adjustmentDetailPo2);
+		logger.debug("adjustmentDetailPo2:" + adjustmentDetailPo2.toString());
+		//更新一实体
+		adjustmentDetailDao.update(adjustmentDetailPo2);
+		
+		AdjustmentDetailPo adjustmentDetailPo3=adjustmentDetailQueryDao.get(adjustmentDetailPo.getId());
+		Assert.assertNotNull(adjustmentDetailPo3);
+		logger.debug("adjustmentDetailPo3:"+adjustmentDetailPo3.toString());
+		//删除一实体
+		//adjustmentDetailDao.remove(adjustmentDetailPo.getId());
+	}
+	
+}