提交 bcbb26a2 作者: zhangqiliang

仓库管理的新增

父级 0b49e5fd
package com.boco.nbd.wios.manage.entity.bo; package com.boco.nbd.wios.manage.entity.bo;
import com.ihidea.core.base.CoreEntity; import com.ihidea.core.base.CoreEntity;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date; import java.util.Date;
...@@ -36,6 +37,14 @@ public class Warehouse extends CoreEntity { ...@@ -36,6 +37,14 @@ public class Warehouse extends CoreEntity {
private Integer isEnabled; private Integer isEnabled;
private String superiorWarehouse;
private String receivePeople;
private String receivePhone;
private String receiveAddress;
public String getId() { public String getId() {
return id; return id;
} }
...@@ -148,6 +157,38 @@ public class Warehouse extends CoreEntity { ...@@ -148,6 +157,38 @@ public class Warehouse extends CoreEntity {
this.isEnabled = isEnabled; this.isEnabled = isEnabled;
} }
public String getSuperiorWarehouse() {
return superiorWarehouse;
}
public void setSuperiorWarehouse(String superiorWarehouse) {
this.superiorWarehouse = superiorWarehouse;
}
public String getReceivePeople() {
return receivePeople;
}
public void setReceivePeople(String receivePeople) {
this.receivePeople = receivePeople;
}
public String getReceivePhone() {
return receivePhone;
}
public void setReceivePhone(String receivePhone) {
this.receivePhone = receivePhone;
}
public String getReceiveAddress() {
return receiveAddress;
}
public void setReceiveAddress(String receiveAddress) {
this.receiveAddress = receiveAddress;
}
@Override @Override
public boolean equals(Object that) { public boolean equals(Object that) {
if (this == that) { if (this == that) {
...@@ -173,6 +214,10 @@ public class Warehouse extends CoreEntity { ...@@ -173,6 +214,10 @@ public class Warehouse extends CoreEntity {
&& (this.getModifyAccount() == null ? other.getModifyAccount() == null : this.getModifyAccount().equals(other.getModifyAccount())) && (this.getModifyAccount() == null ? other.getModifyAccount() == null : this.getModifyAccount().equals(other.getModifyAccount()))
&& (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime())) && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
&& (this.getAppkey() == null ? other.getAppkey() == null : this.getAppkey().equals(other.getAppkey())) && (this.getAppkey() == null ? other.getAppkey() == null : this.getAppkey().equals(other.getAppkey()))
&& (this.getSuperiorWarehouse() == null ? other.getSuperiorWarehouse() == null : this.getSuperiorWarehouse().equals(other.getSuperiorWarehouse()))
&& (this.getReceivePeople() == null ? other.getReceivePeople() == null : this.getReceivePeople().equals(other.getReceivePeople()))
&& (this.getReceivePhone() == null ? other.getReceivePhone() == null : this.getReceivePhone().equals(other.getReceivePhone()))
&& (this.getReceiveAddress() == null ? other.getReceiveAddress() == null : this.getReceiveAddress().equals(other.getReceiveAddress()))
&& (this.getIsEnabled() == null ? other.getIsEnabled() == null : this.getIsEnabled().equals(other.getIsEnabled())); && (this.getIsEnabled() == null ? other.getIsEnabled() == null : this.getIsEnabled().equals(other.getIsEnabled()));
} }
...@@ -194,6 +239,10 @@ public class Warehouse extends CoreEntity { ...@@ -194,6 +239,10 @@ public class Warehouse extends CoreEntity {
result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode()); result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
result = prime * result + ((getAppkey() == null) ? 0 : getAppkey().hashCode()); result = prime * result + ((getAppkey() == null) ? 0 : getAppkey().hashCode());
result = prime * result + ((getIsEnabled() == null) ? 0 : getIsEnabled().hashCode()); result = prime * result + ((getIsEnabled() == null) ? 0 : getIsEnabled().hashCode());
result = prime * result + ((getSuperiorWarehouse() == null) ? 0 : getSuperiorWarehouse().hashCode());
result = prime * result + ((getReceivePeople() == null) ? 0 : getReceivePeople().hashCode());
result = prime * result + ((getReceivePhone() == null) ? 0 : getReceivePhone().hashCode());
result = prime * result + ((getReceiveAddress() == null) ? 0 : getReceiveAddress().hashCode());
return result; return result;
} }
} }
\ No newline at end of file
...@@ -45,6 +45,14 @@ public class WarehouseSaveQuery { ...@@ -45,6 +45,14 @@ public class WarehouseSaveQuery {
@ApiModelProperty(value = "用户ID",required = true) @ApiModelProperty(value = "用户ID",required = true)
private String accountId; private String accountId;
@ApiModelProperty(value = "上级仓库")
private String superiorWarehouse;
@ApiModelProperty(value = "收件人")
private String receivePeople;
@ApiModelProperty(value = "收件电话")
private String receivePhone;
@ApiModelProperty(value = "收件地址")
private String receiveAddress;
public String getId() { public String getId() {
return id; return id;
...@@ -126,4 +134,36 @@ public class WarehouseSaveQuery { ...@@ -126,4 +134,36 @@ public class WarehouseSaveQuery {
public void setAccountId(String accountId) { public void setAccountId(String accountId) {
this.accountId = accountId; this.accountId = accountId;
} }
public String getSuperiorWarehouse() {
return superiorWarehouse;
}
public void setSuperiorWarehouse(String superiorWarehouse) {
this.superiorWarehouse = superiorWarehouse;
}
public String getReceivePeople() {
return receivePeople;
}
public void setReceivePeople(String receivePeople) {
this.receivePeople = receivePeople;
}
public String getReceivePhone() {
return receivePhone;
}
public void setReceivePhone(String receivePhone) {
this.receivePhone = receivePhone;
}
public String getReceiveAddress() {
return receiveAddress;
}
public void setReceiveAddress(String receiveAddress) {
this.receiveAddress = receiveAddress;
}
} }
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
a.account as accountName from t_supplier t a.account as accountName from t_supplier t
left join wb_account a on a.id=t.account_id left join wb_account a on a.id=t.account_id
<if test="hasContract != null"><!-- 是否签了合同 --> <if test="hasContract != null"><!-- 是否签了合同 -->
left join t_supplier_contract sc on sc.supplier_id=t.id left join T_SUPPLIER_CONTRACT sc on sc.supplier_id=t.id
<if test="hasContract == 1"> <if test="hasContract == 1">
and sc.status=2 and sc.status=2
</if> </if>
......
...@@ -59,9 +59,9 @@ ...@@ -59,9 +59,9 @@
<insert id="insertWarehouse" parameterType="com.boco.nbd.wios.manage.entity.bo.Warehouse"> <insert id="insertWarehouse" parameterType="com.boco.nbd.wios.manage.entity.bo.Warehouse">
insert into t_warehouse(id,appkey,warehouse_leven_id,name,area,service_provider,warehouse_attribution,msg,status,create_time,create_account,modify_account,modify_time,is_enabled) insert into t_warehouse(id,appkey,warehouse_leven_id,name,area,service_provider,warehouse_attribution,msg,status,create_time,create_account,modify_account,modify_time,is_enabled,superior_warehouse,receive_people,receive_phone,receive_address)
values (#{id},#{appkey},#{warehouseLevenId},#{name},#{area},#{serviceProvider},#{warehouseAttribution},#{msg},#{status},#{createTime},#{createAccount},#{modifyAccount},#{modifyTime},#{isEnabled}) values (#{id},#{appkey},#{warehouseLevenId},#{name},#{area},#{serviceProvider},#{warehouseAttribution},#{msg},#{status},#{createTime},#{createAccount},#{modifyAccount},#{modifyTime},#{isEnabled},#{superiorWarehouse},#{receivePeople},#{receivePhone},#{receiveAddress})
ON DUPLICATE KEY UPDATE warehouse_leven_id = values(warehouse_leven_id),name = values(name),area=values(area),service_provider = values(service_provider),warehouse_attribution = values(warehouse_attribution),msg = values(msg),is_enabled = values(is_enabled) ON DUPLICATE KEY UPDATE warehouse_leven_id = values(warehouse_leven_id),name = values(name),area=values(area),service_provider = values(service_provider),warehouse_attribution = values(warehouse_attribution),msg = values(msg),is_enabled = values(is_enabled),superior_warehouse = values(superior_warehouse),receive_people = values(receive_people),receive_phone = values(receive_phone),receive_address = values(receive_address)
</insert> </insert>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论