فهرست منبع

[task-2099]排班功能开发 / 【后端】排班记录接口开发

Li Yuan 1 سال پیش
والد
کامیت
6d200fa813
28فایلهای تغییر یافته به همراه2526 افزوده شده و 0 حذف شده
  1. 82 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/api/IStaffScheduleDetailService.java
  2. 82 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/api/IStaffScheduleService.java
  3. 108 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/domain/StaffSchedule.java
  4. 71 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/domain/StaffScheduleDetail.java
  5. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDao.java
  6. 22 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDetailDao.java
  7. 24 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDetailQueryDao.java
  8. 16 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleQueryDao.java
  9. 26 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/StaffScheduleDaoImpl.java
  10. 29 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/StaffScheduleDetailDaoImpl.java
  11. 31 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/StaffScheduleDetailQueryDaoImpl.java
  12. 27 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/StaffScheduleQueryDaoImpl.java
  13. 35 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/StaffScheduleDetailPo.java
  14. 737 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/StaffScheduleDetailTbl.java
  15. 51 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/StaffSchedulePo.java
  16. 205 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/StaffScheduleTbl.java
  17. 123 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/provider/StaffScheduleDetailProvider.java
  18. 123 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/provider/StaffScheduleProvider.java
  19. 26 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/StaffScheduleDetailRepository.java
  20. 23 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/StaffScheduleRepository.java
  21. 63 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/StaffScheduleDetailRepositoryImpl.java
  22. 79 0
      ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/StaffScheduleRepositoryImpl.java
  23. 102 0
      ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/employee/persistence/mapping/StaffSchedule.map.xml
  24. 195 0
      ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/employee/persistence/mapping/StaffScheduleDetail.map.xml
  25. 60 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/domain/StaffScheduleDetailTest.java
  26. 60 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/domain/StaffScheduleTest.java
  27. 55 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDaoTest.java
  28. 55 0
      ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDetailDaoTest.java

+ 82 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/api/IStaffScheduleDetailService.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.StaffScheduleDetailPo;
+
+
+
+/**
+ * 排班详情表 接口
+ *
+ *<pre> 
+ * 构建组:ibps-provider-staffScheduleDetail-api
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:04
+ *</pre>
+ */
+@Validated
+@RequestMapping(value = "/employee/staffScheduleDetail")
+@RestController
+public interface IStaffScheduleDetailService {
+
+	/**
+	 * 
+	 * 【排班详情表】列表(分页条件查询)数据
+	 *
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/query", method = RequestMethod.POST)
+	public APIResult<APIPageList<StaffScheduleDetailPo>> query(
+			@RequestBody(required = true) APIRequest request);
+	
+	/**
+	 * 
+	 * 根据id查询【排班详情表】
+	 *
+	 * @param id
+	 * @return
+	 */
+	@RequestMapping(value = "/get", method = { RequestMethod.GET })
+	public APIResult<StaffScheduleDetailPo> get(
+//			@NotBlank(message = "{com.lc.ibps.components.provider.StaffScheduleDetailProvider.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.StaffScheduleDetailProvider.ids}")
+			@RequestParam(name = "ids", required = true) String[] ids);
+	
+	/**
+	 * 
+	 * 保存【排班详情表】记录
+	 *
+	 * @param staffScheduleDetailPo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = { RequestMethod.POST })
+	public APIResult<Void> save(
+ 			@RequestBody(required = true) @Valid StaffScheduleDetailPo staffScheduleDetailPo);
+}

+ 82 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/api/IStaffScheduleService.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.StaffSchedulePo;
+
+
+
+/**
+ * 排班记录表 接口
+ *
+ *<pre> 
+ * 构建组:ibps-provider-staffSchedule-api
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:58
+ *</pre>
+ */
+@Validated
+@RequestMapping(value = "/employee/staffSchedule")
+@RestController
+public interface IStaffScheduleService {
+
+	/**
+	 * 
+	 * 【排班记录表】列表(分页条件查询)数据
+	 *
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/query", method = RequestMethod.POST)
+	public APIResult<APIPageList<StaffSchedulePo>> query(
+			@RequestBody(required = true) APIRequest request);
+	
+	/**
+	 * 
+	 * 根据id查询【排班记录表】
+	 *
+	 * @param id
+	 * @return
+	 */
+	@RequestMapping(value = "/get", method = { RequestMethod.GET })
+	public APIResult<StaffSchedulePo> get(
+//			@NotBlank(message = "{com.lc.ibps.components.provider.StaffScheduleProvider.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.StaffScheduleProvider.ids}")
+			@RequestParam(name = "ids", required = true) String[] ids);
+	
+	/**
+	 * 
+	 * 保存【排班记录表】记录
+	 *
+	 * @param staffSchedulePo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = { RequestMethod.POST })
+	public APIResult<Void> save(
+ 			@RequestBody(required = true) @Valid StaffSchedulePo staffSchedulePo);
+}

+ 108 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/domain/StaffSchedule.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.StaffScheduleDao;
+import com.lc.ibps.components.employee.persistence.dao.StaffScheduleQueryDao;
+import com.lc.ibps.components.employee.repository.StaffScheduleRepository;
+import com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo;
+import com.lc.ibps.components.employee.repository.StaffScheduleDetailRepository;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+
+/**
+ * 排班记录表 领域对象实体
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:57
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Service
+@Transactional
+@Scope("prototype")
+public class StaffSchedule extends AbstractDomain<String, StaffSchedulePo>{
+	
+	@Resource
+	private StaffScheduleDao staffScheduleDao;
+	@Resource
+	private StaffScheduleQueryDao staffScheduleQueryDao;
+	@Resource
+	private StaffScheduleRepository staffScheduleRepository;
+
+	@Resource
+	private StaffScheduleDetailRepository staffScheduleDetailRepository;
+
+	protected void init(){
+		//
+	}
+	
+	@Override
+	protected IQueryDao<String, StaffSchedulePo> getInternalQueryDao() {
+		return staffScheduleQueryDao;
+	}
+	
+	@Override
+	protected IDao<String, StaffSchedulePo> getInternalDao() {
+		return staffScheduleDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "staffSchedule";
+	}
+	
+	/**
+	 * 主从表一并保存 
+	 * void
+	 * @exception 
+	 * @since  1.0.0
+	 */
+	public void saveCascade(){
+		save();
+		if(getData().isDelBeforeSave()){
+			StaffScheduleDetail staffScheduleDetail = staffScheduleDetailRepository.newInstance();
+			staffScheduleDetail.deleteByMainId(getData().getId());
+		}
+		
+		StaffScheduleDetail staffScheduleDetail = staffScheduleDetailRepository.newInstance();
+		if(BeanUtils.isNotEmpty(getData().getStaffScheduleDetailPoList())){
+			for(StaffScheduleDetailPo staffScheduleDetailPo:getData().getStaffScheduleDetailPoList()){
+				//设置外键
+				staffScheduleDetailPo.setParentId(getData().getId());
+				staffScheduleDetail.save(staffScheduleDetailPo);
+			}
+		}
+	}	
+	
+	/**
+	 * 主从表一并删除 
+	 * void
+	 * @exception 
+	 * @since  1.0.0
+	 */
+	public void deleteByIdsCascade(String[] ids){
+		for(String id : ids){
+			StaffSchedulePo po = staffScheduleRepository.get(id);
+			StaffScheduleDetail staffScheduleDetail = staffScheduleDetailRepository.newInstance();
+			if(BeanUtils.isNotEmpty(po) && BeanUtils.isNotEmpty(po.getId())){
+				staffScheduleDetail.deleteByMainId(po.getId());
+			}	
+		}
+		deleteByIds(ids);
+	}
+	
+	
+}

+ 71 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/domain/StaffScheduleDetail.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.StaffScheduleDetailDao;
+import com.lc.ibps.components.employee.persistence.dao.StaffScheduleDetailQueryDao;
+import com.lc.ibps.components.employee.repository.StaffScheduleDetailRepository;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+
+/**
+ * 排班详情表 领域对象实体
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:03
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Service
+@Transactional
+@Scope("prototype")
+public class StaffScheduleDetail extends AbstractDomain<String, StaffScheduleDetailPo>{
+	
+	@Resource
+	private StaffScheduleDetailDao staffScheduleDetailDao;
+	@Resource
+	private StaffScheduleDetailQueryDao staffScheduleDetailQueryDao;
+	@Resource
+	private StaffScheduleDetailRepository staffScheduleDetailRepository;
+
+
+	protected void init(){
+		//
+	}
+	
+	@Override
+	protected IQueryDao<String, StaffScheduleDetailPo> getInternalQueryDao() {
+		return staffScheduleDetailQueryDao;
+	}
+	
+	@Override
+	protected IDao<String, StaffScheduleDetailPo> getInternalDao() {
+		return staffScheduleDetailDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "staffScheduleDetail";
+	}
+	
+	
+	public void deleteByMainId(String mainId) {
+		List<StaffScheduleDetailPo> list = staffScheduleDetailRepository.findByMainId(mainId);
+		for (StaffScheduleDetailPo po : list) {
+			delete(po.getId());
+		}
+	}
+	
+}

+ 16 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDao.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.StaffSchedulePo;
+
+/**
+ * 排班记录表 Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:56
+ *</pre>
+ */
+public interface StaffScheduleDao extends IDao<String, StaffSchedulePo> {
+}

+ 22 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDetailDao.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.StaffScheduleDetailPo;
+
+/**
+ * 排班详情表 Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:01
+ *</pre>
+ */
+public interface StaffScheduleDetailDao extends IDao<String, StaffScheduleDetailPo> {
+	/**
+	 * 根据主表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/StaffScheduleDetailQueryDao.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.StaffScheduleDetailPo;
+
+/**
+ * 排班详情表 查询Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:01
+ *</pre>
+ */
+public interface StaffScheduleDetailQueryDao extends IQueryDao<String, StaffScheduleDetailPo> {
+	/**
+	 * 根据主表ID查询 排班详情表 列表
+	 * @param mainId
+	 * @return 
+	 * List<StaffScheduleDetailPo>
+	 */
+	public List<StaffScheduleDetailPo> findByMainId(String mainId);
+}

+ 16 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleQueryDao.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.StaffSchedulePo;
+
+/**
+ * 排班记录表 查询Dao接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:56
+ *</pre>
+ */
+public interface StaffScheduleQueryDao extends IQueryDao<String, StaffSchedulePo> {
+}

+ 26 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/StaffScheduleDaoImpl.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.StaffScheduleDao;
+import com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo;
+
+/**
+ * 排班记录表 Dao接口的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:56
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Repository
+public class StaffScheduleDaoImpl extends MyBatisDaoImpl<String, StaffSchedulePo> implements StaffScheduleDao{
+
+    @Override
+    public String getNamespace() {
+        return StaffSchedulePo.class.getName();
+    }
+}

+ 29 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/dao/impl/StaffScheduleDetailDaoImpl.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.StaffScheduleDetailDao;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+
+/**
+ * 排班详情表 Dao接口的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:01
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@Repository
+public class StaffScheduleDetailDaoImpl extends MyBatisDaoImpl<String, StaffScheduleDetailPo> implements StaffScheduleDetailDao{
+
+    @Override
+    public String getNamespace() {
+        return StaffScheduleDetailPo.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/StaffScheduleDetailQueryDaoImpl.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.StaffScheduleDetailQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+
+/**
+ *排班详情表 查询Dao的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:01
+ *</pre>
+ */
+ @SuppressWarnings("serial")
+@Repository
+public class StaffScheduleDetailQueryDaoImpl extends MyBatisQueryDaoImpl<String, StaffScheduleDetailPo> implements StaffScheduleDetailQueryDao{
+
+    @Override
+    public String getNamespace() {
+        return StaffScheduleDetailPo.class.getName();
+    }
+	public List<StaffScheduleDetailPo> 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/StaffScheduleQueryDaoImpl.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.StaffScheduleQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo;
+
+/**
+ *排班记录表 查询Dao的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:55
+ *</pre>
+ */
+ @SuppressWarnings("serial")
+@Repository
+public class StaffScheduleQueryDaoImpl extends MyBatisQueryDaoImpl<String, StaffSchedulePo> implements StaffScheduleQueryDao{
+
+    @Override
+    public String getNamespace() {
+        return StaffSchedulePo.class.getName();
+    }
+}

+ 35 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/StaffScheduleDetailPo.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 13:47:00
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "排班详情表对象")
+public class StaffScheduleDetailPo extends StaffScheduleDetailTbl{
+
+	public static StaffScheduleDetailPo fromJsonString(String data){
+		if(JacksonUtil.isNotJsonObject(data)){
+			return null;
+		}
+		return JacksonUtil.getDTO(data, StaffScheduleDetailPo.class);
+	}
+	
+	public static List<StaffScheduleDetailPo> fromJsonArrayString(String listData){
+		if(JacksonUtil.isNotJsonArray(listData)){
+			return Collections.emptyList();
+		}
+		return JacksonUtil.getDTOList(listData, StaffScheduleDetailPo.class);
+	}
+}

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

@@ -0,0 +1,737 @@
+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 13:47:00
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "排班详情表对象")
+public class StaffScheduleDetailTbl 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  userId; 		/*用户ID*/
+	@ApiModelProperty(value = "统计")
+	protected String  statistics; 		/*统计*/
+	@ApiModelProperty(value = "d1")
+	protected String  d1; 		/*d1*/
+	@ApiModelProperty(value = "d2")
+	protected String  d2; 		/*d2*/
+	@ApiModelProperty(value = "d3")
+	protected String  d3; 		/*d3*/
+	@ApiModelProperty(value = "d4")
+	protected String  d4; 		/*d4*/
+	@ApiModelProperty(value = "d5")
+	protected String  d5; 		/*d5*/
+	@ApiModelProperty(value = "d6")
+	protected String  d6; 		/*d6*/
+	@ApiModelProperty(value = "d7")
+	protected String  d7; 		/*d7*/
+	@ApiModelProperty(value = "d8")
+	protected String  d8; 		/*d8*/
+	@ApiModelProperty(value = "d9")
+	protected String  d9; 		/*d9*/
+	@ApiModelProperty(value = "d10")
+	protected String  d10; 		/*d10*/
+	@ApiModelProperty(value = "d11")
+	protected String  d11; 		/*d11*/
+	@ApiModelProperty(value = "d12")
+	protected String  d12; 		/*d12*/
+	@ApiModelProperty(value = "d13")
+	protected String  d13; 		/*d13*/
+	@ApiModelProperty(value = "d14")
+	protected String  d14; 		/*d14*/
+	@ApiModelProperty(value = "d15")
+	protected String  d15; 		/*d15*/
+	@ApiModelProperty(value = "d16")
+	protected String  d16; 		/*d16*/
+	@ApiModelProperty(value = "d17")
+	protected String  d17; 		/*d17*/
+	@ApiModelProperty(value = "d18")
+	protected String  d18; 		/*d18*/
+	@ApiModelProperty(value = "d19")
+	protected String  d19; 		/*d19*/
+	@ApiModelProperty(value = "d20")
+	protected String  d20; 		/*d20*/
+	@ApiModelProperty(value = "d21")
+	protected String  d21; 		/*d21*/
+	@ApiModelProperty(value = "d22")
+	protected String  d22; 		/*d22*/
+	@ApiModelProperty(value = "d23")
+	protected String  d23; 		/*d23*/
+	@ApiModelProperty(value = "d24")
+	protected String  d24; 		/*d24*/
+	@ApiModelProperty(value = "d25")
+	protected String  d25; 		/*d25*/
+	@ApiModelProperty(value = "d26")
+	protected String  d26; 		/*d26*/
+	@ApiModelProperty(value = "d27")
+	protected String  d27; 		/*d27*/
+	@ApiModelProperty(value = "d28")
+	protected String  d28; 		/*d28*/
+	@ApiModelProperty(value = "d29")
+	protected String  d29; 		/*d29*/
+	@ApiModelProperty(value = "d30")
+	protected String  d30; 		/*d30*/
+	@ApiModelProperty(value = "d31")
+	protected String  d31; 		/*d31*/
+	@ApiModelProperty(value = "d32")
+	protected String  d32; 		/*d32*/
+	@ApiModelProperty(value = "d33")
+	protected String  d33; 		/*d33*/
+	@ApiModelProperty(value = "d34")
+	protected String  d34; 		/*d34*/
+	@ApiModelProperty(value = "d35")
+	protected String  d35; 		/*d35*/
+	@ApiModelProperty(value = "d36")
+	protected String  d36; 		/*d36*/
+	@ApiModelProperty(value = "d37")
+	protected String  d37; 		/*d37*/
+	@ApiModelProperty(value = "d38")
+	protected String  d38; 		/*d38*/
+	@ApiModelProperty(value = "d39")
+	protected String  d39; 		/*d39*/
+	@ApiModelProperty(value = "d40")
+	protected String  d40; 		/*d40*/
+	@ApiModelProperty(value = "d41")
+	protected String  d41; 		/*d41*/
+	@ApiModelProperty(value = "d42")
+	protected String  d42; 		/*d42*/
+	@ApiModelProperty(value = "d43")
+	protected String  d43; 		/*d43*/
+	@ApiModelProperty(value = "d44")
+	protected String  d44; 		/*d44*/
+	@ApiModelProperty(value = "d45")
+	protected String  d45; 		/*d45*/
+
+	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 setUserId(String userId) 
+	{
+		this.userId = userId;
+	}
+	/**
+	 * 返回 用户ID
+	 * @return
+	 */
+	public String getUserId() 
+	{
+		return this.userId;
+	}
+	public void setStatistics(String statistics) 
+	{
+		this.statistics = statistics;
+	}
+	/**
+	 * 返回 统计
+	 * @return
+	 */
+	public String getStatistics() 
+	{
+		return this.statistics;
+	}
+	public void setD1(String d1) 
+	{
+		this.d1 = d1;
+	}
+	/**
+	 * 返回 d1
+	 * @return
+	 */
+	public String getD1() 
+	{
+		return this.d1;
+	}
+	public void setD2(String d2) 
+	{
+		this.d2 = d2;
+	}
+	/**
+	 * 返回 d2
+	 * @return
+	 */
+	public String getD2() 
+	{
+		return this.d2;
+	}
+	public void setD3(String d3) 
+	{
+		this.d3 = d3;
+	}
+	/**
+	 * 返回 d3
+	 * @return
+	 */
+	public String getD3() 
+	{
+		return this.d3;
+	}
+	public void setD4(String d4) 
+	{
+		this.d4 = d4;
+	}
+	/**
+	 * 返回 d4
+	 * @return
+	 */
+	public String getD4() 
+	{
+		return this.d4;
+	}
+	public void setD5(String d5) 
+	{
+		this.d5 = d5;
+	}
+	/**
+	 * 返回 d5
+	 * @return
+	 */
+	public String getD5() 
+	{
+		return this.d5;
+	}
+	public void setD6(String d6) 
+	{
+		this.d6 = d6;
+	}
+	/**
+	 * 返回 d6
+	 * @return
+	 */
+	public String getD6() 
+	{
+		return this.d6;
+	}
+	public void setD7(String d7) 
+	{
+		this.d7 = d7;
+	}
+	/**
+	 * 返回 d7
+	 * @return
+	 */
+	public String getD7() 
+	{
+		return this.d7;
+	}
+	public void setD8(String d8) 
+	{
+		this.d8 = d8;
+	}
+	/**
+	 * 返回 d8
+	 * @return
+	 */
+	public String getD8() 
+	{
+		return this.d8;
+	}
+	public void setD9(String d9) 
+	{
+		this.d9 = d9;
+	}
+	/**
+	 * 返回 d9
+	 * @return
+	 */
+	public String getD9() 
+	{
+		return this.d9;
+	}
+	public void setD10(String d10) 
+	{
+		this.d10 = d10;
+	}
+	/**
+	 * 返回 d10
+	 * @return
+	 */
+	public String getD10() 
+	{
+		return this.d10;
+	}
+	public void setD11(String d11) 
+	{
+		this.d11 = d11;
+	}
+	/**
+	 * 返回 d11
+	 * @return
+	 */
+	public String getD11() 
+	{
+		return this.d11;
+	}
+	public void setD12(String d12) 
+	{
+		this.d12 = d12;
+	}
+	/**
+	 * 返回 d12
+	 * @return
+	 */
+	public String getD12() 
+	{
+		return this.d12;
+	}
+	public void setD13(String d13) 
+	{
+		this.d13 = d13;
+	}
+	/**
+	 * 返回 d13
+	 * @return
+	 */
+	public String getD13() 
+	{
+		return this.d13;
+	}
+	public void setD14(String d14) 
+	{
+		this.d14 = d14;
+	}
+	/**
+	 * 返回 d14
+	 * @return
+	 */
+	public String getD14() 
+	{
+		return this.d14;
+	}
+	public void setD15(String d15) 
+	{
+		this.d15 = d15;
+	}
+	/**
+	 * 返回 d15
+	 * @return
+	 */
+	public String getD15() 
+	{
+		return this.d15;
+	}
+	public void setD16(String d16) 
+	{
+		this.d16 = d16;
+	}
+	/**
+	 * 返回 d16
+	 * @return
+	 */
+	public String getD16() 
+	{
+		return this.d16;
+	}
+	public void setD17(String d17) 
+	{
+		this.d17 = d17;
+	}
+	/**
+	 * 返回 d17
+	 * @return
+	 */
+	public String getD17() 
+	{
+		return this.d17;
+	}
+	public void setD18(String d18) 
+	{
+		this.d18 = d18;
+	}
+	/**
+	 * 返回 d18
+	 * @return
+	 */
+	public String getD18() 
+	{
+		return this.d18;
+	}
+	public void setD19(String d19) 
+	{
+		this.d19 = d19;
+	}
+	/**
+	 * 返回 d19
+	 * @return
+	 */
+	public String getD19() 
+	{
+		return this.d19;
+	}
+	public void setD20(String d20) 
+	{
+		this.d20 = d20;
+	}
+	/**
+	 * 返回 d20
+	 * @return
+	 */
+	public String getD20() 
+	{
+		return this.d20;
+	}
+	public void setD21(String d21) 
+	{
+		this.d21 = d21;
+	}
+	/**
+	 * 返回 d21
+	 * @return
+	 */
+	public String getD21() 
+	{
+		return this.d21;
+	}
+	public void setD22(String d22) 
+	{
+		this.d22 = d22;
+	}
+	/**
+	 * 返回 d22
+	 * @return
+	 */
+	public String getD22() 
+	{
+		return this.d22;
+	}
+	public void setD23(String d23) 
+	{
+		this.d23 = d23;
+	}
+	/**
+	 * 返回 d23
+	 * @return
+	 */
+	public String getD23() 
+	{
+		return this.d23;
+	}
+	public void setD24(String d24) 
+	{
+		this.d24 = d24;
+	}
+	/**
+	 * 返回 d24
+	 * @return
+	 */
+	public String getD24() 
+	{
+		return this.d24;
+	}
+	public void setD25(String d25) 
+	{
+		this.d25 = d25;
+	}
+	/**
+	 * 返回 d25
+	 * @return
+	 */
+	public String getD25() 
+	{
+		return this.d25;
+	}
+	public void setD26(String d26) 
+	{
+		this.d26 = d26;
+	}
+	/**
+	 * 返回 d26
+	 * @return
+	 */
+	public String getD26() 
+	{
+		return this.d26;
+	}
+	public void setD27(String d27) 
+	{
+		this.d27 = d27;
+	}
+	/**
+	 * 返回 d27
+	 * @return
+	 */
+	public String getD27() 
+	{
+		return this.d27;
+	}
+	public void setD28(String d28) 
+	{
+		this.d28 = d28;
+	}
+	/**
+	 * 返回 d28
+	 * @return
+	 */
+	public String getD28() 
+	{
+		return this.d28;
+	}
+	public void setD29(String d29) 
+	{
+		this.d29 = d29;
+	}
+	/**
+	 * 返回 d29
+	 * @return
+	 */
+	public String getD29() 
+	{
+		return this.d29;
+	}
+	public void setD30(String d30) 
+	{
+		this.d30 = d30;
+	}
+	/**
+	 * 返回 d30
+	 * @return
+	 */
+	public String getD30() 
+	{
+		return this.d30;
+	}
+	public void setD31(String d31) 
+	{
+		this.d31 = d31;
+	}
+	/**
+	 * 返回 d31
+	 * @return
+	 */
+	public String getD31() 
+	{
+		return this.d31;
+	}
+	public void setD32(String d32) 
+	{
+		this.d32 = d32;
+	}
+	/**
+	 * 返回 d32
+	 * @return
+	 */
+	public String getD32() 
+	{
+		return this.d32;
+	}
+	public void setD33(String d33) 
+	{
+		this.d33 = d33;
+	}
+	/**
+	 * 返回 d33
+	 * @return
+	 */
+	public String getD33() 
+	{
+		return this.d33;
+	}
+	public void setD34(String d34) 
+	{
+		this.d34 = d34;
+	}
+	/**
+	 * 返回 d34
+	 * @return
+	 */
+	public String getD34() 
+	{
+		return this.d34;
+	}
+	public void setD35(String d35) 
+	{
+		this.d35 = d35;
+	}
+	/**
+	 * 返回 d35
+	 * @return
+	 */
+	public String getD35() 
+	{
+		return this.d35;
+	}
+	public void setD36(String d36) 
+	{
+		this.d36 = d36;
+	}
+	/**
+	 * 返回 d36
+	 * @return
+	 */
+	public String getD36() 
+	{
+		return this.d36;
+	}
+	public void setD37(String d37) 
+	{
+		this.d37 = d37;
+	}
+	/**
+	 * 返回 d37
+	 * @return
+	 */
+	public String getD37() 
+	{
+		return this.d37;
+	}
+	public void setD38(String d38) 
+	{
+		this.d38 = d38;
+	}
+	/**
+	 * 返回 d38
+	 * @return
+	 */
+	public String getD38() 
+	{
+		return this.d38;
+	}
+	public void setD39(String d39) 
+	{
+		this.d39 = d39;
+	}
+	/**
+	 * 返回 d39
+	 * @return
+	 */
+	public String getD39() 
+	{
+		return this.d39;
+	}
+	public void setD40(String d40) 
+	{
+		this.d40 = d40;
+	}
+	/**
+	 * 返回 d40
+	 * @return
+	 */
+	public String getD40() 
+	{
+		return this.d40;
+	}
+	public void setD41(String d41) 
+	{
+		this.d41 = d41;
+	}
+	/**
+	 * 返回 d41
+	 * @return
+	 */
+	public String getD41() 
+	{
+		return this.d41;
+	}
+	public void setD42(String d42) 
+	{
+		this.d42 = d42;
+	}
+	/**
+	 * 返回 d42
+	 * @return
+	 */
+	public String getD42() 
+	{
+		return this.d42;
+	}
+	public void setD43(String d43) 
+	{
+		this.d43 = d43;
+	}
+	/**
+	 * 返回 d43
+	 * @return
+	 */
+	public String getD43() 
+	{
+		return this.d43;
+	}
+	public void setD44(String d44) 
+	{
+		this.d44 = d44;
+	}
+	/**
+	 * 返回 d44
+	 * @return
+	 */
+	public String getD44() 
+	{
+		return this.d44;
+	}
+	public void setD45(String d45) 
+	{
+		this.d45 = d45;
+	}
+	/**
+	 * 返回 d45
+	 * @return
+	 */
+	public String getD45() 
+	{
+		return this.d45;
+	}
+	
+}

+ 51 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/persistence/entity/StaffSchedulePo.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 13:46:55
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "排班记录表对象")
+public class StaffSchedulePo extends StaffScheduleTbl{
+	private boolean delBeforeSave = true;
+	public boolean isDelBeforeSave() {
+		return delBeforeSave;
+	}
+	public void setDelBeforeSave(boolean delBeforeSave) {
+		this.delBeforeSave = delBeforeSave;
+	}	
+	
+	private List<StaffScheduleDetailPo> staffScheduleDetailPoList = new ArrayList<StaffScheduleDetailPo>();
+	public List<StaffScheduleDetailPo> getStaffScheduleDetailPoList() {
+		return staffScheduleDetailPoList;
+	}
+	public void setStaffScheduleDetailPoList(List<StaffScheduleDetailPo> staffScheduleDetailPoList) {
+		this.staffScheduleDetailPoList = staffScheduleDetailPoList;
+	}
+
+	public static StaffSchedulePo fromJsonString(String data){
+		if(JacksonUtil.isNotJsonObject(data)){
+			return null;
+		}
+		return JacksonUtil.getDTO(data, StaffSchedulePo.class);
+	}
+	
+	public static List<StaffSchedulePo> fromJsonArrayString(String listData){
+		if(JacksonUtil.isNotJsonArray(listData)){
+			return Collections.emptyList();
+		}
+		return JacksonUtil.getDTOList(listData, StaffSchedulePo.class);
+	}
+}

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

@@ -0,0 +1,205 @@
+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 13:46:55
+ *</pre>
+ */
+@SuppressWarnings("serial")
+@ApiModel(value = "排班记录表对象")
+public class StaffScheduleTbl 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  title; 		/*标题*/
+	@ApiModelProperty(value = "范围")
+	protected String  scope; 		/*范围*/
+	@ApiModelProperty(value = "范围ID")
+	protected String  scopeId; 		/*范围ID*/
+	@ApiModelProperty(value = "周期")
+	protected String  cycle; 		/*周期*/
+	@ApiModelProperty(value = "开始日期")
+	protected String  startDate; 		/*开始日期*/
+	@ApiModelProperty(value = "结束日期")
+	protected String  endDate; 		/*结束日期*/
+	@ApiModelProperty(value = "人员类型")
+	protected String  userType; 		/*人员类型*/
+	@ApiModelProperty(value = "状态")
+	protected String  status; 		/*状态*/
+	@ApiModelProperty(value = "总览")
+	protected String  overview; 		/*总览*/
+
+	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 setTitle(String title) 
+	{
+		this.title = title;
+	}
+	/**
+	 * 返回 标题
+	 * @return
+	 */
+	public String getTitle() 
+	{
+		return this.title;
+	}
+	public void setScope(String scope) 
+	{
+		this.scope = scope;
+	}
+	/**
+	 * 返回 范围
+	 * @return
+	 */
+	public String getScope() 
+	{
+		return this.scope;
+	}
+	public void setScopeId(String scopeId) 
+	{
+		this.scopeId = scopeId;
+	}
+	/**
+	 * 返回 范围ID
+	 * @return
+	 */
+	public String getScopeId() 
+	{
+		return this.scopeId;
+	}
+	public void setCycle(String cycle) 
+	{
+		this.cycle = cycle;
+	}
+	/**
+	 * 返回 周期
+	 * @return
+	 */
+	public String getCycle() 
+	{
+		return this.cycle;
+	}
+	public void setStartDate(String startDate) 
+	{
+		this.startDate = startDate;
+	}
+	/**
+	 * 返回 开始日期
+	 * @return
+	 */
+	public String getStartDate() 
+	{
+		return this.startDate;
+	}
+	public void setEndDate(String endDate) 
+	{
+		this.endDate = endDate;
+	}
+	/**
+	 * 返回 结束日期
+	 * @return
+	 */
+	public String getEndDate() 
+	{
+		return this.endDate;
+	}
+	public void setUserType(String userType) 
+	{
+		this.userType = userType;
+	}
+	/**
+	 * 返回 人员类型
+	 * @return
+	 */
+	public String getUserType() 
+	{
+		return this.userType;
+	}
+	public void setStatus(String status) 
+	{
+		this.status = status;
+	}
+	/**
+	 * 返回 状态
+	 * @return
+	 */
+	public String getStatus() 
+	{
+		return this.status;
+	}
+	public void setOverview(String overview) 
+	{
+		this.overview = overview;
+	}
+	/**
+	 * 返回 总览
+	 * @return
+	 */
+	public String getOverview() 
+	{
+		return this.overview;
+	}
+	
+}

+ 123 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/provider/StaffScheduleDetailProvider.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.IStaffScheduleDetailService;
+import com.lc.ibps.components.employee.domain.StaffScheduleDetail;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+import com.lc.ibps.components.employee.repository.StaffScheduleDetailRepository;
+
+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-staffScheduleDetail
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:04
+ *</pre>
+ */
+@Api(tags = "排班详情表管理", value = "排班详情表数据")
+@Service
+public class StaffScheduleDetailProvider extends GenericProvider implements IStaffScheduleDetailService{
+
+	@Resource
+	private StaffScheduleDetailRepository staffScheduleDetailRepository;
+
+	@ApiOperation(value = "排班详情表列表(分页条件查询)数据", notes = "排班详情表列表(分页条件查询)数据")
+	@Override
+	public APIResult<APIPageList<StaffScheduleDetailPo>> query(
+			@ApiParam(name = "request", value = "传入查询请求json字符串", required = true) 
+			@RequestBody(required = true) APIRequest request) {
+		APIResult<APIPageList<StaffScheduleDetailPo>> result = new APIResult<>();
+		try {
+			QueryFilter queryFilter = getQueryFilter(request);
+			List<StaffScheduleDetailPo> data = staffScheduleDetailRepository.query(queryFilter);
+			APIPageList<StaffScheduleDetailPo> 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<StaffScheduleDetailPo> get(
+			@ApiParam(name = "id", value = "查询id", required = true) 
+			@RequestParam(name = "id", required = true) String id) {
+		APIResult<StaffScheduleDetailPo> result = new APIResult<>();
+		try {
+			StaffScheduleDetailPo staffScheduleDetailPo = staffScheduleDetailRepository.get(id);
+			result.setData(staffScheduleDetailPo);
+		} 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 = "staffScheduleDetailPo", value = "排班详情表对象", required = true)  
+			@RequestBody(required = true) StaffScheduleDetailPo staffScheduleDetailPo) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			logger.info(" com.lc.ibps.components.provider.StaffScheduleDetailProvider.save()--->staffScheduleDetailPo: {}", staffScheduleDetailPo.toString());
+			StaffScheduleDetail domain = staffScheduleDetailRepository.newInstance(staffScheduleDetailPo);
+			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 {
+			StaffScheduleDetail domain = staffScheduleDetailRepository.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/StaffScheduleProvider.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.IStaffScheduleService;
+import com.lc.ibps.components.employee.domain.StaffSchedule;
+import com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo;
+import com.lc.ibps.components.employee.repository.StaffScheduleRepository;
+
+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-staffSchedule
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:58
+ *</pre>
+ */
+@Api(tags = "排班记录表管理", value = "排班记录表数据")
+@Service
+public class StaffScheduleProvider extends GenericProvider implements IStaffScheduleService{
+
+	@Resource
+	private StaffScheduleRepository staffScheduleRepository;
+
+	@ApiOperation(value = "排班记录表列表(分页条件查询)数据", notes = "排班记录表列表(分页条件查询)数据")
+	@Override
+	public APIResult<APIPageList<StaffSchedulePo>> query(
+			@ApiParam(name = "request", value = "传入查询请求json字符串", required = true) 
+			@RequestBody(required = true) APIRequest request) {
+		APIResult<APIPageList<StaffSchedulePo>> result = new APIResult<>();
+		try {
+			QueryFilter queryFilter = getQueryFilter(request);
+			List<StaffSchedulePo> data = staffScheduleRepository.query(queryFilter);
+			APIPageList<StaffSchedulePo> 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<StaffSchedulePo> get(
+			@ApiParam(name = "id", value = "查询id", required = true) 
+			@RequestParam(name = "id", required = true) String id) {
+		APIResult<StaffSchedulePo> result = new APIResult<>();
+		try {
+			StaffSchedulePo staffSchedulePo = staffScheduleRepository.loadCascade(id);
+			result.setData(staffSchedulePo);
+		} 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 = "staffSchedulePo", value = "排班记录表对象", required = true)  
+			@RequestBody(required = true) StaffSchedulePo staffSchedulePo) {
+		APIResult<Void> result = new APIResult<Void>();
+		try {
+			logger.info(" com.lc.ibps.components.provider.StaffScheduleProvider.save()--->staffSchedulePo: {}", staffSchedulePo.toString());
+			StaffSchedule domain = staffScheduleRepository.newInstance(staffSchedulePo);
+			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 {
+			StaffSchedule domain = staffScheduleRepository.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/StaffScheduleDetailRepository.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.StaffScheduleDetail;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+
+/**
+ * 排班详情表 仓库接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:02
+ *</pre>
+ */
+public interface StaffScheduleDetailRepository extends IRepository<String, StaffScheduleDetailPo,StaffScheduleDetail>{
+	 /**
+	 * 根据主表ID查询 排班详情表 列表
+	 * @param mainId
+	 * @return 
+	 * List<StaffScheduleDetailPo>
+	 */
+	public List<StaffScheduleDetailPo> findByMainId(String mainId);
+
+}

+ 23 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/StaffScheduleRepository.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.StaffSchedule;
+import com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo;
+
+/**
+ * 排班记录表 仓库接口
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:57
+ *</pre>
+ */
+public interface StaffScheduleRepository extends IRepository<String, StaffSchedulePo,StaffSchedule>{
+
+	/**
+	 * 查询全部子表的数据,并设置到主表Po中 
+	 * void
+	 */
+	public StaffSchedulePo loadCascade(String id);
+}

+ 63 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/employee/repository/impl/StaffScheduleDetailRepositoryImpl.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.StaffScheduleDetail;
+import com.lc.ibps.components.employee.repository.StaffScheduleDetailRepository;
+import com.lc.ibps.components.employee.persistence.dao.StaffScheduleDetailQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+
+/**
+ * 排班详情表 仓库的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:02
+ *</pre>
+ */
+@Repository
+public class StaffScheduleDetailRepositoryImpl extends AbstractRepository<String, StaffScheduleDetailPo,StaffScheduleDetail> implements StaffScheduleDetailRepository{
+	  
+	@Resource
+	private  StaffScheduleDetailQueryDao staffScheduleDetailQueryDao;
+
+	public StaffScheduleDetail newInstance() {
+		StaffScheduleDetailPo po = new StaffScheduleDetailPo();
+		StaffScheduleDetail staffScheduleDetail = AppUtil.getBean(StaffScheduleDetail.class);
+		staffScheduleDetail.setData(po);
+		return staffScheduleDetail;
+	}
+
+	public StaffScheduleDetail newInstance(StaffScheduleDetailPo po) {
+		StaffScheduleDetail staffScheduleDetail = AppUtil.getBean(StaffScheduleDetail.class);
+		staffScheduleDetail.setData(po);
+		return staffScheduleDetail;
+	} 
+	
+	@Override
+	protected IQueryDao<String, StaffScheduleDetailPo> getQueryDao() {
+		return staffScheduleDetailQueryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "staffScheduleDetail";
+	}
+	
+	@Override
+	public List<StaffScheduleDetailPo> findByMainId(String mainId) {
+		List<StaffScheduleDetailPo> 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/StaffScheduleRepositoryImpl.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.StaffSchedule;
+import com.lc.ibps.components.employee.repository.StaffScheduleRepository;
+import com.lc.ibps.components.employee.persistence.dao.StaffScheduleQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo;
+import com.lc.ibps.components.employee.repository.StaffScheduleDetailRepository;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+
+/**
+ * 排班记录表 仓库的实现类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:56
+ *</pre>
+ */
+@Repository
+public class StaffScheduleRepositoryImpl extends AbstractRepository<String, StaffSchedulePo,StaffSchedule> implements StaffScheduleRepository{
+	  
+	@Resource
+	private  StaffScheduleQueryDao staffScheduleQueryDao;
+	@Resource
+	private  StaffScheduleDetailRepository staffScheduleDetailRepository;
+
+	public StaffSchedule newInstance() {
+		StaffSchedulePo po = new StaffSchedulePo();
+		StaffSchedule staffSchedule = AppUtil.getBean(StaffSchedule.class);
+		staffSchedule.setData(po);
+		return staffSchedule;
+	}
+
+	public StaffSchedule newInstance(StaffSchedulePo po) {
+		StaffSchedule staffSchedule = AppUtil.getBean(StaffSchedule.class);
+		staffSchedule.setData(po);
+		return staffSchedule;
+	} 
+	
+	@Override
+	protected IQueryDao<String, StaffSchedulePo> getQueryDao() {
+		return staffScheduleQueryDao;
+	}
+	
+	@Override
+	public String getInternalCacheName() {
+		return "staffSchedule";
+	}
+	
+
+	/**
+	 * 查询全部子表的数据,并设置到主表Po中 
+	 * void
+	 */
+	@Override
+	public StaffSchedulePo loadCascade(String id){
+		StaffSchedulePo staffSchedulePo = null;
+		if(StringUtil.isNotEmpty(id)){
+			staffSchedulePo = get(id);
+			if(BeanUtils.isNotEmpty(staffSchedulePo) && BeanUtils.isNotEmpty(staffSchedulePo.getId())){
+				List<StaffScheduleDetailPo> staffScheduleDetailPoList = staffScheduleDetailRepository.findByMainId(staffSchedulePo.getId());
+				staffSchedulePo.setStaffScheduleDetailPoList(staffScheduleDetailPoList);
+			}
+		}
+		return staffSchedulePo;
+	}
+	
+}

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

@@ -0,0 +1,102 @@
+<?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.StaffSchedulePo">
+	<!--<cache type="net.oschina.j2cache.mybatis.J2CacheAdapter"/>-->
+	<resultMap id="StaffSchedulePo" type="com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo">
+		<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="title" column="TITLE_" jdbcType="VARCHAR"/>
+		<result property="scope" column="SCOPE_" jdbcType="VARCHAR"/>
+		<result property="scopeId" column="SCOPE_ID_" jdbcType="VARCHAR"/>
+		<result property="cycle" column="CYCLE_" jdbcType="VARCHAR"/>
+		<result property="startDate" column="START_DATE_" jdbcType="VARCHAR"/>
+		<result property="endDate" column="END_DATE_" jdbcType="VARCHAR"/>
+		<result property="userType" column="USER_TYPE_" jdbcType="VARCHAR"/>
+		<result property="status" column="STATUS_" jdbcType="VARCHAR"/>
+		<result property="overview" column="OVERVIEW_" jdbcType="BLOB"/>
+	</resultMap>
+	
+	<sql id="columns">
+		ID_,TENANT_ID_,IP_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_,DI_DIAN_,TITLE_,SCOPE_,SCOPE_ID_,CYCLE_,START_DATE_,END_DATE_,USER_TYPE_,STATUS_,OVERVIEW_
+	</sql>
+	
+	<insert id="create" parameterType="com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo">
+		INSERT INTO T_SCHEDULE
+		(<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}, #{title,jdbcType=VARCHAR}, #{scope,jdbcType=VARCHAR}, #{scopeId,jdbcType=VARCHAR}, #{cycle,jdbcType=VARCHAR}, #{startDate,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{userType,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{overview,jdbcType=BLOB})
+	</insert>
+	
+	<select id="get" parameterType="java.lang.String" resultMap="StaffSchedulePo">
+		SELECT <include refid="columns"/> FROM T_SCHEDULE 
+		WHERE 
+		ID_=#{id}
+	</select>
+	
+	
+	<sql id="querySql" >
+		SELECT <include refid="columns"/> FROM T_SCHEDULE
+		<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="StaffSchedulePo">
+		<include refid="querySql"/>
+	</select>
+	
+	<select id="queryIds" parameterType="java.util.Map" resultMap="StaffSchedulePo">
+		SELECT ID_ FROM (<include refid="querySql"/>) T
+	</select>
+	
+	<select id="findByIds" resultMap="StaffSchedulePo">
+		SELECT <include refid="columns"/> FROM T_SCHEDULE
+			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.StaffSchedulePo">
+		UPDATE T_SCHEDULE 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},
+		TITLE_=#{title,jdbcType=VARCHAR},
+		SCOPE_=#{scope,jdbcType=VARCHAR},
+		SCOPE_ID_=#{scopeId,jdbcType=VARCHAR},
+		CYCLE_=#{cycle,jdbcType=VARCHAR},
+		START_DATE_=#{startDate,jdbcType=VARCHAR},
+		END_DATE_=#{endDate,jdbcType=VARCHAR},
+		USER_TYPE_=#{userType,jdbcType=VARCHAR},
+		STATUS_=#{status,jdbcType=VARCHAR},
+		OVERVIEW_=#{overview,jdbcType=BLOB}
+		WHERE
+		ID_=#{id}
+	</update>
+	
+	<delete id="remove" parameterType="java.lang.String">
+		DELETE FROM T_SCHEDULE 
+		WHERE
+		ID_=#{id}
+	</delete>
+	
+	
+</mapper>

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

@@ -0,0 +1,195 @@
+<?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.StaffScheduleDetailPo">
+	<!--<cache type="net.oschina.j2cache.mybatis.J2CacheAdapter"/>-->
+	<resultMap id="StaffScheduleDetailPo" type="com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo">
+		<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="userId" column="USER_ID_" jdbcType="VARCHAR"/>
+		<result property="statistics" column="STATISTICS_" jdbcType="BLOB"/>
+		<result property="d1" column="D1_" jdbcType="VARCHAR"/>
+		<result property="d2" column="D2_" jdbcType="VARCHAR"/>
+		<result property="d3" column="D3_" jdbcType="VARCHAR"/>
+		<result property="d4" column="D4_" jdbcType="VARCHAR"/>
+		<result property="d5" column="D5_" jdbcType="VARCHAR"/>
+		<result property="d6" column="D6_" jdbcType="VARCHAR"/>
+		<result property="d7" column="D7_" jdbcType="VARCHAR"/>
+		<result property="d8" column="D8_" jdbcType="VARCHAR"/>
+		<result property="d9" column="D9_" jdbcType="VARCHAR"/>
+		<result property="d10" column="D10_" jdbcType="VARCHAR"/>
+		<result property="d11" column="D11_" jdbcType="VARCHAR"/>
+		<result property="d12" column="D12_" jdbcType="VARCHAR"/>
+		<result property="d13" column="D13_" jdbcType="VARCHAR"/>
+		<result property="d14" column="D14_" jdbcType="VARCHAR"/>
+		<result property="d15" column="D15_" jdbcType="VARCHAR"/>
+		<result property="d16" column="D16_" jdbcType="VARCHAR"/>
+		<result property="d17" column="D17_" jdbcType="VARCHAR"/>
+		<result property="d18" column="D18_" jdbcType="VARCHAR"/>
+		<result property="d19" column="D19_" jdbcType="VARCHAR"/>
+		<result property="d20" column="D20_" jdbcType="VARCHAR"/>
+		<result property="d21" column="D21_" jdbcType="VARCHAR"/>
+		<result property="d22" column="D22_" jdbcType="VARCHAR"/>
+		<result property="d23" column="D23_" jdbcType="VARCHAR"/>
+		<result property="d24" column="D24_" jdbcType="VARCHAR"/>
+		<result property="d25" column="D25_" jdbcType="VARCHAR"/>
+		<result property="d26" column="D26_" jdbcType="VARCHAR"/>
+		<result property="d27" column="D27_" jdbcType="VARCHAR"/>
+		<result property="d28" column="D28_" jdbcType="VARCHAR"/>
+		<result property="d29" column="D29_" jdbcType="VARCHAR"/>
+		<result property="d30" column="D30_" jdbcType="VARCHAR"/>
+		<result property="d31" column="D31_" jdbcType="VARCHAR"/>
+		<result property="d32" column="D32_" jdbcType="VARCHAR"/>
+		<result property="d33" column="D33_" jdbcType="VARCHAR"/>
+		<result property="d34" column="D34_" jdbcType="VARCHAR"/>
+		<result property="d35" column="D35_" jdbcType="VARCHAR"/>
+		<result property="d36" column="D36_" jdbcType="VARCHAR"/>
+		<result property="d37" column="D37_" jdbcType="VARCHAR"/>
+		<result property="d38" column="D38_" jdbcType="VARCHAR"/>
+		<result property="d39" column="D39_" jdbcType="VARCHAR"/>
+		<result property="d40" column="D40_" jdbcType="VARCHAR"/>
+		<result property="d41" column="D41_" jdbcType="VARCHAR"/>
+		<result property="d42" column="D42_" jdbcType="VARCHAR"/>
+		<result property="d43" column="D43_" jdbcType="VARCHAR"/>
+		<result property="d44" column="D44_" jdbcType="VARCHAR"/>
+		<result property="d45" column="D45_" jdbcType="VARCHAR"/>
+	</resultMap>
+	
+	<sql id="columns">
+		ID_,PARENT_ID_,TENANT_ID_,IP_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_,USER_ID_,STATISTICS_,D1_,D2_,D3_,D4_,D5_,D6_,D7_,D8_,D9_,D10_,D11_,D12_,D13_,D14_,D15_,D16_,D17_,D18_,D19_,D20_,D21_,D22_,D23_,D24_,D25_,D26_,D27_,D28_,D29_,D30_,D31_,D32_,D33_,D34_,D35_,D36_,D37_,D38_,D39_,D40_,D41_,D42_,D43_,D44_,D45_
+	</sql>
+	
+	<insert id="create" parameterType="com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo">
+		INSERT INTO T_SCHEDULE_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}, #{userId,jdbcType=VARCHAR}, #{statistics,jdbcType=BLOB}, #{d1,jdbcType=VARCHAR}, #{d2,jdbcType=VARCHAR}, #{d3,jdbcType=VARCHAR}, #{d4,jdbcType=VARCHAR}, #{d5,jdbcType=VARCHAR}, #{d6,jdbcType=VARCHAR}, #{d7,jdbcType=VARCHAR}, #{d8,jdbcType=VARCHAR}, #{d9,jdbcType=VARCHAR}, #{d10,jdbcType=VARCHAR}, #{d11,jdbcType=VARCHAR}, #{d12,jdbcType=VARCHAR}, #{d13,jdbcType=VARCHAR}, #{d14,jdbcType=VARCHAR}, #{d15,jdbcType=VARCHAR}, #{d16,jdbcType=VARCHAR}, #{d17,jdbcType=VARCHAR}, #{d18,jdbcType=VARCHAR}, #{d19,jdbcType=VARCHAR}, #{d20,jdbcType=VARCHAR}, #{d21,jdbcType=VARCHAR}, #{d22,jdbcType=VARCHAR}, #{d23,jdbcType=VARCHAR}, #{d24,jdbcType=VARCHAR}, #{d25,jdbcType=VARCHAR}, #{d26,jdbcType=VARCHAR}, #{d27,jdbcType=VARCHAR}, #{d28,jdbcType=VARCHAR}, #{d29,jdbcType=VARCHAR}, #{d30,jdbcType=VARCHAR}, #{d31,jdbcType=VARCHAR}, #{d32,jdbcType=VARCHAR}, #{d33,jdbcType=VARCHAR}, #{d34,jdbcType=VARCHAR}, #{d35,jdbcType=VARCHAR}, #{d36,jdbcType=VARCHAR}, #{d37,jdbcType=VARCHAR}, #{d38,jdbcType=VARCHAR}, #{d39,jdbcType=VARCHAR}, #{d40,jdbcType=VARCHAR}, #{d41,jdbcType=VARCHAR}, #{d42,jdbcType=VARCHAR}, #{d43,jdbcType=VARCHAR}, #{d44,jdbcType=VARCHAR}, #{d45,jdbcType=VARCHAR})
+	</insert>
+	
+	<select id="get" parameterType="java.lang.String" resultMap="StaffScheduleDetailPo">
+		SELECT <include refid="columns"/> FROM T_SCHEDULE_DETAIL 
+		WHERE 
+		ID_=#{id}
+	</select>
+	
+	
+	<sql id="querySql" >
+		SELECT <include refid="columns"/> FROM T_SCHEDULE_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="StaffScheduleDetailPo">
+		<include refid="querySql"/>
+	</select>
+	
+	<select id="queryIds" parameterType="java.util.Map" resultMap="StaffScheduleDetailPo">
+		SELECT ID_ FROM (<include refid="querySql"/>) T
+	</select>
+	
+	<select id="findByIds" resultMap="StaffScheduleDetailPo">
+		SELECT <include refid="columns"/> FROM T_SCHEDULE_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.StaffScheduleDetailPo">
+		UPDATE T_SCHEDULE_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},
+		USER_ID_=#{userId,jdbcType=VARCHAR},
+		STATISTICS_=#{statistics,jdbcType=BLOB},
+		D1_=#{d1,jdbcType=VARCHAR},
+		D2_=#{d2,jdbcType=VARCHAR},
+		D3_=#{d3,jdbcType=VARCHAR},
+		D4_=#{d4,jdbcType=VARCHAR},
+		D5_=#{d5,jdbcType=VARCHAR},
+		D6_=#{d6,jdbcType=VARCHAR},
+		D7_=#{d7,jdbcType=VARCHAR},
+		D8_=#{d8,jdbcType=VARCHAR},
+		D9_=#{d9,jdbcType=VARCHAR},
+		D10_=#{d10,jdbcType=VARCHAR},
+		D11_=#{d11,jdbcType=VARCHAR},
+		D12_=#{d12,jdbcType=VARCHAR},
+		D13_=#{d13,jdbcType=VARCHAR},
+		D14_=#{d14,jdbcType=VARCHAR},
+		D15_=#{d15,jdbcType=VARCHAR},
+		D16_=#{d16,jdbcType=VARCHAR},
+		D17_=#{d17,jdbcType=VARCHAR},
+		D18_=#{d18,jdbcType=VARCHAR},
+		D19_=#{d19,jdbcType=VARCHAR},
+		D20_=#{d20,jdbcType=VARCHAR},
+		D21_=#{d21,jdbcType=VARCHAR},
+		D22_=#{d22,jdbcType=VARCHAR},
+		D23_=#{d23,jdbcType=VARCHAR},
+		D24_=#{d24,jdbcType=VARCHAR},
+		D25_=#{d25,jdbcType=VARCHAR},
+		D26_=#{d26,jdbcType=VARCHAR},
+		D27_=#{d27,jdbcType=VARCHAR},
+		D28_=#{d28,jdbcType=VARCHAR},
+		D29_=#{d29,jdbcType=VARCHAR},
+		D30_=#{d30,jdbcType=VARCHAR},
+		D31_=#{d31,jdbcType=VARCHAR},
+		D32_=#{d32,jdbcType=VARCHAR},
+		D33_=#{d33,jdbcType=VARCHAR},
+		D34_=#{d34,jdbcType=VARCHAR},
+		D35_=#{d35,jdbcType=VARCHAR},
+		D36_=#{d36,jdbcType=VARCHAR},
+		D37_=#{d37,jdbcType=VARCHAR},
+		D38_=#{d38,jdbcType=VARCHAR},
+		D39_=#{d39,jdbcType=VARCHAR},
+		D40_=#{d40,jdbcType=VARCHAR},
+		D41_=#{d41,jdbcType=VARCHAR},
+		D42_=#{d42,jdbcType=VARCHAR},
+		D43_=#{d43,jdbcType=VARCHAR},
+		D44_=#{d44,jdbcType=VARCHAR},
+		D45_=#{d45,jdbcType=VARCHAR}
+		WHERE
+		ID_=#{id}
+	</update>
+	
+	<delete id="remove" parameterType="java.lang.String">
+		DELETE FROM T_SCHEDULE_DETAIL 
+		WHERE
+		ID_=#{id}
+	</delete>
+	
+	<delete id="deleteByMainId">
+	    DELETE FROM T_SCHEDULE_DETAIL
+	    WHERE
+	    PARENT_ID_=#{mainId}
+	</delete>    
+	
+	<select id="findByMainId" resultMap="StaffScheduleDetailPo">
+	    SELECT <include refid="columns"/>
+	    FROM T_SCHEDULE_DETAIL 
+	    WHERE PARENT_ID_=#{mainId}
+	</select>
+	
+	<select id="findIdsByMainId" parameterType="java.util.Map" resultMap="StaffScheduleDetailPo">
+		SELECT ID_ FROM T_SCHEDULE_DETAIL
+	    WHERE
+	    PARENT_ID_=#{mainId}
+	</select>
+	
+</mapper>

+ 60 - 0
ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/domain/StaffScheduleDetailTest.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.StaffScheduleDetail;
+import com.lc.ibps.components.employee.repository.StaffScheduleDetailRepository;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 排班详情表 领域对象实体单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:02
+ *</pre>
+ */
+public class StaffScheduleDetailTest extends EmployeeBaseTest{
+	 
+	@Resource
+	private StaffScheduleDetailRepository staffScheduleDetailRepository;
+	
+	@Test
+	@Rollback(true)
+	public void create(){				
+		StaffScheduleDetail staffScheduleDetail = staffScheduleDetailRepository.newInstance();
+		
+		StaffScheduleDetailPo staffScheduleDetailPo=new StaffScheduleDetailPo();
+		staffScheduleDetailPo.setId(idGenerator.getId());
+		
+		staffScheduleDetail.setData(staffScheduleDetailPo);
+		
+		List<String> ids = new ArrayList<String>();
+		
+		staffScheduleDetail.create();	
+		ids.add(staffScheduleDetail.getId());
+						
+		StaffScheduleDetail staffScheduleDetail2 = staffScheduleDetailRepository.newInstance();
+		staffScheduleDetailPo.setId(idGenerator.getId());
+		staffScheduleDetail2.setData(staffScheduleDetailPo);
+		
+		staffScheduleDetail2.create();
+		ids.add(staffScheduleDetail2.getId());
+		
+		List<StaffScheduleDetailPo> staffScheduleDetailPoList = staffScheduleDetailRepository.findByIds(ids);
+		Assert.assertTrue(staffScheduleDetailPoList.size()>=2);
+		
+		List<StaffScheduleDetailPo>staffScheduleDetail1 = staffScheduleDetailRepository.findAll();
+		Assert.assertTrue(staffScheduleDetail1.size()>=2);
+
+	}
+}

+ 60 - 0
ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/domain/StaffScheduleTest.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.StaffSchedule;
+import com.lc.ibps.components.employee.repository.StaffScheduleRepository;
+import com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 排班记录表 领域对象实体单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:57
+ *</pre>
+ */
+public class StaffScheduleTest extends EmployeeBaseTest{
+	 
+	@Resource
+	private StaffScheduleRepository staffScheduleRepository;
+	
+	@Test
+	@Rollback(true)
+	public void create(){				
+		StaffSchedule staffSchedule = staffScheduleRepository.newInstance();
+		
+		StaffSchedulePo staffSchedulePo=new StaffSchedulePo();
+		staffSchedulePo.setId(idGenerator.getId());
+		
+		staffSchedule.setData(staffSchedulePo);
+		
+		List<String> ids = new ArrayList<String>();
+		
+		staffSchedule.create();	
+		ids.add(staffSchedule.getId());
+						
+		StaffSchedule staffSchedule2 = staffScheduleRepository.newInstance();
+		staffSchedulePo.setId(idGenerator.getId());
+		staffSchedule2.setData(staffSchedulePo);
+		
+		staffSchedule2.create();
+		ids.add(staffSchedule2.getId());
+		
+		List<StaffSchedulePo> staffSchedulePoList = staffScheduleRepository.findByIds(ids);
+		Assert.assertTrue(staffSchedulePoList.size()>=2);
+		
+		List<StaffSchedulePo>staffSchedule1 = staffScheduleRepository.findAll();
+		Assert.assertTrue(staffSchedule1.size()>=2);
+
+	}
+}

+ 55 - 0
ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDaoTest.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.StaffScheduleDao;
+import com.lc.ibps.components.employee.persistence.dao.StaffScheduleQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.StaffSchedulePo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 排班记录表 dao单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:46:55
+ *</pre>
+ */
+public class StaffScheduleDaoTest extends EmployeeBaseTest{
+
+	@Resource
+	private StaffScheduleDao staffScheduleDao;
+	
+	@Resource
+	private StaffScheduleQueryDao staffScheduleQueryDao;
+		
+	@Test
+	@Rollback(true)
+	public void testCrud(){
+		StaffSchedulePo staffSchedulePo=new StaffSchedulePo();
+		staffSchedulePo.setId(idGenerator.getId());
+		
+		//创建一实体
+		staffScheduleDao.create(staffSchedulePo);
+        Assert.assertNotNull(staffSchedulePo.getId());
+        logger.debug("staffSchedulePo1:"+ staffSchedulePo.getId());
+		//获取一实体
+		StaffSchedulePo staffSchedulePo2=staffScheduleQueryDao.get(staffSchedulePo.getId());
+		Assert.assertNotNull(staffSchedulePo2);
+		logger.debug("staffSchedulePo2:" + staffSchedulePo2.toString());
+		//更新一实体
+		staffScheduleDao.update(staffSchedulePo2);
+		
+		StaffSchedulePo staffSchedulePo3=staffScheduleQueryDao.get(staffSchedulePo.getId());
+		Assert.assertNotNull(staffSchedulePo3);
+		logger.debug("staffSchedulePo3:"+staffSchedulePo3.toString());
+		//删除一实体
+		//staffScheduleDao.remove(staffSchedulePo.getId());
+	}
+	
+}

+ 55 - 0
ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/employee/persistence/dao/StaffScheduleDetailDaoTest.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.StaffScheduleDetailDao;
+import com.lc.ibps.components.employee.persistence.dao.StaffScheduleDetailQueryDao;
+import com.lc.ibps.components.employee.persistence.entity.StaffScheduleDetailPo;
+import com.lc.ibps.components.EmployeeBaseTest;
+
+/**
+ * 排班详情表 dao单元测试类
+ *
+ *<pre> 
+ * 开发公司:深圳市金源信通科技有限公司
+ * 开发人员:codegen
+ * 创建时间:2024-08-19 13:47:01
+ *</pre>
+ */
+public class StaffScheduleDetailDaoTest extends EmployeeBaseTest{
+
+	@Resource
+	private StaffScheduleDetailDao staffScheduleDetailDao;
+	
+	@Resource
+	private StaffScheduleDetailQueryDao staffScheduleDetailQueryDao;
+		
+	@Test
+	@Rollback(true)
+	public void testCrud(){
+		StaffScheduleDetailPo staffScheduleDetailPo=new StaffScheduleDetailPo();
+		staffScheduleDetailPo.setId(idGenerator.getId());
+		
+		//创建一实体
+		staffScheduleDetailDao.create(staffScheduleDetailPo);
+        Assert.assertNotNull(staffScheduleDetailPo.getId());
+        logger.debug("staffScheduleDetailPo1:"+ staffScheduleDetailPo.getId());
+		//获取一实体
+		StaffScheduleDetailPo staffScheduleDetailPo2=staffScheduleDetailQueryDao.get(staffScheduleDetailPo.getId());
+		Assert.assertNotNull(staffScheduleDetailPo2);
+		logger.debug("staffScheduleDetailPo2:" + staffScheduleDetailPo2.toString());
+		//更新一实体
+		staffScheduleDetailDao.update(staffScheduleDetailPo2);
+		
+		StaffScheduleDetailPo staffScheduleDetailPo3=staffScheduleDetailQueryDao.get(staffScheduleDetailPo.getId());
+		Assert.assertNotNull(staffScheduleDetailPo3);
+		logger.debug("staffScheduleDetailPo3:"+staffScheduleDetailPo3.toString());
+		//删除一实体
+		//staffScheduleDetailDao.remove(staffScheduleDetailPo.getId());
+	}
+	
+}