Commit 904adec0 authored by Administrator's avatar Administrator

新增赛包表字段

parent 6d1f25e7
...@@ -39,15 +39,24 @@ public class BagDelivery extends JaapRecord<BagDelivery> { ...@@ -39,15 +39,24 @@ public class BagDelivery extends JaapRecord<BagDelivery> {
@ApiModelProperty(value = "手机号", notes = "手机号") @ApiModelProperty(value = "手机号", notes = "手机号")
private String phone; private String phone;
@ApiModelProperty(value = "地区(大陆、港澳台、国外)", notes = "地区(大陆、港澳台、国外)")
private String area;
@ApiModelProperty(value = "省", notes = "省") @ApiModelProperty(value = "省", notes = "省")
private String province; private String province;
@ApiModelProperty(value = "省代码", notes = "省代码")
private String provinceCode;
@ApiModelProperty(value = "市", notes = "市") @ApiModelProperty(value = "市", notes = "市")
private String city; private String city;
@ApiModelProperty(value = "市代码", notes = "市代码")
private String cityCode;
@ApiModelProperty(value = "区", notes = "区)")
private String area;
@ApiModelProperty(value = "区代码", notes = "区代码)")
private String areaCode;
@ApiModelProperty(value = "详细地址", notes = "详细地址") @ApiModelProperty(value = "详细地址", notes = "详细地址")
private String location; private String location;
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<mapper namespace="com.dlbridge.jadp.plugins.partner.mapper.BagDeliveryMapper"> <mapper namespace="com.dlbridge.jadp.plugins.partner.mapper.BagDeliveryMapper">
<insert id="insertBagDelivery"> <insert id="insertBagDelivery">
insert into bag_delivery(cmpt_id ,name,mark_no,phone,area,province,city,location,delivery_no,express_company,remark,status,del_flag,create_date) insert into bag_delivery(cmpt_id ,name,mark_no,phone,province,province_code,city,city_code,area,area_code,location,delivery_no,express_company,remark,status,del_flag,create_date)
values( #{bag.cmptId},#{bag.name},#{bag.markNo},#{bag.phone},#{bag.area},#{bag.province},#{bag.city},#{bag.location},#{bag.deliveryNo},#{bag.expressCompany},#{bag.remark},1,0,now()) values( #{bag.cmptId},#{bag.name},#{bag.markNo},#{bag.phone},#{bag.province},#{bag.provinceCode},#{bag.city},#{bag.cityCode},#{bag.area},#{bag.areaCode},#{bag.location},#{bag.deliveryNo},#{bag.expressCompany},#{bag.remark},1,0,now())
</insert> </insert>
<update id="delBagDelivery"> <update id="delBagDelivery">
...@@ -24,15 +24,24 @@ ...@@ -24,15 +24,24 @@
<if test="phone != null"> <if test="phone != null">
,phone=#{phone} ,phone=#{phone}
</if> </if>
<if test="area != null">
,area=#{area}
</if>
<if test="province != null"> <if test="province != null">
,province=#{province} ,province=#{province}
</if> </if>
<if test="provinceCode != null">
,province_code=#{provinceCode}
</if>
<if test="city != null"> <if test="city != null">
,city=#{city} ,city=#{city}
</if> </if>
<if test="cityCode != null">
,city_code=#{cityCode}
</if>
<if test="area != null">
,area=#{area}
</if>
<if test="areaCode != null">
,area_code=#{areaCode}
</if>
<if test="location != null"> <if test="location != null">
,location=#{location} ,location=#{location}
</if> </if>
...@@ -60,9 +69,12 @@ ...@@ -60,9 +69,12 @@
name, name,
mark_no markNo, mark_no markNo,
phone, phone,
area,
province, province,
province_code provinceCode,
city, city,
city_code cityCode,
area,
area_code areaCode,
location, location,
delivery_no deliveryNo, delivery_no deliveryNo,
express_company expressCompany, express_company expressCompany,
......
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