添加配置文件mybatis.mapper

segment2.0
linrf 2 years ago
parent 2b3337970b
commit 2c3e9a55dd

@ -11,6 +11,7 @@ cd %curr_file%
rd/s/q %deployDir%\lib
rd/s/q %deployDir%\dataConfig
rd/s/q %deployDir%\config
rd/s/q %deployDir%\mybatis.mapper
del /s/q %deployDir%\*.jar
xcopy /Y/E/I * %deployDir%

@ -1,9 +1,12 @@
package com.docus.server.archivefile.infrastructure.dao;
import com.docus.server.entity.auth.TaskConfigTest;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchRequest;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.auth.TaskConfigTest;
import java.util.List;
/**
* <p>
* ITaskConfigTestDao 访

@ -5,13 +5,15 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchRequest;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.auth.TaskConfigTest;
import com.docus.server.archivefile.infrastructure.mapper.TaskConfigTestMapper;
import com.docus.server.archivefile.infrastructure.dao.ITaskConfigTestDao;
import com.docus.server.archivefile.infrastructure.mapper.TaskConfigTestMapper;
import com.docus.server.entity.auth.TaskConfigTest;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
* <p>
* TaskConfigTestDaoImpl 访
@ -24,7 +26,8 @@ import java.util.List;
public class TaskConfigTestDaoImpl extends BaseDaoImpl<TaskConfigTestMapper, TaskConfigTest> implements ITaskConfigTestDao {
/**
*
*
*
* @param id Id
* @return
*/
@ -35,6 +38,7 @@ public class TaskConfigTestDaoImpl extends BaseDaoImpl<TaskConfigTestMapper, Tas
/**
*
*
* @param taskConfigTest
* @return
*/
@ -45,6 +49,7 @@ public class TaskConfigTestDaoImpl extends BaseDaoImpl<TaskConfigTestMapper, Tas
/**
*
*
* @param taskConfigTest
* @return
*/
@ -55,6 +60,7 @@ public class TaskConfigTestDaoImpl extends BaseDaoImpl<TaskConfigTestMapper, Tas
/**
*
*
* @param ids ids
* @return
*/
@ -65,6 +71,7 @@ public class TaskConfigTestDaoImpl extends BaseDaoImpl<TaskConfigTestMapper, Tas
/**
*
*
* @param searchRequest
* @return
*/
@ -72,12 +79,12 @@ public class TaskConfigTestDaoImpl extends BaseDaoImpl<TaskConfigTestMapper, Tas
public PageResult<TaskConfigTest> search(SearchRequest searchRequest) {
//分页
PageHelper.startPage(searchRequest.getPageNum(), searchRequest.getPageSize());
LambdaQueryWrapper<TaskConfigTest> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<TaskConfigTest> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchRequest.getBeginTime() != null) {
query.ge(TaskConfigTest::getCreateTime, searchRequest.getBeginTime());
}
if (searchRequest. getEndTime() != null) {
if (searchRequest.getEndTime() != null) {
Date endTime = searchRequest.getEndTime();
query.le(TaskConfigTest::getCreateTime, endTime);
}

@ -1,11 +1,12 @@
package com.docus.server.archivefile.service.impl;
import com.docus.server.entity.auth.TaskConfigTest;
import com.docus.infrastructure.web.request.SearchRequest;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.archivefile.infrastructure.dao.ITaskConfigTestDao;
import com.docus.server.archivefile.service.ITaskConfigTestService;
import com.docus.server.entity.auth.TaskConfigTest;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchRequest;
import com.docus.infrastructure.web.response.PageResult;
import javax.annotation.Resource;
import java.util.List;
@ -21,8 +22,10 @@ import java.util.List;
public class TaskConfigTestServiceImpl implements ITaskConfigTestService {
@Resource
private ITaskConfigTestDao iTaskConfigTestDao;
/**
*
*
*
* @param id Id
* @return
*/
@ -33,6 +36,7 @@ public class TaskConfigTestServiceImpl implements ITaskConfigTestService {
/**
*
*
* @param searchRequest
* @return
*/
@ -43,6 +47,7 @@ public class TaskConfigTestServiceImpl implements ITaskConfigTestService {
/**
*
*
* @param taskConfigTest
* @return
*/
@ -53,6 +58,7 @@ public class TaskConfigTestServiceImpl implements ITaskConfigTestService {
/**
*
*
* @param taskConfigTest
* @return
*/
@ -63,6 +69,7 @@ public class TaskConfigTestServiceImpl implements ITaskConfigTestService {
/**
*
*
* @param ids ids
* @return
*/

@ -14,17 +14,17 @@ import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* <p>
*
* </p>
*
* @author AutoGenerator
* @since 2023-07-05
*/
*
* @author AutoGenerator
* @since 2023-07-05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("task_config_test")
@ApiModel(value="TaskConfigTest对象", description="主动任务测试对象")
@ApiModel(value = "TaskConfigTest对象", description = "主动任务测试对象")
public class TaskConfigTest implements Serializable {
@ApiModelProperty(value = "")

Loading…
Cancel
Save