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
4859b972
Commit
4859b972
authored
Jun 19, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-19提交
parent
e23ba12e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
23 deletions
+68
-23
ZTestMapper.java
.../java/cn/iocoder/yudao/framework/toolkit/ZTestMapper.java
+9
-0
zTest.java
...c/main/java/cn/iocoder/yudao/framework/toolkit/zTest.java
+16
-0
BmpShipmentBatchAddPriceListener.java
...e/shipment/listener/BmpShipmentBatchAddPriceListener.java
+1
-0
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+32
-19
ProductPriceController.java
...duct/controller/admin/product/ProductPriceController.java
+7
-3
ReceivableServiceImpl.java
...dule/wealth/service/receivable/ReceivableServiceImpl.java
+3
-1
No files found.
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/toolkit/ZTestMapper.java
0 → 100644
View file @
4859b972
package
cn
.
iocoder
.
yudao
.
framework
.
toolkit
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
ZTestMapper
extends
BaseMapper
<
zTest
>
{
}
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/toolkit/zTest.java
0 → 100644
View file @
4859b972
package
cn
.
iocoder
.
yudao
.
framework
.
toolkit
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.util.Date
;
@TableName
(
"z_test"
)
@Data
public
class
zTest
{
private
Long
id
;
private
String
testname
;
private
Date
createdate
;
}
yudao-module-bpm/yudao-module-bpm-base/src/main/java/cn/iocoder/yudao/module/bpm/service/shipment/listener/BmpShipmentBatchAddPriceListener.java
View file @
4859b972
...
...
@@ -27,6 +27,7 @@ public class BmpShipmentBatchAddPriceListener extends BpmProcessInstanceResultEv
log
.
info
(
"---------------------批量加价审核回调-----------------------{},{}"
,
event
.
getBusinessKey
(),
event
.
getResult
());
//lanbm 2024-06-18 改为空运和海运都有此逻辑点
//运费,清关费,币种,单位都要和元订单一致才能生效
boxApprovalService
.
updateBoxApproveResult
(
WorkFlowEmus
.
SHIPMENT_BATCH_ADD_PRICE
.
getKey
(),
event
.
getBusinessKey
(),
event
.
getResult
());
...
...
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/impl/ProductPriceServiceImpl.java
View file @
4859b972
...
...
@@ -1219,9 +1219,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
//查询产品价格信息 lanbm 2024-05-31 添加注释
List
<
ProductPriceDO
>
priceList
=
getProductPriceList
(
productPriceIdList
);
List
<
ProductPriceDO
>
needHandleList
=
new
ArrayList
<>();
Date
now
=
new
Date
();
for
(
ProductPriceDO
productPriceDO
:
priceList
)
{
...
...
@@ -1229,6 +1227,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
Date
validateEndDate
=
productPriceDO
.
getValidateEndDate
();
boolean
hasPrice
=
false
;
if
(
productPriceDO
.
getPriceType
()
!=
null
)
{
if
(
productPriceDO
.
getPriceType
()
==
0
)
{
//运费和清关价
BigDecimal
transportPrice
=
productPriceDO
.
getTransportPrice
();
...
...
@@ -1240,11 +1240,14 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
BigDecimal
allPrice
=
productPriceDO
.
getAllPrice
();
hasPrice
=
allPrice
!=
null
&&
allPrice
.
floatValue
()
>
0
;
}
}
//lanbm 2024-06-06 处理单询价问题添加的逻辑点。
if
(
productPriceDO
.
getNeedOrderInquiry
()
!=
null
)
{
if
(
productPriceDO
.
getNeedOrderInquiry
()
==
1
)
{
hasPrice
=
true
;
}
}
//没有价格信息不继续后面的处理
if
(!
hasPrice
)
continue
;
...
...
@@ -3403,10 +3406,15 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
@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
<
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
));
List
<
ProductPriceDO
>
productPriceDOList
=
this
.
productPriceMapper
.
selectList
(
new
LambdaQueryWrapper
<
ProductPriceDO
>().
in
(
ProductPriceDO:
:
getId
,
ids
));
if
(
productPriceDOList
.
size
()
>
0
)
{
productPriceDOList
.
forEach
(
price
->
{
...
...
@@ -3568,7 +3576,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
//ProductDO productDO = checkUpdateStatus(lineChannelList, createReqVO.getProductId());
ProductDO
productDO
=
productService
.
getProduct
(
createReqVO
.
getProductId
());
WarehouseLineSearchVO
searchVO
=
new
WarehouseLineSearchVO
();
List
<
WarehouseLineDO
>
warehouseLineList
=
warehouseService
.
openedRouterList
(
searchVO
);
List
<
WarehouseLineDO
>
warehouseLineList
=
warehouseService
.
openedRouterList
(
searchVO
);
List
<
ProductDO
>
productList
=
Collections
.
singletonList
(
productDO
);
//商品线路保存在redis。更新成功后移除
...
...
@@ -3576,7 +3585,10 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
createReqVO
.
setSync
(
true
);
createReqVO
.
setBatch
(
false
);
copyPriceUpdateAir
(
createReqVO
,
warehouseLineList
,
productList
,
price
);
copyPriceUpdateAir
(
createReqVO
,
warehouseLineList
,
productList
,
price
);
});
}
...
...
@@ -3704,7 +3716,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
log
.
info
(
"路线处理耗时:"
+
(
t2
-
t1
));
deleteKey
(
idList
,
lineChannelList
);
handleOrderException
(
productPriceIdList
,
createReqVO
.
isSync
());
handleOrderException
(
productPriceIdList
,
createReqVO
.
isSync
());
}
private
void
copyClearAndSavePriceStepList
(
List
<
Long
>
productPriceIdList
,
List
<
ProductPriceStepDO
>
stepList
,
Map
<
Long
,
String
>
priceTransportTypeMap
,
boolean
batchUpdate
)
{
...
...
yudao-module-product/yudao-module-product-rest/src/main/java/cn/iocoder/yudao/module/product/controller/admin/product/ProductPriceController.java
View file @
4859b972
...
...
@@ -62,14 +62,16 @@ public class ProductPriceController {
@ApiOperation
(
"创建路线产品"
)
@PreAuthorize
(
"@ss.hasPermission('ecw:product-price:create')"
)
@Idempotent
(
timeout
=
5
)
public
CommonResult
<
Long
>
createProductPrice
(
@Valid
@RequestBody
ProductPriceCreateReqVO
createReqVO
)
{
public
CommonResult
<
Long
>
createProductPrice
(
@Valid
@RequestBody
ProductPriceCreateReqVO
createReqVO
)
{
return
success
(
productPriceService
.
singleCreate
(
createReqVO
));
}
@PostMapping
(
"/createAir"
)
@ApiOperation
(
"创建路线产品空运"
)
@Idempotent
(
timeout
=
5
)
public
CommonResult
<
Long
>
createProductPriceAir
(
@Valid
@RequestBody
ProductPriceAirCreateReqVO
createReqVO
)
{
public
CommonResult
<
Long
>
createProductPriceAir
(
@Valid
@RequestBody
ProductPriceAirCreateReqVO
createReqVO
)
{
return
success
(
productPriceService
.
singleCreateAir
(
createReqVO
));
}
...
...
@@ -211,7 +213,8 @@ public class ProductPriceController {
@ApiOperation
(
"批量拉黑"
)
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"编号列表"
,
required
=
true
,
example
=
"1024,2048"
,
dataTypeClass
=
List
.
class
)
// @PreAuthorize("@ss.hasPermission('ecw:product-price:batchBlock')")
public
CommonResult
<
Boolean
>
batchBlock
(
@RequestParam
(
"ids"
)
Collection
<
Long
>
ids
)
{
public
CommonResult
<
Boolean
>
batchBlock
(
@RequestParam
(
"ids"
)
Collection
<
Long
>
ids
)
{
productPriceService
.
batchBlock
(
ids
);
return
success
(
true
);
}
...
...
@@ -290,6 +293,7 @@ public class ProductPriceController {
/**
* 从商品列表中某一商品进入复制价格
* @param dto
* lanbm 2024-06-19 添加注释
*/
@ApiOperation
(
"从商品列表中某一商品进入复制价格"
)
@PostMapping
(
"/copyPriceByProductIds"
)
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receivable/ReceivableServiceImpl.java
View file @
4859b972
...
...
@@ -162,8 +162,10 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
if
(
receivable
.
getDeleted
())
{
throw
exception
(
RECEIVABLE_DELETED
);
}
//收款状态(0未收款,1收款中,2已收款)
if
(
receivable
.
getState
()
!=
0
)
{
throw
exception
(
RECEIVABLE_WRITE_OFF_ING
);
//lanbm 2024-06-19 取消此逻辑
//throw exception(RECEIVABLE_WRITE_OFF_ING);
}
updateReqVO
.
setUpdateTime
(
new
Date
());
updateReqVO
.
setUpdater
(
String
.
valueOf
(
SecurityFrameworkUtils
.
getLoginUserId
()));
...
...
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