Commit 83861ed1 by huangZW

111

parent 07c51858
......@@ -15,9 +15,8 @@ public interface TabHaobanMaidianDictModuleMapper {
int updateByPrimaryKeySelective(TabHaobanMaidianDictModule record);
int updateByPrimaryKeyWithBLOBs(TabHaobanMaidianDictModule record);
int updateByPrimaryKey(TabHaobanMaidianDictModule record);
List<TabHaobanMaidianDictModule> list();
}
\ No newline at end of file
......@@ -16,12 +16,12 @@ public class TabHaobanMaidianDictModule implements Serializable {
private String operationPerson;
private String moduleData;
private Integer hideFlag;
private String code;
private String moduleData;
private static final long serialVersionUID = 1L;
public String getModuleId() {
......@@ -72,6 +72,14 @@ public class TabHaobanMaidianDictModule implements Serializable {
this.operationPerson = operationPerson == null ? null : operationPerson.trim();
}
public String getModuleData() {
return moduleData;
}
public void setModuleData(String moduleData) {
this.moduleData = moduleData == null ? null : moduleData.trim();
}
public Integer getHideFlag() {
return hideFlag;
}
......@@ -87,12 +95,4 @@ public class TabHaobanMaidianDictModule implements Serializable {
public void setCode(String code) {
this.code = code == null ? null : code.trim();
}
public String getModuleData() {
return moduleData;
}
public void setModuleData(String moduleData) {
this.moduleData = moduleData == null ? null : moduleData.trim();
}
}
\ No newline at end of file
......@@ -8,24 +8,17 @@
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
<result column="status" property="status" jdbcType="INTEGER" />
<result column="operation_person" property="operationPerson" jdbcType="VARCHAR" />
<result column="module_data" property="moduleData" jdbcType="VARCHAR" />
<result column="hide_flag" property="hideFlag" jdbcType="INTEGER" />
<result column="code" property="code" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gic.haoban.manage.service.entity.TabHaobanMaidianDictModule" extends="BaseResultMap" >
<result column="module_data" property="moduleData" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
module_id, module_name, create_time, update_time, status, operation_person, hide_flag,
code
</sql>
<sql id="Blob_Column_List" >
module_data
module_id, module_name, create_time, update_time, status, operation_person, module_data,
hide_flag, code
</sql>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tab_haoban_maidian_dict_module
where module_id = #{moduleId,jdbcType=VARCHAR}
</select>
......@@ -36,11 +29,11 @@
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianDictModule" >
insert into tab_haoban_maidian_dict_module (module_id, module_name, create_time,
update_time, status, operation_person,
hide_flag, code, module_data
module_data, hide_flag, code
)
values (#{moduleId,jdbcType=VARCHAR}, #{moduleName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{operationPerson,jdbcType=VARCHAR},
#{hideFlag,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{moduleData,jdbcType=LONGVARCHAR}
#{moduleData,jdbcType=VARCHAR}, #{hideFlag,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianDictModule" >
......@@ -64,15 +57,15 @@
<if test="operationPerson != null" >
operation_person,
</if>
<if test="moduleData != null" >
module_data,
</if>
<if test="hideFlag != null" >
hide_flag,
</if>
<if test="code != null" >
code,
</if>
<if test="moduleData != null" >
module_data,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="moduleId != null" >
......@@ -93,15 +86,15 @@
<if test="operationPerson != null" >
#{operationPerson,jdbcType=VARCHAR},
</if>
<if test="moduleData != null" >
#{moduleData,jdbcType=VARCHAR},
</if>
<if test="hideFlag != null" >
#{hideFlag,jdbcType=INTEGER},
</if>
<if test="code != null" >
#{code,jdbcType=VARCHAR},
</if>
<if test="moduleData != null" >
#{moduleData,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianDictModule" >
......@@ -122,30 +115,18 @@
<if test="operationPerson != null" >
operation_person = #{operationPerson,jdbcType=VARCHAR},
</if>
<if test="moduleData != null" >
module_data = #{moduleData,jdbcType=VARCHAR},
</if>
<if test="hideFlag != null" >
hide_flag = #{hideFlag,jdbcType=INTEGER},
</if>
<if test="code != null" >
code = #{code,jdbcType=VARCHAR},
</if>
<if test="moduleData != null" >
module_data = #{moduleData,jdbcType=LONGVARCHAR},
</if>
</set>
where module_id = #{moduleId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianDictModule" >
update tab_haoban_maidian_dict_module
set module_name = #{moduleName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
operation_person = #{operationPerson,jdbcType=VARCHAR},
hide_flag = #{hideFlag,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR},
module_data = #{moduleData,jdbcType=LONGVARCHAR}
where module_id = #{moduleId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianDictModule" >
update tab_haoban_maidian_dict_module
set module_name = #{moduleName,jdbcType=VARCHAR},
......@@ -153,11 +134,11 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
operation_person = #{operationPerson,jdbcType=VARCHAR},
module_data = #{moduleData,jdbcType=VARCHAR},
hide_flag = #{hideFlag,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR}
where module_id = #{moduleId,jdbcType=VARCHAR}
</update>
<select id="list" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
......@@ -166,4 +147,5 @@
order by create_time
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment