30 changed files with 5590 additions and 3 deletions
@ -0,0 +1,183 @@ |
|||||
|
package com.ccsens.ptccsens.api; |
||||
|
|
||||
|
import cn.hutool.core.date.DateUnit; |
||||
|
import com.ccsens.ptccsens.annotation.MustLogin; |
||||
|
import com.ccsens.ptccsens.bean.dto.CommonQueryDto; |
||||
|
import com.ccsens.ptccsens.bean.dto.DailyAccountDto; |
||||
|
import com.ccsens.ptccsens.bean.dto.DeliverDto; |
||||
|
import com.ccsens.ptccsens.bean.vo.DailyAccountVo; |
||||
|
import com.ccsens.ptccsens.bean.vo.DeliverVo; |
||||
|
import com.ccsens.ptccsens.service.IDailyAccountService; |
||||
|
import com.ccsens.ptccsens.service.IDeliverService; |
||||
|
import com.ccsens.util.JsonResponse; |
||||
|
import com.ccsens.util.bean.dto.QueryDto; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import io.swagger.annotations.ApiParam; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
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.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.Calendar; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author AUSU |
||||
|
*/ |
||||
|
@Api(tags = "交付物相关" ) |
||||
|
@RestController |
||||
|
@RequestMapping("/dailyAccount") |
||||
|
@Slf4j |
||||
|
public class DailyAccountController { |
||||
|
|
||||
|
@Resource |
||||
|
private IDailyAccountService dailyAccountService; |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "查询基础信息(项目列表、员工列表)", notes = "") |
||||
|
@RequestMapping(value = "/info", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<DailyAccountVo.DailyAccountInfo> queryInfo() throws Exception{ |
||||
|
log.info("查询项目基础西悉尼--{}",""); |
||||
|
DailyAccountVo.DailyAccountInfo info = dailyAccountService.queryDailyAccountInfo(); |
||||
|
log.info("返回所有成员--{}",info); |
||||
|
return JsonResponse.newInstance().ok(info); |
||||
|
} |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "查询任务列表", notes = "") |
||||
|
@RequestMapping(value = "/queryTasks", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<DailyAccountVo.QueryTasks> queryTasks(@ApiParam @Validated @RequestBody CommonQueryDto<DailyAccountDto.QueryTasksDto> params) throws Exception{ |
||||
|
log.info("查询任务列表--{}",params); |
||||
|
//设定开始和结束时间默认值
|
||||
|
if(params.getParam().getStartTime() == null){ |
||||
|
//今天0点
|
||||
|
Calendar cal = Calendar.getInstance(); |
||||
|
cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONTH),cal.get(Calendar.DAY_OF_MONTH),0,0,0); |
||||
|
params.getParam().setStartTime(cal.getTimeInMillis()/1000*1000); |
||||
|
//明天0点
|
||||
|
cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONTH),cal.get(Calendar.DAY_OF_MONTH) + 1,0,0,0); |
||||
|
params.getParam().setEndTime(cal.getTimeInMillis()/1000*1000); |
||||
|
} |
||||
|
//查询任务
|
||||
|
DailyAccountVo.QueryTasks tasks = dailyAccountService.queryTasks(params.getParam(),params.getPageInfo()); |
||||
|
log.info("返回任务列表--{}",tasks); |
||||
|
return JsonResponse.newInstance().ok(tasks); |
||||
|
} |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "提交任务", notes = "") |
||||
|
@RequestMapping(value = "/submitTask", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse submitTask(@ApiParam @Validated @RequestBody CommonQueryDto<DailyAccountDto.SubmitTask> params) throws Exception{ |
||||
|
log.info("提交任务--{}",params); |
||||
|
dailyAccountService.saveTask(params.getParam()); |
||||
|
log.info("提交任务返回--{}",""); |
||||
|
return JsonResponse.newInstance().ok(); |
||||
|
} |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "导出报表", notes = "") |
||||
|
@RequestMapping(value = "/export", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<String> export(@ApiParam @Validated @RequestBody CommonQueryDto<DailyAccountDto.QueryTasksDto> params) throws Exception{ |
||||
|
log.info("提交任务--{}",params); |
||||
|
// //设定开始和结束时间默认值
|
||||
|
// if(params.getParam().getStartTime() == null){
|
||||
|
// //今天0点
|
||||
|
// Calendar cal = Calendar.getInstance();
|
||||
|
// cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONTH),cal.get(Calendar.DAY_OF_MONTH),0,0,0);
|
||||
|
// params.getParam().setStartTime(cal.getTimeInMillis()/1000*1000);
|
||||
|
// //明天0点
|
||||
|
// cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONTH),cal.get(Calendar.DAY_OF_MONTH) + 1,0,0,0);
|
||||
|
// params.getParam().setEndTime(cal.getTimeInMillis()/1000*1000);
|
||||
|
// }
|
||||
|
// //查询任务
|
||||
|
// DailyAccountVo.QueryTasks tasks = dailyAccountService.queryTasks(params.getParam(),params.getPageInfo());
|
||||
|
log.info("提交任务返回--{}",""); |
||||
|
return JsonResponse.newInstance().ok("http://101.201.226.163/uploads/20220429-01.xlsx"); |
||||
|
} |
||||
|
|
||||
|
//
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "查看任务下的交付物", notes = "")
|
||||
|
// @RequestMapping(value = "/getDeliver", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse<DeliverVo.DeliverOfTask> getDeliver(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.GetTaskDeliver> params) throws Exception{
|
||||
|
// log.info("查看任务下的交付物--{}",params);
|
||||
|
// DeliverVo.DeliverOfTask deliverOfTask = deliverService.getDeliver(params.getParam(), params.getUserId());
|
||||
|
// log.info("任务下的交付物信息--{}",deliverOfTask);
|
||||
|
// return JsonResponse.newInstance().ok(deliverOfTask);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "提交交付物信息", notes = "")
|
||||
|
// @RequestMapping(value = "/submitDeliver", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse submitDeliver(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.SubmitDeliver> params) throws Exception{
|
||||
|
// log.info("提交交付物信息--{}",params);
|
||||
|
// deliverService.submitDeliver(params.getParam(), params.getUserId());
|
||||
|
// return JsonResponse.newInstance().ok();
|
||||
|
// }
|
||||
|
//
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "检查交付物", notes = "")
|
||||
|
// @RequestMapping(value = "/checkDeliver", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse checkDeliver(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.CheckDeliver> params) throws Exception{
|
||||
|
// log.info("查看任务下的交付物--{}",params);
|
||||
|
// deliverService.checkDeliver(params.getParam(), params.getUserId(),params.getPhone());
|
||||
|
// return JsonResponse.newInstance().ok();
|
||||
|
// }
|
||||
|
//
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "查看交付物上传记录", notes = "查看所有记录倒叙查看")
|
||||
|
// @RequestMapping(value = "/queryRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse<DeliverVo.QueryDeliverRecord> queryRecord(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.QueryRecord> params) throws Exception{
|
||||
|
// log.info("查看交付物上传记录--{}",params);
|
||||
|
// DeliverVo.QueryDeliverRecord queryDeliverRecord = deliverService.queryRecord(params.getParam(), params.getUserId());
|
||||
|
// log.info("返回交付物上传记录");
|
||||
|
// return JsonResponse.newInstance().ok(queryDeliverRecord);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "查看本次提交的交付物的所有审核记录", notes = "查看所有记录倒叙查看")
|
||||
|
// @RequestMapping(value = "/queryCheckLog", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse<List<DeliverVo.CheckerInfo>> queryCheckLog(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.QueryCheckLog> params) throws Exception{
|
||||
|
// log.info("查看交付物上传记录--{}",params);
|
||||
|
// List<DeliverVo.CheckerInfo> checkerInfos = deliverService.queryCheckLog(params.getParam(), params.getUserId());
|
||||
|
// log.info("交付物上传记录--{}",checkerInfos);
|
||||
|
// return JsonResponse.newInstance().ok(checkerInfos);
|
||||
|
// }
|
||||
|
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "提交交付物", notes = "")
|
||||
|
// @RequestMapping(value = "/save", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse saveDeliver(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.SaveDeliver> params) throws Exception{
|
||||
|
// deliverService.saveDeliver(params.getParam(),params.getUserId());
|
||||
|
// return JsonResponse.newInstance().ok();
|
||||
|
// }
|
||||
|
//
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "查询任务的交付物历史记录", notes = "")
|
||||
|
// @RequestMapping(value = "/queryDeliverOfTask", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse<List<DeliverVo.DeliverOfTask>> queryDeliverOfTask(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.QueryDeliverOfTask> params) throws Exception{
|
||||
|
// List<DeliverVo.DeliverOfTask> deliverOfTask = deliverService.queryDeliverOfTask(params.getParam(), params.getUserId());
|
||||
|
// return JsonResponse.newInstance().ok(deliverOfTask);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "检查交付物", notes = "")
|
||||
|
// @RequestMapping(value = "/checkDeliver", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse checkDeliver(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.CheckDeliver> params) throws Exception{
|
||||
|
// deliverService.checkDeliver(params.getParam(),params.getUserId());
|
||||
|
// return JsonResponse.newInstance().ok();
|
||||
|
// }
|
||||
|
//
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "查询项目的交付物历史记录", notes = "")
|
||||
|
// @RequestMapping(value = "/queryDeliverOfProject", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse<PageInfo<DeliverVo.DeliverOfProject>> queryDeliverOfProject(@ApiParam @Validated @RequestBody QueryDto<DeliverDto.QueryDeliverOfProject> params) throws Exception{
|
||||
|
// PageInfo<DeliverVo.DeliverOfTask> deliverOfProject = deliverService.queryDeliverOfProject(params.getParam(), params.getUserId());
|
||||
|
// return JsonResponse.newInstance().ok(deliverOfProject);
|
||||
|
// }
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.ccsens.ptccsens.bean.dto; |
||||
|
|
||||
|
import com.ccsens.util.bean.dto.QueryDto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
import org.springframework.validation.annotation.Validated; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import javax.validation.constraints.Min; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 16:17 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CommonQueryDto<T> extends QueryDto<T> { |
||||
|
@Data |
||||
|
public static class PageInfo{ |
||||
|
@ApiModelProperty("第几页") |
||||
|
@Min(1) |
||||
|
private Long pageNum = 1L; |
||||
|
@ApiModelProperty("每页多少条记录") |
||||
|
@Min(1) |
||||
|
private Integer pageSize = 100; |
||||
|
|
||||
|
public Long getOffset(){ |
||||
|
return (pageNum - 1) * pageSize; |
||||
|
} |
||||
|
} |
||||
|
@ApiModelProperty("分页信息") |
||||
|
@Valid |
||||
|
private PageInfo pageInfo = new PageInfo(); |
||||
|
} |
@ -0,0 +1,93 @@ |
|||||
|
package com.ccsens.ptccsens.bean.dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 15:18 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
public class DailyAccountDto { |
||||
|
@Data |
||||
|
@ApiModel("项目信息") |
||||
|
public static class DailyAccountPro{ |
||||
|
@ApiModelProperty("项目名称") |
||||
|
private String projectName; |
||||
|
@ApiModelProperty("项目简称") |
||||
|
private String projectShortName; |
||||
|
@ApiModelProperty("项目编号") |
||||
|
private String projectNo; |
||||
|
@ApiModelProperty("项目经理名称") |
||||
|
private String projectManagerName; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("员工信息") |
||||
|
public static class DailyAccountEmp{ |
||||
|
@ApiModelProperty("员工名称") |
||||
|
private String empName;; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("任务信息") |
||||
|
public static class DailyAccountTask{ |
||||
|
@ApiModelProperty("是否协作任务") |
||||
|
@NotNull |
||||
|
private Byte cooperation; |
||||
|
@ApiModelProperty("任务名称") |
||||
|
@NotNull |
||||
|
private String taskName; |
||||
|
@ApiModelProperty("交付物名称") |
||||
|
@NotNull |
||||
|
private String deliverName; |
||||
|
@ApiModelProperty("截至时间(ms)") |
||||
|
@NotNull |
||||
|
private Long deadline; |
||||
|
@ApiModelProperty("任务时长") |
||||
|
@NotNull |
||||
|
private Long duration; |
||||
|
@ApiModelProperty("交付物链接") |
||||
|
@NotNull |
||||
|
private String deliverLink; |
||||
|
@ApiModelProperty("备注") |
||||
|
@NotNull |
||||
|
private String remark; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("查询任务列表DTO") |
||||
|
public static class QueryTasksDto{ |
||||
|
@ApiModelProperty("开始时间") |
||||
|
private Long startTime; |
||||
|
@ApiModelProperty("结束时间") |
||||
|
private Long endTime; |
||||
|
@ApiModelProperty("员工ID列表") |
||||
|
private List<Long> emps; |
||||
|
@ApiModelProperty("项目列表") |
||||
|
private List<Long> pros; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("提交任务DTO") |
||||
|
public static class SubmitTask{ |
||||
|
@ApiModelProperty("提交时间") |
||||
|
@NotNull |
||||
|
private Long time; |
||||
|
@ApiModelProperty("员工ID") |
||||
|
@NotNull |
||||
|
private Long empId; |
||||
|
@ApiModelProperty("项目ID") |
||||
|
@NotNull |
||||
|
private Long proId; |
||||
|
@ApiModelProperty("任务列表") |
||||
|
@NotNull |
||||
|
@Valid |
||||
|
private List<DailyAccountTask> tasks; |
||||
|
} |
||||
|
} |
@ -0,0 +1,84 @@ |
|||||
|
package com.ccsens.ptccsens.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class PluDailyAccountEmp implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private String empName; |
||||
|
|
||||
|
private Long operator; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getEmpName() { |
||||
|
return empName; |
||||
|
} |
||||
|
|
||||
|
public void setEmpName(String empName) { |
||||
|
this.empName = empName == null ? null : empName.trim(); |
||||
|
} |
||||
|
|
||||
|
public Long getOperator() { |
||||
|
return operator; |
||||
|
} |
||||
|
|
||||
|
public void setOperator(Long operator) { |
||||
|
this.operator = operator; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", empName=").append(empName); |
||||
|
sb.append(", operator=").append(operator); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,571 @@ |
|||||
|
package com.ccsens.ptccsens.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class PluDailyAccountEmpExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public PluDailyAccountEmpExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameIsNull() { |
||||
|
addCriterion("emp_name is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameIsNotNull() { |
||||
|
addCriterion("emp_name is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameEqualTo(String value) { |
||||
|
addCriterion("emp_name =", value, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameNotEqualTo(String value) { |
||||
|
addCriterion("emp_name <>", value, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameGreaterThan(String value) { |
||||
|
addCriterion("emp_name >", value, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("emp_name >=", value, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameLessThan(String value) { |
||||
|
addCriterion("emp_name <", value, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameLessThanOrEqualTo(String value) { |
||||
|
addCriterion("emp_name <=", value, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameLike(String value) { |
||||
|
addCriterion("emp_name like", value, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameNotLike(String value) { |
||||
|
addCriterion("emp_name not like", value, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameIn(List<String> values) { |
||||
|
addCriterion("emp_name in", values, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameNotIn(List<String> values) { |
||||
|
addCriterion("emp_name not in", values, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameBetween(String value1, String value2) { |
||||
|
addCriterion("emp_name between", value1, value2, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpNameNotBetween(String value1, String value2) { |
||||
|
addCriterion("emp_name not between", value1, value2, "empName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNull() { |
||||
|
addCriterion("operator is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNotNull() { |
||||
|
addCriterion("operator is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorEqualTo(Long value) { |
||||
|
addCriterion("operator =", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotEqualTo(Long value) { |
||||
|
addCriterion("operator <>", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThan(Long value) { |
||||
|
addCriterion("operator >", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator >=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThan(Long value) { |
||||
|
addCriterion("operator <", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator <=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIn(List<Long> values) { |
||||
|
addCriterion("operator in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotIn(List<Long> values) { |
||||
|
addCriterion("operator not in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator not between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,117 @@ |
|||||
|
package com.ccsens.ptccsens.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class PluDailyAccountEmpProTask implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long empId; |
||||
|
|
||||
|
private Long proId; |
||||
|
|
||||
|
private Long taskId; |
||||
|
|
||||
|
private Long time; |
||||
|
|
||||
|
private Long operator; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getEmpId() { |
||||
|
return empId; |
||||
|
} |
||||
|
|
||||
|
public void setEmpId(Long empId) { |
||||
|
this.empId = empId; |
||||
|
} |
||||
|
|
||||
|
public Long getProId() { |
||||
|
return proId; |
||||
|
} |
||||
|
|
||||
|
public void setProId(Long proId) { |
||||
|
this.proId = proId; |
||||
|
} |
||||
|
|
||||
|
public Long getTaskId() { |
||||
|
return taskId; |
||||
|
} |
||||
|
|
||||
|
public void setTaskId(Long taskId) { |
||||
|
this.taskId = taskId; |
||||
|
} |
||||
|
|
||||
|
public Long getTime() { |
||||
|
return time; |
||||
|
} |
||||
|
|
||||
|
public void setTime(Long time) { |
||||
|
this.time = time; |
||||
|
} |
||||
|
|
||||
|
public Long getOperator() { |
||||
|
return operator; |
||||
|
} |
||||
|
|
||||
|
public void setOperator(Long operator) { |
||||
|
this.operator = operator; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", empId=").append(empId); |
||||
|
sb.append(", proId=").append(proId); |
||||
|
sb.append(", taskId=").append(taskId); |
||||
|
sb.append(", time=").append(time); |
||||
|
sb.append(", operator=").append(operator); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,741 @@ |
|||||
|
package com.ccsens.ptccsens.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class PluDailyAccountEmpProTaskExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public PluDailyAccountEmpProTaskExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdIsNull() { |
||||
|
addCriterion("emp_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdIsNotNull() { |
||||
|
addCriterion("emp_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdEqualTo(Long value) { |
||||
|
addCriterion("emp_id =", value, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdNotEqualTo(Long value) { |
||||
|
addCriterion("emp_id <>", value, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdGreaterThan(Long value) { |
||||
|
addCriterion("emp_id >", value, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("emp_id >=", value, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdLessThan(Long value) { |
||||
|
addCriterion("emp_id <", value, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("emp_id <=", value, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdIn(List<Long> values) { |
||||
|
addCriterion("emp_id in", values, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdNotIn(List<Long> values) { |
||||
|
addCriterion("emp_id not in", values, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("emp_id between", value1, value2, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andEmpIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("emp_id not between", value1, value2, "empId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdIsNull() { |
||||
|
addCriterion("pro_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdIsNotNull() { |
||||
|
addCriterion("pro_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdEqualTo(Long value) { |
||||
|
addCriterion("pro_id =", value, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdNotEqualTo(Long value) { |
||||
|
addCriterion("pro_id <>", value, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdGreaterThan(Long value) { |
||||
|
addCriterion("pro_id >", value, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("pro_id >=", value, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdLessThan(Long value) { |
||||
|
addCriterion("pro_id <", value, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("pro_id <=", value, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdIn(List<Long> values) { |
||||
|
addCriterion("pro_id in", values, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdNotIn(List<Long> values) { |
||||
|
addCriterion("pro_id not in", values, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("pro_id between", value1, value2, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("pro_id not between", value1, value2, "proId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdIsNull() { |
||||
|
addCriterion("task_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdIsNotNull() { |
||||
|
addCriterion("task_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdEqualTo(Long value) { |
||||
|
addCriterion("task_id =", value, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdNotEqualTo(Long value) { |
||||
|
addCriterion("task_id <>", value, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdGreaterThan(Long value) { |
||||
|
addCriterion("task_id >", value, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("task_id >=", value, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdLessThan(Long value) { |
||||
|
addCriterion("task_id <", value, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("task_id <=", value, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdIn(List<Long> values) { |
||||
|
addCriterion("task_id in", values, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdNotIn(List<Long> values) { |
||||
|
addCriterion("task_id not in", values, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("task_id between", value1, value2, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("task_id not between", value1, value2, "taskId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeIsNull() { |
||||
|
addCriterion("time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeIsNotNull() { |
||||
|
addCriterion("time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeEqualTo(Long value) { |
||||
|
addCriterion("time =", value, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeNotEqualTo(Long value) { |
||||
|
addCriterion("time <>", value, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeGreaterThan(Long value) { |
||||
|
addCriterion("time >", value, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("time >=", value, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeLessThan(Long value) { |
||||
|
addCriterion("time <", value, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("time <=", value, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeIn(List<Long> values) { |
||||
|
addCriterion("time in", values, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeNotIn(List<Long> values) { |
||||
|
addCriterion("time not in", values, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeBetween(Long value1, Long value2) { |
||||
|
addCriterion("time between", value1, value2, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTimeNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("time not between", value1, value2, "time"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNull() { |
||||
|
addCriterion("operator is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNotNull() { |
||||
|
addCriterion("operator is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorEqualTo(Long value) { |
||||
|
addCriterion("operator =", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotEqualTo(Long value) { |
||||
|
addCriterion("operator <>", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThan(Long value) { |
||||
|
addCriterion("operator >", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator >=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThan(Long value) { |
||||
|
addCriterion("operator <", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator <=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIn(List<Long> values) { |
||||
|
addCriterion("operator in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotIn(List<Long> values) { |
||||
|
addCriterion("operator not in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator not between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,117 @@ |
|||||
|
package com.ccsens.ptccsens.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class PluDailyAccountPro implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private String projectName; |
||||
|
|
||||
|
private String projectShortName; |
||||
|
|
||||
|
private String projectNo; |
||||
|
|
||||
|
private String projectManagerName; |
||||
|
|
||||
|
private Long operator; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getProjectName() { |
||||
|
return projectName; |
||||
|
} |
||||
|
|
||||
|
public void setProjectName(String projectName) { |
||||
|
this.projectName = projectName == null ? null : projectName.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getProjectShortName() { |
||||
|
return projectShortName; |
||||
|
} |
||||
|
|
||||
|
public void setProjectShortName(String projectShortName) { |
||||
|
this.projectShortName = projectShortName == null ? null : projectShortName.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getProjectNo() { |
||||
|
return projectNo; |
||||
|
} |
||||
|
|
||||
|
public void setProjectNo(String projectNo) { |
||||
|
this.projectNo = projectNo == null ? null : projectNo.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getProjectManagerName() { |
||||
|
return projectManagerName; |
||||
|
} |
||||
|
|
||||
|
public void setProjectManagerName(String projectManagerName) { |
||||
|
this.projectManagerName = projectManagerName == null ? null : projectManagerName.trim(); |
||||
|
} |
||||
|
|
||||
|
public Long getOperator() { |
||||
|
return operator; |
||||
|
} |
||||
|
|
||||
|
public void setOperator(Long operator) { |
||||
|
this.operator = operator; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", projectName=").append(projectName); |
||||
|
sb.append(", projectShortName=").append(projectShortName); |
||||
|
sb.append(", projectNo=").append(projectNo); |
||||
|
sb.append(", projectManagerName=").append(projectManagerName); |
||||
|
sb.append(", operator=").append(operator); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,781 @@ |
|||||
|
package com.ccsens.ptccsens.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class PluDailyAccountProExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public PluDailyAccountProExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameIsNull() { |
||||
|
addCriterion("project_name is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameIsNotNull() { |
||||
|
addCriterion("project_name is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameEqualTo(String value) { |
||||
|
addCriterion("project_name =", value, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameNotEqualTo(String value) { |
||||
|
addCriterion("project_name <>", value, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameGreaterThan(String value) { |
||||
|
addCriterion("project_name >", value, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("project_name >=", value, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameLessThan(String value) { |
||||
|
addCriterion("project_name <", value, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameLessThanOrEqualTo(String value) { |
||||
|
addCriterion("project_name <=", value, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameLike(String value) { |
||||
|
addCriterion("project_name like", value, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameNotLike(String value) { |
||||
|
addCriterion("project_name not like", value, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameIn(List<String> values) { |
||||
|
addCriterion("project_name in", values, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameNotIn(List<String> values) { |
||||
|
addCriterion("project_name not in", values, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameBetween(String value1, String value2) { |
||||
|
addCriterion("project_name between", value1, value2, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNameNotBetween(String value1, String value2) { |
||||
|
addCriterion("project_name not between", value1, value2, "projectName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameIsNull() { |
||||
|
addCriterion("project_short_name is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameIsNotNull() { |
||||
|
addCriterion("project_short_name is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameEqualTo(String value) { |
||||
|
addCriterion("project_short_name =", value, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameNotEqualTo(String value) { |
||||
|
addCriterion("project_short_name <>", value, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameGreaterThan(String value) { |
||||
|
addCriterion("project_short_name >", value, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("project_short_name >=", value, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameLessThan(String value) { |
||||
|
addCriterion("project_short_name <", value, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameLessThanOrEqualTo(String value) { |
||||
|
addCriterion("project_short_name <=", value, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameLike(String value) { |
||||
|
addCriterion("project_short_name like", value, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameNotLike(String value) { |
||||
|
addCriterion("project_short_name not like", value, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameIn(List<String> values) { |
||||
|
addCriterion("project_short_name in", values, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameNotIn(List<String> values) { |
||||
|
addCriterion("project_short_name not in", values, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameBetween(String value1, String value2) { |
||||
|
addCriterion("project_short_name between", value1, value2, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectShortNameNotBetween(String value1, String value2) { |
||||
|
addCriterion("project_short_name not between", value1, value2, "projectShortName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoIsNull() { |
||||
|
addCriterion("project_no is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoIsNotNull() { |
||||
|
addCriterion("project_no is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoEqualTo(String value) { |
||||
|
addCriterion("project_no =", value, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoNotEqualTo(String value) { |
||||
|
addCriterion("project_no <>", value, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoGreaterThan(String value) { |
||||
|
addCriterion("project_no >", value, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("project_no >=", value, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoLessThan(String value) { |
||||
|
addCriterion("project_no <", value, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoLessThanOrEqualTo(String value) { |
||||
|
addCriterion("project_no <=", value, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoLike(String value) { |
||||
|
addCriterion("project_no like", value, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoNotLike(String value) { |
||||
|
addCriterion("project_no not like", value, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoIn(List<String> values) { |
||||
|
addCriterion("project_no in", values, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoNotIn(List<String> values) { |
||||
|
addCriterion("project_no not in", values, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoBetween(String value1, String value2) { |
||||
|
addCriterion("project_no between", value1, value2, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectNoNotBetween(String value1, String value2) { |
||||
|
addCriterion("project_no not between", value1, value2, "projectNo"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameIsNull() { |
||||
|
addCriterion("project_manager_name is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameIsNotNull() { |
||||
|
addCriterion("project_manager_name is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameEqualTo(String value) { |
||||
|
addCriterion("project_manager_name =", value, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameNotEqualTo(String value) { |
||||
|
addCriterion("project_manager_name <>", value, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameGreaterThan(String value) { |
||||
|
addCriterion("project_manager_name >", value, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("project_manager_name >=", value, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameLessThan(String value) { |
||||
|
addCriterion("project_manager_name <", value, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameLessThanOrEqualTo(String value) { |
||||
|
addCriterion("project_manager_name <=", value, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameLike(String value) { |
||||
|
addCriterion("project_manager_name like", value, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameNotLike(String value) { |
||||
|
addCriterion("project_manager_name not like", value, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameIn(List<String> values) { |
||||
|
addCriterion("project_manager_name in", values, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameNotIn(List<String> values) { |
||||
|
addCriterion("project_manager_name not in", values, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameBetween(String value1, String value2) { |
||||
|
addCriterion("project_manager_name between", value1, value2, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectManagerNameNotBetween(String value1, String value2) { |
||||
|
addCriterion("project_manager_name not between", value1, value2, "projectManagerName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNull() { |
||||
|
addCriterion("operator is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNotNull() { |
||||
|
addCriterion("operator is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorEqualTo(Long value) { |
||||
|
addCriterion("operator =", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotEqualTo(Long value) { |
||||
|
addCriterion("operator <>", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThan(Long value) { |
||||
|
addCriterion("operator >", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator >=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThan(Long value) { |
||||
|
addCriterion("operator <", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator <=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIn(List<Long> values) { |
||||
|
addCriterion("operator in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotIn(List<Long> values) { |
||||
|
addCriterion("operator not in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator not between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,150 @@ |
|||||
|
package com.ccsens.ptccsens.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class PluDailyAccountTask implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Byte cooperation; |
||||
|
|
||||
|
private String taskName; |
||||
|
|
||||
|
private String deliverName; |
||||
|
|
||||
|
private Long deadline; |
||||
|
|
||||
|
private Long duration; |
||||
|
|
||||
|
private String deliverLink; |
||||
|
|
||||
|
private String remark; |
||||
|
|
||||
|
private Long operator; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Byte getCooperation() { |
||||
|
return cooperation; |
||||
|
} |
||||
|
|
||||
|
public void setCooperation(Byte cooperation) { |
||||
|
this.cooperation = cooperation; |
||||
|
} |
||||
|
|
||||
|
public String getTaskName() { |
||||
|
return taskName; |
||||
|
} |
||||
|
|
||||
|
public void setTaskName(String taskName) { |
||||
|
this.taskName = taskName == null ? null : taskName.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getDeliverName() { |
||||
|
return deliverName; |
||||
|
} |
||||
|
|
||||
|
public void setDeliverName(String deliverName) { |
||||
|
this.deliverName = deliverName == null ? null : deliverName.trim(); |
||||
|
} |
||||
|
|
||||
|
public Long getDeadline() { |
||||
|
return deadline; |
||||
|
} |
||||
|
|
||||
|
public void setDeadline(Long deadline) { |
||||
|
this.deadline = deadline; |
||||
|
} |
||||
|
|
||||
|
public Long getDuration() { |
||||
|
return duration; |
||||
|
} |
||||
|
|
||||
|
public void setDuration(Long duration) { |
||||
|
this.duration = duration; |
||||
|
} |
||||
|
|
||||
|
public String getDeliverLink() { |
||||
|
return deliverLink; |
||||
|
} |
||||
|
|
||||
|
public void setDeliverLink(String deliverLink) { |
||||
|
this.deliverLink = deliverLink == null ? null : deliverLink.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getRemark() { |
||||
|
return remark; |
||||
|
} |
||||
|
|
||||
|
public void setRemark(String remark) { |
||||
|
this.remark = remark == null ? null : remark.trim(); |
||||
|
} |
||||
|
|
||||
|
public Long getOperator() { |
||||
|
return operator; |
||||
|
} |
||||
|
|
||||
|
public void setOperator(Long operator) { |
||||
|
this.operator = operator; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", cooperation=").append(cooperation); |
||||
|
sb.append(", taskName=").append(taskName); |
||||
|
sb.append(", deliverName=").append(deliverName); |
||||
|
sb.append(", deadline=").append(deadline); |
||||
|
sb.append(", duration=").append(duration); |
||||
|
sb.append(", deliverLink=").append(deliverLink); |
||||
|
sb.append(", remark=").append(remark); |
||||
|
sb.append(", operator=").append(operator); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,961 @@ |
|||||
|
package com.ccsens.ptccsens.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class PluDailyAccountTaskExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public PluDailyAccountTaskExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationIsNull() { |
||||
|
addCriterion("cooperation is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationIsNotNull() { |
||||
|
addCriterion("cooperation is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationEqualTo(Byte value) { |
||||
|
addCriterion("cooperation =", value, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationNotEqualTo(Byte value) { |
||||
|
addCriterion("cooperation <>", value, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationGreaterThan(Byte value) { |
||||
|
addCriterion("cooperation >", value, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("cooperation >=", value, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationLessThan(Byte value) { |
||||
|
addCriterion("cooperation <", value, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("cooperation <=", value, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationIn(List<Byte> values) { |
||||
|
addCriterion("cooperation in", values, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationNotIn(List<Byte> values) { |
||||
|
addCriterion("cooperation not in", values, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("cooperation between", value1, value2, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCooperationNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("cooperation not between", value1, value2, "cooperation"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameIsNull() { |
||||
|
addCriterion("task_name is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameIsNotNull() { |
||||
|
addCriterion("task_name is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameEqualTo(String value) { |
||||
|
addCriterion("task_name =", value, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameNotEqualTo(String value) { |
||||
|
addCriterion("task_name <>", value, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameGreaterThan(String value) { |
||||
|
addCriterion("task_name >", value, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("task_name >=", value, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameLessThan(String value) { |
||||
|
addCriterion("task_name <", value, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameLessThanOrEqualTo(String value) { |
||||
|
addCriterion("task_name <=", value, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameLike(String value) { |
||||
|
addCriterion("task_name like", value, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameNotLike(String value) { |
||||
|
addCriterion("task_name not like", value, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameIn(List<String> values) { |
||||
|
addCriterion("task_name in", values, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameNotIn(List<String> values) { |
||||
|
addCriterion("task_name not in", values, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameBetween(String value1, String value2) { |
||||
|
addCriterion("task_name between", value1, value2, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskNameNotBetween(String value1, String value2) { |
||||
|
addCriterion("task_name not between", value1, value2, "taskName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameIsNull() { |
||||
|
addCriterion("deliver_name is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameIsNotNull() { |
||||
|
addCriterion("deliver_name is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameEqualTo(String value) { |
||||
|
addCriterion("deliver_name =", value, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameNotEqualTo(String value) { |
||||
|
addCriterion("deliver_name <>", value, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameGreaterThan(String value) { |
||||
|
addCriterion("deliver_name >", value, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("deliver_name >=", value, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameLessThan(String value) { |
||||
|
addCriterion("deliver_name <", value, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameLessThanOrEqualTo(String value) { |
||||
|
addCriterion("deliver_name <=", value, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameLike(String value) { |
||||
|
addCriterion("deliver_name like", value, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameNotLike(String value) { |
||||
|
addCriterion("deliver_name not like", value, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameIn(List<String> values) { |
||||
|
addCriterion("deliver_name in", values, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameNotIn(List<String> values) { |
||||
|
addCriterion("deliver_name not in", values, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameBetween(String value1, String value2) { |
||||
|
addCriterion("deliver_name between", value1, value2, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverNameNotBetween(String value1, String value2) { |
||||
|
addCriterion("deliver_name not between", value1, value2, "deliverName"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineIsNull() { |
||||
|
addCriterion("deadline is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineIsNotNull() { |
||||
|
addCriterion("deadline is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineEqualTo(Long value) { |
||||
|
addCriterion("deadline =", value, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineNotEqualTo(Long value) { |
||||
|
addCriterion("deadline <>", value, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineGreaterThan(Long value) { |
||||
|
addCriterion("deadline >", value, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("deadline >=", value, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineLessThan(Long value) { |
||||
|
addCriterion("deadline <", value, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("deadline <=", value, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineIn(List<Long> values) { |
||||
|
addCriterion("deadline in", values, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineNotIn(List<Long> values) { |
||||
|
addCriterion("deadline not in", values, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineBetween(Long value1, Long value2) { |
||||
|
addCriterion("deadline between", value1, value2, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeadlineNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("deadline not between", value1, value2, "deadline"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationIsNull() { |
||||
|
addCriterion("duration is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationIsNotNull() { |
||||
|
addCriterion("duration is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationEqualTo(Long value) { |
||||
|
addCriterion("duration =", value, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationNotEqualTo(Long value) { |
||||
|
addCriterion("duration <>", value, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationGreaterThan(Long value) { |
||||
|
addCriterion("duration >", value, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("duration >=", value, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationLessThan(Long value) { |
||||
|
addCriterion("duration <", value, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("duration <=", value, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationIn(List<Long> values) { |
||||
|
addCriterion("duration in", values, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationNotIn(List<Long> values) { |
||||
|
addCriterion("duration not in", values, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationBetween(Long value1, Long value2) { |
||||
|
addCriterion("duration between", value1, value2, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDurationNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("duration not between", value1, value2, "duration"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkIsNull() { |
||||
|
addCriterion("deliver_link is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkIsNotNull() { |
||||
|
addCriterion("deliver_link is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkEqualTo(String value) { |
||||
|
addCriterion("deliver_link =", value, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkNotEqualTo(String value) { |
||||
|
addCriterion("deliver_link <>", value, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkGreaterThan(String value) { |
||||
|
addCriterion("deliver_link >", value, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("deliver_link >=", value, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkLessThan(String value) { |
||||
|
addCriterion("deliver_link <", value, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkLessThanOrEqualTo(String value) { |
||||
|
addCriterion("deliver_link <=", value, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkLike(String value) { |
||||
|
addCriterion("deliver_link like", value, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkNotLike(String value) { |
||||
|
addCriterion("deliver_link not like", value, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkIn(List<String> values) { |
||||
|
addCriterion("deliver_link in", values, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkNotIn(List<String> values) { |
||||
|
addCriterion("deliver_link not in", values, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkBetween(String value1, String value2) { |
||||
|
addCriterion("deliver_link between", value1, value2, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andDeliverLinkNotBetween(String value1, String value2) { |
||||
|
addCriterion("deliver_link not between", value1, value2, "deliverLink"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIsNull() { |
||||
|
addCriterion("remark is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIsNotNull() { |
||||
|
addCriterion("remark is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkEqualTo(String value) { |
||||
|
addCriterion("remark =", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotEqualTo(String value) { |
||||
|
addCriterion("remark <>", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkGreaterThan(String value) { |
||||
|
addCriterion("remark >", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("remark >=", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLessThan(String value) { |
||||
|
addCriterion("remark <", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLessThanOrEqualTo(String value) { |
||||
|
addCriterion("remark <=", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLike(String value) { |
||||
|
addCriterion("remark like", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotLike(String value) { |
||||
|
addCriterion("remark not like", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIn(List<String> values) { |
||||
|
addCriterion("remark in", values, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotIn(List<String> values) { |
||||
|
addCriterion("remark not in", values, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkBetween(String value1, String value2) { |
||||
|
addCriterion("remark between", value1, value2, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotBetween(String value1, String value2) { |
||||
|
addCriterion("remark not between", value1, value2, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNull() { |
||||
|
addCriterion("operator is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNotNull() { |
||||
|
addCriterion("operator is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorEqualTo(Long value) { |
||||
|
addCriterion("operator =", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotEqualTo(Long value) { |
||||
|
addCriterion("operator <>", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThan(Long value) { |
||||
|
addCriterion("operator >", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator >=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThan(Long value) { |
||||
|
addCriterion("operator <", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator <=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIn(List<Long> values) { |
||||
|
addCriterion("operator in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotIn(List<Long> values) { |
||||
|
addCriterion("operator not in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator not between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,103 @@ |
|||||
|
package com.ccsens.ptccsens.bean.vo; |
||||
|
|
||||
|
import com.github.pagehelper.PageInfo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 15:00 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
public class DailyAccountVo { |
||||
|
@Data |
||||
|
@ApiModel("项目信息") |
||||
|
public static class DailyAccountPro{ |
||||
|
@ApiModelProperty("项目ID") |
||||
|
private Long id; |
||||
|
@ApiModelProperty("项目名称") |
||||
|
private String projectName; |
||||
|
@ApiModelProperty("项目简称") |
||||
|
private String projectShortName; |
||||
|
@ApiModelProperty("项目编号") |
||||
|
private String projectNo; |
||||
|
@ApiModelProperty("项目经理名称") |
||||
|
private String projectManagerName; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("员工信息") |
||||
|
public static class DailyAccountEmp{ |
||||
|
@ApiModelProperty("员工名称") |
||||
|
private Long id; |
||||
|
@ApiModelProperty("员工名称") |
||||
|
private String empName;; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("任务信息") |
||||
|
public static class DailyAccountTask{ |
||||
|
@ApiModelProperty("任务Id") |
||||
|
private Long id; |
||||
|
@ApiModelProperty("是否协作任务") |
||||
|
private Byte cooperation; |
||||
|
@ApiModelProperty("任务名称") |
||||
|
private String taskName; |
||||
|
@ApiModelProperty("交付物名称") |
||||
|
private String deliverName; |
||||
|
@ApiModelProperty("截至时间(ms)") |
||||
|
private Long deadline; |
||||
|
@ApiModelProperty("任务时长") |
||||
|
private Long duration; |
||||
|
@ApiModelProperty("交付物链接") |
||||
|
private String deliverLink; |
||||
|
@ApiModelProperty("备注") |
||||
|
private String remark; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("时间、员工、项目、任务关联信息") |
||||
|
public static class DailyAccountEmpProTasks{ |
||||
|
private Long id; |
||||
|
private Long time; |
||||
|
private Long empId; |
||||
|
private Long proId; |
||||
|
private DailyAccountTask task; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("流水账基本信息") |
||||
|
public static class DailyAccountInfo{ |
||||
|
@ApiModelProperty("项目列表") |
||||
|
private List<DailyAccountPro> pros; |
||||
|
@ApiModelProperty("员工列表") |
||||
|
private List<DailyAccountEmp> emps; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("每个单元格信息") |
||||
|
public static class ProjectTask{ |
||||
|
private Long proId; |
||||
|
private List<DailyAccountTask> tasks; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("每一行信息") |
||||
|
public static class TableRow{ |
||||
|
private Long time; |
||||
|
private Long empId; |
||||
|
private List<ProjectTask> pros; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel("员工在项目下的任务信息") |
||||
|
public static class QueryTasks{ |
||||
|
@ApiModelProperty("项目ID列表") |
||||
|
private List<Long> pros; |
||||
|
@ApiModelProperty("多行数据列表") |
||||
|
private PageInfo<TableRow> recs; |
||||
|
} |
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
package com.ccsens.ptccsens.persist.dao; |
||||
|
|
||||
|
import com.ccsens.ptccsens.bean.dto.CommonQueryDto; |
||||
|
import com.ccsens.ptccsens.bean.vo.DailyAccountVo; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 17:25 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
@Repository |
||||
|
public interface PluDailyAccountDao { |
||||
|
|
||||
|
/** |
||||
|
* 查询任务信息-记录条数 |
||||
|
* @param startTime |
||||
|
* @param endTime |
||||
|
* @param emps |
||||
|
* @return |
||||
|
*/ |
||||
|
Long selectEmpProTasksRecordNums(@Param("startTime")Long startTime, |
||||
|
@Param("endTime")Long endTime, |
||||
|
@Param("emps")List<Long> emps); |
||||
|
|
||||
|
/** |
||||
|
* 查询任务信息 |
||||
|
* @param startTime |
||||
|
* @param endTime |
||||
|
* @param emps |
||||
|
* @param pros |
||||
|
* @return |
||||
|
*/ |
||||
|
List<DailyAccountVo.TableRow> selectEmpProTasks(@Param("startTime")Long startTime, |
||||
|
@Param("endTime")Long endTime, |
||||
|
@Param("emps")List<Long> emps, |
||||
|
@Param("pros")List<Long> pros, |
||||
|
@Param("pageInfo")CommonQueryDto.PageInfo pageInfo); |
||||
|
|
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.ccsens.ptccsens.persist.dao; |
||||
|
|
||||
|
import com.ccsens.ptccsens.bean.vo.DailyAccountVo; |
||||
|
import com.ccsens.ptccsens.persist.mapper.PluDailyAccountEmpMapper; |
||||
|
import com.ccsens.ptccsens.persist.mapper.PluDailyAccountProMapper; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 15:49 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
@Repository |
||||
|
public interface PluDailyAccountEmpDao extends PluDailyAccountEmpMapper { |
||||
|
/** |
||||
|
* 查询员工列表 |
||||
|
* @return |
||||
|
*/ |
||||
|
List<DailyAccountVo.DailyAccountEmp> selectEmps(); |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.ccsens.ptccsens.persist.dao; |
||||
|
|
||||
|
import com.ccsens.ptccsens.bean.vo.DailyAccountVo; |
||||
|
import com.ccsens.ptccsens.persist.mapper.PluDailyAccountProMapper; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 15:49 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
@Repository |
||||
|
public interface PluDailyAccountProDao extends PluDailyAccountProMapper { |
||||
|
/** |
||||
|
* 查询项目列表 |
||||
|
* @return |
||||
|
*/ |
||||
|
List<DailyAccountVo.DailyAccountPro> selectProjects(); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.ptccsens.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountEmp; |
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountEmpExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface PluDailyAccountEmpMapper { |
||||
|
long countByExample(PluDailyAccountEmpExample example); |
||||
|
|
||||
|
int deleteByExample(PluDailyAccountEmpExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(PluDailyAccountEmp record); |
||||
|
|
||||
|
int insertSelective(PluDailyAccountEmp record); |
||||
|
|
||||
|
List<PluDailyAccountEmp> selectByExample(PluDailyAccountEmpExample example); |
||||
|
|
||||
|
PluDailyAccountEmp selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") PluDailyAccountEmp record, @Param("example") PluDailyAccountEmpExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") PluDailyAccountEmp record, @Param("example") PluDailyAccountEmpExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(PluDailyAccountEmp record); |
||||
|
|
||||
|
int updateByPrimaryKey(PluDailyAccountEmp record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.ptccsens.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTask; |
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTaskExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface PluDailyAccountEmpProTaskMapper { |
||||
|
long countByExample(PluDailyAccountEmpProTaskExample example); |
||||
|
|
||||
|
int deleteByExample(PluDailyAccountEmpProTaskExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(PluDailyAccountEmpProTask record); |
||||
|
|
||||
|
int insertSelective(PluDailyAccountEmpProTask record); |
||||
|
|
||||
|
List<PluDailyAccountEmpProTask> selectByExample(PluDailyAccountEmpProTaskExample example); |
||||
|
|
||||
|
PluDailyAccountEmpProTask selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") PluDailyAccountEmpProTask record, @Param("example") PluDailyAccountEmpProTaskExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") PluDailyAccountEmpProTask record, @Param("example") PluDailyAccountEmpProTaskExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(PluDailyAccountEmpProTask record); |
||||
|
|
||||
|
int updateByPrimaryKey(PluDailyAccountEmpProTask record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.ptccsens.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountPro; |
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountProExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface PluDailyAccountProMapper { |
||||
|
long countByExample(PluDailyAccountProExample example); |
||||
|
|
||||
|
int deleteByExample(PluDailyAccountProExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(PluDailyAccountPro record); |
||||
|
|
||||
|
int insertSelective(PluDailyAccountPro record); |
||||
|
|
||||
|
List<PluDailyAccountPro> selectByExample(PluDailyAccountProExample example); |
||||
|
|
||||
|
PluDailyAccountPro selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") PluDailyAccountPro record, @Param("example") PluDailyAccountProExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") PluDailyAccountPro record, @Param("example") PluDailyAccountProExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(PluDailyAccountPro record); |
||||
|
|
||||
|
int updateByPrimaryKey(PluDailyAccountPro record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.ptccsens.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountTask; |
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountTaskExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface PluDailyAccountTaskMapper { |
||||
|
long countByExample(PluDailyAccountTaskExample example); |
||||
|
|
||||
|
int deleteByExample(PluDailyAccountTaskExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(PluDailyAccountTask record); |
||||
|
|
||||
|
int insertSelective(PluDailyAccountTask record); |
||||
|
|
||||
|
List<PluDailyAccountTask> selectByExample(PluDailyAccountTaskExample example); |
||||
|
|
||||
|
PluDailyAccountTask selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") PluDailyAccountTask record, @Param("example") PluDailyAccountTaskExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") PluDailyAccountTask record, @Param("example") PluDailyAccountTaskExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(PluDailyAccountTask record); |
||||
|
|
||||
|
int updateByPrimaryKey(PluDailyAccountTask record); |
||||
|
} |
@ -0,0 +1,130 @@ |
|||||
|
package com.ccsens.ptccsens.service; |
||||
|
|
||||
|
import cn.hutool.core.collection.CollectionUtil; |
||||
|
import cn.hutool.core.lang.Snowflake; |
||||
|
import com.ccsens.ptccsens.bean.dto.CommonQueryDto; |
||||
|
import com.ccsens.ptccsens.bean.dto.DailyAccountDto; |
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTask; |
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTaskExample; |
||||
|
import com.ccsens.ptccsens.bean.po.PluDailyAccountTask; |
||||
|
import com.ccsens.ptccsens.bean.vo.DailyAccountVo; |
||||
|
import com.ccsens.ptccsens.persist.dao.PluDailyAccountDao; |
||||
|
import com.ccsens.ptccsens.persist.dao.PluDailyAccountEmpDao; |
||||
|
import com.ccsens.ptccsens.persist.dao.PluDailyAccountProDao; |
||||
|
import com.ccsens.ptccsens.persist.mapper.PluDailyAccountEmpProTaskMapper; |
||||
|
import com.ccsens.ptccsens.persist.mapper.PluDailyAccountTaskMapper; |
||||
|
import com.ccsens.util.exception.BaseException; |
||||
|
import com.ccsensptos.tallsdk.bean.vo.TallTaskVo; |
||||
|
import com.github.pagehelper.PageHelper; |
||||
|
import com.github.pagehelper.PageInfo; |
||||
|
import org.springframework.beans.BeanUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Propagation; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.Calendar; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 14:49 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
@Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class) |
||||
|
public class DailyAccountService implements IDailyAccountService{ |
||||
|
@Resource |
||||
|
private PluDailyAccountDao pluDailyAccountDao; |
||||
|
@Resource |
||||
|
private PluDailyAccountProDao pluDailyAccountProDao; |
||||
|
@Resource |
||||
|
private PluDailyAccountEmpDao pluDailyAccountEmpDao; |
||||
|
@Resource |
||||
|
private PluDailyAccountTaskMapper pluDailyAccountTaskMapper; |
||||
|
@Resource |
||||
|
private PluDailyAccountEmpProTaskMapper pluDailyAccountEmpProTaskMapper; |
||||
|
@Resource |
||||
|
private Snowflake snowflake; |
||||
|
|
||||
|
@Override |
||||
|
public DailyAccountVo.DailyAccountInfo queryDailyAccountInfo() throws BaseException { |
||||
|
DailyAccountVo.DailyAccountInfo info = new DailyAccountVo.DailyAccountInfo(); |
||||
|
//获取项目列表
|
||||
|
info.setPros(pluDailyAccountProDao.selectProjects()); |
||||
|
//获取员工列表
|
||||
|
info.setEmps(pluDailyAccountEmpDao.selectEmps()); |
||||
|
return info; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public DailyAccountVo.QueryTasks queryTasks(DailyAccountDto.QueryTasksDto param, CommonQueryDto.PageInfo pageInfo) { |
||||
|
DailyAccountVo.QueryTasks tasks = new DailyAccountVo.QueryTasks(); |
||||
|
|
||||
|
//获取项目集合
|
||||
|
if(CollectionUtil.isNotEmpty(param.getPros())){ |
||||
|
tasks.setPros(param.getPros()); |
||||
|
}else{ |
||||
|
tasks.setPros(pluDailyAccountProDao.selectProjects().stream().map(DailyAccountVo.DailyAccountPro::getId).collect(Collectors.toList())); |
||||
|
} |
||||
|
|
||||
|
//查询总页数
|
||||
|
Long total = pluDailyAccountDao.selectEmpProTasksRecordNums(param.getStartTime(),param.getEndTime(),param.getEmps()); |
||||
|
|
||||
|
//获取任务
|
||||
|
List<DailyAccountVo.TableRow> empProTasks = |
||||
|
pluDailyAccountDao.selectEmpProTasks(param.getStartTime(),param.getEndTime(),param.getEmps(),param.getPros(),pageInfo); |
||||
|
|
||||
|
//组装返回
|
||||
|
PageInfo<DailyAccountVo.TableRow> pageResult = new PageInfo<>(empProTasks); |
||||
|
pageResult.setTotal(total); |
||||
|
pageResult.setPageNum(pageInfo.getPageNum().intValue()); |
||||
|
pageResult.setPageSize(pageInfo.getPageSize()); |
||||
|
pageResult.setPages((total.intValue()-1) / pageInfo.getPageSize() + 1); |
||||
|
tasks.setRecs(pageResult); |
||||
|
return tasks; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public void saveTask(DailyAccountDto.SubmitTask param) { |
||||
|
//处理时间信息,转换为0:0:0
|
||||
|
Calendar cal = Calendar.getInstance(); |
||||
|
cal.setTimeInMillis(param.getTime()); |
||||
|
cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONTH),cal.get(Calendar.DAY_OF_MONTH),0,0,0); |
||||
|
param.setTime(cal.getTimeInMillis()/1000*1000); |
||||
|
|
||||
|
//1. 删除之前的任务
|
||||
|
PluDailyAccountEmpProTaskExample example = new PluDailyAccountEmpProTaskExample(); |
||||
|
example.createCriteria().andTimeEqualTo(param.getTime()) |
||||
|
.andEmpIdEqualTo(param.getEmpId()).andProIdEqualTo(param.getProId()); |
||||
|
List<PluDailyAccountEmpProTask> theEmpProTasks = pluDailyAccountEmpProTaskMapper.selectByExample(example); |
||||
|
if(CollectionUtil.isNotEmpty(theEmpProTasks)){ |
||||
|
for (PluDailyAccountEmpProTask theEmpProTask : theEmpProTasks) { |
||||
|
//删除任务
|
||||
|
pluDailyAccountTaskMapper.deleteByPrimaryKey(theEmpProTask.getTaskId()); |
||||
|
//删除任务关联
|
||||
|
pluDailyAccountEmpProTaskMapper.deleteByPrimaryKey(theEmpProTask.getId()); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
//2. 添加新任务(数量很少,简单循环添加)
|
||||
|
for (DailyAccountDto.DailyAccountTask paramTask : param.getTasks()) { |
||||
|
//2.1.保存任务信息
|
||||
|
PluDailyAccountTask pluDailyAccountTask = new PluDailyAccountTask(); |
||||
|
BeanUtils.copyProperties(paramTask,pluDailyAccountTask); |
||||
|
pluDailyAccountTask.setId(snowflake.nextId()); |
||||
|
pluDailyAccountTaskMapper.insertSelective(pluDailyAccountTask); |
||||
|
|
||||
|
//2.2 保存关联值
|
||||
|
PluDailyAccountEmpProTask empProTask = new PluDailyAccountEmpProTask(); |
||||
|
empProTask.setId(snowflake.nextId()); |
||||
|
empProTask.setTime(param.getTime()); |
||||
|
empProTask.setEmpId(param.getEmpId()); |
||||
|
empProTask.setProId(param.getProId()); |
||||
|
empProTask.setTaskId(pluDailyAccountTask.getId()); |
||||
|
pluDailyAccountEmpProTaskMapper.insertSelective(empProTask); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.ccsens.ptccsens.service; |
||||
|
|
||||
|
import com.ccsens.ptccsens.bean.dto.CommonQueryDto; |
||||
|
import com.ccsens.ptccsens.bean.dto.DailyAccountDto; |
||||
|
import com.ccsens.ptccsens.bean.vo.DailyAccountVo; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 14:49 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
public interface IDailyAccountService { |
||||
|
/** |
||||
|
* 查询插件基本信息,包括:项目列表、员工列表 |
||||
|
* @return |
||||
|
*/ |
||||
|
DailyAccountVo.DailyAccountInfo queryDailyAccountInfo() ; |
||||
|
|
||||
|
/** |
||||
|
* 查询任务列表 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
DailyAccountVo.QueryTasks queryTasks(DailyAccountDto.QueryTasksDto param, CommonQueryDto.PageInfo pageInfo); |
||||
|
|
||||
|
/** |
||||
|
* 提交任务 |
||||
|
* @param param |
||||
|
*/ |
||||
|
void saveTask(DailyAccountDto.SubmitTask param); |
||||
|
} |
@ -0,0 +1,100 @@ |
|||||
|
<?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.ccsens.ptccsens.persist.dao.PluDailyAccountDao"> |
||||
|
<resultMap id="queryTaskResultMap" type="com.ccsens.ptccsens.bean.vo.DailyAccountVo$TableRow"> |
||||
|
<result column="time" property="time"/> |
||||
|
<result column="emp_id" property="empId"/> |
||||
|
<collection property="pros" ofType="com.ccsens.ptccsens.bean.vo.DailyAccountVo$ProjectTask"> |
||||
|
<id column="pro_id" property="proId"/> |
||||
|
<collection property="tasks" ofType="com.ccsens.ptccsens.bean.vo.DailyAccountVo$DailyAccountTask"> |
||||
|
<id column="taskId" property="id"/> |
||||
|
<result column="cooperation" property="cooperation"/> |
||||
|
<result column="task_name" property="taskName"/> |
||||
|
<result column="deliver_name" property="deliverName"/> |
||||
|
<result column="deadline" property="deadline"/> |
||||
|
<result column="duration" property="duration"/> |
||||
|
</collection> |
||||
|
</collection> |
||||
|
</resultMap> |
||||
|
|
||||
|
<select id="selectEmpProTasksRecordNums" resultType="java.lang.Long"> |
||||
|
SELECT |
||||
|
count(distinct o1.time, o1.emp_id) |
||||
|
from |
||||
|
t_plu_daily_account_emp_pro_task o1 join t_plu_daily_account_emp oe on o1.emp_id = oe.id |
||||
|
where |
||||
|
o1.time >= #{startTime} AND o1.time < #{endTime} |
||||
|
<if test="emps != null and emps.size() > 0"> |
||||
|
AND emp_id in |
||||
|
<foreach collection="emps" item="e" index="index" open="(" close=")" separator=","> |
||||
|
#{e} |
||||
|
</foreach> |
||||
|
</if> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectEmpProTasks" resultMap="queryTaskResultMap"> |
||||
|
select |
||||
|
distinct |
||||
|
o.time,o.emp_id,o.pro_id, |
||||
|
t.id as taskId, t.cooperation, t.task_name, t.deliver_name, t.deadline, t.duration, t.deliver_link |
||||
|
from |
||||
|
( |
||||
|
SELECT distinct o1.time, o1.emp_id, oe.sequence as empSequence |
||||
|
from t_plu_daily_account_emp_pro_task o1 join t_plu_daily_account_emp oe on o1.emp_id = oe.id |
||||
|
where |
||||
|
o1.time >= #{startTime} AND o1.time < #{endTime} |
||||
|
<if test="emps != null and emps.size() > 0"> |
||||
|
AND emp_id in |
||||
|
<foreach collection="emps" item="e" index="index" open="(" close=")" separator=","> |
||||
|
#{e} |
||||
|
</foreach> |
||||
|
</if> |
||||
|
<if test = "pageInfo != null"> |
||||
|
order by o1.time desc,oe.sequence asc |
||||
|
limit #{pageInfo.offset},#{pageInfo.pageSize} |
||||
|
</if> |
||||
|
)te |
||||
|
join t_plu_daily_account_emp_pro_task o on te.time = o.time and te.emp_id = o.emp_id |
||||
|
join t_plu_daily_account_pro p on o.pro_id = p.id |
||||
|
join t_plu_daily_account_task t on o.task_id = t.id |
||||
|
<where> |
||||
|
<if test="pros != null and pros.size() > 0"> |
||||
|
AND pro_id in |
||||
|
<foreach collection="pros" item="p" index="index" open="(" close=")" separator=","> |
||||
|
#{p} |
||||
|
</foreach> |
||||
|
</if> |
||||
|
</where> |
||||
|
order by |
||||
|
o.time desc, te.empSequence asc, p.sequence asc, t.sequence asc |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectEmpProTasks11" resultMap="queryTaskResultMap"> |
||||
|
|
||||
|
SELECT |
||||
|
ept.id as id, ept.time, ept.emp_id, ept.pro_id, |
||||
|
t.id as taskId, t.cooperation, t.task_name, t.deliver_name, |
||||
|
t.deadline, t.duration, t.deliver_link |
||||
|
FROM |
||||
|
t_plu_daily_account_emp_pro_task ept |
||||
|
join t_plu_daily_account_emp e on ept.emp_id = e.id |
||||
|
join t_plu_daily_account_pro p on ept.pro_id = p.id |
||||
|
join t_plu_daily_account_task t on ept.task_id = t.id |
||||
|
WHERE |
||||
|
ept.time >= #{startTime} AND ept.time < #{endTime} |
||||
|
<if test="emps != null and emps.size() > 0"> |
||||
|
AND emp_id in |
||||
|
<foreach collection="emps" item="e" index="index" open="(" close=")" separator=","> |
||||
|
#{e} |
||||
|
</foreach> |
||||
|
</if> |
||||
|
<if test="pros != null and pros.size() > 0"> |
||||
|
AND pro_id in |
||||
|
<foreach collection="pros" item="p" index="index" open="(" close=")" separator=","> |
||||
|
#{p} |
||||
|
</foreach> |
||||
|
</if> |
||||
|
ORDER BY |
||||
|
ept.time desc, e.sequence asc, p.sequence asc, t.sequence asc |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,14 @@ |
|||||
|
<?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.ccsens.ptccsens.persist.dao.PluDailyAccountEmpDao"> |
||||
|
<select id="selectEmps" resultType="com.ccsens.ptccsens.bean.vo.DailyAccountVo$DailyAccountEmp"> |
||||
|
SELECT |
||||
|
id,emp_name,sequence |
||||
|
FROM |
||||
|
t_plu_daily_account_emp |
||||
|
WHERE |
||||
|
rec_status = 0 |
||||
|
ORDER BY |
||||
|
sequence asc |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,14 @@ |
|||||
|
<?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.ccsens.ptccsens.persist.dao.PluDailyAccountProDao"> |
||||
|
<select id="selectProjects" resultType="com.ccsens.ptccsens.bean.vo.DailyAccountVo$DailyAccountPro"> |
||||
|
SELECT |
||||
|
id,project_name,project_short_name,project_no,project_manager_name,sequence |
||||
|
FROM |
||||
|
t_plu_daily_account_pro |
||||
|
WHERE |
||||
|
rec_status = 0 |
||||
|
ORDER BY |
||||
|
sequence asc |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,228 @@ |
|||||
|
<?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.ccsens.ptccsens.persist.mapper.PluDailyAccountEmpMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.ptccsens.bean.po.PluDailyAccountEmp"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="emp_name" jdbcType="VARCHAR" property="empName" /> |
||||
|
<result column="operator" jdbcType="BIGINT" property="operator" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, emp_name, operator, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_plu_daily_account_emp |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_plu_daily_account_emp |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_plu_daily_account_emp |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpExample"> |
||||
|
delete from t_plu_daily_account_emp |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmp"> |
||||
|
insert into t_plu_daily_account_emp (id, emp_name, operator, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{empName,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmp"> |
||||
|
insert into t_plu_daily_account_emp |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="empName != null"> |
||||
|
emp_name, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="empName != null"> |
||||
|
#{empName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
#{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_plu_daily_account_emp |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_plu_daily_account_emp |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.empName != null"> |
||||
|
emp_name = #{record.empName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.operator != null"> |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_plu_daily_account_emp |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
emp_name = #{record.empName,jdbcType=VARCHAR}, |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmp"> |
||||
|
update t_plu_daily_account_emp |
||||
|
<set> |
||||
|
<if test="empName != null"> |
||||
|
emp_name = #{empName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmp"> |
||||
|
update t_plu_daily_account_emp |
||||
|
set emp_name = #{empName,jdbcType=VARCHAR}, |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,275 @@ |
|||||
|
<?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.ccsens.ptccsens.persist.mapper.PluDailyAccountEmpProTaskMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTask"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="emp_id" jdbcType="BIGINT" property="empId" /> |
||||
|
<result column="pro_id" jdbcType="BIGINT" property="proId" /> |
||||
|
<result column="task_id" jdbcType="BIGINT" property="taskId" /> |
||||
|
<result column="time" jdbcType="BIGINT" property="time" /> |
||||
|
<result column="operator" jdbcType="BIGINT" property="operator" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, emp_id, pro_id, task_id, time, operator, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTaskExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_plu_daily_account_emp_pro_task |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_plu_daily_account_emp_pro_task |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_plu_daily_account_emp_pro_task |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTaskExample"> |
||||
|
delete from t_plu_daily_account_emp_pro_task |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTask"> |
||||
|
insert into t_plu_daily_account_emp_pro_task (id, emp_id, pro_id, |
||||
|
task_id, time, operator, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{empId,jdbcType=BIGINT}, #{proId,jdbcType=BIGINT}, |
||||
|
#{taskId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTask"> |
||||
|
insert into t_plu_daily_account_emp_pro_task |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="empId != null"> |
||||
|
emp_id, |
||||
|
</if> |
||||
|
<if test="proId != null"> |
||||
|
pro_id, |
||||
|
</if> |
||||
|
<if test="taskId != null"> |
||||
|
task_id, |
||||
|
</if> |
||||
|
<if test="time != null"> |
||||
|
time, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="empId != null"> |
||||
|
#{empId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="proId != null"> |
||||
|
#{proId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="taskId != null"> |
||||
|
#{taskId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="time != null"> |
||||
|
#{time,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
#{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTaskExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_plu_daily_account_emp_pro_task |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_plu_daily_account_emp_pro_task |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.empId != null"> |
||||
|
emp_id = #{record.empId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.proId != null"> |
||||
|
pro_id = #{record.proId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.taskId != null"> |
||||
|
task_id = #{record.taskId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.time != null"> |
||||
|
time = #{record.time,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.operator != null"> |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_plu_daily_account_emp_pro_task |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
emp_id = #{record.empId,jdbcType=BIGINT}, |
||||
|
pro_id = #{record.proId,jdbcType=BIGINT}, |
||||
|
task_id = #{record.taskId,jdbcType=BIGINT}, |
||||
|
time = #{record.time,jdbcType=BIGINT}, |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTask"> |
||||
|
update t_plu_daily_account_emp_pro_task |
||||
|
<set> |
||||
|
<if test="empId != null"> |
||||
|
emp_id = #{empId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="proId != null"> |
||||
|
pro_id = #{proId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="taskId != null"> |
||||
|
task_id = #{taskId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="time != null"> |
||||
|
time = #{time,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountEmpProTask"> |
||||
|
update t_plu_daily_account_emp_pro_task |
||||
|
set emp_id = #{empId,jdbcType=BIGINT}, |
||||
|
pro_id = #{proId,jdbcType=BIGINT}, |
||||
|
task_id = #{taskId,jdbcType=BIGINT}, |
||||
|
time = #{time,jdbcType=BIGINT}, |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,276 @@ |
|||||
|
<?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.ccsens.ptccsens.persist.mapper.PluDailyAccountProMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.ptccsens.bean.po.PluDailyAccountPro"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="project_name" jdbcType="VARCHAR" property="projectName" /> |
||||
|
<result column="project_short_name" jdbcType="VARCHAR" property="projectShortName" /> |
||||
|
<result column="project_no" jdbcType="VARCHAR" property="projectNo" /> |
||||
|
<result column="project_manager_name" jdbcType="VARCHAR" property="projectManagerName" /> |
||||
|
<result column="operator" jdbcType="BIGINT" property="operator" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, project_name, project_short_name, project_no, project_manager_name, operator, |
||||
|
created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountProExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_plu_daily_account_pro |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_plu_daily_account_pro |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_plu_daily_account_pro |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountProExample"> |
||||
|
delete from t_plu_daily_account_pro |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountPro"> |
||||
|
insert into t_plu_daily_account_pro (id, project_name, project_short_name, |
||||
|
project_no, project_manager_name, operator, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{projectName,jdbcType=VARCHAR}, #{projectShortName,jdbcType=VARCHAR}, |
||||
|
#{projectNo,jdbcType=VARCHAR}, #{projectManagerName,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountPro"> |
||||
|
insert into t_plu_daily_account_pro |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="projectName != null"> |
||||
|
project_name, |
||||
|
</if> |
||||
|
<if test="projectShortName != null"> |
||||
|
project_short_name, |
||||
|
</if> |
||||
|
<if test="projectNo != null"> |
||||
|
project_no, |
||||
|
</if> |
||||
|
<if test="projectManagerName != null"> |
||||
|
project_manager_name, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="projectName != null"> |
||||
|
#{projectName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="projectShortName != null"> |
||||
|
#{projectShortName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="projectNo != null"> |
||||
|
#{projectNo,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="projectManagerName != null"> |
||||
|
#{projectManagerName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
#{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountProExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_plu_daily_account_pro |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_plu_daily_account_pro |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.projectName != null"> |
||||
|
project_name = #{record.projectName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.projectShortName != null"> |
||||
|
project_short_name = #{record.projectShortName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.projectNo != null"> |
||||
|
project_no = #{record.projectNo,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.projectManagerName != null"> |
||||
|
project_manager_name = #{record.projectManagerName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.operator != null"> |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_plu_daily_account_pro |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
project_name = #{record.projectName,jdbcType=VARCHAR}, |
||||
|
project_short_name = #{record.projectShortName,jdbcType=VARCHAR}, |
||||
|
project_no = #{record.projectNo,jdbcType=VARCHAR}, |
||||
|
project_manager_name = #{record.projectManagerName,jdbcType=VARCHAR}, |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountPro"> |
||||
|
update t_plu_daily_account_pro |
||||
|
<set> |
||||
|
<if test="projectName != null"> |
||||
|
project_name = #{projectName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="projectShortName != null"> |
||||
|
project_short_name = #{projectShortName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="projectNo != null"> |
||||
|
project_no = #{projectNo,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="projectManagerName != null"> |
||||
|
project_manager_name = #{projectManagerName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountPro"> |
||||
|
update t_plu_daily_account_pro |
||||
|
set project_name = #{projectName,jdbcType=VARCHAR}, |
||||
|
project_short_name = #{projectShortName,jdbcType=VARCHAR}, |
||||
|
project_no = #{projectNo,jdbcType=VARCHAR}, |
||||
|
project_manager_name = #{projectManagerName,jdbcType=VARCHAR}, |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,323 @@ |
|||||
|
<?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.ccsens.ptccsens.persist.mapper.PluDailyAccountTaskMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.ptccsens.bean.po.PluDailyAccountTask"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="cooperation" jdbcType="TINYINT" property="cooperation" /> |
||||
|
<result column="task_name" jdbcType="VARCHAR" property="taskName" /> |
||||
|
<result column="deliver_name" jdbcType="VARCHAR" property="deliverName" /> |
||||
|
<result column="deadline" jdbcType="BIGINT" property="deadline" /> |
||||
|
<result column="duration" jdbcType="BIGINT" property="duration" /> |
||||
|
<result column="deliver_link" jdbcType="VARCHAR" property="deliverLink" /> |
||||
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
||||
|
<result column="operator" jdbcType="BIGINT" property="operator" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, cooperation, task_name, deliver_name, deadline, duration, deliver_link, remark, |
||||
|
operator, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountTaskExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_plu_daily_account_task |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_plu_daily_account_task |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_plu_daily_account_task |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountTaskExample"> |
||||
|
delete from t_plu_daily_account_task |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountTask"> |
||||
|
insert into t_plu_daily_account_task (id, cooperation, task_name, |
||||
|
deliver_name, deadline, duration, |
||||
|
deliver_link, remark, operator, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{cooperation,jdbcType=TINYINT}, #{taskName,jdbcType=VARCHAR}, |
||||
|
#{deliverName,jdbcType=VARCHAR}, #{deadline,jdbcType=BIGINT}, #{duration,jdbcType=BIGINT}, |
||||
|
#{deliverLink,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountTask"> |
||||
|
insert into t_plu_daily_account_task |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="cooperation != null"> |
||||
|
cooperation, |
||||
|
</if> |
||||
|
<if test="taskName != null"> |
||||
|
task_name, |
||||
|
</if> |
||||
|
<if test="deliverName != null"> |
||||
|
deliver_name, |
||||
|
</if> |
||||
|
<if test="deadline != null"> |
||||
|
deadline, |
||||
|
</if> |
||||
|
<if test="duration != null"> |
||||
|
duration, |
||||
|
</if> |
||||
|
<if test="deliverLink != null"> |
||||
|
deliver_link, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
remark, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="cooperation != null"> |
||||
|
#{cooperation,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="taskName != null"> |
||||
|
#{taskName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="deliverName != null"> |
||||
|
#{deliverName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="deadline != null"> |
||||
|
#{deadline,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="duration != null"> |
||||
|
#{duration,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="deliverLink != null"> |
||||
|
#{deliverLink,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
#{remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
#{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountTaskExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_plu_daily_account_task |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_plu_daily_account_task |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.cooperation != null"> |
||||
|
cooperation = #{record.cooperation,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.taskName != null"> |
||||
|
task_name = #{record.taskName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.deliverName != null"> |
||||
|
deliver_name = #{record.deliverName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.deadline != null"> |
||||
|
deadline = #{record.deadline,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.duration != null"> |
||||
|
duration = #{record.duration,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.deliverLink != null"> |
||||
|
deliver_link = #{record.deliverLink,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.remark != null"> |
||||
|
remark = #{record.remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.operator != null"> |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_plu_daily_account_task |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
cooperation = #{record.cooperation,jdbcType=TINYINT}, |
||||
|
task_name = #{record.taskName,jdbcType=VARCHAR}, |
||||
|
deliver_name = #{record.deliverName,jdbcType=VARCHAR}, |
||||
|
deadline = #{record.deadline,jdbcType=BIGINT}, |
||||
|
duration = #{record.duration,jdbcType=BIGINT}, |
||||
|
deliver_link = #{record.deliverLink,jdbcType=VARCHAR}, |
||||
|
remark = #{record.remark,jdbcType=VARCHAR}, |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountTask"> |
||||
|
update t_plu_daily_account_task |
||||
|
<set> |
||||
|
<if test="cooperation != null"> |
||||
|
cooperation = #{cooperation,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="taskName != null"> |
||||
|
task_name = #{taskName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="deliverName != null"> |
||||
|
deliver_name = #{deliverName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="deadline != null"> |
||||
|
deadline = #{deadline,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="duration != null"> |
||||
|
duration = #{duration,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="deliverLink != null"> |
||||
|
deliver_link = #{deliverLink,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
remark = #{remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.ptccsens.bean.po.PluDailyAccountTask"> |
||||
|
update t_plu_daily_account_task |
||||
|
set cooperation = #{cooperation,jdbcType=TINYINT}, |
||||
|
task_name = #{taskName,jdbcType=VARCHAR}, |
||||
|
deliver_name = #{deliverName,jdbcType=VARCHAR}, |
||||
|
deadline = #{deadline,jdbcType=BIGINT}, |
||||
|
duration = #{duration,jdbcType=BIGINT}, |
||||
|
deliver_link = #{deliverLink,jdbcType=VARCHAR}, |
||||
|
remark = #{remark,jdbcType=VARCHAR}, |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,51 @@ |
|||||
|
package com.ccsens.ptccsens.dao; |
||||
|
|
||||
|
import cn.hutool.core.collection.CollectionUtil; |
||||
|
import com.alibaba.fastjson.JSON; |
||||
|
import com.ccsens.ptccsens.bean.vo.DailyAccountVo; |
||||
|
import com.ccsens.ptccsens.persist.dao.PluDailyAccountDao; |
||||
|
import org.junit.Test; |
||||
|
import org.junit.runner.RunWith; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
|
||||
|
import java.sql.SQLOutput; |
||||
|
import java.util.Calendar; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author :mr.zhangsan |
||||
|
* @date :2022/4/28 19:40 |
||||
|
* @version: v1.0 |
||||
|
*/ |
||||
|
@SpringBootTest |
||||
|
@RunWith(SpringRunner.class) |
||||
|
public class PluDailyAccountDaoTest { |
||||
|
@Autowired |
||||
|
private PluDailyAccountDao pluDailyAccountDao; |
||||
|
|
||||
|
@Test |
||||
|
public void testSelectEmpProTasks(){ |
||||
|
Calendar cal = Calendar.getInstance(); |
||||
|
cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONTH),cal.get(Calendar.DAY_OF_MONTH),0,0,0); |
||||
|
Long startTime = cal.getTimeInMillis()/1000 * 1000; |
||||
|
cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONTH),cal.get(Calendar.DAY_OF_MONTH)+1,0,0,0); |
||||
|
Long endTime = cal.getTimeInMillis()/1000 * 1000; |
||||
|
List<DailyAccountVo.TableRow> rows = |
||||
|
pluDailyAccountDao.selectEmpProTasks(startTime,endTime, CollectionUtil.newArrayList(1L,13L,11L), |
||||
|
CollectionUtil.newArrayList(1L,2L,3L,4L,5L,6L,7L),null); |
||||
|
for (DailyAccountVo.TableRow row : rows) { |
||||
|
System.out.println(row.getTime() + "," + row.getEmpId()); |
||||
|
for (DailyAccountVo.ProjectTask pro : row.getPros()) { |
||||
|
System.out.print("\t"); |
||||
|
System.out.println(pro.getProId()); |
||||
|
for (DailyAccountVo.DailyAccountTask task : pro.getTasks()) { |
||||
|
System.out.print("\t\t"); |
||||
|
System.out.println(task); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
System.out.println(JSON.toJSONString(rows)); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue