Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
warehouse
概览
Overview
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
苗卫卫
warehouse
Commits
580c63f5
提交
580c63f5
authored
11月 30, 2023
作者:
zhangqiliang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
墙盒申请的时候添加收货信息
父级
a45dc10b
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
4 行删除
+20
-4
src/main/java/com/boco/nbd/wios/manage/controller/WallboxApplyController.java
+1
-0
src/main/java/com/boco/nbd/wios/manage/service/impl/WallboxApplyService.java
+11
-4
src/main/resources/mybatis/mapper/def/common/WallboxApplyMapper.xml
+8
-0
没有找到文件。
src/main/java/com/boco/nbd/wios/manage/controller/WallboxApplyController.java
查看文件 @
580c63f5
...
...
@@ -91,6 +91,7 @@ public class WallboxApplyController {
wa
.
setOrderId
(
orderId
);
wa
.
setIfEmergency
(
ifEmergency
);
wa
.
setCreateAccount
(
tokenService
.
getUser
().
getUserId
());
wa
.
setReceiverWarehouseId
(
receiverWarehouseId
);
wallboxApplyService
.
insertWallboxApply
(
wa
);
return
new
BaseResponse
<>(
true
);
...
...
src/main/java/com/boco/nbd/wios/manage/service/impl/WallboxApplyService.java
查看文件 @
580c63f5
...
...
@@ -2,10 +2,7 @@ package com.boco.nbd.wios.manage.service.impl;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.boco.nbd.wios.manage.entity.bo.Order
;
import
com.boco.nbd.wios.manage.entity.bo.OrderInstall
;
import
com.boco.nbd.wios.manage.entity.bo.SupplierStaff
;
import
com.boco.nbd.wios.manage.entity.bo.WallboxApply
;
import
com.boco.nbd.wios.manage.entity.bo.*
;
import
com.boco.nbd.wios.manage.entity.dto.WallboxApplyBatchCheckDTO
;
import
com.boco.nbd.wios.manage.entity.dto.WallboxApplyCheckDTO
;
import
com.boco.nbd.wios.manage.entity.dto.WallboxApplyDetailQueryDTO
;
...
...
@@ -14,6 +11,7 @@ import com.boco.nbd.wios.manage.entity.vo.WallboxApplyDetailVO;
import
com.boco.nbd.wios.manage.entity.vo.WallboxApplyInstallInfoVO
;
import
com.boco.nbd.wios.manage.entity.vo.WallboxApplyInstallListVO
;
import
com.boco.nbd.wios.manage.mapper.def.*
;
import
com.boco.nbd.wios.manage.mapper.extdb.WarehouseMapperEx
;
import
com.ihidea.core.support.exception.ServiceException
;
import
com.ihidea.core.support.session.SessionInfo
;
import
org.apache.commons.collections.CollectionUtils
;
...
...
@@ -21,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StringUtils
;
import
java.util.ArrayList
;
import
java.util.Date
;
...
...
@@ -49,6 +48,8 @@ public class WallboxApplyService {
private
SupplierDao
supplierDao
;
@Autowired
private
SupplierStaffDao
supplierStaffDao
;
@Autowired
private
WarehouseMapperEx
warehouseMapperEx
;
private
final
Long
CHECK_STATUS_REJECT
=
3L
;
...
...
@@ -132,6 +133,12 @@ public class WallboxApplyService {
throw
new
ServiceException
(
"订单数据异常,缺失墙盒信息,请联系系统管理员"
);
}
//获取收货仓库信息
WarehouseDetail
warehouseDetail
=
warehouseMapperEx
.
warehouseDetailById
(
req
.
getReceiverWarehouseId
());
if
(!
StringUtils
.
isEmpty
(
warehouseDetail
)){
req
.
setReceiver
(
warehouseDetail
.
getReceivePeople
());
req
.
setReceiverPhone
(
warehouseDetail
.
getReceivePhone
());
req
.
setReceiverWarehouseName
(
warehouseDetail
.
getName
());
}
req
.
setWallboxItemId
(
order
.
getWallboxModel
());
req
.
setWallboxModel
(
order
.
getWallboxModel
()
==
null
?
""
:
order
.
getWallboxModel
());
req
.
setOutOrderId
(
order
.
getOutOrderId
());
...
...
src/main/resources/mybatis/mapper/def/common/WallboxApplyMapper.xml
查看文件 @
580c63f5
...
...
@@ -273,6 +273,10 @@
<if
test=
"createdTime != null"
>
created_time,
</if>
<if
test=
"modifyAccount != null"
>
modify_account,
</if>
<if
test=
"modifyTime != null"
>
modify_time,
</if>
<if
test=
"receiver != null"
>
receiver,
</if>
<if
test=
"receiverPhone != null"
>
receiver_phone,
</if>
<if
test=
"receiverWarehouseId != null"
>
receiver_warehouse_id,
</if>
<if
test=
"receiverWarehouseName != null"
>
receiver_warehouse_name,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"orderId != null and orderId != ''"
>
#{orderId},
</if>
...
...
@@ -299,6 +303,10 @@
<if
test=
"createdTime != null"
>
#{createdTime},
</if>
<if
test=
"modifyAccount != null"
>
#{modifyAccount},
</if>
<if
test=
"modifyTime != null"
>
#{modifyTime},
</if>
<if
test=
"receiver != null"
>
#{receiver},
</if>
<if
test=
"receiverPhone != null"
>
#{receiverPhone},
</if>
<if
test=
"receiverWarehouseId != null"
>
#{receiverWarehouseId},
</if>
<if
test=
"receiverWarehouseName != null"
>
#{receiverWarehouseName},
</if>
</trim>
</insert>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论