28 changed files with 2047 additions and 482 deletions
@ -0,0 +1,134 @@ |
|||
kind: pipeline |
|||
type: docker |
|||
name: default |
|||
|
|||
# 挂载的主机卷,可以映射到docker容器中 |
|||
volumes: |
|||
# maven构建缓存(宿主机目录) |
|||
- name: ssh_key |
|||
host: |
|||
path: /root/.ssh/ |
|||
- name: cache |
|||
host: |
|||
path: /var/lib/cache |
|||
- name: data |
|||
host: |
|||
path: /var/lib/data |
|||
|
|||
steps: |
|||
- name: test |
|||
image: alpine |
|||
pull: if-not-exists |
|||
commands: |
|||
- echo hello |
|||
- echo world |
|||
|
|||
- name: build-maven |
|||
image: maven:3.8.4-jdk-8 |
|||
pull: if-not-exists # default always |
|||
volumes: |
|||
- name: cache |
|||
path: /root/.m2 |
|||
commands: |
|||
- ls |
|||
- mvn -version |
|||
- java -version |
|||
- mvn clean package -Dmaven.test.skip=true |
|||
|
|||
- name: deploy-scp |
|||
image: appleboy/drone-scp |
|||
pull: if-not-exists |
|||
volumes: |
|||
- name: ssh_key |
|||
path: /root/.ssh/ |
|||
settings: |
|||
host: test.tall.wiki |
|||
port: 22 |
|||
username: root |
|||
key_path: /root/.ssh/id_rsa |
|||
rm: false # true则会删除目标目录重建 |
|||
target: /home/iacd-platform-drone |
|||
source: target/*.jar |
|||
strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target |
|||
|
|||
- name: run-ssh |
|||
image: appleboy/drone-ssh |
|||
pull: if-not-exists |
|||
volumes: |
|||
- name: ssh_key |
|||
path: /root/.ssh/ |
|||
settings: |
|||
settings: |
|||
host: test.tall.wiki |
|||
port: 22 |
|||
username: root |
|||
key_path: /root/.ssh/id_rsa |
|||
script_stop: true # stop script after first failure |
|||
#command_timeout: 30s # 30seconds, the maximum amount of time for the execute commands, default is 10 minutes. |
|||
script: |
|||
- cd /home/iacd-platform-drone |
|||
- ./re.sh > /dev/null 2> /dev/null & |
|||
|
|||
- name: notify-email |
|||
image: drillster/drone-email |
|||
pull: if-not-exists |
|||
settings: |
|||
host: smtp.qiye.aliyun.com #例如 smtp.qq.com |
|||
port: 465 #例如QQ邮箱端口465 |
|||
username: devops@ccsens.com #邮箱用户名 |
|||
password: #邮箱密码 |
|||
from_secret: orgsecret_password_mail_devops |
|||
from: devops@ccsens.com |
|||
recipients: weizezhao@ccsens.com #收件人,多个用,隔开 |
|||
when: #执行条件 |
|||
status: |
|||
- success |
|||
- changed |
|||
- failure |
|||
|
|||
- name: notify-wechatwork |
|||
image: fifsky/drone-wechat-work |
|||
pull: if-not-exists |
|||
settings: |
|||
url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=b2b93e9a-128b-41d4-8dce-12004e3f48b9 |
|||
msgtype: markdown |
|||
content: | |
|||
{{if eq .Status "success" }} |
|||
#### 🎉 ${DRONE_REPO} 构建成功 |
|||
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) |
|||
> Author: ${DRONE_COMMIT_AUTHOR} |
|||
> [点击查看](${DRONE_BUILD_LINK}) |
|||
{{else}} |
|||
#### ❌ ${DRONE_REPO} 构建失败 |
|||
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) |
|||
> Author: ${DRONE_COMMIT_AUTHOR} |
|||
> 请立即修复!!! |
|||
> [点击查看](${DRONE_BUILD_LINK}) |
|||
{{end}} |
|||
when: |
|||
status: |
|||
- failure |
|||
- success |
|||
|
|||
# - name: notify-dingtalk |
|||
# image: lddsb/drone-dingtalk-message |
|||
# environment: |
|||
# PASSWORD: |
|||
# from_secret: password_mail_devops |
|||
# settings: |
|||
# token: your-dingtalk-robot-access-token |
|||
# type: markdown |
|||
# message_color: true |
|||
# message_pic: true |
|||
# sha_link: true |
|||
|
|||
# -name: notify-slack |
|||
# image: plugins/slack |
|||
# webhook: https://hooks.slack.com/ www.dijiuyy.com services/xxx/xxx/xxx |
|||
# channel: dev |
|||
# template: > |
|||
# {{#success build.status}} |
|||
# build {{build.number}} succeeded. Good job. |
|||
# {{else}} |
|||
# build {{build.number}} failed. Fix me please. |
|||
# {{/success}} |
@ -0,0 +1,151 @@ |
|||
package com.ccsens.yanyuan.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
public class TrainProcessPoint implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long cardId; |
|||
|
|||
private Byte sign; |
|||
|
|||
private BigDecimal coordinatesX; |
|||
|
|||
private BigDecimal coordinatesY; |
|||
|
|||
private Long time; |
|||
|
|||
private Long realTime; |
|||
|
|||
private Integer angle; |
|||
|
|||
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 getCardId() { |
|||
return cardId; |
|||
} |
|||
|
|||
public void setCardId(Long cardId) { |
|||
this.cardId = cardId; |
|||
} |
|||
|
|||
public Byte getSign() { |
|||
return sign; |
|||
} |
|||
|
|||
public void setSign(Byte sign) { |
|||
this.sign = sign; |
|||
} |
|||
|
|||
public BigDecimal getCoordinatesX() { |
|||
return coordinatesX; |
|||
} |
|||
|
|||
public void setCoordinatesX(BigDecimal coordinatesX) { |
|||
this.coordinatesX = coordinatesX; |
|||
} |
|||
|
|||
public BigDecimal getCoordinatesY() { |
|||
return coordinatesY; |
|||
} |
|||
|
|||
public void setCoordinatesY(BigDecimal coordinatesY) { |
|||
this.coordinatesY = coordinatesY; |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
public Long getRealTime() { |
|||
return realTime; |
|||
} |
|||
|
|||
public void setRealTime(Long realTime) { |
|||
this.realTime = realTime; |
|||
} |
|||
|
|||
public Integer getAngle() { |
|||
return angle; |
|||
} |
|||
|
|||
public void setAngle(Integer angle) { |
|||
this.angle = angle; |
|||
} |
|||
|
|||
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(", cardId=").append(cardId); |
|||
sb.append(", sign=").append(sign); |
|||
sb.append(", coordinatesX=").append(coordinatesX); |
|||
sb.append(", coordinatesY=").append(coordinatesY); |
|||
sb.append(", time=").append(time); |
|||
sb.append(", realTime=").append(realTime); |
|||
sb.append(", angle=").append(angle); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,922 @@ |
|||
package com.ccsens.yanyuan.bean.po; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class TrainProcessPointExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public TrainProcessPointExample() { |
|||
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 andCardIdIsNull() { |
|||
addCriterion("card_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdIsNotNull() { |
|||
addCriterion("card_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdEqualTo(Long value) { |
|||
addCriterion("card_id =", value, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdNotEqualTo(Long value) { |
|||
addCriterion("card_id <>", value, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdGreaterThan(Long value) { |
|||
addCriterion("card_id >", value, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("card_id >=", value, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdLessThan(Long value) { |
|||
addCriterion("card_id <", value, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("card_id <=", value, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdIn(List<Long> values) { |
|||
addCriterion("card_id in", values, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdNotIn(List<Long> values) { |
|||
addCriterion("card_id not in", values, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdBetween(Long value1, Long value2) { |
|||
addCriterion("card_id between", value1, value2, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCardIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("card_id not between", value1, value2, "cardId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignIsNull() { |
|||
addCriterion("sign is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignIsNotNull() { |
|||
addCriterion("sign is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignEqualTo(Byte value) { |
|||
addCriterion("sign =", value, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignNotEqualTo(Byte value) { |
|||
addCriterion("sign <>", value, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignGreaterThan(Byte value) { |
|||
addCriterion("sign >", value, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("sign >=", value, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignLessThan(Byte value) { |
|||
addCriterion("sign <", value, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignLessThanOrEqualTo(Byte value) { |
|||
addCriterion("sign <=", value, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignIn(List<Byte> values) { |
|||
addCriterion("sign in", values, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignNotIn(List<Byte> values) { |
|||
addCriterion("sign not in", values, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignBetween(Byte value1, Byte value2) { |
|||
addCriterion("sign between", value1, value2, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("sign not between", value1, value2, "sign"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXIsNull() { |
|||
addCriterion("coordinates_x is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXIsNotNull() { |
|||
addCriterion("coordinates_x is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXEqualTo(BigDecimal value) { |
|||
addCriterion("coordinates_x =", value, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXNotEqualTo(BigDecimal value) { |
|||
addCriterion("coordinates_x <>", value, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXGreaterThan(BigDecimal value) { |
|||
addCriterion("coordinates_x >", value, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXGreaterThanOrEqualTo(BigDecimal value) { |
|||
addCriterion("coordinates_x >=", value, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXLessThan(BigDecimal value) { |
|||
addCriterion("coordinates_x <", value, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXLessThanOrEqualTo(BigDecimal value) { |
|||
addCriterion("coordinates_x <=", value, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXIn(List<BigDecimal> values) { |
|||
addCriterion("coordinates_x in", values, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXNotIn(List<BigDecimal> values) { |
|||
addCriterion("coordinates_x not in", values, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXBetween(BigDecimal value1, BigDecimal value2) { |
|||
addCriterion("coordinates_x between", value1, value2, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesXNotBetween(BigDecimal value1, BigDecimal value2) { |
|||
addCriterion("coordinates_x not between", value1, value2, "coordinatesX"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYIsNull() { |
|||
addCriterion("coordinates_y is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYIsNotNull() { |
|||
addCriterion("coordinates_y is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYEqualTo(BigDecimal value) { |
|||
addCriterion("coordinates_y =", value, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYNotEqualTo(BigDecimal value) { |
|||
addCriterion("coordinates_y <>", value, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYGreaterThan(BigDecimal value) { |
|||
addCriterion("coordinates_y >", value, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYGreaterThanOrEqualTo(BigDecimal value) { |
|||
addCriterion("coordinates_y >=", value, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYLessThan(BigDecimal value) { |
|||
addCriterion("coordinates_y <", value, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYLessThanOrEqualTo(BigDecimal value) { |
|||
addCriterion("coordinates_y <=", value, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYIn(List<BigDecimal> values) { |
|||
addCriterion("coordinates_y in", values, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYNotIn(List<BigDecimal> values) { |
|||
addCriterion("coordinates_y not in", values, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYBetween(BigDecimal value1, BigDecimal value2) { |
|||
addCriterion("coordinates_y between", value1, value2, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoordinatesYNotBetween(BigDecimal value1, BigDecimal value2) { |
|||
addCriterion("coordinates_y not between", value1, value2, "coordinatesY"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNull() { |
|||
addCriterion("time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNotNull() { |
|||
addCriterion("time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeEqualTo(Long value) { |
|||
addCriterion("time =", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotEqualTo(Long value) { |
|||
addCriterion("time <>", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThan(Long value) { |
|||
addCriterion("time >", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("time >=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThan(Long value) { |
|||
addCriterion("time <", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("time <=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIn(List<Long> values) { |
|||
addCriterion("time in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotIn(List<Long> values) { |
|||
addCriterion("time not in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeBetween(Long value1, Long value2) { |
|||
addCriterion("time between", value1, value2, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("time not between", value1, value2, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeIsNull() { |
|||
addCriterion("real_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeIsNotNull() { |
|||
addCriterion("real_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeEqualTo(Long value) { |
|||
addCriterion("real_time =", value, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeNotEqualTo(Long value) { |
|||
addCriterion("real_time <>", value, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeGreaterThan(Long value) { |
|||
addCriterion("real_time >", value, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("real_time >=", value, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeLessThan(Long value) { |
|||
addCriterion("real_time <", value, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("real_time <=", value, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeIn(List<Long> values) { |
|||
addCriterion("real_time in", values, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeNotIn(List<Long> values) { |
|||
addCriterion("real_time not in", values, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeBetween(Long value1, Long value2) { |
|||
addCriterion("real_time between", value1, value2, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRealTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("real_time not between", value1, value2, "realTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleIsNull() { |
|||
addCriterion("angle is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleIsNotNull() { |
|||
addCriterion("angle is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleEqualTo(Integer value) { |
|||
addCriterion("angle =", value, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleNotEqualTo(Integer value) { |
|||
addCriterion("angle <>", value, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleGreaterThan(Integer value) { |
|||
addCriterion("angle >", value, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("angle >=", value, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleLessThan(Integer value) { |
|||
addCriterion("angle <", value, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleLessThanOrEqualTo(Integer value) { |
|||
addCriterion("angle <=", value, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleIn(List<Integer> values) { |
|||
addCriterion("angle in", values, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleNotIn(List<Integer> values) { |
|||
addCriterion("angle not in", values, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleBetween(Integer value1, Integer value2) { |
|||
addCriterion("angle between", value1, value2, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAngleNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("angle not between", value1, value2, "angle"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -1,29 +0,0 @@ |
|||
package com.ccsens.yanyuan.persist.dao; |
|||
|
|||
import com.ccsens.yanyuan.bean.dto.message.CoordinateDto; |
|||
import com.ccsens.yanyuan.bean.vo.TrainBelongVo; |
|||
import com.ccsens.yanyuan.persist.mapper.TrainProcessCardMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
import java.util.Set; |
|||
|
|||
/** |
|||
* @author whj |
|||
*/ |
|||
public interface TrainProcessCardDao extends TrainProcessCardMapper { |
|||
/** |
|||
* 查询线条 |
|||
* @param recordIds 点读笔卡片ID |
|||
* @return |
|||
*/ |
|||
List<TrainBelongVo.RecordLine> queryLines(@Param("recordIds") List<Long> recordIds); |
|||
|
|||
/** |
|||
* 统计正确点的数量 |
|||
* @param cardId 卡片ID |
|||
* @param coordinates 上传坐标 |
|||
* @return 统计数量 |
|||
*/ |
|||
List<Integer> count(@Param("cardId") Long cardId, @Param("coordinates") List<CoordinateDto.Point> coordinates); |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.ccsens.yanyuan.persist.dao; |
|||
|
|||
import com.ccsens.yanyuan.bean.dto.message.CoordinateDto; |
|||
import com.ccsens.yanyuan.bean.po.TrainProcessLine; |
|||
import com.ccsens.yanyuan.bean.po.TrainProcessPoint; |
|||
import com.ccsens.yanyuan.bean.vo.TrainBelongVo; |
|||
import com.ccsens.yanyuan.persist.mapper.TrainProcessPointMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author whj |
|||
*/ |
|||
public interface TrainProcessDao extends TrainProcessPointMapper { |
|||
/** |
|||
* 查询线条 |
|||
* @param recordIds 点读笔卡片ID |
|||
* @return |
|||
*/ |
|||
List<TrainBelongVo.RecordPoint> queryPoints(@Param("recordIds") List<Long> recordIds); |
|||
|
|||
/** |
|||
* 统计正确点的数量 |
|||
* @param cardId 卡片ID |
|||
* @param coordinates 上传坐标 |
|||
* @return 统计数量 |
|||
*/ |
|||
List<Integer> count(@Param("cardId") Long cardId, @Param("coordinates") List<CoordinateDto.Point> coordinates); |
|||
|
|||
/** |
|||
* 批量添加坐标点 |
|||
* @param processPoints 坐标信息 |
|||
*/ |
|||
void insertPointBatch(@Param("points") List<TrainProcessPoint> processPoints); |
|||
|
|||
/** |
|||
* 批量修改坐标起始信息(一笔的起止点) |
|||
* @param processLines 坐标起止 |
|||
*/ |
|||
void replaceLineBatch(@Param("lines") List<TrainProcessLine> processLines); |
|||
} |
@ -1,36 +0,0 @@ |
|||
package com.ccsens.yanyuan.persist.mapper; |
|||
|
|||
import com.ccsens.yanyuan.bean.po.TrainProcessCard; |
|||
import com.ccsens.yanyuan.bean.po.TrainProcessCardExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface TrainProcessCardMapper { |
|||
long countByExample(TrainProcessCardExample example); |
|||
|
|||
int deleteByExample(TrainProcessCardExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(TrainProcessCard record); |
|||
|
|||
int insertSelective(TrainProcessCard record); |
|||
|
|||
List<TrainProcessCard> selectByExampleWithBLOBs(TrainProcessCardExample example); |
|||
|
|||
List<TrainProcessCard> selectByExample(TrainProcessCardExample example); |
|||
|
|||
TrainProcessCard selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") TrainProcessCard record, @Param("example") TrainProcessCardExample example); |
|||
|
|||
int updateByExampleWithBLOBs(@Param("record") TrainProcessCard record, @Param("example") TrainProcessCardExample example); |
|||
|
|||
int updateByExample(@Param("record") TrainProcessCard record, @Param("example") TrainProcessCardExample example); |
|||
|
|||
int updateByPrimaryKeySelective(TrainProcessCard record); |
|||
|
|||
int updateByPrimaryKeyWithBLOBs(TrainProcessCard record); |
|||
|
|||
int updateByPrimaryKey(TrainProcessCard record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.yanyuan.persist.mapper; |
|||
|
|||
import com.ccsens.yanyuan.bean.po.TrainProcessLine; |
|||
import com.ccsens.yanyuan.bean.po.TrainProcessLineExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface TrainProcessLineMapper { |
|||
long countByExample(TrainProcessLineExample example); |
|||
|
|||
int deleteByExample(TrainProcessLineExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(TrainProcessLine record); |
|||
|
|||
int insertSelective(TrainProcessLine record); |
|||
|
|||
List<TrainProcessLine> selectByExample(TrainProcessLineExample example); |
|||
|
|||
TrainProcessLine selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") TrainProcessLine record, @Param("example") TrainProcessLineExample example); |
|||
|
|||
int updateByExample(@Param("record") TrainProcessLine record, @Param("example") TrainProcessLineExample example); |
|||
|
|||
int updateByPrimaryKeySelective(TrainProcessLine record); |
|||
|
|||
int updateByPrimaryKey(TrainProcessLine record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.yanyuan.persist.mapper; |
|||
|
|||
import com.ccsens.yanyuan.bean.po.TrainProcessPoint; |
|||
import com.ccsens.yanyuan.bean.po.TrainProcessPointExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface TrainProcessPointMapper { |
|||
long countByExample(TrainProcessPointExample example); |
|||
|
|||
int deleteByExample(TrainProcessPointExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(TrainProcessPoint record); |
|||
|
|||
int insertSelective(TrainProcessPoint record); |
|||
|
|||
List<TrainProcessPoint> selectByExample(TrainProcessPointExample example); |
|||
|
|||
TrainProcessPoint selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") TrainProcessPoint record, @Param("example") TrainProcessPointExample example); |
|||
|
|||
int updateByExample(@Param("record") TrainProcessPoint record, @Param("example") TrainProcessPointExample example); |
|||
|
|||
int updateByPrimaryKeySelective(TrainProcessPoint record); |
|||
|
|||
int updateByPrimaryKey(TrainProcessPoint record); |
|||
} |
@ -1,37 +0,0 @@ |
|||
<?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.yanyuan.persist.dao.TrainProcessCardDao"> |
|||
<resultMap id="recordLineMap" type="com.ccsens.yanyuan.bean.vo.TrainBelongVo$RecordLine"> |
|||
<id column="card_id" property="trainRecordId"/> |
|||
<collection property="lines" ofType="com.ccsens.yanyuan.bean.vo.TrainBelongVo$Line"> |
|||
<id column="id"/> |
|||
<result property="line" column="points"/> |
|||
<result property="operateTime" column="operate_time"/> |
|||
</collection> |
|||
</resultMap> |
|||
|
|||
<select id="queryLines" resultMap="recordLineMap"> |
|||
SELECT |
|||
card_id, |
|||
operate_time, |
|||
points |
|||
FROM |
|||
u_train_process_card |
|||
WHERE |
|||
card_id IN |
|||
<foreach collection="recordIds" item="cardId" separator="," open="(" close=")"> |
|||
#{cardId} |
|||
</foreach> |
|||
and rec_status = 0 |
|||
ORDER BY |
|||
card_id, |
|||
operate_time |
|||
</select> |
|||
<select id="count" resultType="java.lang.Integer"> |
|||
SELECT distinct which_place FROM t_tool_find_difference WHERE card_id = #{cardId} AND |
|||
<foreach collection="coordinates" item="point" separator="or" open="(" close=")"> |
|||
( coordinates_x = #{point.x} AND coordinates_y = #{point.y} ) |
|||
</foreach> |
|||
AND rec_status = 0 |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,51 @@ |
|||
<?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.yanyuan.persist.dao.TrainProcessDao"> |
|||
<resultMap id="recordLineMap" type="com.ccsens.yanyuan.bean.vo.TrainBelongVo$RecordPoint"> |
|||
<id column="card_id" property="trainRecordId"/> |
|||
<collection property="points" ofType="com.ccsens.yanyuan.bean.vo.TrainBelongVo$Point"> |
|||
<id column="id"/> |
|||
<result property="coordinatesX" column="coordinates_x"/> |
|||
<result property="coordinatesY" column="coordinates_y"/> |
|||
<result property="operateTime" column="real_time"/> |
|||
</collection> |
|||
</resultMap> |
|||
<insert id="insertPointBatch"> |
|||
insert into u_train_process_point(id, card_id,sign, coordinates_x,coordinates_y,time,real_time,angle) values |
|||
<foreach collection="points" item="item" separator=","> |
|||
(#{item.id},#{item.cardId},#{item.sign},#{item.coordinatesX},#{item.coordinatesY},#{item.time},#{item.realTime},#{item.angle}) |
|||
</foreach> |
|||
</insert> |
|||
<update id="replaceLineBatch"> |
|||
replace into u_train_process_line(id, card_id,start_point_id, end_point_id) values |
|||
<foreach collection="lines" item="item" separator=","> |
|||
(#{item.id},#{item.cardId},#{item.startPointId},#{item.endPointId}) |
|||
</foreach> |
|||
</update> |
|||
|
|||
<select id="queryPoints" resultMap="recordLineMap"> |
|||
SELECT |
|||
card_id, |
|||
coordinates_x, |
|||
coordinates_y, |
|||
real_time |
|||
FROM |
|||
u_train_process_point |
|||
WHERE |
|||
card_id IN |
|||
<foreach collection="recordIds" item="cardId" separator="," open="(" close=")"> |
|||
#{cardId} |
|||
</foreach> |
|||
and rec_status = 0 |
|||
ORDER BY |
|||
card_id, |
|||
real_time |
|||
</select> |
|||
<select id="count" resultType="java.lang.Integer"> |
|||
SELECT distinct which_place FROM t_tool_find_difference WHERE card_id = #{cardId} AND |
|||
<foreach collection="coordinates" item="point" separator="or" open="(" close=")"> |
|||
( coordinates_x = #{point.x} AND coordinates_y = #{point.y} ) |
|||
</foreach> |
|||
AND rec_status = 0 |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,258 @@ |
|||
<?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.yanyuan.persist.mapper.TrainProcessLineMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.yanyuan.bean.po.TrainProcessLine"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="card_id" jdbcType="BIGINT" property="cardId" /> |
|||
<result column="start_point_id" jdbcType="BIGINT" property="startPointId" /> |
|||
<result column="end_point_id" jdbcType="BIGINT" property="endPointId" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, card_id, start_point_id, end_point_id, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.yanyuan.bean.po.TrainProcessLineExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from u_train_process_line |
|||
<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 u_train_process_line |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from u_train_process_line |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.yanyuan.bean.po.TrainProcessLineExample"> |
|||
delete from u_train_process_line |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.yanyuan.bean.po.TrainProcessLine"> |
|||
insert into u_train_process_line (id, card_id, start_point_id, |
|||
end_point_id, operator, created_at, |
|||
updated_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT}, #{startPointId,jdbcType=BIGINT}, |
|||
#{endPointId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.yanyuan.bean.po.TrainProcessLine"> |
|||
insert into u_train_process_line |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="cardId != null"> |
|||
card_id, |
|||
</if> |
|||
<if test="startPointId != null"> |
|||
start_point_id, |
|||
</if> |
|||
<if test="endPointId != null"> |
|||
end_point_id, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="cardId != null"> |
|||
#{cardId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="startPointId != null"> |
|||
#{startPointId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="endPointId != null"> |
|||
#{endPointId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.yanyuan.bean.po.TrainProcessLineExample" resultType="java.lang.Long"> |
|||
select count(*) from u_train_process_line |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update u_train_process_line |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.cardId != null"> |
|||
card_id = #{record.cardId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.startPointId != null"> |
|||
start_point_id = #{record.startPointId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.endPointId != null"> |
|||
end_point_id = #{record.endPointId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update u_train_process_line |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
card_id = #{record.cardId,jdbcType=BIGINT}, |
|||
start_point_id = #{record.startPointId,jdbcType=BIGINT}, |
|||
end_point_id = #{record.endPointId,jdbcType=BIGINT}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.yanyuan.bean.po.TrainProcessLine"> |
|||
update u_train_process_line |
|||
<set> |
|||
<if test="cardId != null"> |
|||
card_id = #{cardId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="startPointId != null"> |
|||
start_point_id = #{startPointId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="endPointId != null"> |
|||
end_point_id = #{endPointId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.yanyuan.bean.po.TrainProcessLine"> |
|||
update u_train_process_line |
|||
set card_id = #{cardId,jdbcType=BIGINT}, |
|||
start_point_id = #{startPointId,jdbcType=BIGINT}, |
|||
end_point_id = #{endPointId,jdbcType=BIGINT}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,16 @@ |
|||
package com.ccsens.yanyuan.test; |
|||
|
|||
import org.junit.Test; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2022/1/7 17:02 |
|||
*/ |
|||
public class Demo { |
|||
|
|||
@Test |
|||
public void test01(){ |
|||
System.out.println((0X4022 & 0XC000) >> 14); |
|||
} |
|||
} |
Loading…
Reference in new issue