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
b1227055
Commit
b1227055
authored
Jun 12, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-12提交发布
parent
c35f1042
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
495 additions
and
139 deletions
+495
-139
pom.xml
yudao-dependencies/pom.xml
+1
-0
WaterMarkHandler.java
...coder/yudao/framework/excel/handler/WaterMarkHandler.java
+1
-1
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+98
-72
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+2
-1
ImageData.java
.../java/cn/iocoder/yudao/module/shipment/dto/ImageData.java
+32
-0
ShipmentReceivableExcelExportListener.java
...pment/listener/ShipmentReceivableExcelExportListener.java
+8
-6
ShipmentReceivableExcelExportListener2.java
...ment/listener/ShipmentReceivableExcelExportListener2.java
+132
-3
BoxApprovalServiceImpl.java
.../shipment/service/boxApproval/BoxApprovalServiceImpl.java
+13
-6
BoxLadingBillServiceImpl.java
...pment/service/boxLadingBill/BoxLadingBillServiceImpl.java
+33
-3
BoxPreloadGoodsServiceImpl.java
...t/service/boxPreloadGoods/BoxPreloadGoodsServiceImpl.java
+2
-1
BoxApprovalController.java
...dule/shipment/controller/admin/BoxApprovalController.java
+6
-2
BoxOpLogController.java
.../module/shipment/controller/admin/BoxOpLogController.java
+4
-2
BoxPreloadGoodsController.java
.../shipment/controller/admin/BoxPreloadGoodsController.java
+2
-1
ReceiptServiceImpl.java
...dao/module/wealth/service/receipt/ReceiptServiceImpl.java
+34
-33
ReceiptItemBackVO.java
...yudao/module/wealth/vo/receiptItem/ReceiptItemBackVO.java
+32
-0
ReceiptItemReq.java
...er/yudao/module/wealth/vo/receiptItem/ReceiptItemReq.java
+17
-0
ReceiptItemResp.java
...r/yudao/module/wealth/vo/receiptItem/ReceiptItemResp.java
+5
-1
ReceiptItemController.java
...h/controller/admin/receiptItem/ReceiptItemController.java
+68
-5
BankReceiptDetailsMapper.xml
...resources/mapper/ReceiptItem/BankReceiptDetailsMapper.xml
+5
-2
airBillTemplate.xlsx
...-server/src/main/resources/templates/airBillTemplate.xlsx
+0
-0
nrlyReceivable2.xlsx
...-server/src/main/resources/templates/nrlyReceivable2.xlsx
+0
-0
No files found.
yudao-dependencies/pom.xml
View file @
b1227055
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
<mapstruct.version>
1.4.1.Final
</mapstruct.version>
<mapstruct.version>
1.4.1.Final
</mapstruct.version>
<hutool.version>
5.6.1
</hutool.version>
<hutool.version>
5.6.1
</hutool.version>
<pinyin4j.version>
2.5.0
</pinyin4j.version>
<pinyin4j.version>
2.5.0
</pinyin4j.version>
<!--lanbm 2024-06-11 修改版本 2.2.7 -->
<easyexcel.verion>
2.2.7
</easyexcel.verion>
<easyexcel.verion>
2.2.7
</easyexcel.verion>
<ooxml.verion>
1.0
</ooxml.verion>
<ooxml.verion>
1.0
</ooxml.verion>
<velocity.version>
2.2
</velocity.version>
<velocity.version>
2.2
</velocity.version>
...
...
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/excel/handler/WaterMarkHandler.java
View file @
b1227055
...
@@ -4,7 +4,7 @@ import com.alibaba.excel.write.handler.SheetWriteHandler;
...
@@ -4,7 +4,7 @@ import com.alibaba.excel.write.handler.SheetWriteHandler;
import
com.alibaba.excel.write.metadata.holder.WriteSheetHolder
;
import
com.alibaba.excel.write.metadata.holder.WriteSheetHolder
;
import
com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder
;
import
com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.poi.POIXMLDocumentPart
;
//
import org.apache.poi.POIXMLDocumentPart;
import
org.apache.poi.openxml4j.opc.PackagePartName
;
import
org.apache.poi.openxml4j.opc.PackagePartName
;
import
org.apache.poi.openxml4j.opc.PackageRelationship
;
import
org.apache.poi.openxml4j.opc.PackageRelationship
;
import
org.apache.poi.openxml4j.opc.TargetMode
;
import
org.apache.poi.openxml4j.opc.TargetMode
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderQueryServiceImpl.java
View file @
b1227055
This diff is collapsed.
Click to expand it.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/impl/ProductPriceServiceImpl.java
View file @
b1227055
...
@@ -1743,7 +1743,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -1743,7 +1743,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
List
<
Long
>
productIdList
=
list
.
stream
()
List
<
Long
>
productIdList
=
list
.
stream
()
.
map
(
ProductPriceBaseVO:
:
getProductId
)
.
map
(
ProductPriceBaseVO:
:
getProductId
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
List
<
ProductDO
>
productDOList
=
productService
.
getProductList
(
productIdList
);
List
<
ProductDO
>
productDOList
=
productService
.
getProductList
(
productIdList
);
Map
<
Long
,
ProductDO
>
productMap
=
productDOList
.
stream
()
Map
<
Long
,
ProductDO
>
productMap
=
productDOList
.
stream
()
.
collect
(
Collectors
.
toMap
(
ProductDO:
:
getId
,
(
v
->
v
),
(
v1
,
v2
)
->
v2
));
.
collect
(
Collectors
.
toMap
(
ProductDO:
:
getId
,
(
v
->
v
),
(
v1
,
v2
)
->
v2
));
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/dto/ImageData.java
0 → 100644
View file @
b1227055
package
cn
.
iocoder
.
yudao
.
module
.
shipment
.
dto
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.alibaba.excel.annotation.write.style.ContentRowHeight
;
import
com.alibaba.excel.converters.string.StringImageConverter
;
import
lombok.Data
;
import
java.io.File
;
import
java.io.InputStream
;
import
java.net.URL
;
@Data
@ContentRowHeight
(
100
)
@ColumnWidth
(
100
/
8
)
public
class
ImageData
{
private
File
file
;
private
InputStream
inputStream
;
/**
* 如果string类型 必须指定转换器,string默认转换成string
*/
@ExcelProperty
(
converter
=
StringImageConverter
.
class
)
private
String
string
;
private
byte
[]
byteArray
;
/**
* 根据url导出
*
* @since 2.1.1
*/
private
URL
url
;
}
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/listener/ShipmentReceivableExcelExportListener.java
View file @
b1227055
...
@@ -52,11 +52,11 @@ import org.springframework.stereotype.Component;
...
@@ -52,11 +52,11 @@ import org.springframework.stereotype.Component;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.io.File
;
import
java.io.*
;
import
java.io.FileInputStream
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.nio.file.Files
;
import
java.nio.file.Paths
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.*
;
...
@@ -99,8 +99,6 @@ public class ShipmentReceivableExcelExportListener {
...
@@ -99,8 +99,6 @@ public class ShipmentReceivableExcelExportListener {
@Resource
@Resource
private
ReceivableService
receivableService
;
private
ReceivableService
receivableService
;
// @Value("${ue.templates-url}")
// private String path;
/**
/**
* 订单导出监听
* 订单导出监听
...
@@ -221,6 +219,8 @@ public class ShipmentReceivableExcelExportListener {
...
@@ -221,6 +219,8 @@ public class ShipmentReceivableExcelExportListener {
totalJnSeaFreight
=
totalJnSeaFreight
.
add
(
jnyfyf
);
totalJnSeaFreight
=
totalJnSeaFreight
.
add
(
jnyfyf
);
}
}
headMap
.
put
(
"totalNum"
,
totalNum
);
headMap
.
put
(
"totalNum"
,
totalNum
);
headMap
.
put
(
"totalVolume"
,
totalVolume
.
doubleValue
());
headMap
.
put
(
"totalVolume"
,
totalVolume
.
doubleValue
());
headMap
.
put
(
"totalWeight"
,
totalWeight
.
doubleValue
());
headMap
.
put
(
"totalWeight"
,
totalWeight
.
doubleValue
());
...
@@ -269,4 +269,6 @@ public class ShipmentReceivableExcelExportListener {
...
@@ -269,4 +269,6 @@ public class ShipmentReceivableExcelExportListener {
}
}
}
}
}
}
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/listener/ShipmentReceivableExcelExportListener2.java
View file @
b1227055
This diff is collapsed.
Click to expand it.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxApproval/BoxApprovalServiceImpl.java
View file @
b1227055
...
@@ -116,7 +116,8 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
...
@@ -116,7 +116,8 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
String
flowKey
=
""
;
String
flowKey
=
""
;
//----------------------------------------预装---------------------------------------
//----------------------------------------预装---------------------------------------
if
(
createReqVO
.
getApprovalType
()
==
BoxApprovalTypeEnum
.
PRELOAD
.
getType
())
{
if
(
createReqVO
.
getApprovalType
()
==
BoxApprovalTypeEnum
.
PRELOAD
.
getType
())
{
//检查是否有预装订单
//检查是否有预装订单
boxService
.
checkPreInstallNum
(
shipmentId
);
boxService
.
checkPreInstallNum
(
shipmentId
);
...
@@ -134,7 +135,8 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
...
@@ -134,7 +135,8 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
boxService
.
updateOrderStatusByShipmentId
(
shipmentId
,
null
,
0
,
boxService
.
updateOrderStatusByShipmentId
(
shipmentId
,
null
,
0
,
BoxStatusEnum
.
PREINSTALL_EXAMINE
.
getStatus
(),
pre_install_processing
.
getType
(),
pre_install_processing
.
getDesc
());
BoxStatusEnum
.
PREINSTALL_EXAMINE
.
getStatus
(),
pre_install_processing
.
getType
(),
pre_install_processing
.
getDesc
());
}
else
if
(
createReqVO
.
getApprovalType
()
==
BoxApprovalTypeEnum
.
SEALING_CABINET
.
getType
())
{
}
else
if
(
createReqVO
.
getApprovalType
()
==
BoxApprovalTypeEnum
.
SEALING_CABINET
.
getType
())
{
//首先校验出货是否已经预装审核成功
//首先校验出货是否已经预装审核成功
Integer
prStatus
=
boxDO
.
getPrStatus
();
Integer
prStatus
=
boxDO
.
getPrStatus
();
if
(
prStatus
!=
PrStatusEnum
.
PRELOAD_APPROVAL_SUCCESS
.
getPrStatus
())
{
if
(
prStatus
!=
PrStatusEnum
.
PRELOAD_APPROVAL_SUCCESS
.
getPrStatus
())
{
...
@@ -183,7 +185,8 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
...
@@ -183,7 +185,8 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
boxOpLogService
.
createBoxOpLog
(
shipmentId
,
ulStatusEnum
.
getUlStatus
(),
ulStatusEnum
.
getStatusNameZh
(),
ulStatusEnum
.
getStatusNameEn
(),
boxApproval
.
getId
());
boxOpLogService
.
createBoxOpLog
(
shipmentId
,
ulStatusEnum
.
getUlStatus
(),
ulStatusEnum
.
getStatusNameZh
(),
ulStatusEnum
.
getStatusNameEn
(),
boxApproval
.
getId
());
}
}
//-------------------------------------------预装反审----------------------------------------
//-------------------------------------------预装反审----------------------------------------
else
if
(
createReqVO
.
getApprovalType
()
==
BoxApprovalTypeEnum
.
PRELOAD_UMPIRE
.
getType
())
{
else
if
(
createReqVO
.
getApprovalType
()
==
BoxApprovalTypeEnum
.
PRELOAD_UMPIRE
.
getType
())
{
//预装反审
//预装反审
flowKey
=
WorkFlowEmus
.
SHIPMENT_PREASSEMBLE_NO
.
getKey
();
flowKey
=
WorkFlowEmus
.
SHIPMENT_PREASSEMBLE_NO
.
getKey
();
...
@@ -406,11 +409,13 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
...
@@ -406,11 +409,13 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
boxService
.
addOrderLog
(
Collections
.
singletonList
(
orderId
),
orderShipmentLog
,
""
);
boxService
.
addOrderLog
(
Collections
.
singletonList
(
orderId
),
orderShipmentLog
,
""
);
}
}
//-----------------------------------------批量加价-------------------------------------------
//-----------------------------------------批量加价-------------------------------------------
else
if
(
createReqVO
.
getApprovalType
()
==
BoxApprovalTypeEnum
.
BATCH_ADD_PRICE
.
getType
())
{
else
if
(
createReqVO
.
getApprovalType
()
==
BoxApprovalTypeEnum
.
BATCH_ADD_PRICE
.
getType
())
{
//批量加价
//批量加价
flowKey
=
WorkFlowEmus
.
SHIPMENT_BATCH_ADD_PRICE
.
getKey
();
flowKey
=
WorkFlowEmus
.
SHIPMENT_BATCH_ADD_PRICE
.
getKey
();
String
details
=
createReqVO
.
getDetails
();
String
details
=
createReqVO
.
getDetails
();
BoxOrderMarkUpVO
boxOrderMarkUpVO
=
JSON
.
parseObject
(
details
,
BoxOrderMarkUpVO
.
class
);
BoxOrderMarkUpVO
boxOrderMarkUpVO
=
JSON
.
parseObject
(
details
,
BoxOrderMarkUpVO
.
class
);
boxService
.
checkOrderPayStatus
(
boxOrderMarkUpVO
.
getOrderIds
());
boxService
.
checkOrderPayStatus
(
boxOrderMarkUpVO
.
getOrderIds
());
}
}
//-----------------------------------------删单退场-------------------------------------------
//-----------------------------------------删单退场-------------------------------------------
...
@@ -547,7 +552,9 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
...
@@ -547,7 +552,9 @@ public class BoxApprovalServiceImpl extends AbstractService<BoxApprovalMapper, B
}
}
Long
userId
=
SecurityFrameworkUtils
.
getLoginUserId
();
Long
userId
=
SecurityFrameworkUtils
.
getLoginUserId
();
String
bpmProcessId
=
bpmCreateServiceFactory
.
createBmp
(
userId
,
boxApproval
.
getId
(),
flowKey
,
boxDO
.
getSelfNo
(),
createReqVO
.
getCopyUserId
());
String
bpmProcessId
=
bpmCreateServiceFactory
.
createBmp
(
userId
,
boxApproval
.
getId
(),
flowKey
,
boxDO
.
getSelfNo
(),
createReqVO
.
getCopyUserId
());
boxApproval
.
setBpmProcessId
(
bpmProcessId
);
boxApproval
.
setBpmProcessId
(
bpmProcessId
);
boxApprovalMapper
.
updateById
(
boxApproval
);
boxApprovalMapper
.
updateById
(
boxApproval
);
// 返回
// 返回
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxLadingBill/BoxLadingBillServiceImpl.java
View file @
b1227055
...
@@ -2,9 +2,11 @@ package cn.iocoder.yudao.module.shipment.service.boxLadingBill;
...
@@ -2,9 +2,11 @@ package cn.iocoder.yudao.module.shipment.service.boxLadingBill;
import
java.io.*
;
import
java.io.*
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.iocoder.yudao.framework.common.exception.ServiceException
;
import
cn.iocoder.yudao.framework.common.exception.ServiceException
;
import
cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO
;
import
cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO
;
...
@@ -38,6 +40,8 @@ import cn.iocoder.yudao.module.shipment.service.boxShipping.BoxShippingService;
...
@@ -38,6 +40,8 @@ import cn.iocoder.yudao.module.shipment.service.boxShipping.BoxShippingService;
import
cn.iocoder.yudao.module.shipment.vo.boxLadingBill.BoxLadingBillCreateReqVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxLadingBill.BoxLadingBillCreateReqVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxLadingBill.BoxLadingBillQueryVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxLadingBill.BoxLadingBillQueryVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxLadingBill.BoxLadingBillUpdateReqVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxLadingBill.BoxLadingBillUpdateReqVO
;
import
cn.iocoder.yudao.module.system.api.dict.DictDataApi
;
import
cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
...
@@ -47,6 +51,7 @@ import com.itextpdf.text.pdf.BaseFont;
...
@@ -47,6 +51,7 @@ import com.itextpdf.text.pdf.BaseFont;
import
com.itextpdf.text.pdf.PdfReader
;
import
com.itextpdf.text.pdf.PdfReader
;
import
com.itextpdf.text.pdf.PdfStamper
;
import
com.itextpdf.text.pdf.PdfStamper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -100,6 +105,12 @@ public class BoxLadingBillServiceImpl extends AbstractService<BoxLadingBillMappe
...
@@ -100,6 +105,12 @@ public class BoxLadingBillServiceImpl extends AbstractService<BoxLadingBillMappe
@Lazy
@Lazy
private
BoxAgentService
boxAgentService
;
private
BoxAgentService
boxAgentService
;
/*
数据字典项
*/
@Autowired
private
DictDataApi
dictDataApi
;
@Value
(
"${ue.templates-url}"
)
@Value
(
"${ue.templates-url}"
)
private
String
path
;
private
String
path
;
...
@@ -167,6 +178,19 @@ public class BoxLadingBillServiceImpl extends AbstractService<BoxLadingBillMappe
...
@@ -167,6 +178,19 @@ public class BoxLadingBillServiceImpl extends AbstractService<BoxLadingBillMappe
if
(
boxLadingBillDO
==
null
)
{
if
(
boxLadingBillDO
==
null
)
{
throw
exception
(
MAKE_BILL_OF_LADING_NOT_EXISTS
);
throw
exception
(
MAKE_BILL_OF_LADING_NOT_EXISTS
);
}
}
//包装单位 lanbm 2024-06-11 add
List
<
DictDataRespDTO
>
listPack
=
dictDataApi
.
getDictDatas
(
"packaging_type"
);
Map
<
String
,
String
>
PackMap
=
null
;
if
(
CollectionUtil
.
isNotEmpty
(
listPack
))
{
PackMap
=
listPack
.
stream
().
collect
(
Collectors
.
toMap
((
DictDataRespDTO:
:
getValue
),
DictDataRespDTO:
:
getLabel
));
}
//end 包装单位 lanbm 2024-06-11 add
BoxShippingDO
boxShippingDO
=
BoxShippingDO
boxShippingDO
=
boxShippingService
.
getOne
(
boxShippingService
.
getOne
(
new
LambdaQueryWrapperX
<
BoxShippingDO
>().
eq
(
BoxShippingDO:
:
getShipmentId
,
new
LambdaQueryWrapperX
<
BoxShippingDO
>().
eq
(
BoxShippingDO:
:
getShipmentId
,
...
@@ -261,10 +285,16 @@ public class BoxLadingBillServiceImpl extends AbstractService<BoxLadingBillMappe
...
@@ -261,10 +285,16 @@ public class BoxLadingBillServiceImpl extends AbstractService<BoxLadingBillMappe
// }
// }
// }
// }
// headMap.put("description",boxLadingBillDO.getGoodsDesc()+"\r\n"+stringBuffer.toString());
// headMap.put("description",boxLadingBillDO.getGoodsDesc()+"\r\n"+stringBuffer.toString());
//lanbm 2024-06-06 添加保存数量和单位
//lanbm 2024-06-06 添加保存数量和单位
String
sDes
=
boxLadingBillDO
.
getPackageNum
()+
boxLadingBillDO
.
getPackageUnit
();
String
sPackName
=
""
;
sDes
+=
"\r\n"
+
boxLadingBillDO
.
getGoodsDesc
();
String
sUnit
=
boxLadingBillDO
.
getPackageUnit
();
headMap
.
put
(
"description"
,
sDes
);
if
(
CollectionUtil
.
isNotEmpty
(
PackMap
)
&&
sUnit
!=
null
&&
sUnit
.
length
()
>
0
)
{
sPackName
=
sPackName
=
PackMap
.
get
(
sUnit
);
}
String
sDes
=
boxLadingBillDO
.
getPackageNum
()
+
sPackName
;
sDes
+=
"\r\n"
+
boxLadingBillDO
.
getGoodsDesc
();
headMap
.
put
(
"description"
,
sDes
);
//headMap.put("description", boxLadingBillDO.getGoodsDesc());
//headMap.put("description", boxLadingBillDO.getGoodsDesc());
//end lanbm 2024-06-06 添加保存数量和单位
//end lanbm 2024-06-06 添加保存数量和单位
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxPreloadGoods/BoxPreloadGoodsServiceImpl.java
View file @
b1227055
...
@@ -1860,7 +1860,8 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
...
@@ -1860,7 +1860,8 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
@Override
@Override
public
BoxLoadDetailBackVO
boxGoodsDetail
(
Long
shipmentId
,
Long
secId
)
{
public
BoxLoadDetailBackVO
boxGoodsDetail
(
Long
shipmentId
,
Long
secId
)
{
BoxLoadDetailBackVO
detailBackVO
=
boxGoodsList
(
shipmentId
,
secId
,
null
,
0
);
BoxLoadDetailBackVO
detailBackVO
=
boxGoodsList
(
shipmentId
,
secId
,
null
,
0
);
//查询订单的报关费用
//查询订单的报关费用
List
<
BoxLoadOrderVO
>
orderVOList
=
detailBackVO
.
getSectionOrderList
();
List
<
BoxLoadOrderVO
>
orderVOList
=
detailBackVO
.
getSectionOrderList
();
...
...
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxApprovalController.java
View file @
b1227055
...
@@ -53,11 +53,15 @@ public class BoxApprovalController {
...
@@ -53,11 +53,15 @@ public class BoxApprovalController {
@Resource
@Resource
private
OrderApprovalService
orderApprovalService
;
private
OrderApprovalService
orderApprovalService
;
/*
创建出货审批流程 lanbm 2024-06-11 添加注释
*/
@PostMapping
(
"/create"
)
@PostMapping
(
"/create"
)
@ApiOperation
(
"创建出货审核, use this"
)
@ApiOperation
(
"创建出货审核, use this"
)
@Idempotent
(
timeout
=
10
)
@Idempotent
(
timeout
=
10
)
// //@PreAuthorize("@ss.hasPermission('ecw:box-approval:create')")
//@PreAuthorize("@ss.hasPermission('ecw:box-approval:create')")
public
CommonResult
<
Long
>
createBoxApproval
(
@Valid
@RequestBody
BoxApprovalCreateReqVO
createReqVO
)
{
public
CommonResult
<
Long
>
createBoxApproval
(
@Valid
@RequestBody
BoxApprovalCreateReqVO
createReqVO
)
{
return
success
(
boxApprovalService
.
createBoxApproval
(
createReqVO
));
return
success
(
boxApprovalService
.
createBoxApproval
(
createReqVO
));
}
}
...
...
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxOpLogController.java
View file @
b1227055
...
@@ -31,7 +31,6 @@ public class BoxOpLogController {
...
@@ -31,7 +31,6 @@ public class BoxOpLogController {
@Resource
@Resource
private
BoxOpLogService
boxOpLogService
;
private
BoxOpLogService
boxOpLogService
;
@GetMapping
(
"/get"
)
@GetMapping
(
"/get"
)
@ApiOperation
(
"获得出货操作日志"
)
@ApiOperation
(
"获得出货操作日志"
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"编号"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"编号"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
...
@@ -41,9 +40,12 @@ public class BoxOpLogController {
...
@@ -41,9 +40,12 @@ public class BoxOpLogController {
return
success
(
BoxOpLogConvert
.
INSTANCE
.
convert
(
boxOpLog
));
return
success
(
BoxOpLogConvert
.
INSTANCE
.
convert
(
boxOpLog
));
}
}
/*
获取订单的操作日志 lanbm 2024-06-11 添加注释
*/
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
@ApiOperation
(
"获得出货操作日志列表, use this"
)
@ApiOperation
(
"获得出货操作日志列表, use this"
)
//
@PreAuthorize("@ss.hasPermission('ecw:box-op-log:query')")
//
@PreAuthorize("@ss.hasPermission('ecw:box-op-log:query')")
public
CommonResult
<
List
<
BoxOpLogBackVO
>>
getBoxOpLogList
(
BoxOpLogQueryVO
query
)
{
public
CommonResult
<
List
<
BoxOpLogBackVO
>>
getBoxOpLogList
(
BoxOpLogQueryVO
query
)
{
List
<
BoxOpLogDO
>
list
=
boxOpLogService
.
getBoxOpLogList
(
query
);
List
<
BoxOpLogDO
>
list
=
boxOpLogService
.
getBoxOpLogList
(
query
);
List
<
BoxOpLogBackVO
>
resultList
=
BoxOpLogConvert
.
INSTANCE
.
convertList
(
list
);
List
<
BoxOpLogBackVO
>
resultList
=
BoxOpLogConvert
.
INSTANCE
.
convertList
(
list
);
...
...
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxPreloadGoodsController.java
View file @
b1227055
...
@@ -462,7 +462,8 @@ public class BoxPreloadGoodsController {
...
@@ -462,7 +462,8 @@ public class BoxPreloadGoodsController {
@ApiImplicitParam
(
name
=
"secId"
,
value
=
"部分ID"
,
required
=
false
,
example
=
"20"
,
dataTypeClass
=
Long
.
class
)
@ApiImplicitParam
(
name
=
"secId"
,
value
=
"部分ID"
,
required
=
false
,
example
=
"20"
,
dataTypeClass
=
Long
.
class
)
})
})
public
CommonResult
<
BoxLoadDetailBackVO
>
boxGoodsDetail
(
@RequestParam
(
"shipmentId"
)
Long
shipmentId
,
@RequestParam
(
"secId"
)
Long
secId
)
{
public
CommonResult
<
BoxLoadDetailBackVO
>
boxGoodsDetail
(
@RequestParam
(
"shipmentId"
)
Long
shipmentId
,
@RequestParam
(
"secId"
)
Long
secId
)
{
BoxLoadDetailBackVO
boxLoadDetailBackVO
=
boxPreloadGoodsService
.
boxGoodsDetail
(
shipmentId
,
secId
);
BoxLoadDetailBackVO
boxLoadDetailBackVO
=
boxPreloadGoodsService
.
boxGoodsDetail
(
shipmentId
,
secId
);
return
success
(
boxLoadDetailBackVO
);
return
success
(
boxLoadDetailBackVO
);
}
}
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receipt/ReceiptServiceImpl.java
View file @
b1227055
...
@@ -450,39 +450,40 @@ public class ReceiptServiceImpl extends AbstractService<ReceiptMapper, ReceiptDO
...
@@ -450,39 +450,40 @@ public class ReceiptServiceImpl extends AbstractService<ReceiptMapper, ReceiptDO
List
<
Long
>
idList
=
mpPage
.
getRecords
().
stream
()
List
<
Long
>
idList
=
mpPage
.
getRecords
().
stream
()
.
map
(
ReceiptBackVO:
:
getId
)
.
map
(
ReceiptBackVO:
:
getId
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
//根据List获取本页中所有的明细信息
//一定要判空,不然会报错
LambdaQueryWrapper
<
ReceiptItemDO
>
lambdaQueryWrapper
=
if
(
CollectionUtil
.
isNotEmpty
(
idList
))
{
new
LambdaQueryWrapper
<>();
//根据List获取本页中所有的明细信息
lambdaQueryWrapper
.
in
(
ReceiptItemDO:
:
getReceiptId
,
idList
);
LambdaQueryWrapper
<
ReceiptItemDO
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
//所有收款单的明细
lambdaQueryWrapper
.
in
(
ReceiptItemDO:
:
getReceiptId
,
idList
);
List
<
ReceiptItemDO
>
listItem
=
//所有收款单的明细
receiptItemMapper
.
selectList
(
lambdaQueryWrapper
);
List
<
ReceiptItemDO
>
listItem
=
receiptItemMapper
.
selectList
(
lambdaQueryWrapper
);
LambdaQueryWrapper
<
ReceiptAccountDO
>
lambdaQueryWrapper2
=
LambdaQueryWrapper
<
ReceiptAccountDO
>
lambdaQueryWrapper2
=
new
LambdaQueryWrapper
<>();
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper2
.
in
(
ReceiptAccountDO:
:
getReceiptId
,
idList
);
lambdaQueryWrapper2
.
in
(
ReceiptAccountDO:
:
getReceiptId
,
idList
);
List
<
ReceiptAccountDO
>
ReceiptAccountList
=
List
<
ReceiptAccountDO
>
ReceiptAccountList
=
receiptAccountMapper
.
selectList
(
lambdaQueryWrapper2
);
receiptAccountMapper
.
selectList
(
lambdaQueryWrapper2
);
Map
<
Integer
,
CurrencyRespDTO
>
currencyMap
=
currencyApi
.
getAllCurrency
();
Map
<
Integer
,
CurrencyRespDTO
>
currencyMap
=
currencyApi
.
getAllCurrency
();
for
(
ReceiptBackVO
r
:
mpPage
.
getRecords
()
for
(
ReceiptBackVO
r
:
mpPage
.
getRecords
()
)
{
)
{
String
sR
=
getReceiptMxStatus
(
listItem
,
r
.
getId
());
String
sR
=
getReceiptMxStatus
(
listItem
,
r
.
getId
());
r
.
setMxStatus
(
sR
);
r
.
setMxStatus
(
sR
);
//应收
//应收
String
s1
=
getYSShow
(
ReceiptAccountList
,
r
.
getId
(),
currencyMap
);
String
s1
=
getYSShow
(
ReceiptAccountList
,
r
.
getId
(),
currencyMap
);
r
.
setYsShow
(
s1
);
r
.
setYsShow
(
s1
);
//实收
//实收
String
s2
=
getSSShow
(
listItem
,
r
.
getId
(),
currencyMap
);
String
s2
=
getSSShow
(
listItem
,
r
.
getId
(),
currencyMap
);
r
.
setSsShow
(
s2
);
r
.
setSsShow
(
s2
);
//核销比例
//核销比例
r
.
setHxBiLi
(
getHxBili
(
ReceiptAccountList
,
r
.
setHxBiLi
(
getHxBili
(
ReceiptAccountList
,
listItem
,
r
.
getId
()));
listItem
,
r
.
getId
()));
}
}
}
return
PageResult
.
of
(
mpPage
);
return
PageResult
.
of
(
mpPage
);
}
}
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptItem/ReceiptItemBackVO.java
View file @
b1227055
...
@@ -54,11 +54,19 @@ public class ReceiptItemBackVO {
...
@@ -54,11 +54,19 @@ public class ReceiptItemBackVO {
@ApiModelProperty
(
value
=
"货币id"
)
@ApiModelProperty
(
value
=
"货币id"
)
private
Long
currencyId
;
private
Long
currencyId
;
@ExcelProperty
(
"创建时间"
)
@ExcelProperty
(
"创建时间"
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
@ApiModelProperty
(
value
=
"创建时间"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
private
Date
createTime
;
/*
创建人
*/
private
String
creator
;
@ExcelProperty
(
"收款汇率"
)
@ExcelProperty
(
"收款汇率"
)
@ApiModelProperty
(
value
=
"收款汇率"
)
@ApiModelProperty
(
value
=
"收款汇率"
)
private
String
rate
;
private
String
rate
;
...
@@ -99,4 +107,28 @@ public class ReceiptItemBackVO {
...
@@ -99,4 +107,28 @@ public class ReceiptItemBackVO {
private
String
syValue
;
private
String
syValue
;
/*
提交审批时间 lanbm 2024-06-07
*/
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
private
Date
createTimeBpm
;
/*
提交审批人
*/
private
String
createBpm
;
/*
审批通过时间 lanbm 2024-06-07
*/
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
private
Date
updateTimeBpm
;
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
private
Date
updateTime
;
private
String
updater
;
}
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptItem/ReceiptItemReq.java
View file @
b1227055
package
cn
.
iocoder
.
yudao
.
module
.
wealth
.
vo
.
receiptItem
;
package
cn
.
iocoder
.
yudao
.
module
.
wealth
.
vo
.
receiptItem
;
import
cn.iocoder.yudao.framework.common.pojo.PageParam
;
import
cn.iocoder.yudao.framework.common.pojo.PageParam
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY
;
/*
/*
lanbm 2024-05-18 add
lanbm 2024-05-18 add
*/
*/
...
@@ -59,4 +64,16 @@ public class ReceiptItemReq extends PageParam {
...
@@ -59,4 +64,16 @@ public class ReceiptItemReq extends PageParam {
*/
*/
private
String
creator
;
private
String
creator
;
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
private
Date
createTime
;
private
String
updater
;
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
private
Date
updateTime
;
/*
收款账户
*/
private
String
accountNo
;
}
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptItem/ReceiptItemResp.java
View file @
b1227055
...
@@ -129,6 +129,11 @@ public class ReceiptItemResp {
...
@@ -129,6 +129,11 @@ public class ReceiptItemResp {
@ApiModelProperty
(
value
=
"创建时间"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
private
Date
createTime
;
/*
提交审批人
*/
private
String
createBpm
;
/*
/*
提交审批时间 lanbm 2024-06-07
提交审批时间 lanbm 2024-06-07
*/
*/
...
@@ -142,5 +147,4 @@ public class ReceiptItemResp {
...
@@ -142,5 +147,4 @@ public class ReceiptItemResp {
private
Date
updateTimeBpm
;
private
Date
updateTimeBpm
;
}
}
yudao-module-wealth/yudao-module-wealth-rest/src/main/java/cn/iocoder/yudao/module/wealth/controller/admin/receiptItem/ReceiptItemController.java
View file @
b1227055
...
@@ -7,10 +7,14 @@ import cn.iocoder.yudao.framework.common.util.io.FileModel;
...
@@ -7,10 +7,14 @@ import cn.iocoder.yudao.framework.common.util.io.FileModel;
import
cn.iocoder.yudao.framework.idempotent.core.annotation.Idempotent
;
import
cn.iocoder.yudao.framework.idempotent.core.annotation.Idempotent
;
import
cn.iocoder.yudao.module.ecw.api.currency.CurrencyApi
;
import
cn.iocoder.yudao.module.ecw.api.currency.CurrencyApi
;
import
cn.iocoder.yudao.module.ecw.api.currency.dto.CurrencyRespDTO
;
import
cn.iocoder.yudao.module.ecw.api.currency.dto.CurrencyRespDTO
;
import
cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO
;
import
cn.iocoder.yudao.module.system.service.user.AdminUserService
;
import
cn.iocoder.yudao.module.wealth.convert.receiptItem.ReceiptItemConvert
;
import
cn.iocoder.yudao.module.wealth.convert.receiptItem.ReceiptItemConvert
;
import
cn.iocoder.yudao.module.wealth.dal.dataobject.receiptAccount.ReceiptAccountDO
;
import
cn.iocoder.yudao.module.wealth.dal.dataobject.receiptAccount.ReceiptAccountDO
;
import
cn.iocoder.yudao.module.wealth.dal.dataobject.receiptApproval.ReceiptApprovalDO
;
import
cn.iocoder.yudao.module.wealth.dal.dataobject.receiptItem.ReceiptItemDO
;
import
cn.iocoder.yudao.module.wealth.dal.dataobject.receiptItem.ReceiptItemDO
;
import
cn.iocoder.yudao.module.wealth.dal.mysql.receiptAccount.ReceiptAccountMapper
;
import
cn.iocoder.yudao.module.wealth.dal.mysql.receiptAccount.ReceiptAccountMapper
;
import
cn.iocoder.yudao.module.wealth.dal.mysql.receiptApproval.ReceiptApprovalMapper
;
import
cn.iocoder.yudao.module.wealth.dal.mysql.receiptItem.ReceiptItemMapper
;
import
cn.iocoder.yudao.module.wealth.dal.mysql.receiptItem.ReceiptItemMapper
;
import
cn.iocoder.yudao.module.wealth.service.receiptItem.ReceiptItemService
;
import
cn.iocoder.yudao.module.wealth.service.receiptItem.ReceiptItemService
;
import
cn.iocoder.yudao.module.wealth.vo.receipt.FinanceReceiptItemCancelVo
;
import
cn.iocoder.yudao.module.wealth.vo.receipt.FinanceReceiptItemCancelVo
;
...
@@ -22,6 +26,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -22,6 +26,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -47,17 +52,25 @@ public class ReceiptItemController {
...
@@ -47,17 +52,25 @@ public class ReceiptItemController {
@Resource
@Resource
private
ReceiptAccountMapper
receiptAccountMapper
;
private
ReceiptAccountMapper
receiptAccountMapper
;
@Resource
@Resource
private
ReceiptItemMapper
receiptItemMapper
;
private
ReceiptItemMapper
receiptItemMapper
;
/*
/*
币种 lanbm 2024-06-10 add
币种 lanbm 2024-06-10 add
*/
*/
@Resource
@Resource
CurrencyApi
currencyApi
;
CurrencyApi
currencyApi
;
/*
lanbm 2024-05-17 add
*/
@Autowired
private
AdminUserService
adminUserService
;
//审批信息
@Resource
private
ReceiptApprovalMapper
receiptApprovalMapper
;
@PostMapping
(
"/create"
)
@PostMapping
(
"/create"
)
@ApiOperation
(
"创建收款明细"
)
@ApiOperation
(
"创建收款明细"
)
//@PreAuthorize("@ss.hasPermission('ecw:receipt-item:create')")
//@PreAuthorize("@ss.hasPermission('ecw:receipt-item:create')")
...
@@ -92,9 +105,57 @@ public class ReceiptItemController {
...
@@ -92,9 +105,57 @@ public class ReceiptItemController {
//BigDecimal p = receiptItemService.getWriteOffAmountByReceiptId(id);
//BigDecimal p = receiptItemService.getWriteOffAmountByReceiptId(id);
//BigDecimal t = receiptAccountMapper.getWriteOffAmountByReceiptId(id);
//BigDecimal t = receiptAccountMapper.getWriteOffAmountByReceiptId(id);
getSY
(
v
,
v
.
getReceiptId
());
getSY
(
v
,
v
.
getReceiptId
());
SetData
(
v
);
return
success
(
v
);
return
success
(
v
);
}
}
private
void
SetData
(
ReceiptItemBackVO
v
)
{
List
<
AdminUserDO
>
ListUser
=
adminUserService
.
getUsersList
();
Map
<
Long
,
String
>
userMap
=
ListUser
.
stream
().
collect
(
Collectors
.
toMap
((
AdminUserDO:
:
getId
),
AdminUserDO:
:
getNickname
));
String
sT
=
""
;
if
(
v
.
getCreator
()
!=
null
)
{
sT
=
userMap
.
get
(
Long
.
parseLong
(
v
.
getCreator
()));
v
.
setCreator
(
sT
);
}
if
(
v
.
getUpdater
()
!=
null
&&
v
.
getUpdater
().
length
()
>
0
)
{
sT
=
userMap
.
get
(
Long
.
parseLong
(
v
.
getUpdater
()));
v
.
setUpdater
(
sT
);
}
if
(
v
.
getBmpId
()
==
null
||
v
.
getBmpId
().
length
()==
0
)
{
v
.
setCreateBpm
(
""
);
v
.
setCreateTimeBpm
(
null
);
v
.
setUpdateTimeBpm
(
null
);
return
;
}
LambdaQueryWrapper
<
ReceiptApprovalDO
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper
.
eq
(
ReceiptApprovalDO:
:
getBmpId
,
v
.
getBmpId
());
List
<
ReceiptApprovalDO
>
list
=
receiptApprovalMapper
.
selectList
(
lambdaQueryWrapper
);
if
(
list
==
null
||
list
.
size
()
==
0
)
return
;
//审批创建人
if
(
list
.
get
(
0
).
getCreator
()
!=
null
&&
list
.
get
(
0
).
getCreator
().
length
()
>
0
)
{
sT
=
userMap
.
get
(
Long
.
parseLong
(
list
.
get
(
0
).
getCreator
()));
v
.
setCreateBpm
(
sT
);
//审批创建日期
if
(
list
.
get
(
0
).
getCreateTime
()
!=
null
)
v
.
setCreateTimeBpm
(
list
.
get
(
0
).
getCreateTime
());
//审批通过日期
if
(
list
.
get
(
0
).
getUpdateTime
()
!=
null
)
v
.
setUpdateTimeBpm
(
list
.
get
(
0
).
getUpdateTime
());
}
}
/*
/*
获取剩余金额 lanbm 2024-06-10 add
获取剩余金额 lanbm 2024-06-10 add
*/
*/
...
@@ -138,7 +199,7 @@ public class ReceiptItemController {
...
@@ -138,7 +199,7 @@ public class ReceiptItemController {
bResult
=
t
.
subtract
(
p
);
bResult
=
t
.
subtract
(
p
);
String
bzName
=
""
;
String
bzName
=
""
;
if
(
currencyId
!=
null
)
{
if
(
currencyId
!=
null
)
{
int
iId
=
Integer
.
parseInt
(
currencyId
.
toString
());
int
iId
=
Integer
.
parseInt
(
currencyId
.
toString
());
bzName
=
currencyMap
.
get
(
iId
).
getTitleZh
();
bzName
=
currencyMap
.
get
(
iId
).
getTitleZh
();
}
}
v
.
setSyValue
(
bResult
.
toString
()
+
bzName
);
v
.
setSyValue
(
bResult
.
toString
()
+
bzName
);
...
@@ -192,7 +253,8 @@ public class ReceiptItemController {
...
@@ -192,7 +253,8 @@ public class ReceiptItemController {
@PostMapping
(
"/cancelFinanceReceiptItemWriteOff"
)
@PostMapping
(
"/cancelFinanceReceiptItemWriteOff"
)
@ApiOperation
(
"取消收款明细核销"
)
@ApiOperation
(
"取消收款明细核销"
)
@Idempotent
(
timeout
=
5
)
@Idempotent
(
timeout
=
5
)
public
CommonResult
<
Boolean
>
cancelFinanceReceiptItemWriteOff
(
@RequestBody
FinanceReceiptItemCancelVo
financeReceiptVo
)
{
public
CommonResult
<
Boolean
>
cancelFinanceReceiptItemWriteOff
(
@RequestBody
FinanceReceiptItemCancelVo
financeReceiptVo
)
{
receiptItemService
.
cancelFinanceReceiptItemWriteOff
(
financeReceiptVo
);
receiptItemService
.
cancelFinanceReceiptItemWriteOff
(
financeReceiptVo
);
return
success
(
true
);
return
success
(
true
);
}
}
...
@@ -213,7 +275,8 @@ public class ReceiptItemController {
...
@@ -213,7 +275,8 @@ public class ReceiptItemController {
@PostMapping
(
"/cancelFinanceReceiptItemWriteOffNo"
)
@PostMapping
(
"/cancelFinanceReceiptItemWriteOffNo"
)
@ApiOperation
(
"取消收款明细反核销"
)
@ApiOperation
(
"取消收款明细反核销"
)
@Idempotent
(
timeout
=
5
)
@Idempotent
(
timeout
=
5
)
public
CommonResult
<
Boolean
>
cancelFinanceReceiptItemWriteOffNo
(
@RequestBody
FinanceReceiptItemCancelVo
financeReceiptVo
)
{
public
CommonResult
<
Boolean
>
cancelFinanceReceiptItemWriteOffNo
(
@RequestBody
FinanceReceiptItemCancelVo
financeReceiptVo
)
{
receiptItemService
.
cancelFinanceReceiptItemWriteOffNo
(
financeReceiptVo
);
receiptItemService
.
cancelFinanceReceiptItemWriteOffNo
(
financeReceiptVo
);
return
success
(
true
);
return
success
(
true
);
}
}
...
...
yudao-module-wealth/yudao-module-wealth-rest/src/main/resources/mapper/ReceiptItem/BankReceiptDetailsMapper.xml
View file @
b1227055
...
@@ -6,17 +6,20 @@
...
@@ -6,17 +6,20 @@
resultType=
"cn.iocoder.yudao.module.wealth.vo.receiptItem.ReceiptItemResp"
>
resultType=
"cn.iocoder.yudao.module.wealth.vo.receiptItem.ReceiptItemResp"
>
SELECT p.*,m.receipt_no,m.order_id,
SELECT p.*,m.receipt_no,m.order_id,
r.order_no,r.tidan_no,a.create_time as create_time_bpm,
r.order_no,r.tidan_no,a.create_time as create_time_bpm,
a.update_time as update_time_bpm
a.update_time as update_time_bpm
,a.creator as createBpm
from ecw_receipt_item p
from ecw_receipt_item p
left join ecw_receipt m on p.receipt_id=m.id and m.deleted=0
left join ecw_receipt m on p.receipt_id=m.id and m.deleted=0
left join ecw_order r on r.order_id=m.order_id and r.deleted=0
left join ecw_order r on r.order_id=m.order_id and r.deleted=0
left join ecw_receipt_approval a on a.bmp_id=
m
.bmp_id and a.deleted=0
left join ecw_receipt_approval a on a.bmp_id=
p
.bmp_id and a.deleted=0
<include
refid=
"WherePage"
/>
<include
refid=
"WherePage"
/>
ORDER BY m.receipt_no desc,p.create_time asc limit #{start}, #{pageSize}
ORDER BY m.receipt_no desc,p.create_time asc limit #{start}, #{pageSize}
</select>
</select>
<sql
id=
"WherePage"
>
<sql
id=
"WherePage"
>
<where>
<where>
p.deleted=0
p.deleted=0
<if
test=
"accountNo != null and accountNo != ''"
>
AND p.account_no=#{accountNo}
</if>
<if
test=
"receiptNo != null and receiptNo != ''"
>
<if
test=
"receiptNo != null and receiptNo != ''"
>
AND m.receipt_no like concat('%',#{receiptNo},'%')
AND m.receipt_no like concat('%',#{receiptNo},'%')
</if>
</if>
...
...
yudao-server/src/main/resources/templates/airBillTemplate.xlsx
View file @
b1227055
No preview for this file type
yudao-server/src/main/resources/templates/nrlyReceivable2.xlsx
View file @
b1227055
No preview for this file type
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