Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
dc3f3c54
Commit
dc3f3c54
authored
Apr 17, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev分支 一期并行5个问题
parent
3197e2d0
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
222 additions
and
42 deletions
+222
-42
CustomerDO.java
...o/module/customer/dal/dataobject/customer/CustomerDO.java
+12
-0
CustomerRespVO.java
.../yudao/module/customer/vo/customer/vo/CustomerRespVO.java
+5
-0
CustomerMapper.xml
...ore/src/main/resources/mapper/customer/CustomerMapper.xml
+2
-0
WarehouseConvert.java
...module/depository/convert/warehouse/WarehouseConvert.java
+6
-0
WarehouseMapper.java
...odule/depository/dal/mysql/warehouse/WarehouseMapper.java
+14
-0
WarehouseService.java
...module/depository/service/warehouse/WarehouseService.java
+2
-0
WarehouseServiceImpl.java
...pository/service/warehouse/impl/WarehouseServiceImpl.java
+20
-0
WarehouseTreeRegionVO.java
...module/depository/vo/warehouse/WarehouseTreeRegionVO.java
+20
-0
SwaggerDepositoryConfiguration.java
...ule/depository/config/SwaggerDepositoryConfiguration.java
+27
-27
WarehouseController.java
...itory/controller/admin/warehouse/WarehouseController.java
+8
-0
OrderQueryVO.java
.../cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
+11
-1
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+3
-0
CopyProductPriceDto.java
...iocoder/yudao/module/product/dto/CopyProductPriceDto.java
+17
-0
ProductPriceService.java
...o/module/product/service/product/ProductPriceService.java
+7
-0
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+36
-1
ProductPriceController.java
...duct/controller/admin/product/ProductPriceController.java
+12
-0
BoxMergePkgMapper.java
...er/yudao/module/shipment/dal/mysql/BoxMergePkgMapper.java
+1
-1
BoxMergePkgWebVO.java
...udao/module/shipment/vo/boxMergePkg/BoxMergePkgWebVO.java
+3
-0
application-dev.yaml
yudao-server/src/main/resources/application-dev.yaml
+10
-10
logback-spring.xml
yudao-server/src/main/resources/logback-spring.xml
+6
-2
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/dataobject/customer/CustomerDO.java
View file @
dc3f3c54
...
@@ -381,12 +381,24 @@ public class CustomerDO extends BaseDO {
...
@@ -381,12 +381,24 @@ public class CustomerDO extends BaseDO {
private
String
creditLevelNameEn
;
private
String
creditLevelNameEn
;
/**
* 主联系人id
*/
@TableField
(
exist
=
false
)
private
String
defaultContactId
;
/**
/**
* 主联系人
* 主联系人
*/
*/
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
defaultContactName
;
private
String
defaultContactName
;
/**
* 主联系电话
* 不加区号
*/
@TableField
(
exist
=
false
)
private
String
contactPhone
;
/**
/**
* 主联系电话
* 主联系电话
*/
*/
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/vo/CustomerRespVO.java
View file @
dc3f3c54
...
@@ -69,6 +69,8 @@ public class CustomerRespVO extends CustomerBaseVO {
...
@@ -69,6 +69,8 @@ public class CustomerRespVO extends CustomerBaseVO {
@ApiModelProperty
(
value
=
"公海池捞取时间"
)
@ApiModelProperty
(
value
=
"公海池捞取时间"
)
private
Date
catchTime
;
private
Date
catchTime
;
@ApiModelProperty
(
value
=
"主联系人Id"
)
private
Long
defaultContactId
;
@ApiModelProperty
(
value
=
"主联系人"
)
@ApiModelProperty
(
value
=
"主联系人"
)
private
String
defaultContactName
;
private
String
defaultContactName
;
...
@@ -76,6 +78,9 @@ public class CustomerRespVO extends CustomerBaseVO {
...
@@ -76,6 +78,9 @@ public class CustomerRespVO extends CustomerBaseVO {
@ApiModelProperty
(
value
=
"主联系电话"
)
@ApiModelProperty
(
value
=
"主联系电话"
)
private
String
defaultContactPhone
;
private
String
defaultContactPhone
;
@ApiModelProperty
(
value
=
"主联系电话(不加区号)"
)
private
String
contactPhone
;
@ApiModelProperty
(
value
=
"主邮箱"
)
@ApiModelProperty
(
value
=
"主邮箱"
)
private
String
defaultEmail
;
private
String
defaultEmail
;
...
...
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerMapper.xml
View file @
dc3f3c54
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
from (select a.*,
from (select a.*,
c.name as default_contact_name,
c.name as default_contact_name,
concat(c.area_code, c.phone_new, '') as default_contact_phone,
concat(c.area_code, c.phone_new, '') as default_contact_phone,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
c.social as default_social,
c.email as default_email,
c.email as default_email,
c.social_number as default_social_number,
c.social_number as default_social_number,
...
...
yudao-module-depository/yudao-module-depository-core/src/main/java/cn/iocoder/yudao/module/depository/convert/warehouse/WarehouseConvert.java
View file @
dc3f3c54
...
@@ -4,11 +4,14 @@ import java.util.*;
...
@@ -4,11 +4,14 @@ import java.util.*;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.common.util.collection.CollectionUtils
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.region.RegionDO
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.region.RegionDO
;
import
cn.iocoder.yudao.module.system.enums.permission.MenuIdEnum
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.factory.Mappers
;
import
org.mapstruct.factory.Mappers
;
import
cn.iocoder.yudao.module.depository.vo.warehouse.*
;
import
cn.iocoder.yudao.module.depository.vo.warehouse.*
;
import
cn.iocoder.yudao.module.depository.dal.dataobject.warehouse.WarehouseDO
;
import
cn.iocoder.yudao.module.depository.dal.dataobject.warehouse.WarehouseDO
;
import
org.slf4j.LoggerFactory
;
/**
/**
* 仓库 Convert
* 仓库 Convert
...
@@ -37,4 +40,7 @@ public interface WarehouseConvert {
...
@@ -37,4 +40,7 @@ public interface WarehouseConvert {
List
<
RegionWarehouse
>
convertList03
(
List
<
RegionDO
>
list
);
List
<
RegionWarehouse
>
convertList03
(
List
<
RegionDO
>
list
);
RegionWarehouse
convert01
(
RegionDO
bean
);
RegionWarehouse
convert01
(
RegionDO
bean
);
List
<
WarehouseTreeRegionVO
>
convertTreeRegion
(
List
<
WarehouseTreeRegionVO
>
list
);
}
}
yudao-module-depository/yudao-module-depository-core/src/main/java/cn/iocoder/yudao/module/depository/dal/mysql/warehouse/WarehouseMapper.java
View file @
dc3f3c54
...
@@ -119,4 +119,18 @@ public interface WarehouseMapper extends BaseMapperX<WarehouseDO> {
...
@@ -119,4 +119,18 @@ public interface WarehouseMapper extends BaseMapperX<WarehouseDO> {
"</script>"
"</script>"
})
})
RegionDO
getRegion
(
Long
warehouseId
);
RegionDO
getRegion
(
Long
warehouseId
);
@ResultType
(
List
.
class
)
@Select
({
"SELECT w.*, "
,
"r1.title_zh as guojiaName,"
,
"r2.title_zh as shiName "
,
"FROM ecw_warehouse w "
,
"LEFT JOIN ecw_region r1 "
,
"ON w.guojia = r1.id "
,
"LEFT JOIN ecw_region r2 "
,
"ON w.shi = r2.id "
,
"WHERE w.deleted = 0 AND w.`status` =0 AND trade_type =#{tradeType}"
})
List
<
WarehouseTreeRegionVO
>
getWarehouseTreeRegionList
(
@Param
(
"tradeType"
)
Integer
tradeType
);
}
}
yudao-module-depository/yudao-module-depository-core/src/main/java/cn/iocoder/yudao/module/depository/service/warehouse/WarehouseService.java
View file @
dc3f3c54
...
@@ -168,4 +168,6 @@ public interface WarehouseService {
...
@@ -168,4 +168,6 @@ public interface WarehouseService {
List
<
WarehouseLineDO
>
getLineInfoList
(
List
<
WarehouseLineReq
>
reqList
);
List
<
WarehouseLineDO
>
getLineInfoList
(
List
<
WarehouseLineReq
>
reqList
);
LogisticsInfoDto
getStartInfoAndDestInfoByLineId
(
Long
lineId
);
LogisticsInfoDto
getStartInfoAndDestInfoByLineId
(
Long
lineId
);
List
<
WarehouseTreeRegionVO
>
getWarehouseTreeRegionList
(
Integer
tradeType
);
}
}
yudao-module-depository/yudao-module-depository-core/src/main/java/cn/iocoder/yudao/module/depository/service/warehouse/impl/WarehouseServiceImpl.java
View file @
dc3f3c54
...
@@ -492,4 +492,24 @@ public class WarehouseServiceImpl implements WarehouseService {
...
@@ -492,4 +492,24 @@ public class WarehouseServiceImpl implements WarehouseService {
public
LogisticsInfoDto
getStartInfoAndDestInfoByLineId
(
Long
lineId
)
{
public
LogisticsInfoDto
getStartInfoAndDestInfoByLineId
(
Long
lineId
)
{
return
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
lineId
);
return
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
lineId
);
}
}
@Override
public
List
<
WarehouseTreeRegionVO
>
getWarehouseTreeRegionList
(
Integer
tradeType
)
{
List
<
WarehouseTreeRegionVO
>
list
=
warehouseMapper
.
getWarehouseTreeRegionList
(
tradeType
);
list
.
stream
().
forEach
(
s
->
s
.
getGuojiaName
().
replaceAll
(
"\t"
,
""
));
Map
<
String
,
List
<
WarehouseTreeRegionVO
>>
map
=
(
HashMap
<
String
,
List
<
WarehouseTreeRegionVO
>>)
list
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
WarehouseTreeRegionVO:
:
getGuojiaName
));
List
<
WarehouseTreeRegionVO
>
regionVOList
=
new
ArrayList
<>()
;
for
(
Map
.
Entry
<
String
,
List
<
WarehouseTreeRegionVO
>>
m:
map
.
entrySet
()){
WarehouseTreeRegionVO
v
=
new
WarehouseTreeRegionVO
();
v
.
setGuojiaName
(
m
.
getKey
());
v
.
setChildren
(
m
.
getValue
());
v
.
setGuojia
(
m
.
getValue
().
get
(
0
).
getGuojia
());
v
.
setId
(
m
.
getValue
().
get
(
0
).
getGuojia
());
regionVOList
.
add
(
v
);
}
return
regionVOList
;
}
}
}
yudao-module-depository/yudao-module-depository-core/src/main/java/cn/iocoder/yudao/module/depository/vo/warehouse/WarehouseTreeRegionVO.java
0 → 100644
View file @
dc3f3c54
package
cn
.
iocoder
.
yudao
.
module
.
depository
.
vo
.
warehouse
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
WarehouseTreeRegionVO
extends
WarehouseRespVO
{
private
String
guojiaName
;
private
String
shiName
;
private
Long
pid
;
@ApiModelProperty
(
value
=
"子元素"
,
example
=
"true"
)
private
List
<
WarehouseTreeRegionVO
>
children
;
}
yudao-module-depository/yudao-module-depository-rest/src/main/java/cn/iocoder/yudao/module/depository/config/SwaggerDepositoryConfiguration.java
View file @
dc3f3c54
//
package cn.iocoder.yudao.module.depository.config;
package
cn
.
iocoder
.
yudao
.
module
.
depository
.
config
;
//
//
import cn.iocoder.yudao.framework.swagger.config.YudaoSwaggerAutoConfiguration;
import
cn.iocoder.yudao.framework.swagger.config.YudaoSwaggerAutoConfiguration
;
//
import org.springframework.context.annotation.Bean;
import
org.springframework.context.annotation.Bean
;
//
import org.springframework.context.annotation.Configuration;
import
org.springframework.context.annotation.Configuration
;
//
import springfox.documentation.spring.web.plugins.Docket;
import
springfox.documentation.spring.web.plugins.Docket
;
//
//
import javax.annotation.Resource;
import
javax.annotation.Resource
;
//
/
//
**
/**
//
* Swagger2 自动配置类
* Swagger2 自动配置类
//
* @author 捷道源码
* @author 捷道源码
//
*/
*/
//
@Configuration
@Configuration
//
public class SwaggerDepositoryConfiguration {
public
class
SwaggerDepositoryConfiguration
{
//
@Bean
@Bean
//
public Docket createDepositoryApi() {
public
Docket
createDepositoryApi
()
{
//
String title = "仓储信息";
String
title
=
"仓储信息"
;
//
String author = "仓储信息";
String
author
=
"仓储信息"
;
//
String basePackage = "cn.iocoder.yudao.module.depository";
String
basePackage
=
"cn.iocoder.yudao.module.depository"
;
//
// 创建 Docket 对象
// 创建 Docket 对象
//
return autoConfiguration.docket(title, author, basePackage);
return
autoConfiguration
.
docket
(
title
,
author
,
basePackage
);
//
}
}
//
//
@Resource
@Resource
//
private YudaoSwaggerAutoConfiguration autoConfiguration;
private
YudaoSwaggerAutoConfiguration
autoConfiguration
;
//
}
}
yudao-module-depository/yudao-module-depository-rest/src/main/java/cn/iocoder/yudao/module/depository/controller/admin/warehouse/WarehouseController.java
View file @
dc3f3c54
...
@@ -92,6 +92,14 @@ public class WarehouseController {
...
@@ -92,6 +92,14 @@ public class WarehouseController {
return
success
(
WarehouseConvert
.
INSTANCE
.
convertList
(
list
));
return
success
(
WarehouseConvert
.
INSTANCE
.
convertList
(
list
));
}
}
@GetMapping
(
"/getWarehouseTreeRegionList"
)
@ApiOperation
(
"获得目的国、目的城市、目的仓列表"
)
@ApiImplicitParam
(
name
=
"tradeType"
,
value
=
"进出口类型,1-进口,2-出口"
,
required
=
false
,
example
=
"1"
,
dataTypeClass
=
Integer
.
class
)
public
CommonResult
<
List
<
WarehouseTreeRegionVO
>>
getWarehouseTreeRegionList
(
@RequestParam
(
value
=
"tradeType"
,
required
=
false
)
Integer
tradeType
){
List
<
WarehouseTreeRegionVO
>
list
=
warehouseService
.
getWarehouseTreeRegionList
(
tradeType
);
return
success
(
list
);
}
@GetMapping
(
"/page"
)
@GetMapping
(
"/page"
)
@ApiOperation
(
"获得仓库分页"
)
@ApiOperation
(
"获得仓库分页"
)
// @PreAuthorize("@ss.hasPermission('ecw:warehouse:query')")
// @PreAuthorize("@ss.hasPermission('ecw:warehouse:query')")
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
View file @
dc3f3c54
...
@@ -175,6 +175,8 @@ public class OrderQueryVO {
...
@@ -175,6 +175,8 @@ public class OrderQueryVO {
@ApiModelProperty
(
value
=
"调仓始发仓"
)
@ApiModelProperty
(
value
=
"调仓始发仓"
)
private
Long
adjustToStartWarehouseId
;
private
Long
adjustToStartWarehouseId
;
/**
/**
* 调仓目的仓
* 调仓目的仓
*/
*/
...
@@ -407,6 +409,14 @@ public class OrderQueryVO {
...
@@ -407,6 +409,14 @@ public class OrderQueryVO {
@ApiModelProperty
(
value
=
"目的仓ID"
)
@ApiModelProperty
(
value
=
"目的仓ID"
)
private
Long
destWarehouseId
;
private
Long
destWarehouseId
;
/**
* 目的国
*/
@ApiModelProperty
(
value
=
"目的国id"
)
private
Long
destCountryId
;
@ApiModelProperty
(
value
=
"发货客户ID"
)
@ApiModelProperty
(
value
=
"发货客户ID"
)
private
Long
consignorId
;
private
Long
consignorId
;
...
@@ -499,7 +509,7 @@ public class OrderQueryVO {
...
@@ -499,7 +509,7 @@ public class OrderQueryVO {
private
Integer
airShipment
;
private
Integer
airShipment
;
/**
/**
* 端口 {@link
UserTypeEnum
}
* 端口 {@link }
*/
*/
@ApiModelProperty
(
value
=
"端口(默认管理端)"
)
@ApiModelProperty
(
value
=
"端口(默认管理端)"
)
private
Integer
userType
=
2
;
private
Integer
userType
=
2
;
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
dc3f3c54
...
@@ -897,6 +897,9 @@
...
@@ -897,6 +897,9 @@
<if
test=
"query.objectiveId != null "
>
<if
test=
"query.objectiveId != null "
>
AND ob.`objective_id` = #{query.objectiveId}
AND ob.`objective_id` = #{query.objectiveId}
</if>
</if>
<if
test=
"query.destCountryId != null "
>
AND ob.`objective_country_id` = #{query.destCountryId}
</if>
<if
test=
"query.consignorId != null "
>
<if
test=
"query.consignorId != null "
>
AND nor.`customer_id` = #{query.consignorId}
AND nor.`customer_id` = #{query.consignorId}
</if>
</if>
...
...
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/dto/CopyProductPriceDto.java
0 → 100644
View file @
dc3f3c54
package
cn
.
iocoder
.
yudao
.
module
.
product
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
"复制价格入参DTO"
)
@Data
public
class
CopyProductPriceDto
{
@ApiModelProperty
(
"商品价格ids,多个用逗号隔开"
)
private
String
productPriceIds
;
@ApiModelProperty
(
"商品id"
)
private
String
productId
;
}
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/ProductPriceService.java
View file @
dc3f3c54
...
@@ -9,6 +9,7 @@ import cn.iocoder.yudao.module.depository.dal.dataobject.warehouse.WarehouseLine
...
@@ -9,6 +9,7 @@ import cn.iocoder.yudao.module.depository.dal.dataobject.warehouse.WarehouseLine
import
cn.iocoder.yudao.module.product.dal.dataobject.product.BasePrice
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.BasePrice
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.ProductPriceStepDO
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.ProductPriceStepDO
;
import
cn.iocoder.yudao.module.product.dto.AirClearancePriceResultDto
;
import
cn.iocoder.yudao.module.product.dto.AirClearancePriceResultDto
;
import
cn.iocoder.yudao.module.product.dto.CopyProductPriceDto
;
import
cn.iocoder.yudao.module.product.dto.ProductPriceExcelData
;
import
cn.iocoder.yudao.module.product.dto.ProductPriceExcelData
;
import
cn.iocoder.yudao.module.product.param.PriceParam
;
import
cn.iocoder.yudao.module.product.param.PriceParam
;
import
cn.iocoder.yudao.module.product.vo.productPrice.*
;
import
cn.iocoder.yudao.module.product.vo.productPrice.*
;
...
@@ -190,4 +191,10 @@ public interface ProductPriceService extends IService<ProductPriceDO> {
...
@@ -190,4 +191,10 @@ public interface ProductPriceService extends IService<ProductPriceDO> {
void
batchAddPriceAir
(
ProductPriceBatchAddPriceAirVo
batchAddPriceReqVo
,
ProductPriceCheckAO
productPriceCheckAO
);
void
batchAddPriceAir
(
ProductPriceBatchAddPriceAirVo
batchAddPriceReqVo
,
ProductPriceCheckAO
productPriceCheckAO
);
void
handleOrderException
(
Long
priceId
);
void
handleOrderException
(
Long
priceId
);
/**
* 从商品列表中某一商品进入复制价格
* @param dto
*/
void
copyPriceByProductIds
(
CopyProductPriceDto
dto
);
}
}
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/impl/ProductPriceServiceImpl.java
View file @
dc3f3c54
...
@@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.product.service.product.impl;
...
@@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.product.service.product.impl;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.iocoder.yudao.framework.apollo.core.dto.ChannelClearancePriceDto
;
import
cn.iocoder.yudao.framework.apollo.core.dto.ChannelClearancePriceDto
;
import
cn.iocoder.yudao.framework.apollo.core.event.ChannelPriceEvent
;
import
cn.iocoder.yudao.framework.apollo.core.event.ChannelPriceEvent
;
import
cn.iocoder.yudao.framework.apollo.core.event.ProductLineUpdateAutoProcessOverWeightExceptionEvent
;
import
cn.iocoder.yudao.framework.apollo.core.event.ProductLineUpdateAutoProcessOverWeightExceptionEvent
;
...
@@ -28,6 +29,7 @@ import cn.iocoder.yudao.module.product.dal.dataobject.productPriceSnapshot.Produ
...
@@ -28,6 +29,7 @@ import cn.iocoder.yudao.module.product.dal.dataobject.productPriceSnapshot.Produ
import
cn.iocoder.yudao.module.product.dal.mysql.product.*
;
import
cn.iocoder.yudao.module.product.dal.mysql.product.*
;
import
cn.iocoder.yudao.module.product.dal.mysql.productPriceSnapshot.ProductPriceSnapshotMapper
;
import
cn.iocoder.yudao.module.product.dal.mysql.productPriceSnapshot.ProductPriceSnapshotMapper
;
import
cn.iocoder.yudao.module.product.dto.AirClearancePriceResultDto
;
import
cn.iocoder.yudao.module.product.dto.AirClearancePriceResultDto
;
import
cn.iocoder.yudao.module.product.dto.CopyProductPriceDto
;
import
cn.iocoder.yudao.module.product.dto.ProductPriceExcelData
;
import
cn.iocoder.yudao.module.product.dto.ProductPriceExcelData
;
import
cn.iocoder.yudao.module.product.enums.PriceTypeEnum
;
import
cn.iocoder.yudao.module.product.enums.PriceTypeEnum
;
import
cn.iocoder.yudao.module.product.param.PriceParam
;
import
cn.iocoder.yudao.module.product.param.PriceParam
;
...
@@ -1596,7 +1598,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -1596,7 +1598,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
for
(
Map
.
Entry
<
Integer
,
List
<
ProductPriceStepDO
>>
entry
:
priceTypeStepMap
.
entrySet
())
{
for
(
Map
.
Entry
<
Integer
,
List
<
ProductPriceStepDO
>>
entry
:
priceTypeStepMap
.
entrySet
())
{
Integer
priceType
=
entry
.
getKey
();
Integer
priceType
=
entry
.
getKey
();
List
<
ProductPriceStepDO
>
priceTypeStepList
=
entry
.
getValue
();
List
<
ProductPriceStepDO
>
priceTypeStepList
=
entry
.
getValue
();
priceTypeStepList
.
sort
(
Comparator
.
comparing
(
ProductPriceStepDO:
:
getRankNum
));
priceTypeStepList
.
sort
(
Comparator
.
comparing
(
ProductPriceStepDO:
:
getRankNum
,
Comparator
.
nullsLast
(
Comparator
.
naturalOrder
())
));
if
(
priceType
==
PriceTypeEnum
.
FREIGHT
.
getPriceType
())
{
if
(
priceType
==
PriceTypeEnum
.
FREIGHT
.
getPriceType
())
{
productPriceRespVO
.
setFreightPriceStepList
(
priceTypeStepList
);
productPriceRespVO
.
setFreightPriceStepList
(
priceTypeStepList
);
}
else
if
(
priceType
==
PriceTypeEnum
.
FULL_PRICE
.
getPriceType
())
{
}
else
if
(
priceType
==
PriceTypeEnum
.
FULL_PRICE
.
getPriceType
())
{
...
@@ -3291,4 +3293,37 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -3291,4 +3293,37 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
productPriceIdList
.
add
(
priceId
);
productPriceIdList
.
add
(
priceId
);
handleOrderException
(
productPriceIdList
,
true
);
handleOrderException
(
productPriceIdList
,
true
);
}
}
/**
*
* 从商品列表中某一商品进入复制价格
* @param dto
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
copyPriceByProductIds
(
CopyProductPriceDto
dto
)
{
List
<
Long
>
ids
=
Arrays
.
stream
(
dto
.
getProductPriceIds
().
split
(
StrUtil
.
COMMA
)).
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
//列出要复制的商品价格
List
<
ProductPriceDO
>
productPriceDOList
=
this
.
productPriceMapper
.
selectList
(
new
LambdaQueryWrapper
<
ProductPriceDO
>().
in
(
ProductPriceDO:
:
getId
,
ids
));
ProductPriceAirCreateReqVO
createReqVO
=
new
ProductPriceAirCreateReqVO
()
;
createReqVO
.
setProductId
(
Long
.
parseLong
(
dto
.
getProductId
())
);
List
<
LineChannelVo
>
lineChannelList
=
createReqVO
.
getLineChannelList
();
ProductDO
productDO
=
checkUpdateStatus
(
lineChannelList
,
createReqVO
.
getProductId
());
WarehouseLineSearchVO
searchVO
=
new
WarehouseLineSearchVO
();
List
<
WarehouseLineDO
>
warehouseLineList
=
warehouseService
.
openedRouterList
(
searchVO
);
List
<
ProductDO
>
productList
=
Collections
.
singletonList
(
productDO
);
//商品线路保存在redis。更新成功后移除
//batchSaveKeyInCache(productList, lineChannelList);
createReqVO
.
setSync
(
true
);
createReqVO
.
setBatch
(
false
);
//batchUpdateAir(createReqVO, warehouseLineList, productList);
}
}
}
yudao-module-product/yudao-module-product-rest/src/main/java/cn/iocoder/yudao/module/product/controller/admin/product/ProductPriceController.java
View file @
dc3f3c54
...
@@ -10,6 +10,7 @@ import cn.iocoder.yudao.module.product.convert.product.ProductPriceConvert;
...
@@ -10,6 +10,7 @@ import cn.iocoder.yudao.module.product.convert.product.ProductPriceConvert;
import
cn.iocoder.yudao.module.product.convert.productPriceSnapshot.ProductPriceSnapshotConvert
;
import
cn.iocoder.yudao.module.product.convert.productPriceSnapshot.ProductPriceSnapshotConvert
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.ProductPriceDO
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.ProductPriceDO
;
import
cn.iocoder.yudao.module.product.dal.dataobject.productPriceSnapshot.ProductPriceSnapshotDO
;
import
cn.iocoder.yudao.module.product.dal.dataobject.productPriceSnapshot.ProductPriceSnapshotDO
;
import
cn.iocoder.yudao.module.product.dto.CopyProductPriceDto
;
import
cn.iocoder.yudao.module.product.dto.ProductPriceExcel
;
import
cn.iocoder.yudao.module.product.dto.ProductPriceExcel
;
import
cn.iocoder.yudao.module.product.param.PriceParam
;
import
cn.iocoder.yudao.module.product.param.PriceParam
;
import
cn.iocoder.yudao.module.product.service.product.ProductPriceService
;
import
cn.iocoder.yudao.module.product.service.product.ProductPriceService
;
...
@@ -266,4 +267,15 @@ public class ProductPriceController {
...
@@ -266,4 +267,15 @@ public class ProductPriceController {
public
void
updateOrderException
(
@RequestParam
(
"priceId"
)
Long
priceId
)
{
public
void
updateOrderException
(
@RequestParam
(
"priceId"
)
Long
priceId
)
{
productPriceService
.
handleOrderException
(
priceId
);
productPriceService
.
handleOrderException
(
priceId
);
}
}
/**
* 从商品列表中某一商品进入复制价格
* @param dto
*/
@ApiOperation
(
"从商品列表中某一商品进入复制价格"
)
@PostMapping
(
"/copyPriceByProductIds"
)
public
void
copyPriceByProductIds
(
@RequestBody
CopyProductPriceDto
dto
){
productPriceService
.
copyPriceByProductIds
(
dto
);
}
}
}
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/dal/mysql/BoxMergePkgMapper.java
View file @
dc3f3c54
...
@@ -97,7 +97,7 @@ public interface BoxMergePkgMapper extends AbstractMapper<BoxMergePkgDO> {
...
@@ -97,7 +97,7 @@ public interface BoxMergePkgMapper extends AbstractMapper<BoxMergePkgDO> {
BoxMergePkgDO
getMergePkgInfoById
(
@Param
(
"id"
)
Long
id
);
BoxMergePkgDO
getMergePkgInfoById
(
@Param
(
"id"
)
Long
id
);
@Select
(
"<script>"
+
@Select
(
"<script>"
+
"select t.order_id,t.order_no,t.product_record,t.sum_num,t.sum_volume,t.sum_weight,t.sum_quantity,t1.tally_time "
+
"select t.order_id,t.order_no,t.product_record,t.sum_num,t.sum_volume,t.sum_weight,t.sum_quantity,t1.tally_time
,t.customs_type
"
+
"from ecw_box_preload_goods t2 left join ecw_order t on t2.order_id=t.order_id "
+
"from ecw_box_preload_goods t2 left join ecw_order t on t2.order_id=t.order_id "
+
"LEFT JOIN ecw_box_tally t1 on t.order_id=t1.order_id and t1.deleted=0 and t1.shipment_id=#{shipmentId} "
+
"LEFT JOIN ecw_box_tally t1 on t.order_id=t1.order_id and t1.deleted=0 and t1.shipment_id=#{shipmentId} "
+
"where 1=1 and not exists (select 1 from ecw_box_pkg_order a where a.order_id=t.order_id and a.deleted=0) "
+
"where 1=1 and not exists (select 1 from ecw_box_pkg_order a where a.order_id=t.order_id and a.deleted=0) "
+
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/vo/boxMergePkg/BoxMergePkgWebVO.java
View file @
dc3f3c54
...
@@ -49,4 +49,7 @@ public class BoxMergePkgWebVO {
...
@@ -49,4 +49,7 @@ public class BoxMergePkgWebVO {
@ApiModelProperty
(
"合包箱号"
)
@ApiModelProperty
(
"合包箱号"
)
private
String
pkgNum
;
private
String
pkgNum
;
@ApiModelProperty
(
value
=
"单证报关 1 我司全代 2自单代报 3混合报关"
)
private
String
customsType
;
}
}
yudao-server/src/main/resources/application-dev.yaml
View file @
dc3f3c54
...
@@ -46,31 +46,31 @@ spring:
...
@@ -46,31 +46,31 @@ spring:
datasource
:
datasource
:
master
:
master
:
name
:
jiedao
name
:
jiedao
url
:
jdbc:mysql://1
10.41.143.128:3306
/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
url
:
jdbc:mysql://1
59.75.224.138:2299
/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
username
:
root
password
:
mysql@202
4
password
:
mysql@202
3
slave
:
# 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
slave
:
# 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
name
:
jiedao
name
:
jiedao
url
:
jdbc:mysql://1
10.41.143.128:3306
/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
url
:
jdbc:mysql://1
59.75.224.138:2299
/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
username
:
root
password
:
mysql@202
4
password
:
mysql@202
3
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis
:
redis
:
host
:
1
10.41.143.12
8
# 地址
host
:
1
59.75.224.13
8
# 地址
port
:
6379
# 端口
port
:
2291
# 端口
database
:
0
# 数据库索引
database
:
0
# 数据库索引
password
:
123456
password
:
redis@2022
timeout
:
60s
timeout
:
60s
connect-timeout
:
60s
connect-timeout
:
60s
redis-limiter
:
redis-limiter
:
redis-host
:
1
10.41.143.12
8
# redis server IP 默认值:127.0.0.1
redis-host
:
1
59.75.224.13
8
# redis server IP 默认值:127.0.0.1
redis-port
:
6379
# redis service 端口 默认值:6379
redis-port
:
2291
# redis service 端口 默认值:6379
redis-db
:
4
# redis service 数据库 默认值:6379
redis-db
:
4
# redis service 数据库 默认值:6379
redis-password
:
123456
# redis 访问密码 默认值:null
redis-password
:
redis@2022
# redis 访问密码 默认值:null
redis-connection-timeout
:
2000
# redis 连接超时时间 默认值:2000
redis-connection-timeout
:
2000
# redis 连接超时时间 默认值:2000
redis-pool-max-idle
:
50
# redis 连接池最大空闲连接数 默认值:50
redis-pool-max-idle
:
50
# redis 连接池最大空闲连接数 默认值:50
redis-pool-min-idle
:
10
# redis 连接池最小空闲连接数 默认值: 10
redis-pool-min-idle
:
10
# redis 连接池最小空闲连接数 默认值: 10
...
...
yudao-server/src/main/resources/logback-spring.xml
View file @
dc3f3c54
...
@@ -33,12 +33,16 @@
...
@@ -33,12 +33,16 @@
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!-- 文件名称 -->
<!-- 文件名称 -->
<fileNamePattern>
${log.service.output:-service.log}-%d{yyyy-MM-dd}.%i
</fileNamePattern>
<fileNamePattern>
${log.service.output:-service.log}-%d{yyyy-MM-dd}.%i
</fileNamePattern>
<!-- 启动服务时,是否清理历史日志,一般不建议清理 -->
<cleanHistoryOnStart>
${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-true}
</cleanHistoryOnStart>
<!-- 文件大小 -->
<!-- 文件大小 -->
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<maxFileSize>
50
MB
</maxFileSize>
<maxFileSize>
1
MB
</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- 文件最大保存历史数量 -->
<!-- 文件最大保存历史数量 -->
<MaxHistory>
1
0
</MaxHistory>
<MaxHistory>
1
</MaxHistory>
</rollingPolicy>
</rollingPolicy>
<layout
class=
"ch.qos.logback.classic.PatternLayout"
>
<layout
class=
"ch.qos.logback.classic.PatternLayout"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment