diff --git a/blade-biz-common/src/main/java/org/springblade/common/utils/DefaultUserTokenConfig.java b/blade-biz-common/src/main/java/org/springblade/common/utils/DefaultUserTokenConfig.java index d66a8dea0..9b0ce7841 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/utils/DefaultUserTokenConfig.java +++ b/blade-biz-common/src/main/java/org/springblade/common/utils/DefaultUserTokenConfig.java @@ -2,7 +2,7 @@ package org.springblade.common.utils; public class DefaultUserTokenConfig { /** - * 默认用户的token 超时时间 + * 默认用户的token 超时时间 */ - public static final Long EXPIRE_TIME = 7 *24 * 60 * 60 * 1000L; + public static final Long EXPIRE_TIME = 7 * 24 * 60 * 60L; } diff --git a/blade-biz-common/src/main/java/org/springblade/common/utils/GaoDeApiUtil.java b/blade-biz-common/src/main/java/org/springblade/common/utils/GaoDeApiUtil.java index b2726b2a7..15a7c24c4 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/utils/GaoDeApiUtil.java +++ b/blade-biz-common/src/main/java/org/springblade/common/utils/GaoDeApiUtil.java @@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory; import org.springblade.common.model.GAddressVo; import java.net.URL; +import java.util.*; /** * 高德地图解析 @@ -17,11 +18,12 @@ public class GaoDeApiUtil { private static final Logger log = LoggerFactory.getLogger(GaoDeApiUtil.class); + private static final List mapInfo = Arrays.asList("40448f21dfc7a531e9db4c405d955bea","bbe8063f82a8b79cb337d62ae076845d","184cf367995e95d1c0012cac1d4c2bfe"); + + /** * 根据经纬度获取省市区 * - * @param log - * @param lat * @return */ public static GAddressVo getAdd(String positioning) { @@ -29,7 +31,9 @@ public class GaoDeApiUtil { GAddressVo gAddressVo = new GAddressVo(); // 注意key是在高德/百度开放平台申请的key,高德地图具体获得key的步骤请查看网址:https://developer.amap.com/api/webservice/guide/create-project/get-key // 百度地图开放平台的网址:https://lbsyun.baidu.com/index.php 在该平台注册即可 - String key = "40448f21dfc7a531e9db4c405d955bea"; + Random random = new Random(); + int i = random.nextInt(mapInfo.size()); + String key = mapInfo.get(i); // 地理编码 : 详细中文地址转为经纬度信息 请求地址: https://restapi.amap.com/v3/geocode/geo?parameters // 地理逆编码:经纬度信息转中文地址信息 请求地址:https://restapi.amap.com/v3/geocode/regeo?parameters // 第一个是高德的逆地理编码 第二个是百度的逆地理编码 均为get请求 104.18577,30.534026 @@ -53,7 +57,6 @@ public class GaoDeApiUtil { JSONObject jsonObject = JSONObject.parseObject(res); // 这个是高德的 JSONObject jsonObject1 = jsonObject.getJSONObject("regeocode"); -//// 这个是百度的 res = jsonObject1.getString("formatted_address"); JSONObject t = jsonObject1.getJSONObject("addressComponent"); diff --git a/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/entity/BasicdataClientEntity.java b/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/entity/BasicdataClientEntity.java index 6f13a1fc2..ec021bc91 100644 --- a/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/entity/BasicdataClientEntity.java +++ b/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/entity/BasicdataClientEntity.java @@ -164,16 +164,34 @@ public class BasicdataClientEntity extends TenantEntity { */ @ApiModelProperty(value = "省份") private String bladeRegionProvinceId; + + /** + * 省份 + */ + @ApiModelProperty(value = "省份") + private String bladeRegionProvinceName; /** * 市 */ @ApiModelProperty(value = "市") private String bladeRegionCityId; + + /** + * 市 + */ + @ApiModelProperty(value = "市") + private String bladeRegionCityName; /** * 区/县 */ @ApiModelProperty(value = "区/县") private String bladeRegionAreaId; + + /** + * 区/县 + */ + @ApiModelProperty(value = "区/县") + private String bladeRegionAreaName; /** * 合同附件 */ diff --git a/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/vo/BasicdataBrandCategoryVO.java b/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/vo/BasicdataBrandCategoryVO.java index fd1e225ca..5fcd4221e 100644 --- a/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/vo/BasicdataBrandCategoryVO.java +++ b/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/vo/BasicdataBrandCategoryVO.java @@ -31,4 +31,9 @@ import lombok.EqualsAndHashCode; public class BasicdataBrandCategoryVO extends BasicdataBrandCategoryEntity { private static final long serialVersionUID = 1L; + private String brandName; + private String name; + + + } diff --git a/blade-service-api/logpm-data-sharing-api/src/main/java/com/logpm/datasharing/vo/NodeInfoVO.java b/blade-service-api/logpm-data-sharing-api/src/main/java/com/logpm/datasharing/vo/NodeInfoVO.java index d3855ad18..94d111adf 100644 --- a/blade-service-api/logpm-data-sharing-api/src/main/java/com/logpm/datasharing/vo/NodeInfoVO.java +++ b/blade-service-api/logpm-data-sharing-api/src/main/java/com/logpm/datasharing/vo/NodeInfoVO.java @@ -57,4 +57,5 @@ public class NodeInfoVO implements Serializable { @ApiModelProperty(value = "操作计划时间") private Date operatePlanTime; + } diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/OpenOrderDTO.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/OpenOrderDTO.java index 7646632ef..fcd8a4c01 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/OpenOrderDTO.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/OpenOrderDTO.java @@ -125,6 +125,7 @@ public class OpenOrderDTO implements Serializable { private String trunklineVehicleType;//提货车型 private String pickupVehicleType;//提货车型 + private Long pickupVehicleTypeId;//提货车型id private Integer checkStatus; diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java index 420e441b9..f233716b9 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java @@ -483,6 +483,9 @@ public class WarehouseWaybillEntity extends TenantEntity { @ApiModelProperty(value = "干线车型 ") private String trunklineVehicleType; + @ApiModelProperty(value = "提货车型id ") + private Long pickupVehicleTypeId; + @ApiModelProperty(value = "提货车型 ") private String pickupVehicleType; diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesAbnormalPackageMapper.xml b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesAbnormalPackageMapper.xml index 262bbf321..0e7d21d01 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesAbnormalPackageMapper.xml +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesAbnormalPackageMapper.xml @@ -67,6 +67,8 @@ + group BY + ldpl.id - select * from logpm_basicdata_brand_category where is_deleted = 0 - + + diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml index 50202445b..4e6bf7fcb 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml @@ -106,6 +106,8 @@ SELECT lbc.id, lbc.client_name, + lbc.create_time, + lbc.update_time, lbc. client_type, lbc.client_code, lbc. linkman, diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataTripartiteMallMapper.xml b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataTripartiteMallMapper.xml index 8c1084a0e..0516c375e 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataTripartiteMallMapper.xml +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataTripartiteMallMapper.xml @@ -69,6 +69,8 @@ lbtm.tripartite_coding, lbtm.brand_name, lbc.client_name AS clientName, + lbc.create_time AS createTime, + lbc.update_time AS updateTime, lbc.type_service AS typeService FROM logpm_basicdata_tripartite_mall AS lbtm diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientService.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientService.java index 4d25f445e..3e292a88a 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientService.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientService.java @@ -134,4 +134,11 @@ public interface IBasicdataClientService extends BaseService listNameLike(String name); + + /** + * 获取客户导入模板 + * @return + */ + List exportclientTemplate(); + } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataTripartiteMallService.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataTripartiteMallService.java index 62c43e7f3..5e5826cb2 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataTripartiteMallService.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataTripartiteMallService.java @@ -86,4 +86,16 @@ public interface IBasicdataTripartiteMallService extends BaseService exportTripartiteMallTemplate(); + + /** + * 三方商城导入 + * @param data + */ + void importTripartiteMall(List data); } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataBrandCategoryServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataBrandCategoryServiceImpl.java index 06790e83c..207ec87e8 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataBrandCategoryServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataBrandCategoryServiceImpl.java @@ -39,7 +39,7 @@ public class BasicdataBrandCategoryServiceImpl extends BaseServiceImpl selectBasicdataBrandCategoryPage(IPage page, BasicdataBrandCategoryVO basicdataBrandCategory) { - return page.setRecords(baseMapper.selectBasicdataBrandCategoryPage(page, basicdataBrandCategory)); + return baseMapper.selectBasicdataBrandCategoryPage(page, basicdataBrandCategory); } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java index 05573fa64..dd34a8e91 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java @@ -74,6 +74,7 @@ import org.springblade.system.cache.DictBizCache; import org.springblade.system.entity.DictBiz; import org.springblade.system.feign.IRegionFeign; import org.springblade.system.feign.IUserClient; +import org.springblade.system.vo.RegionAllVO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; @@ -409,14 +410,22 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl[").append(sdf.format(oldClientEntity.getContractStartTime())).append("],"); + if (!Objects.isNull(oldClientEntity.getContractStartTime())){ + content.append("合同开始时间由[").append(sdf.format(oldClientEntity.getContractStartTime())).append("]变更为-->[").append(sdf.format(oldClientEntity.getContractStartTime())).append("],"); + }else { + content.append("添加合同开始时间[").append(sdf.format(newClientEntity.getContractStartTime())).append("],"); + } } } //对于合同结束时间比对 Predicate predicateContractEntTime = Predicate.isEqual(oldClientEntity.getContractEntTime()); boolean contractEndTime = predicateContractEntTime.test(newClientEntity.getContractEntTime()); if (!contractEndTime) { - content.append("合同开始时间由[").append(sdf.format(oldClientEntity.getContractEntTime())).append("]变更为-->[").append(sdf.format(newClientEntity.getContractEntTime())).append("],"); + if (!Objects.isNull(oldClientEntity.getContractEntTime())){ + content.append("合同结束时间由[").append(sdf.format(oldClientEntity.getContractStartTime())).append("]变更为-->[").append(sdf.format(oldClientEntity.getContractStartTime())).append("],"); + }else { + content.append("添加合同结束时间[").append(sdf.format(newClientEntity.getContractStartTime())).append("],"); + } } BasicdataClientLogEntity basicdataClientLogEntity = new BasicdataClientLogEntity(); basicdataClientLogEntity.setClientName(newClientEntity.getClientName()); @@ -444,6 +453,35 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl exportclientTemplate() { + List list = new ArrayList<>(); + BasicdataClientExcel basicdataClientExcel = new BasicdataClientExcel(); + basicdataClientExcel.setClientName("示例:商场A"); + basicdataClientExcel.setTypeService("示例:干线,仓库,配送"); + basicdataClientExcel.setClientType("示例:商配"); + basicdataClientExcel.setDetailedly("示例:XXX省XX市XX区/县"); + basicdataClientExcel.setBladeRegionProvinceName("示例:XX省"); + basicdataClientExcel.setBladeRegionCityName("示例:XX市"); + basicdataClientExcel.setBladeRegionAreaName("示例:XX区/县"); + basicdataClientExcel.setCargoControl("示例:是"); + basicdataClientExcel.setSendWarehouseName("示例:XX仓"); + basicdataClientExcel.setServeWarehouseName("示例:XX仓"); + basicdataClientExcel.setLinkman("示例:张三"); + basicdataClientExcel.setPhone("示例:120********"); + basicdataClientExcel.setBrandName("示例:品牌"); +// basicdataClientExcel.setTripartiteCoding("示例:张三"); +// basicdataClientExcel.setTripartiteMallBrand("示例:张三"); +// basicdataClientExcel.setTripartiteMall("示例:张三"); + basicdataClientExcel.setMold("示例:商配"); + basicdataClientExcel.setContractStartTime(new Date()); + basicdataClientExcel.setContractEntTime(new Date()); + basicdataClientExcel.setDefaultPaymentMethods("示例:月结"); + basicdataClientExcel.setCleanObjType("示例:工厂"); + list.add(basicdataClientExcel); + return list; + } + @Override @Transactional(rollbackFor = Exception.class) public Boolean ownDeleteLogic(List toLongList) { @@ -497,6 +535,308 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl data, Boolean isCovered) { +// log.info("客户导入数据"); +// +// QueryWrapper queryWrapper = new QueryWrapper<>(); +// List basicdataClients = baseMapper.selectList(queryWrapper); +// // 验证数据 +// checkImportBasicDataClient(data,basicdataClients); +// +// +// List storeContactEntities = new ArrayList<>(); // 联系人 +// List tripartiteMallEntities = new ArrayList<>(); // 三方商场 +// List storeBrandEntities = new ArrayList<>(); // 品牌 +// List storageServicesEntities = new ArrayList<>(); // 服务仓 +// List storeBusinessEntities = new ArrayList<>(); // 服务类型 +// //查询仓库信息 +// List list1 = warehouseService.warehouseListqx(); +// List dictBizs = DictBizCache.getList(DictBizConstant.DISTRIBUTION_TYPE);//商 市 自 +// List clientBiz = DictBizCache.getList(DictBizConstant.CLIENT_TYPE); //客 工 +// List freightBiz = DictBizCache.getList(BASIC_FREIGHT_TYPE); //客 工 +// Set set = new HashSet<>(); +// +// +// +// LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); +// lambdaQueryWrapper.eq(BasicdataBrandEntity::getIsDeleted, 0); +// List basicdataBrandEntityList = basicdataBrandService.list(lambdaQueryWrapper); +// +// +// +// for (BasicdataClientExcel i : data) { +// +// // 处理下空格 换行 +// i.setClientName(i.getClientName().trim()); +// +// log.info("导入数据《》《》{}", i); +// +// if (ObjectUtils.isNull(i.getClientName())) { +// throw new ServiceException("客户编码或客户名称不能为空!"); +// } +// BasicdataClientEntity basicdataClient = new BasicdataClientEntity(); +// BeanUtil.copyProperties(i, basicdataClient); +// //系统生成码值 +// String finallyClientCode = this.getFinallyClientCode(); +// basicdataClient.setClientCode(finallyClientCode); +// //将这个最新的防止缓存中 +// +// log.info(">>>>>> basicdataClient.getClientCode() {}", basicdataClient.getClientCode()); +// +// if(!basicdataClients.isEmpty()){ +// List basicdataClientEntities = basicdataClients.stream().filter(ii -> ii.getClientName().equals(basicdataClient.getClientName()) && ii.getClientCode().equals(basicdataClient.getClientCode())).collect(Collectors.toList()); +// if(!basicdataClientEntities.isEmpty()){ +// // 获取全部重复的数据 +// List clientNames = basicdataClientEntities.stream().map(BasicdataClientEntity::getClientName).collect(Collectors.toList()); +// List clientCodes = basicdataClientEntities.stream().map(BasicdataClientEntity::getClientCode).collect(Collectors.toList()); +// String clientNameStr = String.join(",", clientNames); +// String clientCodeStr = String.join(",", clientCodes); +// throw new ServiceException("客户编码 "+clientCodeStr+" 或客户名称 "+clientNameStr+" 已存在"); +// } +// +// } +// +// Optional clientFirst = clientBiz.stream().filter(ii -> ii.getDictValue().equals(i.getClientType())).findFirst(); +// basicdataClient.setClientType(clientFirst.get().getDictKey()); +// //查询客户名称是不是重复 +// List basicdataClientEntities = baseMapper.selectList(Wrappers.query().lambda() +// .eq(BasicdataClientEntity::getClientName, i.getClientName()) +// ); +// if (basicdataClientEntities.isEmpty()) { +// BladeUser user = AuthUtil.getUser(); +// basicdataClient.setPid(0L); +// basicdataClient.setCreateUser(user.getUserId()); +// basicdataClient.setCargoControl(false); +// basicdataClient.setStatus(1); +// basicdataClient.setIsDeleted(0); +// basicdataClient.setCreateTime(new Date()); +// basicdataClient.setUpdateTime(new Date()); +// +// // 默认付款方式 +// String keyValue = matchDictValue(DictBizCache.getList(OPEN_ORDER_PAY_WAY), i.getDefaultPaymentMethods().trim()); +// +// basicdataClient.setDefaultPaymentMethods(keyValue); +// +// String s = matchDictValue(DictBizCache.getList(CLEAN_OBJ_TYPE), i.getCleanObjType()); +// +// basicdataClient.setCleanObjType(s); +// +// +// String typeValue= matchDictValue(DictBizCache.getList(DISTRIBUTION_TYPE), i.getMold()); +// +// basicdataClient.setTypeService(StringUtil.isNoneBlank(typeValue)?Integer.parseInt(typeValue):null); +// +// baseMapper.insert(basicdataClient); +// redis.set(RedisKeyConstant.FINAL_CLIENT_CODE + AuthUtil.getTenantId(), basicdataClient.getClientCode()); +// if (ObjectUtils.isNull(basicdataClient.getId())) { +// throw new ServiceException("客户ID不存在"); +// } +// +// //添加服务类型 +// if (ObjectUtils.isNotNull(i.getTypeService())) { +// BasicdataStoreBusinessEntity storeBusinessEntity = new BasicdataStoreBusinessEntity(); +// storeBusinessEntity.setClientId(basicdataClient.getId().toString()); +// storeBusinessEntity.setTypeService(i.getTypeService()); +// storeBusinessEntity.setMold(i.getMold()); +// storeBusinessEntities.add(storeBusinessEntity); +// } +// //添加服务仓 +// if (ObjectUtils.isNotNull(i.getServeWarehouseName())) { +// BasicdataStorageServicesEntity servicesEntity = new BasicdataStorageServicesEntity(); +// servicesEntity.setClientId(basicdataClient.getId()); +// servicesEntity.setDistinguish(2); +// if (ObjectUtils.isNotNull(i.getSendWarehouseName())) { +//// Long id = list1.stream().filter(q -> q.getName().equals(i.getSendWarehouseName())).findFirst().get().getId(); +//// servicesEntity.setSendWarehouseId(String.valueOf(id)); +// servicesEntity.setSendWarehouseName(i.getSendWarehouseName()); +// } +// Long id = list1.stream().filter(q -> q.getName().equals(i.getServeWarehouseName())).findFirst().get().getId(); +// servicesEntity.setServeWarehouseId(id); +// servicesEntity.setServeWarehouseName(i.getServeWarehouseName()); +// storageServicesEntities.add(servicesEntity); +// }else { +// BasicdataStorageServicesEntity servicesEntity = new BasicdataStorageServicesEntity(); +// servicesEntity.setClientId(basicdataClient.getId()); +// servicesEntity.setDistinguish(2); +// servicesEntity.setSendWarehouseName("全部"); +// storageServicesEntities.add(servicesEntity); +// } +// //添加品牌 +// if (ObjectUtils.isNotNull(i.getBrandName())) { +// +// String[] ars = i.getBrandName().split(","); +// +// for (String ar : ars) { +// BasicdataStoreBrandEntity storeBrandEntity = new BasicdataStoreBrandEntity(); +// storeBrandEntity.setClientId(basicdataClient.getId()); +// storeBrandEntity.setShopId(basicdataClient.getId().toString()); +// BasicdataBrandEntity one = matchBasicdataBrandEntityListValue(basicdataBrandEntityList, ar); +// +// +// if (ObjectUtils.isNull(one)) { +// throw new ServiceException("品牌不存在"); +// } +// assert one != null; +// storeBrandEntity.setBrandId(one.getId()); +// storeBrandEntity.setBrandName(one.getBrandName()); +// storeBrandEntities.add(storeBrandEntity); +// } +// +// +// } +// //添加联系人 +// if (ObjectUtils.isNotNull(i.getLinkman())) { +// BasicdataStoreContactEntity storeContactEntity = new BasicdataStoreContactEntity(); +// storeContactEntity.setShopId(basicdataClient.getId()); +// storeContactEntity.setPhone(i.getPhone()); +// storeContactEntity.setLinkman(i.getLinkman()); +// storeContactEntity.setDefaultType(true); +// storeContactEntities.add(storeContactEntity); +// +// } +// //添加三方商场 +//// if (ObjectUtils.isNotNull(i.getTripartiteMall())) { +//// BasicdataTripartiteMallEntity tripartiteMallEntity = new BasicdataTripartiteMallEntity(); +//// tripartiteMallEntity.setClientId(basicdataClient.getId()); +//// tripartiteMallEntity.setTripartiteMall(i.getTripartiteMall()); +//// tripartiteMallEntity.setTripartiteCoding(i.getTripartiteCoding()); +//// +//// BasicdataBrandEntity one = matchBasicdataBrandEntityListValue(basicdataBrandEntityList, i.getTripartiteMallBrand()); +//// +//// if (ObjectUtil.isNotEmpty(one)) { +//// //三方名称 +//// assert one != null; +//// tripartiteMallEntity.setBrandId(one.getId()); +//// tripartiteMallEntity.setBrandName(one.getBrandName()); +//// } +//// tripartiteMallEntities.add(tripartiteMallEntity); +//// } +// +// } +// } +// +// //品牌 +// if (!storeBrandEntities.isEmpty()) { +// basicdataStoreBrandService.saveBatch(storeBrandEntities); +// } +// //服务类型 +// if (!storeBusinessEntities.isEmpty()) { +// List list = new ArrayList<>(); +// storeBusinessEntities.stream().forEach(i -> { +// if (i.getTypeService().contains(",")) { +// String[] split = i.getTypeService().split(","); +// for (int j = 0; j < split.length; j++) { +// BasicdataStoreBusinessEntity business = new BasicdataStoreBusinessEntity(); +// BeanUtil.copyProperties(i, business); +// int finalJ = j; +// if ("配送".equals(split[j])) { +// switch (business.getMold()) { +// case "商配": +// business.setMold("1"); +// break; +// case "市配": +// business.setMold("2"); +// break; +// case "自提": +// business.setMold("3"); +// break; +// case "三方中转": +// business.setMold("4"); +// break; +// default: +// throw new CustomerException("未知的服务类型"); +// } +// +// } else { +// business.setMold(null); +// } +// log.info("#################split[finalJ]>>>>>>>>>>>>>>:{}", split[finalJ]); +// String dictValue = freightBiz.stream().filter(q -> q.getDictValue().equals(split[finalJ])).findFirst().get().getDictKey(); +// business.setTypeService(dictValue); +// list.add(business); +// } +// } else { +// String dictValue = freightBiz.stream().filter(q -> q.getDictValue().equals(i.getTypeService())).findFirst().get().getDictKey(); +// i.setTypeService(dictValue); +// if ("配送".equals(i.getTypeService())) { +// String mold = i.getMold(); +// switch (mold) { +// case "商配": +// i.setMold("1"); +// break; +// case "市配": +// i.setMold("2"); +// break; +// case "自提": +// i.setMold("3"); +// break; +// case "三方中转": +// i.setMold("4"); +// break; +// default: +// throw new CustomerException("未知的服务类型"); +// } +// +// } else { +// i.setMold(null); +// } +// list.add(i); +// } +// }); +// basicdataStoreBusinessService.saveBatch(list); +// } +// //服务仓 +// if (!storageServicesEntities.isEmpty()) { +// List servicesEntityList = new ArrayList<>(); +// storageServicesEntities.forEach(i -> { +// if (ObjectUtils.isNotNull(i.getSendWarehouseName())) { +// if (i.getSendWarehouseName().contains(",")) { +// String[] split = i.getSendWarehouseName().split(","); +// for (int j = 0; j < split.length; j++) { +// BasicdataStorageServicesEntity servicesEntity = new BasicdataStorageServicesEntity(); +// Long id = list1.stream().filter(q -> q.getName().equals(i.getSendWarehouseName())).findFirst().get().getId(); +// BeanUtil.copyProperties(i, servicesEntity); +// servicesEntity.setSendWarehouseId(id.toString()); +// servicesEntity.setSendWarehouseName(split[j]); +// servicesEntityList.add(servicesEntity); +// } +// } else { +// Long id = list1.stream().filter(q -> q.getName().equals(i.getSendWarehouseName())).findFirst().get().getId(); +// i.setSendWarehouseId(id.toString()); +// servicesEntityList.add(i); +// } +// } else { +// BasicdataStorageServicesEntity servicesEntity = new BasicdataStorageServicesEntity(); +// BeanUtil.copyProperties(i, servicesEntity); +// servicesEntityList.add(servicesEntity); +// } +// +// }); +// basicdataStorageServicesService.saveBatch(servicesEntityList); +// } +// //联系人 +// if (!storeContactEntities.isEmpty()) { +// basicdataStoreContactService.saveBatch(storeContactEntities); +// } +// //三方 +// if (!tripartiteMallEntities.isEmpty()) { +// basicdataTripartiteMallService.saveBatch(tripartiteMallEntities); +// } +// } + + + + + + /** * 导入数据 * @@ -506,7 +846,6 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl data, Boolean isCovered) { - log.info("客户导入数据"); QueryWrapper queryWrapper = new QueryWrapper<>(); List basicdataClients = baseMapper.selectList(queryWrapper); @@ -533,7 +872,6 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl basicdataBrandEntityList = basicdataBrandService.list(lambdaQueryWrapper); - for (BasicdataClientExcel i : data) { // 处理下空格 换行 @@ -554,7 +892,7 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl>>>>> basicdataClient.getClientCode() {}", basicdataClient.getClientCode()); if(!basicdataClients.isEmpty()){ - List basicdataClientEntities = basicdataClients.stream().filter(ii -> ii.getClientName().equals(basicdataClient.getClientName()) && ii.getClientCode().equals(basicdataClient.getClientCode())).collect(Collectors.toList()); + List basicdataClientEntities = basicdataClients.stream().filter(ii -> ii.getClientName().equals(basicdataClient.getClientName())).collect(Collectors.toList()); if(!basicdataClientEntities.isEmpty()){ // 获取全部重复的数据 List clientNames = basicdataClientEntities.stream().map(BasicdataClientEntity::getClientName).collect(Collectors.toList()); @@ -567,7 +905,9 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl clientFirst = clientBiz.stream().filter(ii -> ii.getDictValue().equals(i.getClientType())).findFirst(); - basicdataClient.setClientType(clientFirst.get().getDictKey()); + if (!Objects.isNull(clientFirst.get())){ + basicdataClient.setClientType(clientFirst.get().getDictKey()); + } //查询客户名称是不是重复 List basicdataClientEntities = baseMapper.selectList(Wrappers.query().lambda() .eq(BasicdataClientEntity::getClientName, i.getClientName()) @@ -579,8 +919,7 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl>>>>> 11111 {}", basicdataClient); // 默认付款方式 String keyValue = matchDictValue(DictBizCache.getList(OPEN_ORDER_PAY_WAY), i.getDefaultPaymentMethods().trim()); @@ -595,9 +934,50 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl>>>>> 22222 {}", basicdataClient); + List regionAllVOList= redis.get("blade:sys:regions::SimpleKey []"); + if (!Objects.isNull(i.getBladeRegionProvinceName())){ + log.info(">>>>>> 3333 {}", basicdataClient); + List collect = regionAllVOList.stream().filter(f -> i.getBladeRegionProvinceName().equals(f.getLabel())).collect(Collectors.toList()); + if (!collect.isEmpty()) { + RegionAllVO regionAllVO = collect.get(0); + basicdataClient.setBladeRegionProvinceId(regionAllVO.getValue()); + basicdataClient.setBladeRegionProvinceName(regionAllVO.getLabel()); + if (!Objects.isNull(i.getBladeRegionCityName())){ + List children1 = regionAllVO.getChildren(); + if (!children1.isEmpty()) { + List collect1 = children1.stream().filter(f -> i.getBladeRegionCityName().equals(f.getLabel())).collect(Collectors.toList()); + if (!collect1.isEmpty()) { + RegionAllVO regionAllVO1 = collect1.get(0); + basicdataClient.setBladeRegionCityId(regionAllVO1.getValue()); + basicdataClient.setBladeRegionCityName(regionAllVO1.getLabel()); + if (!Objects.isNull(i.getBladeRegionAreaName())){ + List children2 = regionAllVO1.getChildren(); + if (!children2.isEmpty()) { + List collect2 = children2.stream().filter(f -> i.getBladeRegionAreaName().equals(f.getLabel())).collect(Collectors.toList()); + if (!collect2.isEmpty()) { + RegionAllVO regionAllVO2= collect2.get(0); + basicdataClient.setBladeRegionAreaId(regionAllVO2.getValue()); + basicdataClient.setBladeRegionAreaName(regionAllVO2.getLabel()); + }else { + throw new ServiceException(basicdataClient.getClientName()+"区/县地址错误"); + } + } + } + }else { + throw new ServiceException(basicdataClient.getClientName()+"市地址错误"); + } + } + } + }else { + throw new ServiceException(basicdataClient.getClientName()+"省地址错误"); + } + } + - baseMapper.insert(basicdataClient); + this.save(basicdataClient); redis.set(RedisKeyConstant.FINAL_CLIENT_CODE + AuthUtil.getTenantId(), basicdataClient.getClientCode()); + if (ObjectUtils.isNull(basicdataClient.getId())) { throw new ServiceException("客户ID不存在"); } @@ -621,9 +1001,12 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl q.getName().equals(i.getServeWarehouseName())).findFirst().get().getId(); - servicesEntity.setServeWarehouseId(id); - servicesEntity.setServeWarehouseName(i.getServeWarehouseName()); - storageServicesEntities.add(servicesEntity); + if (!Objects.isNull(id)){ + servicesEntity.setServeWarehouseId(id); + servicesEntity.setServeWarehouseName(i.getServeWarehouseName()); + storageServicesEntities.add(servicesEntity); + } + }else { BasicdataStorageServicesEntity servicesEntity = new BasicdataStorageServicesEntity(); servicesEntity.setClientId(basicdataClient.getId()); @@ -651,8 +1034,6 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl Objects.isNull(a.getBladeRegionProvinceName()) || Objects.isNull(a.getBladeRegionCityName())); + if (b) { + throw new CustomerException("请填写至市级地址"); + } if(hasDuplicates){ throw new CustomerException("存在相同的数据"); } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataTripartiteMallServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataTripartiteMallServiceImpl.java index 28b5c38c1..f140e1e13 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataTripartiteMallServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataTripartiteMallServiceImpl.java @@ -19,11 +19,13 @@ package com.logpm.basicdata.service.impl; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.logpm.basicdata.entity.BasicdataBrandEntity; import com.logpm.basicdata.entity.BasicdataClientEntity; import com.logpm.basicdata.entity.BasicdataClientLogEntity; import com.logpm.basicdata.entity.BasicdataTripartiteMallEntity; import com.logpm.basicdata.excel.BasicdataTripartiteMallExcel; import com.logpm.basicdata.mapper.BasicdataTripartiteMallMapper; +import com.logpm.basicdata.service.IBasicdataBrandService; import com.logpm.basicdata.service.IBasicdataClientLogService; import com.logpm.basicdata.service.IBasicdataClientService; import com.logpm.basicdata.service.IBasicdataTripartiteMallService; @@ -31,14 +33,18 @@ import com.logpm.basicdata.vo.BasicdataTripartiteMallVO; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.jetbrains.annotations.Nullable; +import org.springblade.common.exception.CustomerException; +import org.springblade.core.log.exception.ServiceException; import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; +import org.springblade.core.tool.utils.BeanUtil; import org.springblade.core.tool.utils.Func; import org.springblade.core.tool.utils.StringUtil; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; @@ -59,6 +65,8 @@ public class BasicdataTripartiteMallServiceImpl extends BaseServiceImpl selectBasicdataTripartiteMallPage(IPage page, BasicdataTripartiteMallVO basicdataTripartiteMall) { @@ -236,6 +244,88 @@ public class BasicdataTripartiteMallServiceImpl extends BaseServiceImpl exportTripartiteMallTemplate() { + List list = new ArrayList<>(); + BasicdataTripartiteMallExcel tripartiteMallExcel = new BasicdataTripartiteMallExcel(); + tripartiteMallExcel.setTripartiteMall("示例:XXX商城"); + tripartiteMallExcel.setTripartiteCoding("示例:ASDFG0000"); + tripartiteMallExcel.setBrandName("示例:欧派"); + list.add(tripartiteMallExcel); + return list; + } + + @Override + @Transactional + public void importTripartiteMall(List data) { + List clientIds = new ArrayList<>(); + boolean b = data.stream().anyMatch(a -> Objects.isNull(a.getClientName())); + String string =""; + if (b) { + string = data.stream().filter(a -> Objects.isNull(a.getClientName())).map(BasicdataTripartiteMallExcel::getTripartiteMall).collect(Collectors.joining(",")); + throw new ServiceException(string+"未填写客户信息"); + } + boolean c = data.stream().anyMatch(a -> Objects.isNull(a.getBrandName())); + if (c) { + string = data.stream().filter(a -> Objects.isNull(a.getBrandName())).map(BasicdataTripartiteMallExcel::getTripartiteMall).collect(Collectors.joining(",")); + throw new ServiceException(string+"未填写品牌信息"); + } + List clientNames = data.stream().map(BasicdataTripartiteMallExcel::getClientName).distinct().collect(Collectors.toList()); + + //查询客户信息是否合法 + List basicdataClientEntityList = basicdataClientService.list(Wrappers.query().lambda() + .in(BasicdataClientEntity::getClientName, clientNames) + ); + if (basicdataClientEntityList.isEmpty()) { + throw new ServiceException(clientNames+"查询客户信息错误"); + } + Map> listMap = basicdataClientEntityList.stream().collect(Collectors.groupingBy(BasicdataClientEntity::getClientName)); + List tripartiteMallEntityList = new ArrayList<>(); + for (BasicdataTripartiteMallExcel datum : data) { + List entities = this.list(Wrappers.query().lambda() + .eq(BasicdataTripartiteMallEntity::getTripartiteMall, datum.getTripartiteMall()) + .eq(!Objects.isNull(datum.getTripartiteCoding()),BasicdataTripartiteMallEntity::getTripartiteCoding,datum.getTripartiteCoding()) + .eq(BasicdataTripartiteMallEntity::getBrandName, datum.getBrandName()) + ); + if (!entities.isEmpty()) { + clientIds.addAll(entities.stream().map(BasicdataTripartiteMallEntity::getClientId).collect(Collectors.toList())); + }else { + List basicdataClientEntities = listMap.get(datum.getClientName()); + if (basicdataClientEntities.isEmpty()) { + throw new ServiceException(datum.getClientName()+"客户信息错误"); + } + if (basicdataClientEntities.size() != 1) { + throw new ServiceException(datum.getClientName()+"客户信息存在多个"); + } + BasicdataClientEntity basicdataClientEntity = basicdataClientEntities.get(0); + BasicdataTripartiteMallEntity basicdataTripartiteMall = BeanUtil.copyProperties(datum, BasicdataTripartiteMallEntity.class); + basicdataTripartiteMall.setClientId(basicdataClientEntity.getId()); + List list = basicdataBrandService.list(Wrappers.query().lambda() + .eq(BasicdataBrandEntity::getBrandName, datum.getBrandName()) + ); + if (!list.isEmpty()) { + basicdataTripartiteMall.setBrandId(list.get(0).getId()); + }else { + throw new ServiceException(datum.getClientName()+"客户信息错误"); + + } + tripartiteMallEntityList.add(basicdataTripartiteMall); + } + + } + if (!clientIds.isEmpty()) { + List basicdataClientEntityList1 = basicdataClientService.listByIds(clientIds); + if (!basicdataClientEntityList1.isEmpty()) { + String errorClient = basicdataClientEntityList1.stream().map(BasicdataClientEntity::getClientName).collect(Collectors.joining(",")); + throw new ServiceException(errorClient+"已存在相关配置"); + } + } + if (!tripartiteMallEntityList.isEmpty()) { + this.saveBatch(tripartiteMallEntityList); + } + + } + private String comparisonBasicdataTripartiteMall(BasicdataTripartiteMallEntity entity, BasicdataTripartiteMallEntity basicdataTripartiteMall) { StringBuilder builder = new StringBuilder(); String str1 = entity.getTripartiteCoding().isEmpty() ? "空" : entity.getTripartiteCoding(); diff --git a/blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java b/blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java index 0609bc7de..05c3f2e86 100644 --- a/blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java +++ b/blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java @@ -154,7 +154,7 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService { List trunklineCarsLoadScanEntities = groupedByLoadId.get(key); //干线发车 - nodeInfoVO = buildTrunklineByLoadCar(trunklineCarsLoadScanEntities, listByLoadId ); + nodeInfoVO = buildTrunklineByLoadCar(trunklineCarsLoadScanEntities, listByLoadId ); if (nodeInfoVO != null) { nodeInfoVOList.add(nodeInfoVO); } @@ -208,7 +208,7 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService { if(qualityDeliverEntity != null){ nodeInfoVO = new NodeInfoVO(); nodeInfoVO.setOperateName("配送签收"); - nodeInfoVO.setOperateNumber(signNum + "/" + loadNum); + nodeInfoVO.setOperateNumber(signNum +""); nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName()); nodeInfoVO.setOperateTime(qualityDeliverEntity.getSignTime()); // 增加网点电话 @@ -222,7 +222,11 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService { } } - if(!nodeInfoVOList.isEmpty()){ + if(!nodeInfoVOList.isEmpty() ){ + for (NodeInfoVO infoVO : nodeInfoVOList) { + log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + log.info("infoVO {}",infoVO.toString()); + } nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed()); } //对nodeInfoVOList集合中的作业时间 按照 时间倒序排序 @@ -396,9 +400,15 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService { } - //对nodeInfoVOList集合中的作业时间 按照 时间倒序排序 - nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed()); + if(!nodeInfoVOList.isEmpty() ){ + + for (NodeInfoVO infoVO : nodeInfoVOList) { + log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + log.info("infoVO {}",infoVO.toString()); + } + nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed()); + } result.setNodeInfoVOList(nodeInfoVOList); // 配送签收 @@ -420,17 +430,17 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService { // 判断该卸车作业节点 TrunklineCarsLoadScanEntity trunklineCarsLoadScanEntity = collect.get(0); - TrunklineCarsLoadLineEntity trunklineCarsLoadLineEntity = listByLoadId.stream().filter(t -> t.getNodeName().equals(trunklineCarsLoadScanEntity.getUnloadNodeName())).findFirst().orElse(null); - - if(trunklineCarsLoadLineEntity == null){ - return null; - } +// TrunklineCarsLoadLineEntity trunklineCarsLoadLineEntity = listByLoadId.stream().filter(t -> t.getNodeName().equals(trunklineCarsLoadScanEntity.getUnloadNodeName())).findFirst().orElse(null); +// +// if(trunklineCarsLoadLineEntity == null || trunklineCarsLoadLineEntity.getArriveDate()== null){ +// return null; +// } NodeInfoVO nodeInfoVO = new NodeInfoVO(); nodeInfoVO.setOperateName("干线到达"); nodeInfoVO.setOperateNumber(collect.size() + ""); nodeInfoVO.setOperateWarehouseName(trunklineCarsLoadScanEntity.getUnloadNodeName()); - nodeInfoVO.setOperateTime(trunklineCarsLoadLineEntity.getArriveDate()); + nodeInfoVO.setOperateTime(trunklineCarsLoadScanEntity.getUnloadTime()); return nodeInfoVO; } @@ -448,7 +458,7 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService { TrunklineCarsLoadLineEntity trunklineCarsLoadLineEntity = listByLoadId.stream().filter(t -> t.getNodeName().equals(trunklineCarsLoadScanEntity.getWarehouseName())).findFirst().orElse(null); - if(trunklineCarsLoadLineEntity == null){ + if(trunklineCarsLoadLineEntity == null || trunklineCarsLoadLineEntity.getStartDate() ==null){ return null; } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml index 5407946b4..5ae9e3cfe 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml @@ -779,7 +779,7 @@ logpm_distribution_signfor lds JOIN logpm_distribution_delivery_list lddl ON lddl.id = lds.delivery_id JOIN logpm_distribution_reservation ldr ON ldr.id = lds.reservation_id AND ldr.reservation_status != 40 - LEFT JOIN logpm_distribution_positioning AS ldp ON lds.reservation_id = lds.reservation_id AND ldp.is_deleted = 0 + LEFT JOIN logpm_distribution_positioning AS ldp ON ldp.reservation_id = lds.reservation_id AND ldp.is_deleted = 0 where lds.is_deleted = 0 and lds.id = #{id} diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.java index e90a4f8de..458108bc2 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.java @@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.logpm.distribution.dto.DistributionStockArticleOweDTO; import com.logpm.distribution.entity.DistributionParcelListEntity; import com.logpm.distribution.entity.DistributionStockArticleEntity; +import com.logpm.distribution.excel.DistributionStockArticleExcel; import com.logpm.distribution.vo.*; import com.logpm.distribution.vo.app.queryOrderVO; import org.apache.ibatis.annotations.Param; @@ -54,7 +55,7 @@ public interface DistributionStockArticleMapper extends BaseMapper exportDistributionStockArticle(@Param("param") Map paramMap); + List exportDistributionStockArticle(@Param("param") Map paramMap); void addHandQuantity(@Param("id") Long id,@Param("num") int num); diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml index 0d3ff94ad..1264c5d53 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml @@ -899,14 +899,15 @@ WHERE ldsa.id = #{stockArticleId} AND ldpl.is_transfer = 0