Browse Source

1.修改客户绑定的服务服务仓库,之前是通过发货单位进行指派服务仓库,现在修改按照发货仓来进行对应关系

dev-warehouse
pref_mail@163.com 2 years ago
parent
commit
cad1b9577e
  1. 20
      blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/entity/BasicdataStorageServicesEntity.java
  2. 4
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStorageServicesServiceImpl.java

20
blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/entity/BasicdataStorageServicesEntity.java

@ -72,16 +72,24 @@ public class BasicdataStorageServicesEntity extends TenantEntity {
*/ */
@ApiModelProperty(value = "区分类型") @ApiModelProperty(value = "区分类型")
private Integer distinguish; private Integer distinguish;
/** /**
* 发货单位 * 服务仓库
*/ */
@ApiModelProperty(value = "发货单位") @ApiModelProperty(value = "服务仓库ID")
private String forwardingUnit; private String serveWarehouseId;
@ApiModelProperty(value = "服务仓库Name")
private String serveWwarehouseName;
/** /**
* 服务仓库 * 发货仓库 发货仓库客户允许未null
*/ */
@ApiModelProperty(value = "服务仓库") @ApiModelProperty(value = "发货仓库ID")
private String warehouseService; private String sendWarehouseId;
@ApiModelProperty(value = "发货仓库Name")
private String sendWarehouseName;
/** /**
* 门店ID * 门店ID

4
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStorageServicesServiceImpl.java

@ -60,8 +60,8 @@ public class BasicdataStorageServicesServiceImpl extends BaseServiceImpl<Basicda
List<BasicdataStorageServicesEntity> basicdataStorageServicesEntities = baseMapper.selectList(Wrappers.<BasicdataStorageServicesEntity>query().lambda(). List<BasicdataStorageServicesEntity> basicdataStorageServicesEntities = baseMapper.selectList(Wrappers.<BasicdataStorageServicesEntity>query().lambda().
eq(BasicdataStorageServicesEntity::getShopId, basicdataStorageServices.getShopId()). eq(BasicdataStorageServicesEntity::getShopId, basicdataStorageServices.getShopId()).
eq(BasicdataStorageServicesEntity::getForwardingUnit, basicdataStorageServices.getForwardingUnit()). eq(BasicdataStorageServicesEntity::getSendWarehouseId, basicdataStorageServices.getSendWarehouseId()).
eq(BasicdataStorageServicesEntity::getWarehouseService, basicdataStorageServices.getWarehouseService()) eq(BasicdataStorageServicesEntity::getSendWarehouseId, basicdataStorageServices.getSendWarehouseId())
); );
if(basicdataStorageServicesEntities.size() > 0){ if(basicdataStorageServicesEntities.size() > 0){
throw new RuntimeException("存在重复数据!已拒绝!!"); throw new RuntimeException("存在重复数据!已拒绝!!");

Loading…
Cancel
Save