Browse Source

20201214删除急救记录表结束时间

recovery
zy_Java 5 years ago
parent
commit
c2c912ca8e
  1. 35
      wisdomcar/src/main/java/com/ccsens/wisdomcar/bean/po/FirstAid.java
  2. 156
      wisdomcar/src/main/java/com/ccsens/wisdomcar/bean/po/FirstAidExample.java
  3. 23
      wisdomcar/src/main/java/com/ccsens/wisdomcar/bean/po/FirstAidRecord.java
  4. 108
      wisdomcar/src/main/java/com/ccsens/wisdomcar/bean/po/FirstAidRecordExample.java
  5. 73
      wisdomcar/src/main/resources/mapper_raw/FirstAidMapper.xml
  6. 49
      wisdomcar/src/main/resources/mapper_raw/FirstAidRecordMapper.xml

35
wisdomcar/src/main/java/com/ccsens/wisdomcar/bean/po/FirstAid.java

@ -8,9 +8,11 @@ public class FirstAid implements Serializable {
private Long carId; private Long carId;
private Long begintime; private Long hospitalId;
private Long endtime; private Long beginTime;
private Long endTime;
private Date createdAt; private Date createdAt;
@ -36,20 +38,28 @@ public class FirstAid implements Serializable {
this.carId = carId; this.carId = carId;
} }
public Long getBegintime() { public Long getHospitalId() {
return begintime; return hospitalId;
}
public void setHospitalId(Long hospitalId) {
this.hospitalId = hospitalId;
}
public Long getBeginTime() {
return beginTime;
} }
public void setBegintime(Long begintime) { public void setBeginTime(Long beginTime) {
this.begintime = begintime; this.beginTime = beginTime;
} }
public Long getEndtime() { public Long getEndTime() {
return endtime; return endTime;
} }
public void setEndtime(Long endtime) { public void setEndTime(Long endTime) {
this.endtime = endtime; this.endTime = endTime;
} }
public Date getCreatedAt() { public Date getCreatedAt() {
@ -84,8 +94,9 @@ public class FirstAid implements Serializable {
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", carId=").append(carId); sb.append(", carId=").append(carId);
sb.append(", begintime=").append(begintime); sb.append(", hospitalId=").append(hospitalId);
sb.append(", endtime=").append(endtime); sb.append(", beginTime=").append(beginTime);
sb.append(", endTime=").append(endTime);
sb.append(", createdAt=").append(createdAt); sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt); sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus); sb.append(", recStatus=").append(recStatus);

156
wisdomcar/src/main/java/com/ccsens/wisdomcar/bean/po/FirstAidExample.java

@ -225,123 +225,183 @@ public class FirstAidExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeIsNull() { public Criteria andHospitalIdIsNull() {
addCriterion("beginTime is null"); addCriterion("hospital_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeIsNotNull() { public Criteria andHospitalIdIsNotNull() {
addCriterion("beginTime is not null"); addCriterion("hospital_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeEqualTo(Long value) { public Criteria andHospitalIdEqualTo(Long value) {
addCriterion("beginTime =", value, "begintime"); addCriterion("hospital_id =", value, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeNotEqualTo(Long value) { public Criteria andHospitalIdNotEqualTo(Long value) {
addCriterion("beginTime <>", value, "begintime"); addCriterion("hospital_id <>", value, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeGreaterThan(Long value) { public Criteria andHospitalIdGreaterThan(Long value) {
addCriterion("beginTime >", value, "begintime"); addCriterion("hospital_id >", value, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeGreaterThanOrEqualTo(Long value) { public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) {
addCriterion("beginTime >=", value, "begintime"); addCriterion("hospital_id >=", value, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeLessThan(Long value) { public Criteria andHospitalIdLessThan(Long value) {
addCriterion("beginTime <", value, "begintime"); addCriterion("hospital_id <", value, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeLessThanOrEqualTo(Long value) { public Criteria andHospitalIdLessThanOrEqualTo(Long value) {
addCriterion("beginTime <=", value, "begintime"); addCriterion("hospital_id <=", value, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeIn(List<Long> values) { public Criteria andHospitalIdIn(List<Long> values) {
addCriterion("beginTime in", values, "begintime"); addCriterion("hospital_id in", values, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeNotIn(List<Long> values) { public Criteria andHospitalIdNotIn(List<Long> values) {
addCriterion("beginTime not in", values, "begintime"); addCriterion("hospital_id not in", values, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeBetween(Long value1, Long value2) { public Criteria andHospitalIdBetween(Long value1, Long value2) {
addCriterion("beginTime between", value1, value2, "begintime"); addCriterion("hospital_id between", value1, value2, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeNotBetween(Long value1, Long value2) { public Criteria andHospitalIdNotBetween(Long value1, Long value2) {
addCriterion("beginTime not between", value1, value2, "begintime"); addCriterion("hospital_id not between", value1, value2, "hospitalId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeIsNull() { public Criteria andBeginTimeIsNull() {
addCriterion("endTime is null"); addCriterion("begin_time is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeIsNotNull() { public Criteria andBeginTimeIsNotNull() {
addCriterion("endTime is not null"); addCriterion("begin_time is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeEqualTo(Long value) { public Criteria andBeginTimeEqualTo(Long value) {
addCriterion("endTime =", value, "endtime"); addCriterion("begin_time =", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeNotEqualTo(Long value) { public Criteria andBeginTimeNotEqualTo(Long value) {
addCriterion("endTime <>", value, "endtime"); addCriterion("begin_time <>", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeGreaterThan(Long value) { public Criteria andBeginTimeGreaterThan(Long value) {
addCriterion("endTime >", value, "endtime"); addCriterion("begin_time >", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeGreaterThanOrEqualTo(Long value) { public Criteria andBeginTimeGreaterThanOrEqualTo(Long value) {
addCriterion("endTime >=", value, "endtime"); addCriterion("begin_time >=", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeLessThan(Long value) { public Criteria andBeginTimeLessThan(Long value) {
addCriterion("endTime <", value, "endtime"); addCriterion("begin_time <", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeLessThanOrEqualTo(Long value) { public Criteria andBeginTimeLessThanOrEqualTo(Long value) {
addCriterion("endTime <=", value, "endtime"); addCriterion("begin_time <=", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeIn(List<Long> values) { public Criteria andBeginTimeIn(List<Long> values) {
addCriterion("endTime in", values, "endtime"); addCriterion("begin_time in", values, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeNotIn(List<Long> values) { public Criteria andBeginTimeNotIn(List<Long> values) {
addCriterion("endTime not in", values, "endtime"); addCriterion("begin_time not in", values, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeBetween(Long value1, Long value2) { public Criteria andBeginTimeBetween(Long value1, Long value2) {
addCriterion("endTime between", value1, value2, "endtime"); addCriterion("begin_time between", value1, value2, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEndtimeNotBetween(Long value1, Long value2) { public Criteria andBeginTimeNotBetween(Long value1, Long value2) {
addCriterion("endTime not between", value1, value2, "endtime"); addCriterion("begin_time not between", value1, value2, "beginTime");
return (Criteria) this;
}
public Criteria andEndTimeIsNull() {
addCriterion("end_time is null");
return (Criteria) this;
}
public Criteria andEndTimeIsNotNull() {
addCriterion("end_time is not null");
return (Criteria) this;
}
public Criteria andEndTimeEqualTo(Long value) {
addCriterion("end_time =", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotEqualTo(Long value) {
addCriterion("end_time <>", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThan(Long value) {
addCriterion("end_time >", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThanOrEqualTo(Long value) {
addCriterion("end_time >=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThan(Long value) {
addCriterion("end_time <", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThanOrEqualTo(Long value) {
addCriterion("end_time <=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeIn(List<Long> values) {
addCriterion("end_time in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotIn(List<Long> values) {
addCriterion("end_time not in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeBetween(Long value1, Long value2) {
addCriterion("end_time between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotBetween(Long value1, Long value2) {
addCriterion("end_time not between", value1, value2, "endTime");
return (Criteria) this; return (Criteria) this;
} }

23
wisdomcar/src/main/java/com/ccsens/wisdomcar/bean/po/FirstAidRecord.java

@ -12,9 +12,7 @@ public class FirstAidRecord implements Serializable {
private String value; private String value;
private Long begintime; private Long beginTime;
private Long endtime;
private Date createdAt; private Date createdAt;
@ -56,20 +54,12 @@ public class FirstAidRecord implements Serializable {
this.value = value == null ? null : value.trim(); this.value = value == null ? null : value.trim();
} }
public Long getBegintime() { public Long getBeginTime() {
return begintime; return beginTime;
}
public void setBegintime(Long begintime) {
this.begintime = begintime;
}
public Long getEndtime() {
return endtime;
} }
public void setEndtime(Long endtime) { public void setBeginTime(Long beginTime) {
this.endtime = endtime; this.beginTime = beginTime;
} }
public Date getCreatedAt() { public Date getCreatedAt() {
@ -106,8 +96,7 @@ public class FirstAidRecord implements Serializable {
sb.append(", firstAidId=").append(firstAidId); sb.append(", firstAidId=").append(firstAidId);
sb.append(", type=").append(type); sb.append(", type=").append(type);
sb.append(", value=").append(value); sb.append(", value=").append(value);
sb.append(", begintime=").append(begintime); sb.append(", beginTime=").append(beginTime);
sb.append(", endtime=").append(endtime);
sb.append(", createdAt=").append(createdAt); sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt); sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus); sb.append(", recStatus=").append(recStatus);

108
wisdomcar/src/main/java/com/ccsens/wisdomcar/bean/po/FirstAidRecordExample.java

@ -355,123 +355,63 @@ public class FirstAidRecordExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeIsNull() { public Criteria andBeginTimeIsNull() {
addCriterion("beginTime is null"); addCriterion("begin_time is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeIsNotNull() { public Criteria andBeginTimeIsNotNull() {
addCriterion("beginTime is not null"); addCriterion("begin_time is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeEqualTo(Long value) { public Criteria andBeginTimeEqualTo(Long value) {
addCriterion("beginTime =", value, "begintime"); addCriterion("begin_time =", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeNotEqualTo(Long value) { public Criteria andBeginTimeNotEqualTo(Long value) {
addCriterion("beginTime <>", value, "begintime"); addCriterion("begin_time <>", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeGreaterThan(Long value) { public Criteria andBeginTimeGreaterThan(Long value) {
addCriterion("beginTime >", value, "begintime"); addCriterion("begin_time >", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeGreaterThanOrEqualTo(Long value) { public Criteria andBeginTimeGreaterThanOrEqualTo(Long value) {
addCriterion("beginTime >=", value, "begintime"); addCriterion("begin_time >=", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeLessThan(Long value) { public Criteria andBeginTimeLessThan(Long value) {
addCriterion("beginTime <", value, "begintime"); addCriterion("begin_time <", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeLessThanOrEqualTo(Long value) { public Criteria andBeginTimeLessThanOrEqualTo(Long value) {
addCriterion("beginTime <=", value, "begintime"); addCriterion("begin_time <=", value, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeIn(List<Long> values) { public Criteria andBeginTimeIn(List<Long> values) {
addCriterion("beginTime in", values, "begintime"); addCriterion("begin_time in", values, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeNotIn(List<Long> values) { public Criteria andBeginTimeNotIn(List<Long> values) {
addCriterion("beginTime not in", values, "begintime"); addCriterion("begin_time not in", values, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeBetween(Long value1, Long value2) { public Criteria andBeginTimeBetween(Long value1, Long value2) {
addCriterion("beginTime between", value1, value2, "begintime"); addCriterion("begin_time between", value1, value2, "beginTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBegintimeNotBetween(Long value1, Long value2) { public Criteria andBeginTimeNotBetween(Long value1, Long value2) {
addCriterion("beginTime not between", value1, value2, "begintime"); addCriterion("begin_time not between", value1, value2, "beginTime");
return (Criteria) this;
}
public Criteria andEndtimeIsNull() {
addCriterion("endTime is null");
return (Criteria) this;
}
public Criteria andEndtimeIsNotNull() {
addCriterion("endTime is not null");
return (Criteria) this;
}
public Criteria andEndtimeEqualTo(Long value) {
addCriterion("endTime =", value, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeNotEqualTo(Long value) {
addCriterion("endTime <>", value, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeGreaterThan(Long value) {
addCriterion("endTime >", value, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeGreaterThanOrEqualTo(Long value) {
addCriterion("endTime >=", value, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeLessThan(Long value) {
addCriterion("endTime <", value, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeLessThanOrEqualTo(Long value) {
addCriterion("endTime <=", value, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeIn(List<Long> values) {
addCriterion("endTime in", values, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeNotIn(List<Long> values) {
addCriterion("endTime not in", values, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeBetween(Long value1, Long value2) {
addCriterion("endTime between", value1, value2, "endtime");
return (Criteria) this;
}
public Criteria andEndtimeNotBetween(Long value1, Long value2) {
addCriterion("endTime not between", value1, value2, "endtime");
return (Criteria) this; return (Criteria) this;
} }

73
wisdomcar/src/main/resources/mapper_raw/FirstAidMapper.xml

@ -4,8 +4,9 @@
<resultMap id="BaseResultMap" type="com.ccsens.wisdomcar.bean.po.FirstAid"> <resultMap id="BaseResultMap" type="com.ccsens.wisdomcar.bean.po.FirstAid">
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id" />
<result column="car_id" jdbcType="BIGINT" property="carId" /> <result column="car_id" jdbcType="BIGINT" property="carId" />
<result column="beginTime" jdbcType="BIGINT" property="begintime" /> <result column="hospital_id" jdbcType="BIGINT" property="hospitalId" />
<result column="endTime" jdbcType="BIGINT" property="endtime" /> <result column="begin_time" jdbcType="BIGINT" property="beginTime" />
<result column="end_time" jdbcType="BIGINT" property="endTime" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> <result column="rec_status" jdbcType="TINYINT" property="recStatus" />
@ -69,7 +70,7 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, car_id, beginTime, endTime, created_at, updated_at, rec_status id, car_id, hospital_id, begin_time, end_time, created_at, updated_at, rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidExample" resultMap="BaseResultMap">
select select
@ -102,12 +103,12 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> <insert id="insert" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid">
insert into t_first_aid (id, car_id, beginTime, insert into t_first_aid (id, car_id, hospital_id,
endTime, created_at, updated_at, begin_time, end_time, created_at,
rec_status) updated_at, rec_status)
values (#{id,jdbcType=BIGINT}, #{carId,jdbcType=BIGINT}, #{begintime,jdbcType=BIGINT}, values (#{id,jdbcType=BIGINT}, #{carId,jdbcType=BIGINT}, #{hospitalId,jdbcType=BIGINT},
#{endtime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{beginTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT}) #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
</insert> </insert>
<insert id="insertSelective" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> <insert id="insertSelective" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid">
insert into t_first_aid insert into t_first_aid
@ -118,11 +119,14 @@
<if test="carId != null"> <if test="carId != null">
car_id, car_id,
</if> </if>
<if test="begintime != null"> <if test="hospitalId != null">
beginTime, hospital_id,
</if> </if>
<if test="endtime != null"> <if test="beginTime != null">
endTime, begin_time,
</if>
<if test="endTime != null">
end_time,
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
created_at, created_at,
@ -141,11 +145,14 @@
<if test="carId != null"> <if test="carId != null">
#{carId,jdbcType=BIGINT}, #{carId,jdbcType=BIGINT},
</if> </if>
<if test="begintime != null"> <if test="hospitalId != null">
#{begintime,jdbcType=BIGINT}, #{hospitalId,jdbcType=BIGINT},
</if>
<if test="beginTime != null">
#{beginTime,jdbcType=BIGINT},
</if> </if>
<if test="endtime != null"> <if test="endTime != null">
#{endtime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT},
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP}, #{createdAt,jdbcType=TIMESTAMP},
@ -173,11 +180,14 @@
<if test="record.carId != null"> <if test="record.carId != null">
car_id = #{record.carId,jdbcType=BIGINT}, car_id = #{record.carId,jdbcType=BIGINT},
</if> </if>
<if test="record.begintime != null"> <if test="record.hospitalId != null">
beginTime = #{record.begintime,jdbcType=BIGINT}, hospital_id = #{record.hospitalId,jdbcType=BIGINT},
</if> </if>
<if test="record.endtime != null"> <if test="record.beginTime != null">
endTime = #{record.endtime,jdbcType=BIGINT}, begin_time = #{record.beginTime,jdbcType=BIGINT},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=BIGINT},
</if> </if>
<if test="record.createdAt != null"> <if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
@ -197,8 +207,9 @@
update t_first_aid update t_first_aid
set id = #{record.id,jdbcType=BIGINT}, set id = #{record.id,jdbcType=BIGINT},
car_id = #{record.carId,jdbcType=BIGINT}, car_id = #{record.carId,jdbcType=BIGINT},
beginTime = #{record.begintime,jdbcType=BIGINT}, hospital_id = #{record.hospitalId,jdbcType=BIGINT},
endTime = #{record.endtime,jdbcType=BIGINT}, begin_time = #{record.beginTime,jdbcType=BIGINT},
end_time = #{record.endTime,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT} rec_status = #{record.recStatus,jdbcType=TINYINT}
@ -212,11 +223,14 @@
<if test="carId != null"> <if test="carId != null">
car_id = #{carId,jdbcType=BIGINT}, car_id = #{carId,jdbcType=BIGINT},
</if> </if>
<if test="begintime != null"> <if test="hospitalId != null">
beginTime = #{begintime,jdbcType=BIGINT}, hospital_id = #{hospitalId,jdbcType=BIGINT},
</if>
<if test="beginTime != null">
begin_time = #{beginTime,jdbcType=BIGINT},
</if> </if>
<if test="endtime != null"> <if test="endTime != null">
endTime = #{endtime,jdbcType=BIGINT}, end_time = #{endTime,jdbcType=BIGINT},
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
@ -233,8 +247,9 @@
<update id="updateByPrimaryKey" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> <update id="updateByPrimaryKey" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid">
update t_first_aid update t_first_aid
set car_id = #{carId,jdbcType=BIGINT}, set car_id = #{carId,jdbcType=BIGINT},
beginTime = #{begintime,jdbcType=BIGINT}, hospital_id = #{hospitalId,jdbcType=BIGINT},
endTime = #{endtime,jdbcType=BIGINT}, begin_time = #{beginTime,jdbcType=BIGINT},
end_time = #{endTime,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT} rec_status = #{recStatus,jdbcType=TINYINT}

49
wisdomcar/src/main/resources/mapper_raw/FirstAidRecordMapper.xml

@ -6,8 +6,7 @@
<result column="first_aid_id" jdbcType="BIGINT" property="firstAidId" /> <result column="first_aid_id" jdbcType="BIGINT" property="firstAidId" />
<result column="type" jdbcType="TINYINT" property="type" /> <result column="type" jdbcType="TINYINT" property="type" />
<result column="value" jdbcType="VARCHAR" property="value" /> <result column="value" jdbcType="VARCHAR" property="value" />
<result column="beginTime" jdbcType="BIGINT" property="begintime" /> <result column="begin_time" jdbcType="BIGINT" property="beginTime" />
<result column="endTime" jdbcType="BIGINT" property="endtime" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> <result column="rec_status" jdbcType="TINYINT" property="recStatus" />
@ -71,7 +70,7 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, first_aid_id, type, value, beginTime, endTime, created_at, updated_at, rec_status id, first_aid_id, type, value, begin_time, created_at, updated_at, rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidRecordExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidRecordExample" resultMap="BaseResultMap">
select select
@ -105,13 +104,11 @@
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidRecord"> <insert id="insert" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidRecord">
insert into t_first_aid_record (id, first_aid_id, type, insert into t_first_aid_record (id, first_aid_id, type,
value, beginTime, endTime, value, begin_time, created_at,
created_at, updated_at, rec_status updated_at, rec_status)
)
values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{type,jdbcType=TINYINT},
#{value,jdbcType=VARCHAR}, #{begintime,jdbcType=BIGINT}, #{endtime,jdbcType=BIGINT}, #{value,jdbcType=VARCHAR}, #{beginTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidRecord"> <insert id="insertSelective" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidRecord">
insert into t_first_aid_record insert into t_first_aid_record
@ -128,11 +125,8 @@
<if test="value != null"> <if test="value != null">
value, value,
</if> </if>
<if test="begintime != null"> <if test="beginTime != null">
beginTime, begin_time,
</if>
<if test="endtime != null">
endTime,
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
created_at, created_at,
@ -157,11 +151,8 @@
<if test="value != null"> <if test="value != null">
#{value,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR},
</if> </if>
<if test="begintime != null"> <if test="beginTime != null">
#{begintime,jdbcType=BIGINT}, #{beginTime,jdbcType=BIGINT},
</if>
<if test="endtime != null">
#{endtime,jdbcType=BIGINT},
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP}, #{createdAt,jdbcType=TIMESTAMP},
@ -195,11 +186,8 @@
<if test="record.value != null"> <if test="record.value != null">
value = #{record.value,jdbcType=VARCHAR}, value = #{record.value,jdbcType=VARCHAR},
</if> </if>
<if test="record.begintime != null"> <if test="record.beginTime != null">
beginTime = #{record.begintime,jdbcType=BIGINT}, begin_time = #{record.beginTime,jdbcType=BIGINT},
</if>
<if test="record.endtime != null">
endTime = #{record.endtime,jdbcType=BIGINT},
</if> </if>
<if test="record.createdAt != null"> <if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
@ -221,8 +209,7 @@
first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, first_aid_id = #{record.firstAidId,jdbcType=BIGINT},
type = #{record.type,jdbcType=TINYINT}, type = #{record.type,jdbcType=TINYINT},
value = #{record.value,jdbcType=VARCHAR}, value = #{record.value,jdbcType=VARCHAR},
beginTime = #{record.begintime,jdbcType=BIGINT}, begin_time = #{record.beginTime,jdbcType=BIGINT},
endTime = #{record.endtime,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT} rec_status = #{record.recStatus,jdbcType=TINYINT}
@ -242,11 +229,8 @@
<if test="value != null"> <if test="value != null">
value = #{value,jdbcType=VARCHAR}, value = #{value,jdbcType=VARCHAR},
</if> </if>
<if test="begintime != null"> <if test="beginTime != null">
beginTime = #{begintime,jdbcType=BIGINT}, begin_time = #{beginTime,jdbcType=BIGINT},
</if>
<if test="endtime != null">
endTime = #{endtime,jdbcType=BIGINT},
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
@ -265,8 +249,7 @@
set first_aid_id = #{firstAidId,jdbcType=BIGINT}, set first_aid_id = #{firstAidId,jdbcType=BIGINT},
type = #{type,jdbcType=TINYINT}, type = #{type,jdbcType=TINYINT},
value = #{value,jdbcType=VARCHAR}, value = #{value,jdbcType=VARCHAR},
beginTime = #{begintime,jdbcType=BIGINT}, begin_time = #{beginTime,jdbcType=BIGINT},
endTime = #{endtime,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT} rec_status = #{recStatus,jdbcType=TINYINT}

Loading…
Cancel
Save