Browse Source

20210128v1.1

recovery
zy_Java 5 years ago
parent
commit
3b3052a688
  1. 1
      tcm/src/main/java/com/ccsens/tcm/api/PatientController.java
  2. 23
      tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCode.java
  3. 116
      tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCodeExample.java
  4. 57
      tcm/src/main/resources/mapper_raw/ReportCodeMapper.xml

1
tcm/src/main/java/com/ccsens/tcm/api/PatientController.java

@ -1,5 +1,6 @@
package com.ccsens.tcm.api; package com.ccsens.tcm.api;
import cn.hutool.core.lang.Snowflake;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;

23
tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCode.java

@ -10,7 +10,7 @@ public class ReportCode implements Serializable {
private String name; private String name;
private String parentId; private String parentCode;
private Byte must; private Byte must;
@ -20,6 +20,8 @@ public class ReportCode implements Serializable {
private String remark; private String remark;
private Byte reportType;
private Long operator; private Long operator;
private Date createdAt; private Date createdAt;
@ -54,12 +56,12 @@ public class ReportCode implements Serializable {
this.name = name == null ? null : name.trim(); this.name = name == null ? null : name.trim();
} }
public String getParentId() { public String getParentCode() {
return parentId; return parentCode;
} }
public void setParentId(String parentId) { public void setParentCode(String parentCode) {
this.parentId = parentId == null ? null : parentId.trim(); this.parentCode = parentCode == null ? null : parentCode.trim();
} }
public Byte getMust() { public Byte getMust() {
@ -94,6 +96,14 @@ public class ReportCode implements Serializable {
this.remark = remark == null ? null : remark.trim(); this.remark = remark == null ? null : remark.trim();
} }
public Byte getReportType() {
return reportType;
}
public void setReportType(Byte reportType) {
this.reportType = reportType;
}
public Long getOperator() { public Long getOperator() {
return operator; return operator;
} }
@ -135,11 +145,12 @@ public class ReportCode implements Serializable {
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", code=").append(code); sb.append(", code=").append(code);
sb.append(", name=").append(name); sb.append(", name=").append(name);
sb.append(", parentId=").append(parentId); sb.append(", parentCode=").append(parentCode);
sb.append(", must=").append(must); sb.append(", must=").append(must);
sb.append(", level=").append(level); sb.append(", level=").append(level);
sb.append(", sort=").append(sort); sb.append(", sort=").append(sort);
sb.append(", remark=").append(remark); sb.append(", remark=").append(remark);
sb.append(", reportType=").append(reportType);
sb.append(", operator=").append(operator); sb.append(", operator=").append(operator);
sb.append(", createdAt=").append(createdAt); sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt); sb.append(", updatedAt=").append(updatedAt);

116
tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCodeExample.java

@ -305,73 +305,73 @@ public class ReportCodeExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdIsNull() { public Criteria andParentCodeIsNull() {
addCriterion("parent_id is null"); addCriterion("parent_code is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdIsNotNull() { public Criteria andParentCodeIsNotNull() {
addCriterion("parent_id is not null"); addCriterion("parent_code is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdEqualTo(String value) { public Criteria andParentCodeEqualTo(String value) {
addCriterion("parent_id =", value, "parentId"); addCriterion("parent_code =", value, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdNotEqualTo(String value) { public Criteria andParentCodeNotEqualTo(String value) {
addCriterion("parent_id <>", value, "parentId"); addCriterion("parent_code <>", value, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdGreaterThan(String value) { public Criteria andParentCodeGreaterThan(String value) {
addCriterion("parent_id >", value, "parentId"); addCriterion("parent_code >", value, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdGreaterThanOrEqualTo(String value) { public Criteria andParentCodeGreaterThanOrEqualTo(String value) {
addCriterion("parent_id >=", value, "parentId"); addCriterion("parent_code >=", value, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdLessThan(String value) { public Criteria andParentCodeLessThan(String value) {
addCriterion("parent_id <", value, "parentId"); addCriterion("parent_code <", value, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdLessThanOrEqualTo(String value) { public Criteria andParentCodeLessThanOrEqualTo(String value) {
addCriterion("parent_id <=", value, "parentId"); addCriterion("parent_code <=", value, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdLike(String value) { public Criteria andParentCodeLike(String value) {
addCriterion("parent_id like", value, "parentId"); addCriterion("parent_code like", value, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdNotLike(String value) { public Criteria andParentCodeNotLike(String value) {
addCriterion("parent_id not like", value, "parentId"); addCriterion("parent_code not like", value, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdIn(List<String> values) { public Criteria andParentCodeIn(List<String> values) {
addCriterion("parent_id in", values, "parentId"); addCriterion("parent_code in", values, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdNotIn(List<String> values) { public Criteria andParentCodeNotIn(List<String> values) {
addCriterion("parent_id not in", values, "parentId"); addCriterion("parent_code not in", values, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdBetween(String value1, String value2) { public Criteria andParentCodeBetween(String value1, String value2) {
addCriterion("parent_id between", value1, value2, "parentId"); addCriterion("parent_code between", value1, value2, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentIdNotBetween(String value1, String value2) { public Criteria andParentCodeNotBetween(String value1, String value2) {
addCriterion("parent_id not between", value1, value2, "parentId"); addCriterion("parent_code not between", value1, value2, "parentCode");
return (Criteria) this; return (Criteria) this;
} }
@ -625,6 +625,66 @@ public class ReportCodeExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReportTypeIsNull() {
addCriterion("report_type is null");
return (Criteria) this;
}
public Criteria andReportTypeIsNotNull() {
addCriterion("report_type is not null");
return (Criteria) this;
}
public Criteria andReportTypeEqualTo(Byte value) {
addCriterion("report_type =", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeNotEqualTo(Byte value) {
addCriterion("report_type <>", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeGreaterThan(Byte value) {
addCriterion("report_type >", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("report_type >=", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeLessThan(Byte value) {
addCriterion("report_type <", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeLessThanOrEqualTo(Byte value) {
addCriterion("report_type <=", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeIn(List<Byte> values) {
addCriterion("report_type in", values, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeNotIn(List<Byte> values) {
addCriterion("report_type not in", values, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeBetween(Byte value1, Byte value2) {
addCriterion("report_type between", value1, value2, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeNotBetween(Byte value1, Byte value2) {
addCriterion("report_type not between", value1, value2, "reportType");
return (Criteria) this;
}
public Criteria andOperatorIsNull() { public Criteria andOperatorIsNull() {
addCriterion("operator is null"); addCriterion("operator is null");
return (Criteria) this; return (Criteria) this;

57
tcm/src/main/resources/mapper_raw/ReportCodeMapper.xml

@ -5,11 +5,12 @@
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" /> <result column="code" jdbcType="VARCHAR" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" /> <result column="name" jdbcType="VARCHAR" property="name" />
<result column="parent_id" jdbcType="VARCHAR" property="parentId" /> <result column="parent_code" jdbcType="VARCHAR" property="parentCode" />
<result column="must" jdbcType="TINYINT" property="must" /> <result column="must" jdbcType="TINYINT" property="must" />
<result column="level" jdbcType="TINYINT" property="level" /> <result column="level" jdbcType="TINYINT" property="level" />
<result column="sort" jdbcType="INTEGER" property="sort" /> <result column="sort" jdbcType="INTEGER" property="sort" />
<result column="remark" jdbcType="VARCHAR" property="remark" /> <result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="report_type" jdbcType="TINYINT" property="reportType" />
<result column="operator" jdbcType="BIGINT" property="operator" /> <result column="operator" jdbcType="BIGINT" property="operator" />
<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" />
@ -74,8 +75,8 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, code, name, parent_id, must, level, sort, remark, operator, created_at, updated_at, id, code, name, parent_code, must, level, sort, remark, report_type, operator, created_at,
rec_status updated_at, rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.ReportCodeExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.ReportCodeExample" resultMap="BaseResultMap">
select select
@ -109,15 +110,15 @@
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ReportCode"> <insert id="insert" parameterType="com.ccsens.tcm.bean.po.ReportCode">
insert into t_report_code (id, code, name, insert into t_report_code (id, code, name,
parent_id, must, level, parent_code, must, level,
sort, remark, operator, sort, remark, report_type,
created_at, updated_at, rec_status operator, created_at, updated_at,
) rec_status)
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{parentId,jdbcType=VARCHAR}, #{must,jdbcType=TINYINT}, #{level,jdbcType=TINYINT}, #{parentCode,jdbcType=VARCHAR}, #{must,jdbcType=TINYINT}, #{level,jdbcType=TINYINT},
#{sort,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{reportType,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
) #{recStatus,jdbcType=TINYINT})
</insert> </insert>
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.ReportCode"> <insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.ReportCode">
insert into t_report_code insert into t_report_code
@ -131,8 +132,8 @@
<if test="name != null"> <if test="name != null">
name, name,
</if> </if>
<if test="parentId != null"> <if test="parentCode != null">
parent_id, parent_code,
</if> </if>
<if test="must != null"> <if test="must != null">
must, must,
@ -146,6 +147,9 @@
<if test="remark != null"> <if test="remark != null">
remark, remark,
</if> </if>
<if test="reportType != null">
report_type,
</if>
<if test="operator != null"> <if test="operator != null">
operator, operator,
</if> </if>
@ -169,8 +173,8 @@
<if test="name != null"> <if test="name != null">
#{name,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
</if> </if>
<if test="parentId != null"> <if test="parentCode != null">
#{parentId,jdbcType=VARCHAR}, #{parentCode,jdbcType=VARCHAR},
</if> </if>
<if test="must != null"> <if test="must != null">
#{must,jdbcType=TINYINT}, #{must,jdbcType=TINYINT},
@ -184,6 +188,9 @@
<if test="remark != null"> <if test="remark != null">
#{remark,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
</if> </if>
<if test="reportType != null">
#{reportType,jdbcType=TINYINT},
</if>
<if test="operator != null"> <if test="operator != null">
#{operator,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT},
</if> </if>
@ -216,8 +223,8 @@
<if test="record.name != null"> <if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR}, name = #{record.name,jdbcType=VARCHAR},
</if> </if>
<if test="record.parentId != null"> <if test="record.parentCode != null">
parent_id = #{record.parentId,jdbcType=VARCHAR}, parent_code = #{record.parentCode,jdbcType=VARCHAR},
</if> </if>
<if test="record.must != null"> <if test="record.must != null">
must = #{record.must,jdbcType=TINYINT}, must = #{record.must,jdbcType=TINYINT},
@ -231,6 +238,9 @@
<if test="record.remark != null"> <if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
</if> </if>
<if test="record.reportType != null">
report_type = #{record.reportType,jdbcType=TINYINT},
</if>
<if test="record.operator != null"> <if test="record.operator != null">
operator = #{record.operator,jdbcType=BIGINT}, operator = #{record.operator,jdbcType=BIGINT},
</if> </if>
@ -253,11 +263,12 @@
set id = #{record.id,jdbcType=BIGINT}, set id = #{record.id,jdbcType=BIGINT},
code = #{record.code,jdbcType=VARCHAR}, code = #{record.code,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR}, name = #{record.name,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=VARCHAR}, parent_code = #{record.parentCode,jdbcType=VARCHAR},
must = #{record.must,jdbcType=TINYINT}, must = #{record.must,jdbcType=TINYINT},
level = #{record.level,jdbcType=TINYINT}, level = #{record.level,jdbcType=TINYINT},
sort = #{record.sort,jdbcType=INTEGER}, sort = #{record.sort,jdbcType=INTEGER},
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
report_type = #{record.reportType,jdbcType=TINYINT},
operator = #{record.operator,jdbcType=BIGINT}, operator = #{record.operator,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},
@ -275,8 +286,8 @@
<if test="name != null"> <if test="name != null">
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
</if> </if>
<if test="parentId != null"> <if test="parentCode != null">
parent_id = #{parentId,jdbcType=VARCHAR}, parent_code = #{parentCode,jdbcType=VARCHAR},
</if> </if>
<if test="must != null"> <if test="must != null">
must = #{must,jdbcType=TINYINT}, must = #{must,jdbcType=TINYINT},
@ -290,6 +301,9 @@
<if test="remark != null"> <if test="remark != null">
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
</if> </if>
<if test="reportType != null">
report_type = #{reportType,jdbcType=TINYINT},
</if>
<if test="operator != null"> <if test="operator != null">
operator = #{operator,jdbcType=BIGINT}, operator = #{operator,jdbcType=BIGINT},
</if> </if>
@ -309,11 +323,12 @@
update t_report_code update t_report_code
set code = #{code,jdbcType=VARCHAR}, set code = #{code,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=VARCHAR}, parent_code = #{parentCode,jdbcType=VARCHAR},
must = #{must,jdbcType=TINYINT}, must = #{must,jdbcType=TINYINT},
level = #{level,jdbcType=TINYINT}, level = #{level,jdbcType=TINYINT},
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
report_type = #{reportType,jdbcType=TINYINT},
operator = #{operator,jdbcType=BIGINT}, operator = #{operator,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, updated_at = #{updatedAt,jdbcType=TIMESTAMP},

Loading…
Cancel
Save