Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
reyun
manager
Commits
6ea18db0
Commit
6ea18db0
authored
Jul 18, 2020
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改中文大括号
parent
8ce81009
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+10
-10
No files found.
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
6ea18db0
...
...
@@ -2268,8 +2268,8 @@ public class ContractServiceImpl implements ContractService {
Cell
cell
=
row_data
.
getCell
(
w
);
int
line_num
=
j
+
1
;
if
(
null
==
cell
||
cell
.
getCellTypeEnum
().
equals
(
CellType
.
BLANK
))
{
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
[
"
+
SHEET_TITLE_RESERVE
.
get
(
sheetTitle
)
+
"
]
不能为空,请重新上传"
);
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
【
"
+
SHEET_TITLE_RESERVE
.
get
(
sheetTitle
)
+
"
】
不能为空,请重新上传"
);
}
else
{
String
dataSTR
=
formatter
.
formatCellValue
(
cell
).
trim
();
//校验合同编号
...
...
@@ -2278,19 +2278,19 @@ public class ContractServiceImpl implements ContractService {
codeUniqueDic
.
put
(
dataSTR
,
"1"
);
}
else
{
return
ResultModel
.
ERROR
(
ResultStatus
.
CCODE_EXITS
.
getCode
(),
"合同编号
["
+
dataSTR
+
"]
已存在,请重新上传"
);
"合同编号
【"
+
dataSTR
+
"】
已存在,请重新上传"
);
}
Contract
contractExist
=
contractRepository
.
checkByCode
(
dataSTR
);
if
(
contractExist
!=
null
)
{
return
ResultModel
.
ERROR
(
ResultStatus
.
CCODE_EXITS
.
getCode
(),
"合同编号
["
+
dataSTR
+
"]
已存在,请重新上传"
);
"合同编号
【"
+
dataSTR
+
"】
已存在,请重新上传"
);
}
}
if
(
"my_body_name"
.
equals
(
sheetTitle
))
{
if
(!
cBodyMap
.
containsKey
(
dataSTR
))
{
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
[我方签约主体]
错误"
);
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
【我方签约主体】
错误"
);
}
else
{
s_data
[
w
]
=
dataSTR
;
bodyCode
=
cBodyMap
.
get
(
dataSTR
);
...
...
@@ -2298,25 +2298,25 @@ public class ContractServiceImpl implements ContractService {
}
else
if
(
"trade_type"
.
equals
(
sheetTitle
))
{
if
(!
tradTypeMap
.
containsKey
(
dataSTR
))
{
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
[行业分类]
错误"
);
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
【行业分类】
错误"
);
}
else
{
s_data
[
w
]
=
tradTypeMap
.
get
(
dataSTR
);
}
}
else
if
(
"sale"
.
equals
(
sheetTitle
))
{
if
(!
salseMap
.
containsKey
(
dataSTR
))
{
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
[签约销售]
错误"
);
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
【签约销售】
错误"
);
}
else
{
s_data
[
w
]
=
salseMap
.
get
(
dataSTR
);
}
}
else
if
(
"contract_type"
.
equals
(
sheetTitle
))
{
if
(!
CONTRACT_TYPE_NAME
.
containsKey
(
dataSTR
))
{
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
[签约类型]
错误"
);
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
【签约类型】
错误"
);
}
else
{
s_data
[
w
]
=
CONTRACT_TYPE_NAME
.
get
(
dataSTR
);
}
}
else
if
(
"price_level"
.
equals
(
sheetTitle
))
{
if
(
packageMap
!=
null
&&
!
packageMap
.
containsKey
(
dataSTR
))
{
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
[套餐]
错误"
);
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
【套餐】
错误"
);
}
else
{
s_data
[
w
]
=
packageMap
.
get
(
dataSTR
);
}
...
...
@@ -2330,7 +2330,7 @@ public class ContractServiceImpl implements ContractService {
&&
!
"dd-mmm-yy"
.
equals
(
dfmate
)
&&
!
"yyyy/m/d"
.
equals
(
dfmate
)
)
{
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
[日期单元格]
错误"
);
return
ResultModel
.
ERROR
(
"第"
+
line_num
+
"行
【日期单元格】
错误"
);
}
if
(
org
.
apache
.
poi
.
ss
.
usermodel
.
DateUtil
.
isCellDateFormatted
(
cell
))
{
...
...
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