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
83f8e98d
Commit
83f8e98d
authored
Apr 27, 2019
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大后台更新3
parent
2871f2df
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
workspace.xml
.idea/workspace.xml
+0
-0
ContractController.java
src/main/java/common/controller/ContractController.java
+4
-4
Contract.java
src/main/java/common/model/Contract.java
+2
-2
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+4
-4
No files found.
.idea/workspace.xml
View file @
83f8e98d
This diff is collapsed.
Click to expand it.
src/main/java/common/controller/ContractController.java
View file @
83f8e98d
...
...
@@ -269,17 +269,17 @@ public class ContractController {
return
ResultModel
.
OK
(
service
.
build
(
contract
));
}
@RequestMapping
(
value
=
"trade"
,
method
=
RequestMethod
.
POS
T
)
@RequestMapping
(
value
=
"trade"
,
method
=
RequestMethod
.
GE
T
)
@ResponseBody
public
ResultModel
baseCreate
(
@RequestBody
Contract
contract
,
@PathVariable
String
platform
)
{
public
ResultModel
baseCreate
(
@PathVariable
String
platform
)
{
return
ResultModel
.
OK
(
service
.
getTradeData
(
platform
));
}
@RequestMapping
(
value
=
"code/all"
,
method
=
RequestMethod
.
POS
T
)
@RequestMapping
(
value
=
"code/all"
,
method
=
RequestMethod
.
GE
T
)
@ResponseBody
public
ResultModel
contractCodeAll
(
@RequestBody
Contract
contract
,
@PathVariable
String
platform
)
{
public
ResultModel
contractCodeAll
(
@PathVariable
String
platform
)
{
return
ResultModel
.
OK
(
service
.
contractCodeAll
(
platform
));
}
...
...
src/main/java/common/model/Contract.java
View file @
83f8e98d
...
...
@@ -20,7 +20,7 @@ public class Contract {
private
String
email
;
//客户主账号
private
String
contractCode
;
//是否首次签约
private
String
contractType
;
private
String
contractType
;
// 0 首次签约 1 续签 2 合同变更
private
String
startDate
;
private
String
endDate
;
//套餐
...
...
@@ -53,7 +53,7 @@ public class Contract {
private
Boolean
virtual
;
/**
* 新增字段
* 新增字段
20190427
*/
private
Long
discountFlow
;
// 优惠流量
private
Long
discountTimeLong
;
// 优惠时长
...
...
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
83f8e98d
...
...
@@ -180,10 +180,10 @@ public class ContractServiceImpl implements ContractService{
int
codeInt
=
countContract
.
intValue
();
if
(
codeInt
<
9
)
{
lastCode
=
"0"
+(
codeInt
+
1
);
}
else
{
lastCode
=
""
+(
codeInt
+
1
);
if
(
codeInt
<
9
)
{
lastCode
=
"0"
+
(
codeInt
+
1
);
}
else
{
lastCode
=
""
+
(
codeInt
+
1
);
}
return
(
company
+
"-"
+
platform
+
"-"
+
DateUtil
.
getDays2
(
0
)
+
"-"
+
lastCode
).
toUpperCase
();
}
...
...
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