Commit 6fbd219e by xiaoyj

修改字段名

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21645 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 04bb5ef0
...@@ -9,7 +9,7 @@ public class SysReceiveAddress { ...@@ -9,7 +9,7 @@ public class SysReceiveAddress {
private String phone; private String phone;
private String areaCode; private String districtCode;
private String address; private String address;
...@@ -45,12 +45,12 @@ public class SysReceiveAddress { ...@@ -45,12 +45,12 @@ public class SysReceiveAddress {
this.phone = phone == null ? null : phone.trim(); this.phone = phone == null ? null : phone.trim();
} }
public String getAreaCode() { public String getDistrictCode() {
return areaCode; return districtCode;
} }
public void setAreaCode(String areaCode) { public void setDistrictCode(String districtCode) {
this.areaCode = areaCode == null ? null : areaCode.trim(); this.districtCode = districtCode;
} }
public String getAddress() { public String getAddress() {
......
...@@ -364,73 +364,63 @@ public class SysReceiveAddressExample { ...@@ -364,73 +364,63 @@ public class SysReceiveAddressExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeIsNull() { public Criteria andDistrictCodeIsNull() {
addCriterion("area_code is null"); addCriterion("district_code is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeIsNotNull() { public Criteria andDistrictCodeIsNotNull() {
addCriterion("area_code is not null"); addCriterion("district_code is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeEqualTo(String value) { public Criteria andDistrictCodeEqualTo(Integer value) {
addCriterion("area_code =", value, "areaCode"); addCriterion("district_code =", value, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeNotEqualTo(String value) { public Criteria andDistrictCodeNotEqualTo(Integer value) {
addCriterion("area_code <>", value, "areaCode"); addCriterion("district_code <>", value, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeGreaterThan(String value) { public Criteria andDistrictCodeGreaterThan(Integer value) {
addCriterion("area_code >", value, "areaCode"); addCriterion("district_code >", value, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeGreaterThanOrEqualTo(String value) { public Criteria andDistrictCodeGreaterThanOrEqualTo(Integer value) {
addCriterion("area_code >=", value, "areaCode"); addCriterion("district_code >=", value, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeLessThan(String value) { public Criteria andDistrictCodeLessThan(Integer value) {
addCriterion("area_code <", value, "areaCode"); addCriterion("district_code <", value, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeLessThanOrEqualTo(String value) { public Criteria andDistrictCodeLessThanOrEqualTo(Integer value) {
addCriterion("area_code <=", value, "areaCode"); addCriterion("district_code <=", value, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeLike(String value) { public Criteria andDistrictCodeIn(List<Integer> values) {
addCriterion("area_code like", value, "areaCode"); addCriterion("district_code in", values, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeNotLike(String value) { public Criteria andDistrictCodeNotIn(List<Integer> values) {
addCriterion("area_code not like", value, "areaCode"); addCriterion("district_code not in", values, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeIn(List<String> values) { public Criteria andDistrictCodeBetween(Integer value1, Integer value2) {
addCriterion("area_code in", values, "areaCode"); addCriterion("district_code between", value1, value2, "districtCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAreaCodeNotIn(List<String> values) { public Criteria andDistrictCodeNotBetween(Integer value1, Integer value2) {
addCriterion("area_code not in", values, "areaCode"); addCriterion("district_code not between", value1, value2, "districtCode");
return (Criteria) this;
}
public Criteria andAreaCodeBetween(String value1, String value2) {
addCriterion("area_code between", value1, value2, "areaCode");
return (Criteria) this;
}
public Criteria andAreaCodeNotBetween(String value1, String value2) {
addCriterion("area_code not between", value1, value2, "areaCode");
return (Criteria) this; return (Criteria) this;
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<result column="user_id" property="userId" jdbcType="INTEGER" /> <result column="user_id" property="userId" jdbcType="INTEGER" />
<result column="name" property="name" jdbcType="VARCHAR" /> <result column="name" property="name" jdbcType="VARCHAR" />
<result column="phone" property="phone" jdbcType="VARCHAR" /> <result column="phone" property="phone" jdbcType="VARCHAR" />
<result column="area_code" property="areaCode" jdbcType="VARCHAR" /> <result column="district_code" property="districtCode" jdbcType="INTEGER" />
<result column="address" property="address" jdbcType="VARCHAR" /> <result column="address" property="address" jdbcType="VARCHAR" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause" > <sql id="Example_Where_Clause" >
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List" > <sql id="Base_Column_List" >
id, user_id, name, phone, area_code, address id, user_id, name, phone, district_code, address
</sql> </sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddressExample" > <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddressExample" >
select select
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
distinct distinct
</if> </if>
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from sys_reaceive_address from sys_receive_address
<if test="_parameter != null" > <if test="_parameter != null" >
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
...@@ -87,29 +87,29 @@ ...@@ -87,29 +87,29 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from sys_reaceive_address from sys_receive_address
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" > <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from sys_reaceive_address delete from sys_receive_address
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<delete id="deleteByExample" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddressExample" > <delete id="deleteByExample" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddressExample" >
delete from sys_reaceive_address delete from sys_receive_address
<if test="_parameter != null" > <if test="_parameter != null" >
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddress" > <insert id="insert" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddress" >
insert into sys_reaceive_address (id, user_id, name, insert into sys_receive_address (id, user_id, name,
phone, area_code, address phone, district_code, address
) )
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{areaCode,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR} #{phone,jdbcType=VARCHAR}, #{districtCode,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddress" > <insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddress" >
insert into sys_reaceive_address insert into sys_receive_address
<trim prefix="(" suffix=")" suffixOverrides="," > <trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" > <if test="id != null" >
id, id,
...@@ -123,8 +123,8 @@ ...@@ -123,8 +123,8 @@
<if test="phone != null" > <if test="phone != null" >
phone, phone,
</if> </if>
<if test="areaCode != null" > <if test="districtCode != null" >
area_code, district_code,
</if> </if>
<if test="address != null" > <if test="address != null" >
address, address,
...@@ -143,8 +143,8 @@ ...@@ -143,8 +143,8 @@
<if test="phone != null" > <if test="phone != null" >
#{phone,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
</if> </if>
<if test="areaCode != null" > <if test="districtCode != null" >
#{areaCode,jdbcType=VARCHAR}, #{districtCode,jdbcType=INTEGER},
</if> </if>
<if test="address != null" > <if test="address != null" >
#{address,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
...@@ -152,13 +152,13 @@ ...@@ -152,13 +152,13 @@
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddressExample" resultType="java.lang.Integer" > <select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddressExample" resultType="java.lang.Integer" >
select count(*) from sys_reaceive_address select count(*) from sys_receive_address
<if test="_parameter != null" > <if test="_parameter != null" >
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
</select> </select>
<update id="updateByExampleSelective" parameterType="map" > <update id="updateByExampleSelective" parameterType="map" >
update sys_reaceive_address update sys_receive_address
<set > <set >
<if test="record.id != null" > <if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER}, id = #{record.id,jdbcType=INTEGER},
...@@ -172,8 +172,8 @@ ...@@ -172,8 +172,8 @@
<if test="record.phone != null" > <if test="record.phone != null" >
phone = #{record.phone,jdbcType=VARCHAR}, phone = #{record.phone,jdbcType=VARCHAR},
</if> </if>
<if test="record.areaCode != null" > <if test="record.districtCode != null" >
area_code = #{record.areaCode,jdbcType=VARCHAR}, district_code = #{record.districtCode,jdbcType=INTEGER},
</if> </if>
<if test="record.address != null" > <if test="record.address != null" >
address = #{record.address,jdbcType=VARCHAR}, address = #{record.address,jdbcType=VARCHAR},
...@@ -184,19 +184,19 @@ ...@@ -184,19 +184,19 @@
</if> </if>
</update> </update>
<update id="updateByExample" parameterType="map" > <update id="updateByExample" parameterType="map" >
update sys_reaceive_address update sys_receive_address
set id = #{record.id,jdbcType=INTEGER}, set id = #{record.id,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=INTEGER}, user_id = #{record.userId,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR}, name = #{record.name,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR}, phone = #{record.phone,jdbcType=VARCHAR},
area_code = #{record.areaCode,jdbcType=VARCHAR}, district_code = #{record.districtCode,jdbcType=INTEGER},
address = #{record.address,jdbcType=VARCHAR} address = #{record.address,jdbcType=VARCHAR}
<if test="_parameter != null" > <if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddress" > <update id="updateByPrimaryKeySelective" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddress" >
update sys_reaceive_address update sys_receive_address
<set > <set >
<if test="userId != null" > <if test="userId != null" >
user_id = #{userId,jdbcType=INTEGER}, user_id = #{userId,jdbcType=INTEGER},
...@@ -207,8 +207,8 @@ ...@@ -207,8 +207,8 @@
<if test="phone != null" > <if test="phone != null" >
phone = #{phone,jdbcType=VARCHAR}, phone = #{phone,jdbcType=VARCHAR},
</if> </if>
<if test="areaCode != null" > <if test="districtCode != null" >
area_code = #{areaCode,jdbcType=VARCHAR}, district_code = #{districtCode,jdbcType=INTEGER},
</if> </if>
<if test="address != null" > <if test="address != null" >
address = #{address,jdbcType=VARCHAR}, address = #{address,jdbcType=VARCHAR},
...@@ -217,12 +217,12 @@ ...@@ -217,12 +217,12 @@
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddress" > <update id="updateByPrimaryKey" parameterType="com.glsx.ordercenter.pojo.SysReceiveAddress" >
update sys_reaceive_address update sys_receive_address
set user_id = #{userId,jdbcType=INTEGER}, set user_id = #{userId,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR}, phone = #{phone,jdbcType=VARCHAR},
area_code = #{areaCode,jdbcType=VARCHAR}, district_code = #{districtCode,jdbcType=INTEGER},
address = #{address,jdbcType=VARCHAR} address = #{address,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!