修改数据库字段名称

This commit is contained in:
wulin 2020-12-08 14:45:44 +08:00
parent bf9391b30a
commit eced4b0bfa
2 changed files with 14 additions and 14 deletions

View File

@ -36,7 +36,7 @@ public class ResultDetail implements java.io.Serializable {
private Long backId; private Long backId;
//是否为备份0非备份1备份值 //是否为备份0非备份1备份值
@ApiModelProperty(value = "是否为备份0非备份1备份值", name = "isBack") @ApiModelProperty(value = "是否为备份0非备份1备份值", name = "isBack")
private Integer isBack; private Integer isEdit;
//1业绩2文化价值观 //1业绩2文化价值观
@ApiModelProperty(value = "1业绩2文化价值观", name = "type") @ApiModelProperty(value = "1业绩2文化价值观", name = "type")
private Integer type; private Integer type;
@ -159,14 +159,14 @@ public class ResultDetail implements java.io.Serializable {
* @return * @return
*/ */
public Integer getIsBack() { public Integer getIsBack() {
return isBack; return isEdit;
} }
/** /**
* 是否为备份0非备份1备份值 * 是否为备份0非备份1备份值
* @param isBack * @param isBack
*/ */
public void setIsBack(Integer isBack) { public void setIsBack(Integer isBack) {
this.isBack = isBack; this.isEdit = isBack;
} }
/** /**
@ -387,7 +387,7 @@ public class ResultDetail implements java.io.Serializable {
",gmtCreate=" + gmtCreate + ",gmtCreate=" + gmtCreate +
",gmtModified=" + gmtModified + ",gmtModified=" + gmtModified +
",backId=" + backId + ",backId=" + backId +
",isBack=" + isBack + ",isBack=" + isEdit +
",type=" + type + ",type=" + type +
",target=" + target + ",target=" + target +
",keyResult=" + keyResult + ",keyResult=" + keyResult +

View File

@ -9,7 +9,7 @@
<result column="gmt_create" property="gmtCreate"/> <result column="gmt_create" property="gmtCreate"/>
<result column="gmt_modified" property="gmtModified"/> <result column="gmt_modified" property="gmtModified"/>
<result column="back_id" property="backId"/> <result column="back_id" property="backId"/>
<result column="is_back" property="isBack"/> <result column="is_edit" property="isEdit"/>
<result column="type" property="type"/> <result column="type" property="type"/>
<result column="target" property="target"/> <result column="target" property="target"/>
<result column="key_result" property="keyResult"/> <result column="key_result" property="keyResult"/>
@ -29,7 +29,7 @@
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, back_id AS backId, is_back AS isBack, type AS type, target AS target, key_result AS keyResult, key_result_3_5 AS keyResult35, key_result_3_7 AS keyResult37, check_weight AS checkWeight, check_result AS checkResult, super_score AS superScore, acquire_score AS acquireScore, score_comment AS scoreComment, record_id AS recordId, staff_id AS staffId, priority AS priority, model_id AS modelId id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, back_id AS backId, is_edit AS isEdit, type AS type, target AS target, key_result AS keyResult, key_result_3_5 AS keyResult35, key_result_3_7 AS keyResult37, check_weight AS checkWeight, check_result AS checkResult, super_score AS superScore, acquire_score AS acquireScore, score_comment AS scoreComment, record_id AS recordId, staff_id AS staffId, priority AS priority, model_id AS modelId
</sql> </sql>
@ -43,7 +43,7 @@
<insert id="insertResultDetail" parameterType="ResultDetail" useGeneratedKeys="true" keyProperty="id" > <insert id="insertResultDetail" parameterType="ResultDetail" useGeneratedKeys="true" keyProperty="id" >
insert into lz_result_detail( insert into lz_result_detail(
<if test="backId != null">back_id, </if> <if test="backId != null">back_id, </if>
<if test="isBack != null">is_back, </if> <if test="isEdit != null">is_edit, </if>
<if test="type != null">type, </if> <if test="type != null">type, </if>
<if test="target != null">target, </if> <if test="target != null">target, </if>
<if test="keyResult != null">key_result, </if> <if test="keyResult != null">key_result, </if>
@ -63,7 +63,7 @@
gmt_modified gmt_modified
)values( )values(
<if test="backId != null">#{ backId}, </if> <if test="backId != null">#{ backId}, </if>
<if test="isBack != null">#{ isBack}, </if> <if test="isEdit != null">#{ isEdit}, </if>
<if test="type != null">#{ type}, </if> <if test="type != null">#{ type}, </if>
<if test="target != null">#{ target}, </if> <if test="target != null">#{ target}, </if>
<if test="keyResult != null">#{ keyResult}, </if> <if test="keyResult != null">#{ keyResult}, </if>
@ -92,7 +92,7 @@
<if test="isDelete != null">is_delete = #{isDelete},</if> <if test="isDelete != null">is_delete = #{isDelete},</if>
<if test="gmtCreate != null">gmt_create = #{gmtCreate},</if> <if test="gmtCreate != null">gmt_create = #{gmtCreate},</if>
<if test="backId != null">back_id = #{backId},</if> <if test="backId != null">back_id = #{backId},</if>
<if test="isBack != null">is_back = #{isBack},</if> <if test="isEdit != null">is_edit = #{isEdit},</if>
<if test="type != null">type = #{type},</if> <if test="type != null">type = #{type},</if>
<if test="target != null">target = #{target},</if> <if test="target != null">target = #{target},</if>
<if test="keyResult != null">key_result = #{keyResult},</if> <if test="keyResult != null">key_result = #{keyResult},</if>
@ -120,7 +120,7 @@
is_delete = #{isDelete}, is_delete = #{isDelete},
gmt_create = #{gmtCreate}, gmt_create = #{gmtCreate},
back_id = #{backId}, back_id = #{backId},
is_back = #{isBack}, is_edit = #{isEdit},
type = #{type}, type = #{type},
target = #{target}, target = #{target},
key_result = #{keyResult}, key_result = #{keyResult},
@ -147,7 +147,7 @@
<select id="selectByRecordId" resultType="com.lz.modules.sys.entity.app.ResultDetail"> <select id="selectByRecordId" resultType="com.lz.modules.sys.entity.app.ResultDetail">
select * from lz_result_detail where record_id=#{recordResultId} and is_delete = 0 and is_back=0 order by type asc ,priority desc select * from lz_result_detail where record_id=#{recordResultId} and is_delete = 0 and is_edit=0 order by type asc ,priority desc
</select> </select>
<select id="selectByRecordIdType" resultType="com.lz.modules.sys.entity.app.ResultDetail"> <select id="selectByRecordIdType" resultType="com.lz.modules.sys.entity.app.ResultDetail">
@ -196,7 +196,7 @@
</insert> </insert>
<select id="selectDtosByRecordId" resultType="com.lz.modules.flow.model.ResultDetailDto"> <select id="selectDtosByRecordId" resultType="com.lz.modules.flow.model.ResultDetailDto">
select * from lz_result_detail where record_id=#{recordResultId} and model_id = #{modelId} and is_delete = 0 and (is_back = 0 or is_back = 3) order by priority asc select * from lz_result_detail where record_id=#{recordResultId} and model_id = #{modelId} and is_delete = 0 and (is_edit = 0 or is_edit = 3) order by priority asc
</select> </select>
<update id="deleteResultDetailByRecordId" parameterType="java.lang.Long"> <update id="deleteResultDetailByRecordId" parameterType="java.lang.Long">
@ -204,11 +204,11 @@
</update> </update>
<select id="selectNotNoticeResultDetailByBackId" resultType="com.lz.modules.sys.entity.app.ResultDetail"> <select id="selectNotNoticeResultDetailByBackId" resultType="com.lz.modules.sys.entity.app.ResultDetail">
select * from lz_result_detail where back_id = #{backId} and is_back = 2 order by priority asc select * from lz_result_detail where back_id = #{backId} and is_edit = 2 order by priority asc
</select> </select>
<select id="selectNotNoticeResultDetailByRecordId" resultType="com.lz.modules.sys.entity.app.ResultDetail"> <select id="selectNotNoticeResultDetailByRecordId" resultType="com.lz.modules.sys.entity.app.ResultDetail">
select * from lz_result_detail where record_id = #{recordId} and (is_back = 2 or is_back = 3) order by priority asc select * from lz_result_detail where record_id = #{recordId} and (is_edit = 2 or is_edit = 3) order by priority asc
</select> </select>
</mapper> </mapper>