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
f665135f
提交
f665135f
authored
1 年前
作者:
李超杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解决墙盒申请导入
父级
4b3a7435
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
5 行删除
+7
-5
src/main/java/com/boco/nbd/wios/flow/imports/impl/WallboxApplyImport.java
+7
-4
src/main/java/com/boco/nbd/wios/manage/service/impl/WarehouseService.java
+0
-1
src/main/resources/static/templates/墙盒申请导入模板.xls
+0
-0
没有找到文件。
src/main/java/com/boco/nbd/wios/flow/imports/impl/WallboxApplyImport.java
查看文件 @
f665135f
...
...
@@ -5,11 +5,13 @@ import com.boco.nbd.cams.core.constant.MessageConstant;
import
com.boco.nbd.wios.flow.imports.Import
;
import
com.boco.nbd.wios.manage.entity.bo.Order
;
import
com.boco.nbd.wios.manage.entity.cams.enums.OrderStatus
;
import
com.boco.nbd.wios.manage.service.impl.*
;
import
com.boco.nbd.wios.manage.service.impl.OrderService
;
import
com.boco.nbd.wios.manage.service.impl.WallboxApplyService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
...
...
@@ -35,12 +37,12 @@ public class WallboxApplyImport implements Import {
// 是否紧急
String
ifEmergency
=
childList
.
get
(
1
);
if
(
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
orderId
)
||
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
ifEmergency
))
{
childList
.
add
(
"error:"
+
MessageConstant
.
MISSING_PARAM
);
if
(
StringUtils
.
isEmpty
(
orderId
)
||
StringUtils
.
isEmpty
(
ifEmergency
))
{
childList
.
add
(
"error:"
+
MessageConstant
.
MISSING_PARAM
);
continue
;
}
if
(
StringUtils
.
isNotBlank
(
orderId
)){
if
(
StringUtils
.
isNotBlank
(
orderId
))
{
Order
order
=
orderService
.
get
(
orderId
);
if
(
ObjectUtil
.
isNull
(
order
))
{
childList
.
add
(
"error:不存在安装订单号"
);
...
...
@@ -51,6 +53,7 @@ public class WallboxApplyImport implements Import {
boolean
allowed
=
status
>=
OrderStatus
.
DISPATCHING
.
getType
()
&&
status
<=
OrderStatus
.
INSTALLING
.
getType
();
if
(!
allowed
)
{
childList
.
add
(
"error:订单派单之后才能进行墙盒申请"
);
continue
;
}
if
(
ObjectUtil
.
isNotNull
(
wallboxApplyService
.
selectWallboxDetail
(
orderId
)))
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/boco/nbd/wios/manage/service/impl/WarehouseService.java
查看文件 @
f665135f
...
...
@@ -31,7 +31,6 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/static/templates/墙盒申请导入模板.xls
0 → 100644
查看文件 @
f665135f
File added
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论