Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
909915b1
Commit
909915b1
authored
Jul 01, 2020
by
lal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of develop-gitlab.youlingrc.com:8timerv2/8timerapiv200 into lal
parents
f7bc0b4b
69910b99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
src/main/java/cn/timer/api/controller/LoginController.java
+3
-0
src/main/java/cn/timer/api/controller/qyzx/service/RegisterHelper.java
+34
-0
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
909915b1
...
@@ -55,6 +55,7 @@ import cn.timer.api.config.enums.CommonEnum;
...
@@ -55,6 +55,7 @@ import cn.timer.api.config.enums.CommonEnum;
import
cn.timer.api.config.enums.SysRoleType
;
import
cn.timer.api.config.enums.SysRoleType
;
import
cn.timer.api.config.exception.CustomException
;
import
cn.timer.api.config.exception.CustomException
;
import
cn.timer.api.controller.jxgl.service.JxglService
;
import
cn.timer.api.controller.jxgl.service.JxglService
;
import
cn.timer.api.controller.qyzx.service.RegisterHelper
;
import
cn.timer.api.controller.spmk.service.SpmkServiceImpl
;
import
cn.timer.api.controller.spmk.service.SpmkServiceImpl
;
import
cn.timer.api.dao.kqmk.KqglAssoLeaveRulesMapper
;
import
cn.timer.api.dao.kqmk.KqglAssoLeaveRulesMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
...
@@ -601,6 +602,8 @@ public class LoginController {
...
@@ -601,6 +602,8 @@ public class LoginController {
}
}
SpmkService
.
createCustomApproval
(
qyzxEntInfoM
.
getId
());
SpmkService
.
createCustomApproval
(
qyzxEntInfoM
.
getId
());
//企业注册添加10条短信
RegisterHelper
.
companyRegister
(
qyId
,
login
.
getId
());
// *****************************考勤假期初始化
// *****************************考勤假期初始化
// 获取模板数据
// 获取模板数据
...
...
src/main/java/cn/timer/api/controller/qyzx/service/RegisterHelper.java
0 → 100644
View file @
909915b1
package
cn
.
timer
.
api
.
controller
.
qyzx
.
service
;
import
java.util.Date
;
import
cn.hutool.core.date.DateField
;
import
cn.hutool.core.date.DateUtil
;
import
cn.timer.api.bean.qyzx.businessService.QyzxRemainingQuantity
;
public
class
RegisterHelper
{
public
static
void
companyRegister
(
Integer
orgCode
,
Integer
empNum
)
{
QyzxRemainingQuantity
quantity
=
new
QyzxRemainingQuantity
();
String
orderNo
=
String
.
valueOf
(
System
.
currentTimeMillis
())
+
orgCode
;
// 时间毫秒数+orgCode
Date
expireDate
=
DateUtil
.
offset
(
new
Date
(),
DateField
.
DAY_OF_YEAR
,
365
);
// 时间偏移
quantity
.
setOrderNo
(
orderNo
);
// 订单号
quantity
.
setContent
(
"注册赠送短信"
);
// 商品名称
quantity
.
setExpireDate
(
expireDate
);
// 到期时间
quantity
.
setSpecification
(
10
);
// 套餐规格
quantity
.
setTotalNum
(
10
);
// 套餐总量
quantity
.
setRemainder
(
10
);
// 套餐剩余数(同上)
quantity
.
setCount
(
1
);
// 购买数量
quantity
.
setPmid
(
1
);
// 付费模块id
quantity
.
setPcid
(
16
);
// 付费内容id
quantity
.
setUnit
(
"条"
);
quantity
.
setCreateUser
(
empNum
);
quantity
.
setOrgCode
(
orgCode
);
quantity
.
insert
();
}
}
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