diff --git a/src/main/java/com/ccsens/ptccsens/api/DailyAccountController.java b/src/main/java/com/ccsens/ptccsens/api/DailyAccountController.java new file mode 100644 index 0000000..7f19658 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/api/DailyAccountController.java @@ -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 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 queryTasks(@ApiParam @Validated @RequestBody CommonQueryDto 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 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 export(@ApiParam @Validated @RequestBody CommonQueryDto 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 getDeliver(@ApiParam @Validated @RequestBody QueryDto 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 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 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 queryRecord(@ApiParam @Validated @RequestBody QueryDto 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> queryCheckLog(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ +// log.info("查看交付物上传记录--{}",params); +// List 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 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> queryDeliverOfTask(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ +// List 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 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> queryDeliverOfProject(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ +// PageInfo deliverOfProject = deliverService.queryDeliverOfProject(params.getParam(), params.getUserId()); +// return JsonResponse.newInstance().ok(deliverOfProject); +// } +} diff --git a/src/main/java/com/ccsens/ptccsens/bean/dto/CommonQueryDto.java b/src/main/java/com/ccsens/ptccsens/bean/dto/CommonQueryDto.java new file mode 100644 index 0000000..0a98d41 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/dto/CommonQueryDto.java @@ -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 extends QueryDto { + @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(); +} diff --git a/src/main/java/com/ccsens/ptccsens/bean/dto/DailyAccountDto.java b/src/main/java/com/ccsens/ptccsens/bean/dto/DailyAccountDto.java new file mode 100644 index 0000000..6bed119 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/dto/DailyAccountDto.java @@ -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 emps; + @ApiModelProperty("项目列表") + private List 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 tasks; + } +} diff --git a/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmp.java b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmp.java new file mode 100644 index 0000000..c7ae6c0 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmp.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpExample.java b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpExample.java new file mode 100644 index 0000000..4b86d12 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpExample.java @@ -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 oredCriteria; + + public PluDailyAccountEmpExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("emp_name in", values, "empName"); + return (Criteria) this; + } + + public Criteria andEmpNameNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpProTask.java b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpProTask.java new file mode 100644 index 0000000..95e1330 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpProTask.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpProTaskExample.java b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpProTaskExample.java new file mode 100644 index 0000000..93847ac --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountEmpProTaskExample.java @@ -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 oredCriteria; + + public PluDailyAccountEmpProTaskExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("emp_id in", values, "empId"); + return (Criteria) this; + } + + public Criteria andEmpIdNotIn(List 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 values) { + addCriterion("pro_id in", values, "proId"); + return (Criteria) this; + } + + public Criteria andProIdNotIn(List 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 values) { + addCriterion("task_id in", values, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdNotIn(List 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 values) { + addCriterion("time in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountPro.java b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountPro.java new file mode 100644 index 0000000..f0346c5 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountPro.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountProExample.java b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountProExample.java new file mode 100644 index 0000000..9a96404 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountProExample.java @@ -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 oredCriteria; + + public PluDailyAccountProExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("project_name in", values, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameNotIn(List 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 values) { + addCriterion("project_short_name in", values, "projectShortName"); + return (Criteria) this; + } + + public Criteria andProjectShortNameNotIn(List 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 values) { + addCriterion("project_no in", values, "projectNo"); + return (Criteria) this; + } + + public Criteria andProjectNoNotIn(List 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 values) { + addCriterion("project_manager_name in", values, "projectManagerName"); + return (Criteria) this; + } + + public Criteria andProjectManagerNameNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountTask.java b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountTask.java new file mode 100644 index 0000000..eff52e2 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountTask.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountTaskExample.java b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountTaskExample.java new file mode 100644 index 0000000..fe37493 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/po/PluDailyAccountTaskExample.java @@ -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 oredCriteria; + + public PluDailyAccountTaskExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("cooperation in", values, "cooperation"); + return (Criteria) this; + } + + public Criteria andCooperationNotIn(List 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 values) { + addCriterion("task_name in", values, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameNotIn(List 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 values) { + addCriterion("deliver_name in", values, "deliverName"); + return (Criteria) this; + } + + public Criteria andDeliverNameNotIn(List 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 values) { + addCriterion("deadline in", values, "deadline"); + return (Criteria) this; + } + + public Criteria andDeadlineNotIn(List 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 values) { + addCriterion("duration in", values, "duration"); + return (Criteria) this; + } + + public Criteria andDurationNotIn(List 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 values) { + addCriterion("deliver_link in", values, "deliverLink"); + return (Criteria) this; + } + + public Criteria andDeliverLinkNotIn(List 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 values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/bean/vo/DailyAccountVo.java b/src/main/java/com/ccsens/ptccsens/bean/vo/DailyAccountVo.java new file mode 100644 index 0000000..c68d899 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/bean/vo/DailyAccountVo.java @@ -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 pros; + @ApiModelProperty("员工列表") + private List emps; + } + + @Data + @ApiModel("每个单元格信息") + public static class ProjectTask{ + private Long proId; + private List tasks; + } + + @Data + @ApiModel("每一行信息") + public static class TableRow{ + private Long time; + private Long empId; + private List pros; + } + + @Data + @ApiModel("员工在项目下的任务信息") + public static class QueryTasks{ + @ApiModelProperty("项目ID列表") + private List pros; + @ApiModelProperty("多行数据列表") + private PageInfo recs; + } +} diff --git a/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountDao.java b/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountDao.java new file mode 100644 index 0000000..acabfd5 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountDao.java @@ -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 emps); + + /** + * 查询任务信息 + * @param startTime + * @param endTime + * @param emps + * @param pros + * @return + */ + List selectEmpProTasks(@Param("startTime")Long startTime, + @Param("endTime")Long endTime, + @Param("emps")List emps, + @Param("pros")List pros, + @Param("pageInfo")CommonQueryDto.PageInfo pageInfo); + +} diff --git a/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountEmpDao.java b/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountEmpDao.java new file mode 100644 index 0000000..6d21516 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountEmpDao.java @@ -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 selectEmps(); +} diff --git a/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountProDao.java b/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountProDao.java new file mode 100644 index 0000000..8ea4723 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/persist/dao/PluDailyAccountProDao.java @@ -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 selectProjects(); +} diff --git a/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountEmpMapper.java b/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountEmpMapper.java new file mode 100644 index 0000000..77efca2 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountEmpMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountEmpProTaskMapper.java b/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountEmpProTaskMapper.java new file mode 100644 index 0000000..d13e701 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountEmpProTaskMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountProMapper.java b/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountProMapper.java new file mode 100644 index 0000000..e76773d --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountProMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountTaskMapper.java b/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountTaskMapper.java new file mode 100644 index 0000000..a333ce8 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/persist/mapper/PluDailyAccountTaskMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/ptccsens/service/DailyAccountService.java b/src/main/java/com/ccsens/ptccsens/service/DailyAccountService.java new file mode 100644 index 0000000..4fe8c40 --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/service/DailyAccountService.java @@ -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 empProTasks = + pluDailyAccountDao.selectEmpProTasks(param.getStartTime(),param.getEndTime(),param.getEmps(),param.getPros(),pageInfo); + + //组装返回 + PageInfo 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 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); + } + } +} diff --git a/src/main/java/com/ccsens/ptccsens/service/IDailyAccountService.java b/src/main/java/com/ccsens/ptccsens/service/IDailyAccountService.java new file mode 100644 index 0000000..6edd35f --- /dev/null +++ b/src/main/java/com/ccsens/ptccsens/service/IDailyAccountService.java @@ -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); +} diff --git a/src/main/resources/mapper_dao/PluDailyAccountDao.xml b/src/main/resources/mapper_dao/PluDailyAccountDao.xml new file mode 100644 index 0000000..7d22e86 --- /dev/null +++ b/src/main/resources/mapper_dao/PluDailyAccountDao.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper_dao/PluDailyAccountEmpDao.xml b/src/main/resources/mapper_dao/PluDailyAccountEmpDao.xml new file mode 100644 index 0000000..8a0d742 --- /dev/null +++ b/src/main/resources/mapper_dao/PluDailyAccountEmpDao.xml @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper_dao/PluDailyAccountProDao.xml b/src/main/resources/mapper_dao/PluDailyAccountProDao.xml new file mode 100644 index 0000000..a3382da --- /dev/null +++ b/src/main/resources/mapper_dao/PluDailyAccountProDao.xml @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/PluDailyAccountEmpMapper.xml b/src/main/resources/mapper_raw/PluDailyAccountEmpMapper.xml new file mode 100644 index 0000000..5fdabb9 --- /dev/null +++ b/src/main/resources/mapper_raw/PluDailyAccountEmpMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, emp_name, operator, created_at, updated_at, rec_status + + + + + delete from t_plu_daily_account_emp + where id = #{id,jdbcType=BIGINT} + + + delete from t_plu_daily_account_emp + + + + + + 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 into t_plu_daily_account_emp + + + id, + + + emp_name, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{empName,jdbcType=VARCHAR}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_plu_daily_account_emp + + + 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}, + + + + + + + + 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} + + + + + + update t_plu_daily_account_emp + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/PluDailyAccountEmpProTaskMapper.xml b/src/main/resources/mapper_raw/PluDailyAccountEmpProTaskMapper.xml new file mode 100644 index 0000000..7038c7b --- /dev/null +++ b/src/main/resources/mapper_raw/PluDailyAccountEmpProTaskMapper.xml @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, emp_id, pro_id, task_id, time, operator, created_at, updated_at, rec_status + + + + + delete from t_plu_daily_account_emp_pro_task + where id = #{id,jdbcType=BIGINT} + + + delete from t_plu_daily_account_emp_pro_task + + + + + + 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 into t_plu_daily_account_emp_pro_task + + + id, + + + emp_id, + + + pro_id, + + + task_id, + + + time, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_plu_daily_account_emp_pro_task + + + 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}, + + + + + + + + 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} + + + + + + update t_plu_daily_account_emp_pro_task + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/PluDailyAccountProMapper.xml b/src/main/resources/mapper_raw/PluDailyAccountProMapper.xml new file mode 100644 index 0000000..7d81ab3 --- /dev/null +++ b/src/main/resources/mapper_raw/PluDailyAccountProMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, project_name, project_short_name, project_no, project_manager_name, operator, + created_at, updated_at, rec_status + + + + + delete from t_plu_daily_account_pro + where id = #{id,jdbcType=BIGINT} + + + delete from t_plu_daily_account_pro + + + + + + 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 into t_plu_daily_account_pro + + + id, + + + project_name, + + + project_short_name, + + + project_no, + + + project_manager_name, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_plu_daily_account_pro + + + 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}, + + + + + + + + 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} + + + + + + update t_plu_daily_account_pro + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/PluDailyAccountTaskMapper.xml b/src/main/resources/mapper_raw/PluDailyAccountTaskMapper.xml new file mode 100644 index 0000000..6a2cde5 --- /dev/null +++ b/src/main/resources/mapper_raw/PluDailyAccountTaskMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, cooperation, task_name, deliver_name, deadline, duration, deliver_link, remark, + operator, created_at, updated_at, rec_status + + + + + delete from t_plu_daily_account_task + where id = #{id,jdbcType=BIGINT} + + + delete from t_plu_daily_account_task + + + + + + 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 into t_plu_daily_account_task + + + id, + + + cooperation, + + + task_name, + + + deliver_name, + + + deadline, + + + duration, + + + deliver_link, + + + remark, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_plu_daily_account_task + + + 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}, + + + + + + + + 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} + + + + + + update t_plu_daily_account_task + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mbg.xml b/src/main/resources/mbg.xml index f704237..06b94ad 100644 --- a/src/main/resources/mbg.xml +++ b/src/main/resources/mbg.xml @@ -90,14 +90,18 @@ -
-
+ + -
+ +
+
+
+
diff --git a/src/test/java/com/ccsens/ptccsens/dao/PluDailyAccountDaoTest.java b/src/test/java/com/ccsens/ptccsens/dao/PluDailyAccountDaoTest.java new file mode 100644 index 0000000..59281be --- /dev/null +++ b/src/test/java/com/ccsens/ptccsens/dao/PluDailyAccountDaoTest.java @@ -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 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)); + } +}