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
29c93304
Commit
29c93304
authored
Apr 20, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pda手机扫描装箱
parent
a5c5cfda
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
74 additions
and
2 deletions
+74
-2
OrderMapper.java
...coder/yudao/module/order/dal/mysql/order/OrderMapper.java
+3
-1
OrderService.java
...ocoder/yudao/module/order/service/order/OrderService.java
+3
-0
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+5
-0
BoxOrderCheckInfoServiceImpl.java
...rvice/boxOrderCheckInfo/BoxOrderCheckInfoServiceImpl.java
+2
-0
BoxPkgOrderService.java
...dule/shipment/service/boxPkgOrder/BoxPkgOrderService.java
+2
-0
BoxPkgOrderServiceImpl.java
.../shipment/service/boxPkgOrder/BoxPkgOrderServiceImpl.java
+26
-1
BoxPkgOrderScanCodeVO.java
...module/shipment/vo/boxPkgOrder/BoxPkgOrderScanCodeVO.java
+22
-0
BoxPkgOrderController.java
...dule/shipment/controller/admin/BoxPkgOrderController.java
+11
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/mysql/order/OrderMapper.java
View file @
29c93304
...
@@ -4384,7 +4384,9 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -4384,7 +4384,9 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
List
<
OrderDO
>
getAirRefreshOrderPrice
(
@Param
(
"transportIdList"
)
List
<
Integer
>
transportIdList
);
List
<
OrderDO
>
getAirRefreshOrderPrice
(
@Param
(
"transportIdList"
)
List
<
Integer
>
transportIdList
);
@ResultType
(
String
.
class
)
@Select
({
"SELECT order_id FROM ecw_order WHERE deleted = 0 AND order_no = #{orderNo} "
})
Long
getOrderIdByOrderNo
(
@Param
(
"orderNo"
)
String
orderNo
);
@Update
(
"update ecw_order set sum_cartons_num_prev_packed = sum_num, sum_quantity_all_prev_packed = sum_quantity, sum_weight_prev_packed = sum_weight, sum_volume_prev_packed = sum_volume where order_id = #{orderId}"
)
@Update
(
"update ecw_order set sum_cartons_num_prev_packed = sum_num, sum_quantity_all_prev_packed = sum_quantity, sum_weight_prev_packed = sum_weight, sum_volume_prev_packed = sum_volume where order_id = #{orderId}"
)
void
updateSumDataPrevPacked
(
@Param
(
"orderId"
)
Long
orderId
);
void
updateSumDataPrevPacked
(
@Param
(
"orderId"
)
Long
orderId
);
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/OrderService.java
View file @
29c93304
...
@@ -10,6 +10,7 @@ import cn.iocoder.yudao.module.order.vo.order.OrderCreateReqVO;
...
@@ -10,6 +10,7 @@ import cn.iocoder.yudao.module.order.vo.order.OrderCreateReqVO;
import
cn.iocoder.yudao.module.order.vo.order.OrderUpdateReqVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderUpdateReqVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderWarehouseInVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderWarehouseInVO
;
import
cn.iocoder.yudao.module.product.dto.FeeDto
;
import
cn.iocoder.yudao.module.product.dto.FeeDto
;
import
org.apache.ibatis.annotations.Param
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
java.util.Collection
;
import
java.util.Collection
;
...
@@ -348,4 +349,6 @@ public interface OrderService extends IService<OrderDO> {
...
@@ -348,4 +349,6 @@ public interface OrderService extends IService<OrderDO> {
* @param orderId
* @param orderId
*/
*/
void
updateSumDataPrevPacked
(
Long
orderId
);
void
updateSumDataPrevPacked
(
Long
orderId
);
Long
getOrderIdByOrderNo
(
String
orderNo
);
}
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderServiceImpl.java
View file @
29c93304
...
@@ -5694,4 +5694,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -5694,4 +5694,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
public
void
updateSumDataPrevPacked
(
Long
orderId
)
{
public
void
updateSumDataPrevPacked
(
Long
orderId
)
{
orderMapper
.
updateSumDataPrevPacked
(
orderId
);
orderMapper
.
updateSumDataPrevPacked
(
orderId
);
}
}
@Override
public
Long
getOrderIdByOrderNo
(
String
orderNo
){
return
orderMapper
.
getOrderIdByOrderNo
(
orderNo
);
}
}
}
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxOrderCheckInfo/BoxOrderCheckInfoServiceImpl.java
View file @
29c93304
...
@@ -230,6 +230,8 @@ public class BoxOrderCheckInfoServiceImpl extends AbstractService<BoxOrderCheckI
...
@@ -230,6 +230,8 @@ public class BoxOrderCheckInfoServiceImpl extends AbstractService<BoxOrderCheckI
orderCreateReqVO
.
setOrderId
(
createReqVO
.
getOrderId
());
orderCreateReqVO
.
setOrderId
(
createReqVO
.
getOrderId
());
boxPkgOrderService
.
createBoxPkgOrder
(
orderCreateReqVO
);
boxPkgOrderService
.
createBoxPkgOrder
(
orderCreateReqVO
);
}
}
}
else
if
(
createReqVO
.
getType
()==
2
){
//装箱
System
.
out
.
print
(
""
);
}
}
//查找这个是否已经装了
//查找这个是否已经装了
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxPkgOrder/BoxPkgOrderService.java
View file @
29c93304
...
@@ -72,4 +72,6 @@ public interface BoxPkgOrderService extends IService<BoxPkgOrderDO> {
...
@@ -72,4 +72,6 @@ public interface BoxPkgOrderService extends IService<BoxPkgOrderDO> {
void
deleteRelateByOrderIds
(
Long
shipmentId
,
List
<
Long
>
orderIds
);
void
deleteRelateByOrderIds
(
Long
shipmentId
,
List
<
Long
>
orderIds
);
Map
<
String
,
Integer
>
getMergeOrderQualityByPkgIds
(
List
<
Long
>
pkgIds
);
Map
<
String
,
Integer
>
getMergeOrderQualityByPkgIds
(
List
<
Long
>
pkgIds
);
String
scanOrderNoCreate
(
BoxPkgOrderScanCodeVO
createReqVO
);
}
}
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxPkgOrder/BoxPkgOrderServiceImpl.java
View file @
29c93304
package
cn
.
iocoder
.
yudao
.
module
.
shipment
.
service
.
boxPkgOrder
;
package
cn
.
iocoder
.
yudao
.
module
.
shipment
.
service
.
boxPkgOrder
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.log.Log
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX
;
import
cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX
;
import
cn.iocoder.yudao.framework.mybatis.core.service.AbstractService
;
import
cn.iocoder.yudao.framework.mybatis.core.service.AbstractService
;
import
cn.iocoder.yudao.framework.mybatis.core.vo.PageVO
;
import
cn.iocoder.yudao.framework.mybatis.core.vo.PageVO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.order.OrderDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderItem.OrderItemDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderItem.OrderItemDO
;
import
cn.iocoder.yudao.module.order.service.order.OrderItemService
;
import
cn.iocoder.yudao.module.order.service.order.OrderItemService
;
import
cn.iocoder.yudao.module.order.service.order.OrderService
;
import
cn.iocoder.yudao.module.shipment.convert.BoxPkgOrderConvert
;
import
cn.iocoder.yudao.module.shipment.convert.BoxPkgOrderConvert
;
import
cn.iocoder.yudao.module.shipment.dal.dataobject.BoxDO
;
import
cn.iocoder.yudao.module.shipment.dal.dataobject.BoxDO
;
import
cn.iocoder.yudao.module.shipment.dal.dataobject.BoxMergePkgDO
;
import
cn.iocoder.yudao.module.shipment.dal.dataobject.BoxMergePkgDO
;
...
@@ -21,7 +24,9 @@ import cn.iocoder.yudao.module.shipment.service.boxMergePkg.BoxMergePkgService;
...
@@ -21,7 +24,9 @@ import cn.iocoder.yudao.module.shipment.service.boxMergePkg.BoxMergePkgService;
import
cn.iocoder.yudao.module.shipment.service.boxOrderCheckInfo.BoxOrderCheckInfoService
;
import
cn.iocoder.yudao.module.shipment.service.boxOrderCheckInfo.BoxOrderCheckInfoService
;
import
cn.iocoder.yudao.module.shipment.vo.boxPkgOrder.BoxPkgOrderCreateReqVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxPkgOrder.BoxPkgOrderCreateReqVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxPkgOrder.BoxPkgOrderQueryVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxPkgOrder.BoxPkgOrderQueryVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxPkgOrder.BoxPkgOrderScanCodeVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxPkgOrder.BoxPkgOrderUpdateReqVO
;
import
cn.iocoder.yudao.module.shipment.vo.boxPkgOrder.BoxPkgOrderUpdateReqVO
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -62,6 +67,10 @@ public class BoxPkgOrderServiceImpl extends AbstractService<BoxPkgOrderMapper, B
...
@@ -62,6 +67,10 @@ public class BoxPkgOrderServiceImpl extends AbstractService<BoxPkgOrderMapper, B
@Lazy
@Lazy
private
BoxOrderCheckInfoService
boxOrderCheckInfoService
;
private
BoxOrderCheckInfoService
boxOrderCheckInfoService
;
@Resource
private
OrderService
orderService
;
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
createBoxPkgOrder
(
BoxPkgOrderCreateReqVO
createReqVO
)
{
public
String
createBoxPkgOrder
(
BoxPkgOrderCreateReqVO
createReqVO
)
{
...
@@ -70,6 +79,22 @@ public class BoxPkgOrderServiceImpl extends AbstractService<BoxPkgOrderMapper, B
...
@@ -70,6 +79,22 @@ public class BoxPkgOrderServiceImpl extends AbstractService<BoxPkgOrderMapper, B
return
"success"
;
return
"success"
;
}
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
scanOrderNoCreate
(
BoxPkgOrderScanCodeVO
createReqVO
){
BoxPkgOrderCreateReqVO
vo
=
new
BoxPkgOrderCreateReqVO
();
Long
orderId
=
orderService
.
getOrderIdByOrderNo
(
createReqVO
.
getOrderNo
());
vo
.
setOrderId
(
orderId
);
BoxMergePkgDO
boxMergePkgDO
=
boxMergePkgService
.
selectOne
(
new
LambdaQueryWrapperX
<
BoxMergePkgDO
>().
eq
(
BoxMergePkgDO:
:
getPkgNum
,
createReqVO
.
getPkgNum
()));
vo
.
setPkgId
(
boxMergePkgDO
.
getId
())
;
if
(
vo
.
getOrderId
()!=
null
&&
vo
.
getPkgId
()!=
null
){
//订单和包裹id 不为空,调用装箱方法
this
.
create
(
vo
);
}
// 返回
return
"success"
;
}
private
void
create
(
BoxPkgOrderCreateReqVO
createReqVO
)
{
private
void
create
(
BoxPkgOrderCreateReqVO
createReqVO
)
{
checkMergePkgStatus
(
createReqVO
.
getPkgId
());
checkMergePkgStatus
(
createReqVO
.
getPkgId
());
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/vo/boxPkgOrder/BoxPkgOrderScanCodeVO.java
0 → 100644
View file @
29c93304
package
cn
.
iocoder
.
yudao
.
module
.
shipment
.
vo
.
boxPkgOrder
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
/**
*
*/
@ApiModel
(
"扫码对未装箱数据进行装箱 Request VO"
)
@Data
@ToString
(
callSuper
=
true
)
public
class
BoxPkgOrderScanCodeVO
{
@ApiModelProperty
(
"订单编号"
)
private
String
orderNo
;
@ApiModelProperty
(
"合宝箱编号"
)
private
String
pkgNum
;
}
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxPkgOrderController.java
View file @
29c93304
...
@@ -38,6 +38,17 @@ public class BoxPkgOrderController {
...
@@ -38,6 +38,17 @@ public class BoxPkgOrderController {
return
success
(
boxPkgOrderService
.
createBoxPkgOrder
(
createReqVO
));
return
success
(
boxPkgOrderService
.
createBoxPkgOrder
(
createReqVO
));
}
}
/**
* pda手机扫描装箱
* @param createReqVO
* @return
*/
@PostMapping
(
"/scanOrderNoCreate"
)
@ApiOperation
(
"扫码对未装箱数据进行装箱"
)
public
CommonResult
<
String
>
scanOrderNoCreate
(
@RequestBody
BoxPkgOrderScanCodeVO
createReqVO
){
return
success
(
boxPkgOrderService
.
scanOrderNoCreate
(
createReqVO
));
}
@PostMapping
(
"/createBatch"
)
@PostMapping
(
"/createBatch"
)
@ApiOperation
(
"批量创建合包订单"
)
@ApiOperation
(
"批量创建合包订单"
)
//@PreAuthorize("@ss.hasPermission('ecw:box-pkg-order:create')")
//@PreAuthorize("@ss.hasPermission('ecw:box-pkg-order:create')")
...
...
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