Commit 909915b1 by lal

Merge branch 'develop' of develop-gitlab.youlingrc.com:8timerv2/8timerapiv200 into lal

parents f7bc0b4b 69910b99
...@@ -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());
// *****************************考勤假期初始化 // *****************************考勤假期初始化
// 获取模板数据 // 获取模板数据
......
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();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment