41 changed files with 3064 additions and 1490 deletions
@ -1,28 +1,62 @@ |
|||||
package com.ccsens.mt.api; |
package com.ccsens.mt.api; |
||||
|
|
||||
|
import com.ccsens.mt.bean.dto.LevelDto; |
||||
|
import com.ccsens.mt.bean.po.LevelUser; |
||||
|
import com.ccsens.mt.service.ILevelUpService; |
||||
import com.ccsens.util.JsonResponse; |
import com.ccsens.util.JsonResponse; |
||||
|
import com.ccsens.util.RedisUtil; |
||||
import io.swagger.annotations.Api; |
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiImplicitParams; |
import io.swagger.annotations.ApiImplicitParams; |
||||
import io.swagger.annotations.ApiOperation; |
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.data.redis.core.ZSetOperations; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RequestMethod; |
import org.springframework.web.bind.annotation.RequestMethod; |
||||
import org.springframework.web.bind.annotation.RestController; |
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
import javax.servlet.http.HttpServletRequest; |
import javax.servlet.http.HttpServletRequest; |
||||
|
import java.util.Objects; |
||||
|
import java.util.Set; |
||||
|
|
||||
@Api(tags = "DEBUG" , description = "DebugController | ") |
@Api(tags = "DEBUG" , description = "DebugController | ") |
||||
@RestController |
@RestController |
||||
@RequestMapping("/debug") |
@RequestMapping("/debug") |
||||
public class DebugController { |
public class DebugController { |
||||
|
@Resource |
||||
|
private RedisUtil redisUtil; |
||||
|
@Resource |
||||
|
private ILevelUpService levelUpService; |
||||
|
|
||||
@ApiOperation(value = "/测试",notes = "") |
@ApiOperation(value = "/测试",notes = "") |
||||
@ApiImplicitParams({ |
@ApiImplicitParams({ |
||||
}) |
}) |
||||
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
||||
public JsonResponse getSmsCode(HttpServletRequest request) throws Exception { |
public JsonResponse debug(HttpServletRequest request) throws Exception { |
||||
|
|
||||
return JsonResponse.newInstance().ok("测试"); |
return JsonResponse.newInstance().ok("测试"); |
||||
} |
} |
||||
|
|
||||
|
@ApiOperation(value = "/测试自动晋级",notes = "") |
||||
|
@ApiImplicitParams({ |
||||
|
}) |
||||
|
@RequestMapping(value="/levelUp",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse levelUpDebug(HttpServletRequest request) throws Exception { |
||||
|
//比赛结束
|
||||
|
//查询每个选手的分数存入redis(模拟分数存入)
|
||||
|
String key = "compete_1_6"; |
||||
|
Set<ZSetOperations.TypedTuple<Object>> typedTuples = redisUtil.zsRevGetWithScore(key, 0, -1); |
||||
|
typedTuples.forEach(type ->{ |
||||
|
LevelUser levelUser = (LevelUser) type.getValue(); |
||||
|
if(levelUser.getPlayerId() == 1305713484796923904L){ |
||||
|
redisUtil.zsSet(key, levelUser, 20); |
||||
|
} |
||||
|
if(levelUser.getPlayerId() == 1305772321621020672L){ |
||||
|
redisUtil.zsSet(key, levelUser, 22); |
||||
|
} |
||||
|
}); |
||||
|
//调用自动晋级接口
|
||||
|
LevelDto.AutoLevelUpDto autoLevelUpDto = new LevelDto.AutoLevelUpDto(1L,"6"); |
||||
|
levelUpService.autoLevelUp(autoLevelUpDto); |
||||
|
|
||||
|
return JsonResponse.newInstance().ok("OK"); |
||||
|
} |
||||
} |
} |
||||
|
@ -1,106 +1,117 @@ |
|||||
package com.ccsens.tall.bean.po; |
package com.ccsens.tall.bean.po; |
||||
|
|
||||
import java.io.Serializable; |
import java.io.Serializable; |
||||
import java.util.Date; |
import java.util.Date; |
||||
|
|
||||
public class ProTaskDeliverPostLogChecker implements Serializable { |
public class ProTaskDeliverPostLogChecker implements Serializable { |
||||
private Long id; |
private Long id; |
||||
|
|
||||
private Long deliverPostLogId; |
private Long deliverPostLogId; |
||||
|
|
||||
private Long checkerId; |
private Long checkerId; |
||||
|
|
||||
private String remark; |
private String remark; |
||||
|
|
||||
private Integer checkStatus; |
private Integer checkStatus; |
||||
|
|
||||
private Date createdAt; |
private Integer score; |
||||
|
|
||||
private Date updatedAt; |
private Date createdAt; |
||||
|
|
||||
private Byte recStatus; |
private Date updatedAt; |
||||
|
|
||||
private static final long serialVersionUID = 1L; |
private Byte recStatus; |
||||
|
|
||||
public Long getId() { |
private static final long serialVersionUID = 1L; |
||||
return id; |
|
||||
} |
public Long getId() { |
||||
|
return id; |
||||
public void setId(Long id) { |
} |
||||
this.id = id; |
|
||||
} |
public void setId(Long id) { |
||||
|
this.id = id; |
||||
public Long getDeliverPostLogId() { |
} |
||||
return deliverPostLogId; |
|
||||
} |
public Long getDeliverPostLogId() { |
||||
|
return deliverPostLogId; |
||||
public void setDeliverPostLogId(Long deliverPostLogId) { |
} |
||||
this.deliverPostLogId = deliverPostLogId; |
|
||||
} |
public void setDeliverPostLogId(Long deliverPostLogId) { |
||||
|
this.deliverPostLogId = deliverPostLogId; |
||||
public Long getCheckerId() { |
} |
||||
return checkerId; |
|
||||
} |
public Long getCheckerId() { |
||||
|
return checkerId; |
||||
public void setCheckerId(Long checkerId) { |
} |
||||
this.checkerId = checkerId; |
|
||||
} |
public void setCheckerId(Long checkerId) { |
||||
|
this.checkerId = checkerId; |
||||
public String getRemark() { |
} |
||||
return remark; |
|
||||
} |
public String getRemark() { |
||||
|
return remark; |
||||
public void setRemark(String remark) { |
} |
||||
this.remark = remark == null ? null : remark.trim(); |
|
||||
} |
public void setRemark(String remark) { |
||||
|
this.remark = remark == null ? null : remark.trim(); |
||||
public Integer getCheckStatus() { |
} |
||||
return checkStatus; |
|
||||
} |
public Integer getCheckStatus() { |
||||
|
return checkStatus; |
||||
public void setCheckStatus(Integer checkStatus) { |
} |
||||
this.checkStatus = checkStatus; |
|
||||
} |
public void setCheckStatus(Integer checkStatus) { |
||||
|
this.checkStatus = checkStatus; |
||||
public Date getCreatedAt() { |
} |
||||
return createdAt; |
|
||||
} |
public Integer getScore() { |
||||
|
return score; |
||||
public void setCreatedAt(Date createdAt) { |
} |
||||
this.createdAt = createdAt; |
|
||||
} |
public void setScore(Integer score) { |
||||
|
this.score = score; |
||||
public Date getUpdatedAt() { |
} |
||||
return updatedAt; |
|
||||
} |
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
public void setUpdatedAt(Date updatedAt) { |
} |
||||
this.updatedAt = updatedAt; |
|
||||
} |
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
public Byte getRecStatus() { |
} |
||||
return recStatus; |
|
||||
} |
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
public void setRecStatus(Byte recStatus) { |
} |
||||
this.recStatus = recStatus; |
|
||||
} |
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
@Override |
} |
||||
public String toString() { |
|
||||
StringBuilder sb = new StringBuilder(); |
public Byte getRecStatus() { |
||||
sb.append(getClass().getSimpleName()); |
return recStatus; |
||||
sb.append(" ["); |
} |
||||
sb.append("Hash = ").append(hashCode()); |
|
||||
sb.append(", id=").append(id); |
public void setRecStatus(Byte recStatus) { |
||||
sb.append(", deliverPostLogId=").append(deliverPostLogId); |
this.recStatus = recStatus; |
||||
sb.append(", checkerId=").append(checkerId); |
} |
||||
sb.append(", remark=").append(remark); |
|
||||
sb.append(", checkStatus=").append(checkStatus); |
@Override |
||||
sb.append(", createdAt=").append(createdAt); |
public String toString() { |
||||
sb.append(", updatedAt=").append(updatedAt); |
StringBuilder sb = new StringBuilder(); |
||||
sb.append(", recStatus=").append(recStatus); |
sb.append(getClass().getSimpleName()); |
||||
sb.append("]"); |
sb.append(" ["); |
||||
return sb.toString(); |
sb.append("Hash = ").append(hashCode()); |
||||
} |
sb.append(", id=").append(id); |
||||
|
sb.append(", deliverPostLogId=").append(deliverPostLogId); |
||||
|
sb.append(", checkerId=").append(checkerId); |
||||
|
sb.append(", remark=").append(remark); |
||||
|
sb.append(", checkStatus=").append(checkStatus); |
||||
|
sb.append(", score=").append(score); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
} |
} |
File diff suppressed because it is too large
@ -0,0 +1,95 @@ |
|||||
|
package com.ccsens.tall.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class SysImitation implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long userId; |
||||
|
|
||||
|
private Long projectId; |
||||
|
|
||||
|
private Long roleId; |
||||
|
|
||||
|
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 getUserId() { |
||||
|
return userId; |
||||
|
} |
||||
|
|
||||
|
public void setUserId(Long userId) { |
||||
|
this.userId = userId; |
||||
|
} |
||||
|
|
||||
|
public Long getProjectId() { |
||||
|
return projectId; |
||||
|
} |
||||
|
|
||||
|
public void setProjectId(Long projectId) { |
||||
|
this.projectId = projectId; |
||||
|
} |
||||
|
|
||||
|
public Long getRoleId() { |
||||
|
return roleId; |
||||
|
} |
||||
|
|
||||
|
public void setRoleId(Long roleId) { |
||||
|
this.roleId = roleId; |
||||
|
} |
||||
|
|
||||
|
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(", userId=").append(userId); |
||||
|
sb.append(", projectId=").append(projectId); |
||||
|
sb.append(", roleId=").append(roleId); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,621 @@ |
|||||
|
package com.ccsens.tall.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class SysImitationExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public SysImitationExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdIsNull() { |
||||
|
addCriterion("user_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdIsNotNull() { |
||||
|
addCriterion("user_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdEqualTo(Long value) { |
||||
|
addCriterion("user_id =", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdNotEqualTo(Long value) { |
||||
|
addCriterion("user_id <>", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdGreaterThan(Long value) { |
||||
|
addCriterion("user_id >", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_id >=", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdLessThan(Long value) { |
||||
|
addCriterion("user_id <", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_id <=", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdIn(List<Long> values) { |
||||
|
addCriterion("user_id in", values, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdNotIn(List<Long> values) { |
||||
|
addCriterion("user_id not in", values, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("user_id between", value1, value2, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("user_id not between", value1, value2, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdIsNull() { |
||||
|
addCriterion("project_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdIsNotNull() { |
||||
|
addCriterion("project_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdEqualTo(Long value) { |
||||
|
addCriterion("project_id =", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdNotEqualTo(Long value) { |
||||
|
addCriterion("project_id <>", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdGreaterThan(Long value) { |
||||
|
addCriterion("project_id >", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("project_id >=", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdLessThan(Long value) { |
||||
|
addCriterion("project_id <", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("project_id <=", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdIn(List<Long> values) { |
||||
|
addCriterion("project_id in", values, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdNotIn(List<Long> values) { |
||||
|
addCriterion("project_id not in", values, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("project_id between", value1, value2, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("project_id not between", value1, value2, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdIsNull() { |
||||
|
addCriterion("role_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdIsNotNull() { |
||||
|
addCriterion("role_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdEqualTo(Long value) { |
||||
|
addCriterion("role_id =", value, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdNotEqualTo(Long value) { |
||||
|
addCriterion("role_id <>", value, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdGreaterThan(Long value) { |
||||
|
addCriterion("role_id >", value, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("role_id >=", value, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdLessThan(Long value) { |
||||
|
addCriterion("role_id <", value, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("role_id <=", value, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdIn(List<Long> values) { |
||||
|
addCriterion("role_id in", values, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdNotIn(List<Long> values) { |
||||
|
addCriterion("role_id not in", values, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("role_id between", value1, value2, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRoleIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("role_id not between", value1, value2, "roleId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,31 +1,30 @@ |
|||||
package com.ccsens.tall.persist.mapper; |
package com.ccsens.tall.persist.mapper; |
||||
|
|
||||
import com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker; |
import com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker; |
||||
import com.ccsens.tall.bean.po.ProTaskDeliverPostLogCheckerExample; |
import com.ccsens.tall.bean.po.ProTaskDeliverPostLogCheckerExample; |
||||
import org.apache.ibatis.annotations.Param; |
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
import java.util.List; |
|
||||
|
public interface ProTaskDeliverPostLogCheckerMapper { |
||||
public interface ProTaskDeliverPostLogCheckerMapper { |
long countByExample(ProTaskDeliverPostLogCheckerExample example); |
||||
long countByExample(ProTaskDeliverPostLogCheckerExample example); |
|
||||
|
int deleteByExample(ProTaskDeliverPostLogCheckerExample example); |
||||
int deleteByExample(ProTaskDeliverPostLogCheckerExample example); |
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
int deleteByPrimaryKey(Long id); |
|
||||
|
int insert(ProTaskDeliverPostLogChecker record); |
||||
int insert(ProTaskDeliverPostLogChecker record); |
|
||||
|
int insertSelective(ProTaskDeliverPostLogChecker record); |
||||
int insertSelective(ProTaskDeliverPostLogChecker record); |
|
||||
|
List<ProTaskDeliverPostLogChecker> selectByExample(ProTaskDeliverPostLogCheckerExample example); |
||||
List<ProTaskDeliverPostLogChecker> selectByExample(ProTaskDeliverPostLogCheckerExample example); |
|
||||
|
ProTaskDeliverPostLogChecker selectByPrimaryKey(Long id); |
||||
ProTaskDeliverPostLogChecker selectByPrimaryKey(Long id); |
|
||||
|
int updateByExampleSelective(@Param("record") ProTaskDeliverPostLogChecker record, @Param("example") ProTaskDeliverPostLogCheckerExample example); |
||||
int updateByExampleSelective(@Param("record") ProTaskDeliverPostLogChecker record, @Param("example") ProTaskDeliverPostLogCheckerExample example); |
|
||||
|
int updateByExample(@Param("record") ProTaskDeliverPostLogChecker record, @Param("example") ProTaskDeliverPostLogCheckerExample example); |
||||
int updateByExample(@Param("record") ProTaskDeliverPostLogChecker record, @Param("example") ProTaskDeliverPostLogCheckerExample example); |
|
||||
|
int updateByPrimaryKeySelective(ProTaskDeliverPostLogChecker record); |
||||
int updateByPrimaryKeySelective(ProTaskDeliverPostLogChecker record); |
|
||||
|
int updateByPrimaryKey(ProTaskDeliverPostLogChecker record); |
||||
int updateByPrimaryKey(ProTaskDeliverPostLogChecker record); |
|
||||
} |
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.tall.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.tall.bean.po.SysImitation; |
||||
|
import com.ccsens.tall.bean.po.SysImitationExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface SysImitationMapper { |
||||
|
long countByExample(SysImitationExample example); |
||||
|
|
||||
|
int deleteByExample(SysImitationExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(SysImitation record); |
||||
|
|
||||
|
int insertSelective(SysImitation record); |
||||
|
|
||||
|
List<SysImitation> selectByExample(SysImitationExample example); |
||||
|
|
||||
|
SysImitation selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") SysImitation record, @Param("example") SysImitationExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") SysImitation record, @Param("example") SysImitationExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(SysImitation record); |
||||
|
|
||||
|
int updateByPrimaryKey(SysImitation record); |
||||
|
} |
@ -1,259 +1,276 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.ccsens.tall.persist.mapper.ProTaskDeliverPostLogCheckerMapper"> |
<mapper namespace="com.ccsens.tall.persist.mapper.ProTaskDeliverPostLogCheckerMapper"> |
||||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
||||
<id column="id" jdbcType="BIGINT" property="id" /> |
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
<result column="deliver_post_log_id" jdbcType="BIGINT" property="deliverPostLogId" /> |
<result column="deliver_post_log_id" jdbcType="BIGINT" property="deliverPostLogId" /> |
||||
<result column="checker_id" jdbcType="BIGINT" property="checkerId" /> |
<result column="checker_id" jdbcType="BIGINT" property="checkerId" /> |
||||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
||||
<result column="check_status" jdbcType="INTEGER" property="checkStatus" /> |
<result column="check_status" jdbcType="INTEGER" property="checkStatus" /> |
||||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
<result column="score" jdbcType="INTEGER" property="score" /> |
||||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
</resultMap> |
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
<sql id="Example_Where_Clause"> |
</resultMap> |
||||
<where> |
<sql id="Example_Where_Clause"> |
||||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
<where> |
||||
<if test="criteria.valid"> |
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<if test="criteria.valid"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<choose> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<when test="criterion.noValue"> |
<choose> |
||||
and ${criterion.condition} |
<when test="criterion.noValue"> |
||||
</when> |
and ${criterion.condition} |
||||
<when test="criterion.singleValue"> |
</when> |
||||
and ${criterion.condition} #{criterion.value} |
<when test="criterion.singleValue"> |
||||
</when> |
and ${criterion.condition} #{criterion.value} |
||||
<when test="criterion.betweenValue"> |
</when> |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
<when test="criterion.betweenValue"> |
||||
</when> |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
<when test="criterion.listValue"> |
</when> |
||||
and ${criterion.condition} |
<when test="criterion.listValue"> |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
and ${criterion.condition} |
||||
#{listItem} |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
</foreach> |
#{listItem} |
||||
</when> |
</foreach> |
||||
</choose> |
</when> |
||||
</foreach> |
</choose> |
||||
</trim> |
</foreach> |
||||
</if> |
</trim> |
||||
</foreach> |
</if> |
||||
</where> |
</foreach> |
||||
</sql> |
</where> |
||||
<sql id="Update_By_Example_Where_Clause"> |
</sql> |
||||
<where> |
<sql id="Update_By_Example_Where_Clause"> |
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
<where> |
||||
<if test="criteria.valid"> |
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<if test="criteria.valid"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<choose> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<when test="criterion.noValue"> |
<choose> |
||||
and ${criterion.condition} |
<when test="criterion.noValue"> |
||||
</when> |
and ${criterion.condition} |
||||
<when test="criterion.singleValue"> |
</when> |
||||
and ${criterion.condition} #{criterion.value} |
<when test="criterion.singleValue"> |
||||
</when> |
and ${criterion.condition} #{criterion.value} |
||||
<when test="criterion.betweenValue"> |
</when> |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
<when test="criterion.betweenValue"> |
||||
</when> |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
<when test="criterion.listValue"> |
</when> |
||||
and ${criterion.condition} |
<when test="criterion.listValue"> |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
and ${criterion.condition} |
||||
#{listItem} |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
</foreach> |
#{listItem} |
||||
</when> |
</foreach> |
||||
</choose> |
</when> |
||||
</foreach> |
</choose> |
||||
</trim> |
</foreach> |
||||
</if> |
</trim> |
||||
</foreach> |
</if> |
||||
</where> |
</foreach> |
||||
</sql> |
</where> |
||||
<sql id="Base_Column_List"> |
</sql> |
||||
id, deliver_post_log_id, checker_id, remark, check_status, created_at, updated_at, |
<sql id="Base_Column_List"> |
||||
rec_status |
id, deliver_post_log_id, checker_id, remark, check_status, score, created_at, updated_at, |
||||
</sql> |
rec_status |
||||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogCheckerExample" resultMap="BaseResultMap"> |
</sql> |
||||
select |
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogCheckerExample" resultMap="BaseResultMap"> |
||||
<if test="distinct"> |
select |
||||
distinct |
<if test="distinct"> |
||||
</if> |
distinct |
||||
<include refid="Base_Column_List" /> |
</if> |
||||
from t_pro_task_deliver_post_log_checker |
<include refid="Base_Column_List" /> |
||||
<if test="_parameter != null"> |
from t_pro_task_deliver_post_log_checker |
||||
<include refid="Example_Where_Clause" /> |
<if test="_parameter != null"> |
||||
</if> |
<include refid="Example_Where_Clause" /> |
||||
<if test="orderByClause != null"> |
</if> |
||||
order by ${orderByClause} |
<if test="orderByClause != null"> |
||||
</if> |
order by ${orderByClause} |
||||
</select> |
</if> |
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
</select> |
||||
select |
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
<include refid="Base_Column_List" /> |
select |
||||
from t_pro_task_deliver_post_log_checker |
<include refid="Base_Column_List" /> |
||||
where id = #{id,jdbcType=BIGINT} |
from t_pro_task_deliver_post_log_checker |
||||
</select> |
where id = #{id,jdbcType=BIGINT} |
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
</select> |
||||
delete from t_pro_task_deliver_post_log_checker |
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
where id = #{id,jdbcType=BIGINT} |
delete from t_pro_task_deliver_post_log_checker |
||||
</delete> |
where id = #{id,jdbcType=BIGINT} |
||||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogCheckerExample"> |
</delete> |
||||
delete from t_pro_task_deliver_post_log_checker |
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogCheckerExample"> |
||||
<if test="_parameter != null"> |
delete from t_pro_task_deliver_post_log_checker |
||||
<include refid="Example_Where_Clause" /> |
<if test="_parameter != null"> |
||||
</if> |
<include refid="Example_Where_Clause" /> |
||||
</delete> |
</if> |
||||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
</delete> |
||||
insert into t_pro_task_deliver_post_log_checker (id, deliver_post_log_id, checker_id, |
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
||||
remark, check_status, created_at, |
insert into t_pro_task_deliver_post_log_checker (id, deliver_post_log_id, checker_id, |
||||
updated_at, rec_status) |
remark, check_status, score, |
||||
values (#{id,jdbcType=BIGINT}, #{deliverPostLogId,jdbcType=BIGINT}, #{checkerId,jdbcType=BIGINT}, |
created_at, updated_at, rec_status |
||||
#{remark,jdbcType=VARCHAR}, #{checkStatus,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, |
) |
||||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
values (#{id,jdbcType=BIGINT}, #{deliverPostLogId,jdbcType=BIGINT}, #{checkerId,jdbcType=BIGINT}, |
||||
</insert> |
#{remark,jdbcType=VARCHAR}, #{checkStatus,jdbcType=INTEGER}, #{score,jdbcType=INTEGER}, |
||||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
insert into t_pro_task_deliver_post_log_checker |
) |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
</insert> |
||||
<if test="id != null"> |
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
||||
id, |
insert into t_pro_task_deliver_post_log_checker |
||||
</if> |
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="deliverPostLogId != null"> |
<if test="id != null"> |
||||
deliver_post_log_id, |
id, |
||||
</if> |
</if> |
||||
<if test="checkerId != null"> |
<if test="deliverPostLogId != null"> |
||||
checker_id, |
deliver_post_log_id, |
||||
</if> |
</if> |
||||
<if test="remark != null"> |
<if test="checkerId != null"> |
||||
remark, |
checker_id, |
||||
</if> |
</if> |
||||
<if test="checkStatus != null"> |
<if test="remark != null"> |
||||
check_status, |
remark, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="checkStatus != null"> |
||||
created_at, |
check_status, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="score != null"> |
||||
updated_at, |
score, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="createdAt != null"> |
||||
rec_status, |
created_at, |
||||
</if> |
</if> |
||||
</trim> |
<if test="updatedAt != null"> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
updated_at, |
||||
<if test="id != null"> |
</if> |
||||
#{id,jdbcType=BIGINT}, |
<if test="recStatus != null"> |
||||
</if> |
rec_status, |
||||
<if test="deliverPostLogId != null"> |
</if> |
||||
#{deliverPostLogId,jdbcType=BIGINT}, |
</trim> |
||||
</if> |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="checkerId != null"> |
<if test="id != null"> |
||||
#{checkerId,jdbcType=BIGINT}, |
#{id,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="remark != null"> |
<if test="deliverPostLogId != null"> |
||||
#{remark,jdbcType=VARCHAR}, |
#{deliverPostLogId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="checkStatus != null"> |
<if test="checkerId != null"> |
||||
#{checkStatus,jdbcType=INTEGER}, |
#{checkerId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="remark != null"> |
||||
#{createdAt,jdbcType=TIMESTAMP}, |
#{remark,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="checkStatus != null"> |
||||
#{updatedAt,jdbcType=TIMESTAMP}, |
#{checkStatus,jdbcType=INTEGER}, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="score != null"> |
||||
#{recStatus,jdbcType=TINYINT}, |
#{score,jdbcType=INTEGER}, |
||||
</if> |
</if> |
||||
</trim> |
<if test="createdAt != null"> |
||||
</insert> |
#{createdAt,jdbcType=TIMESTAMP}, |
||||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogCheckerExample" resultType="java.lang.Long"> |
</if> |
||||
select count(*) from t_pro_task_deliver_post_log_checker |
<if test="updatedAt != null"> |
||||
<if test="_parameter != null"> |
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
<include refid="Example_Where_Clause" /> |
</if> |
||||
</if> |
<if test="recStatus != null"> |
||||
</select> |
#{recStatus,jdbcType=TINYINT}, |
||||
<update id="updateByExampleSelective" parameterType="map"> |
</if> |
||||
update t_pro_task_deliver_post_log_checker |
</trim> |
||||
<set> |
</insert> |
||||
<if test="record.id != null"> |
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogCheckerExample" resultType="java.lang.Long"> |
||||
id = #{record.id,jdbcType=BIGINT}, |
select count(*) from t_pro_task_deliver_post_log_checker |
||||
</if> |
<if test="_parameter != null"> |
||||
<if test="record.deliverPostLogId != null"> |
<include refid="Example_Where_Clause" /> |
||||
deliver_post_log_id = #{record.deliverPostLogId,jdbcType=BIGINT}, |
</if> |
||||
</if> |
</select> |
||||
<if test="record.checkerId != null"> |
<update id="updateByExampleSelective" parameterType="map"> |
||||
checker_id = #{record.checkerId,jdbcType=BIGINT}, |
update t_pro_task_deliver_post_log_checker |
||||
</if> |
<set> |
||||
<if test="record.remark != null"> |
<if test="record.id != null"> |
||||
remark = #{record.remark,jdbcType=VARCHAR}, |
id = #{record.id,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.checkStatus != null"> |
<if test="record.deliverPostLogId != null"> |
||||
check_status = #{record.checkStatus,jdbcType=INTEGER}, |
deliver_post_log_id = #{record.deliverPostLogId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.createdAt != null"> |
<if test="record.checkerId != null"> |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
checker_id = #{record.checkerId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.updatedAt != null"> |
<if test="record.remark != null"> |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
remark = #{record.remark,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="record.recStatus != null"> |
<if test="record.checkStatus != null"> |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
check_status = #{record.checkStatus,jdbcType=INTEGER}, |
||||
</if> |
</if> |
||||
</set> |
<if test="record.score != null"> |
||||
<if test="_parameter != null"> |
score = #{record.score,jdbcType=INTEGER}, |
||||
<include refid="Update_By_Example_Where_Clause" /> |
</if> |
||||
</if> |
<if test="record.createdAt != null"> |
||||
</update> |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
<update id="updateByExample" parameterType="map"> |
</if> |
||||
update t_pro_task_deliver_post_log_checker |
<if test="record.updatedAt != null"> |
||||
set id = #{record.id,jdbcType=BIGINT}, |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
deliver_post_log_id = #{record.deliverPostLogId,jdbcType=BIGINT}, |
</if> |
||||
checker_id = #{record.checkerId,jdbcType=BIGINT}, |
<if test="record.recStatus != null"> |
||||
remark = #{record.remark,jdbcType=VARCHAR}, |
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
check_status = #{record.checkStatus,jdbcType=INTEGER}, |
</if> |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
</set> |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
<if test="_parameter != null"> |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
<include refid="Update_By_Example_Where_Clause" /> |
||||
<if test="_parameter != null"> |
</if> |
||||
<include refid="Update_By_Example_Where_Clause" /> |
</update> |
||||
</if> |
<update id="updateByExample" parameterType="map"> |
||||
</update> |
update t_pro_task_deliver_post_log_checker |
||||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
set id = #{record.id,jdbcType=BIGINT}, |
||||
update t_pro_task_deliver_post_log_checker |
deliver_post_log_id = #{record.deliverPostLogId,jdbcType=BIGINT}, |
||||
<set> |
checker_id = #{record.checkerId,jdbcType=BIGINT}, |
||||
<if test="deliverPostLogId != null"> |
remark = #{record.remark,jdbcType=VARCHAR}, |
||||
deliver_post_log_id = #{deliverPostLogId,jdbcType=BIGINT}, |
check_status = #{record.checkStatus,jdbcType=INTEGER}, |
||||
</if> |
score = #{record.score,jdbcType=INTEGER}, |
||||
<if test="checkerId != null"> |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
checker_id = #{checkerId,jdbcType=BIGINT}, |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
<if test="remark != null"> |
<if test="_parameter != null"> |
||||
remark = #{remark,jdbcType=VARCHAR}, |
<include refid="Update_By_Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
<if test="checkStatus != null"> |
</update> |
||||
check_status = #{checkStatus,jdbcType=INTEGER}, |
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
||||
</if> |
update t_pro_task_deliver_post_log_checker |
||||
<if test="createdAt != null"> |
<set> |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
<if test="deliverPostLogId != null"> |
||||
</if> |
deliver_post_log_id = #{deliverPostLogId,jdbcType=BIGINT}, |
||||
<if test="updatedAt != null"> |
</if> |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
<if test="checkerId != null"> |
||||
</if> |
checker_id = #{checkerId,jdbcType=BIGINT}, |
||||
<if test="recStatus != null"> |
</if> |
||||
rec_status = #{recStatus,jdbcType=TINYINT}, |
<if test="remark != null"> |
||||
</if> |
remark = #{remark,jdbcType=VARCHAR}, |
||||
</set> |
</if> |
||||
where id = #{id,jdbcType=BIGINT} |
<if test="checkStatus != null"> |
||||
</update> |
check_status = #{checkStatus,jdbcType=INTEGER}, |
||||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
</if> |
||||
update t_pro_task_deliver_post_log_checker |
<if test="score != null"> |
||||
set deliver_post_log_id = #{deliverPostLogId,jdbcType=BIGINT}, |
score = #{score,jdbcType=INTEGER}, |
||||
checker_id = #{checkerId,jdbcType=BIGINT}, |
</if> |
||||
remark = #{remark,jdbcType=VARCHAR}, |
<if test="createdAt != null"> |
||||
check_status = #{checkStatus,jdbcType=INTEGER}, |
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
</if> |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
<if test="updatedAt != null"> |
||||
rec_status = #{recStatus,jdbcType=TINYINT} |
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
where id = #{id,jdbcType=BIGINT} |
</if> |
||||
</update> |
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProTaskDeliverPostLogChecker"> |
||||
|
update t_pro_task_deliver_post_log_checker |
||||
|
set deliver_post_log_id = #{deliverPostLogId,jdbcType=BIGINT}, |
||||
|
checker_id = #{checkerId,jdbcType=BIGINT}, |
||||
|
remark = #{remark,jdbcType=VARCHAR}, |
||||
|
check_status = #{checkStatus,jdbcType=INTEGER}, |
||||
|
score = #{score,jdbcType=INTEGER}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
</mapper> |
</mapper> |
@ -0,0 +1,243 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.tall.persist.mapper.SysImitationMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.SysImitation"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
||||
|
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
||||
|
<result column="role_id" jdbcType="BIGINT" property="roleId" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, user_id, project_id, role_id, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysImitationExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_sys_imitation |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_sys_imitation |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_sys_imitation |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.SysImitationExample"> |
||||
|
delete from t_sys_imitation |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysImitation"> |
||||
|
insert into t_sys_imitation (id, user_id, project_id, |
||||
|
role_id, created_at, updated_at, |
||||
|
rec_status) |
||||
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, |
||||
|
#{roleId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
#{recStatus,jdbcType=TINYINT}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysImitation"> |
||||
|
insert into t_sys_imitation |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
user_id, |
||||
|
</if> |
||||
|
<if test="projectId != null"> |
||||
|
project_id, |
||||
|
</if> |
||||
|
<if test="roleId != null"> |
||||
|
role_id, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
#{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="projectId != null"> |
||||
|
#{projectId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="roleId != null"> |
||||
|
#{roleId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysImitationExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_sys_imitation |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_sys_imitation |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.userId != null"> |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.projectId != null"> |
||||
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.roleId != null"> |
||||
|
role_id = #{record.roleId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_sys_imitation |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
||||
|
role_id = #{record.roleId,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.SysImitation"> |
||||
|
update t_sys_imitation |
||||
|
<set> |
||||
|
<if test="userId != null"> |
||||
|
user_id = #{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="projectId != null"> |
||||
|
project_id = #{projectId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="roleId != null"> |
||||
|
role_id = #{roleId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.SysImitation"> |
||||
|
update t_sys_imitation |
||||
|
set user_id = #{userId,jdbcType=BIGINT}, |
||||
|
project_id = #{projectId,jdbcType=BIGINT}, |
||||
|
role_id = #{roleId,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
Loading…
Reference in new issue