Commit 904adec0 authored by Administrator's avatar Administrator

新增赛包表字段

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