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
0b772f9a
Commit
0b772f9a
authored
Mar 22, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户表-1
parent
914b8387
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
workspace.xml
.idea/workspace.xml
+0
-0
ContractSendEmailThread.java
src/main/java/common/task/ContractSendEmailThread.java
+5
-1
AccountTask.java
src/main/java/tkio/task/AccountTask.java
+9
-5
No files found.
.idea/workspace.xml
View file @
0b772f9a
This diff is collapsed.
Click to expand it.
src/main/java/common/task/ContractSendEmailThread.java
View file @
0b772f9a
package
common
.
task
;
import
common.context.AppUtils
;
import
common.model.Account4Web
;
import
common.model.Contract
;
import
common.model.User
;
import
common.model.UserLog
;
...
...
@@ -12,6 +13,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
tkio.model.PackageType
;
import
tkio.repository.PackageTypeRepository
;
import
tkio.service.TkioAccountService
;
import
util.DateUtil
;
import
util.IPAddrUtil
;
import
util.MailUtils
;
...
...
@@ -30,6 +32,7 @@ public class ContractSendEmailThread
private
PackageTypeRepository
packageTypeRepository
=
AppUtils
.
getApplicationContext
().
getBean
(
PackageTypeRepository
.
class
);
private
UserRepository
userRepository
=
AppUtils
.
getApplicationContext
().
getBean
(
UserRepository
.
class
);
private
TkioAccountService
tkioAccountService
=
AppUtils
.
getApplicationContext
().
getBean
(
TkioAccountService
.
class
);
private
Contract
contract
;
...
...
@@ -42,7 +45,8 @@ public class ContractSendEmailThread
{
Map
<
Long
,
String
>
packageMap
=
getPackageMap
();
StringBuffer
sb
=
new
StringBuffer
();
sb
.
append
(
"账号 :"
+
this
.
contract
.
getEmail
()
+
" 签约了,"
+
" 套餐 :"
+
Account4Web
one
=
tkioAccountService
.
findOne
(
this
.
contract
.
getEmail
());
sb
.
append
(
"公司 : "
+
one
.
getCompany
()
+
" 账号 :"
+
this
.
contract
.
getEmail
()
+
" 签约了,"
+
" 套餐 :"
+
packageMap
.
get
(
this
.
contract
.
getPriceLevel
())
+
",开始时间 "
+
this
.
contract
.
getStartDate
()
+
",结束时间 "
+
this
.
contract
.
getEndDate
());
User
user
=
userRepository
.
findOne
(
this
.
contract
.
getSale
());
...
...
src/main/java/tkio/task/AccountTask.java
View file @
0b772f9a
...
...
@@ -80,11 +80,15 @@ public class AccountTask {
account4Web
.
setStatus
(
"流量用尽"
);
}
}
if
((
account4Web
.
getTrack
().
doubleValue
()
!=
0
)
&&
(
null
!=
account4Web
.
getTrackLimit
())){
if
((
account4Web
.
getTrack
().
doubleValue
()
/
account4Web
.
getTrackLimit
().
doubleValue
())
>
f
){
account4Web
.
setTrackStatus
(
false
);
account4Web
.
setStatus
(
"流量用尽"
);
}
if
(
account4Web
.
getIoLimit
().
doubleValue
()
==
-
1
){
account4Web
.
setIoStatus
(
true
);
account4Web
.
setStatus
(
"已激活"
);
}
if
(
account4Web
.
getTrackLimit
().
doubleValue
()
==
-
1
){
account4Web
.
setTrackStatus
(
true
);
account4Web
.
setStatus
(
"已激活"
);
}
}
account4Web
.
setUser
(
ac
.
getName
());
...
...
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