Commit ba55d73f by zhiwj

计费中心

parent bde56ee4
package com.gic.enterprise.constant;
/**
* 审核结果
* @ClassName: BillingAuditStatusEnum
* @Description:
* @author zhiwj
* @date 2019/8/15 9:19
*/
public enum BillingAuditStatusEnum {
AUDITING(1, "审核中"),
PASS(2, "已完成"),
FAIL(3, "审核失败"),
;
private Integer code;
private String msg;
BillingAuditStatusEnum(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
public Integer getCode() {
return code;
}
public String getMsg() {
return msg;
}
}
package com.gic.enterprise.constant;
/**
* 订单状态
* @ClassName: BillingOrderStatusEnum
* @Description:
* @author zhiwj
* @date 2019/8/14 16:23
*/
public enum BillingOrderStatusEnum {
// 0:已关闭 1:待支付,2:已完成,3:审核中,4:审核失败
CLOSE(0, "已关闭"),
WAIT_PAY(1, "待支付"),
FINISH(2, "已完成"),
AUDITING(3, "审核中"),
AUDIT_FAIL(4, "审核失败"),
;
private Integer code;
private String msg;
BillingOrderStatusEnum(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
public Integer getCode() {
return code;
}
public String getMsg() {
return msg;
}
}
......@@ -8,4 +8,10 @@ public interface Constants {
String BUSINESS_CATEGORY = "businessCategory";
String SMS_PACKAGE = "sms_package";
String SMS_PACKAGE_LENGTH = "sms_package_length";
}
package com.gic.enterprise.dto;
import java.io.Serializable;
import java.util.Date;
/**
*
* @ClassName: BillingCouponCardDTO
* @Description:
* @author zhiwj
* @date 2019/8/14 17:46
*/
public class BillingCouponCardDTO implements Serializable {
private static final long serialVersionUID = -2782582631214001857L;
/**
*
*/
private Integer couponCardId;
/**
*
*/
private Integer enterpriseId;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 卡券名
*/
private String couponCardName;
/**
* 1:代金券
*/
private Integer type;
/**
* 卡券有效期
*/
private Date effectiveStartDate;
/**
* 卡券有效期
*/
private Date effectiveEndDate;
/**
* 卡券内容 优惠金额
*/
private Double content;
/**
* 适用产品
*/
private Integer applicableProductCode;
/**
* 适用产品
*/
private String applicableProductName;
public Integer getCouponCardId() {
return couponCardId;
}
public void setCouponCardId(Integer couponCardId) {
this.couponCardId = couponCardId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getCouponCardName() {
return couponCardName;
}
public void setCouponCardName(String couponCardName) {
this.couponCardName = couponCardName;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Date getEffectiveStartDate() {
return effectiveStartDate;
}
public void setEffectiveStartDate(Date effectiveStartDate) {
this.effectiveStartDate = effectiveStartDate;
}
public Date getEffectiveEndDate() {
return effectiveEndDate;
}
public void setEffectiveEndDate(Date effectiveEndDate) {
this.effectiveEndDate = effectiveEndDate;
}
public Double getContent() {
return content;
}
public void setContent(Double content) {
this.content = content;
}
public Integer getApplicableProductCode() {
return applicableProductCode;
}
public void setApplicableProductCode(Integer applicableProductCode) {
this.applicableProductCode = applicableProductCode;
}
public String getApplicableProductName() {
return applicableProductName;
}
public void setApplicableProductName(String applicableProductName) {
this.applicableProductName = applicableProductName;
}
}
package com.gic.enterprise.dto;
import java.io.Serializable;
public class BillingOrderDTO implements Serializable {
private static final long serialVersionUID = -2050607465329409777L;
/**
*
*/
private Integer orderId;
/**
*
*/
private Integer enterpriseId;
/**
* 流水号
*/
private String serialNumber;
/**
* 订单状态
*/
private Integer orderStatus;
/**
* 订单内容
*/
private String orderContent;
/**
* 支付方式 1微信 2支付宝 3.线下支付 4余额支付
*/
private Integer payType;
/**
* 应付金额
*/
private Double totalFee;
/**
* 实付金额
*/
private Double totalFeePaid;
/**
* 支付信息表id
*/
private Integer payInfoId;
/**
* 优惠券id
*/
private Integer couponCardId;
/**
* 审核状态 1:审核中 2:审核通过(已完成) 3:审核失败
*/
private Integer auditStatus;
/**
* 审批结果id
*/
private Integer auditResultId;
/**
* 订单项
*/
private String itemJson;
public Integer getOrderId() {
return orderId;
}
public void setOrderId(Integer orderId) {
this.orderId = orderId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getSerialNumber() {
return serialNumber;
}
public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
public Integer getOrderStatus() {
return orderStatus;
}
public void setOrderStatus(Integer orderStatus) {
this.orderStatus = orderStatus;
}
public String getOrderContent() {
return orderContent;
}
public void setOrderContent(String orderContent) {
this.orderContent = orderContent;
}
public Integer getPayType() {
return payType;
}
public void setPayType(Integer payType) {
this.payType = payType;
}
public Double getTotalFee() {
return totalFee;
}
public void setTotalFee(Double totalFee) {
this.totalFee = totalFee;
}
public Double getTotalFeePaid() {
return totalFeePaid;
}
public void setTotalFeePaid(Double totalFeePaid) {
this.totalFeePaid = totalFeePaid;
}
public Integer getPayInfoId() {
return payInfoId;
}
public void setPayInfoId(Integer payInfoId) {
this.payInfoId = payInfoId;
}
public Integer getCouponCardId() {
return couponCardId;
}
public void setCouponCardId(Integer couponCardId) {
this.couponCardId = couponCardId;
}
public Integer getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Integer auditStatus) {
this.auditStatus = auditStatus;
}
public Integer getAuditResultId() {
return auditResultId;
}
public void setAuditResultId(Integer auditResultId) {
this.auditResultId = auditResultId;
}
public String getItemJson() {
return itemJson;
}
public void setItemJson(String itemJson) {
this.itemJson = itemJson;
}
}
......@@ -11,6 +11,8 @@ public class DictDTO implements Serializable {
private String key;
private String content;
public String getValue() {
return value;
}
......@@ -26,4 +28,12 @@ public class DictDTO implements Serializable {
public void setKey(String key) {
this.key = key;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
\ No newline at end of file
package com.gic.enterprise.dto;
import java.io.Serializable;
/**
*
* @ClassName: SmsPackageOrderItemDTO
* @Description:
* @author zhiwj
* @date 2019/8/14 16:50
*/
public class SmsPackageOrderItemDTO implements Serializable {
private static final long serialVersionUID = 2436384647061676687L;
/**
* 字典类型
*/
private String code;
/**
* 短信条数
*/
private Integer smsAmount;
/**
* 单价
*/
private Double cost;
/**
* 套餐时长 单位:月
*/
private Integer packageLength;
/**
* 购买数量
*/
private Integer buyCount;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Integer getSmsAmount() {
return smsAmount;
}
public void setSmsAmount(Integer smsAmount) {
this.smsAmount = smsAmount;
}
public Double getCost() {
return cost;
}
public void setCost(Double cost) {
this.cost = cost;
}
public Integer getPackageLength() {
return packageLength;
}
public void setPackageLength(Integer packageLength) {
this.packageLength = packageLength;
}
public Integer getBuyCount() {
return buyCount;
}
public void setBuyCount(Integer buyCount) {
this.buyCount = buyCount;
}
}
package com.gic.enterprise.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.enterprise.dto.BillingCouponCardDTO;
import java.util.Date;
/**
*
* @ClassName: BillingCouponCardApiService
* @Description:
* @author zhiwj
* @date 2019/8/14 17:50
*/
public interface BillingCouponCardApiService {
/**
* 优惠券列表
* @Title: listBillingCouponCard
* @Description:
* @author zhiwj
* @param enterpriseId
* @param startTime
* @param endTime
* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.BillingCouponCardDTO>
* @throws
*/
ServiceResponse<Page<BillingCouponCardDTO>> listBillingCouponCard(Integer enterpriseId, Date startTime, Date endTime);
/**
* 某产品能使用的优惠券
* @Title: listBillingCouponCardEnable
* @Description:
* @author zhiwj
* @param enterpriseId
* @param applicableProductCode
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.enterprise.dto.BillingCouponCardDTO>>
* @throws
*/
ServiceResponse<Page<BillingCouponCardDTO>> listBillingCouponCardEnable(Integer enterpriseId, Integer applicableProductCode);
/**
* 查询卡券详情
* @Title: getBillingCouponCard
* @Description:
* @author zhiwj
* @param couponCardId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.BillingCouponCardDTO>
* @throws
*/
ServiceResponse<BillingCouponCardDTO> getBillingCouponCard(Integer couponCardId);
}
package com.gic.enterprise.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.enterprise.dto.BillingOrderDTO;
import com.gic.enterprise.dto.SmsPackageOrderItemDTO;
import java.util.Date;
/**
* 订单
* @ClassName: OrderApiService
* @Description:
* @author zhiwj
* @date 2019/8/14 15:27
*/
public interface BillingOrderApiService {
/**
* 添加一个订单,立即购买功能
* @Title: addOrder
* @Description:
* @author zhiwj
* @param billingOrderDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @throws
*/
ServiceResponse<Integer> saveSmsOrderBuyNow(BillingOrderDTO billingOrderDTO, SmsPackageOrderItemDTO smsPackageOrderItemDTO);
/**
* 修改订单内容, 确认支付
* @Title: updateOrderConfirmPay
* @Description:
* @author zhiwj
* @param billingOrderDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @throws
*/
ServiceResponse<Integer> updateOrderConfirmPay(BillingOrderDTO billingOrderDTO);
/**
* 条件分页查询订单状态
* @Title: listOrder
* @Description:
* @author zhiwj
* @param startTime 开始时间
* @param endTime 结束时间
* @param orderStatus 订单状态
* @param search 订单信息
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.enterprise.dto.BillingOrderDTO>>
* @throws
*/
ServiceResponse<Page<BillingOrderDTO>> listOrder(Date startTime, Date endTime, Integer orderStatus, String search);
/**
* 通过id查询订单详情
* @Title: getOrderById
* @Description:
* @author zhiwj
* @param orderId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.BillingOrderDTO>
* @throws
*/
ServiceResponse<BillingOrderDTO> getOrderById(Integer orderId);
/**
* 通过流水号查询订单详情
* @Title: getOrderBySerialNumber
* @Description:
* @author zhiwj
* @param serialNumber
* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.BillingOrderDTO>
* @throws
*/
ServiceResponse<BillingOrderDTO> getOrderBySerialNumber(String serialNumber);
}
......@@ -10,4 +10,6 @@ public interface DictApiService {
ServiceResponse<List<DictDTO>> listBusinessCategory();
ServiceResponse<DictDTO> getDict(String categoryCode, String code);
ServiceResponse<DictDTO> getDictOriginal(String categoryCode, String code);
}
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingAccountBalanceRecord;
public interface TabBillingAccountBalanceRecordMapper {
/**
* 根据主键删除
*
* @param accountBalanceRecordId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer accountBalanceRecordId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingAccountBalanceRecord record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingAccountBalanceRecord record);
/**
* 根据主键查询
*
* @param accountBalanceRecordId 主键
* @return 实体对象
*/
TabBillingAccountBalanceRecord selectByPrimaryKey(Integer accountBalanceRecordId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingAccountBalanceRecord record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingAccountBalanceRecord record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingAccount;
public interface TabBillingAccountMapper {
/**
* 根据主键删除
*
* @param accountId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer accountId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingAccount record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingAccount record);
/**
* 根据主键查询
*
* @param accountId 主键
* @return 实体对象
*/
TabBillingAccount selectByPrimaryKey(Integer accountId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingAccount record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingAccount record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingAuditResult;
public interface TabBillingAuditResultMapper {
/**
* 根据主键删除
*
* @param auditResultId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer auditResultId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingAuditResult record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingAuditResult record);
/**
* 根据主键查询
*
* @param auditResultId 主键
* @return 实体对象
*/
TabBillingAuditResult selectByPrimaryKey(Integer auditResultId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingAuditResult record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingAuditResult record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingCouponCard;
import com.github.pagehelper.Page;
import java.util.Date;
public interface TabBillingCouponCardMapper {
/**
* 根据主键删除
*
* @param couponCardId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer couponCardId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingCouponCard record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingCouponCard record);
/**
* 根据主键查询
*
* @param couponCardId 主键
* @return 实体对象
*/
TabBillingCouponCard selectByPrimaryKey(Integer couponCardId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingCouponCard record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingCouponCard record);
Page<TabBillingCouponCard> listBillingCouponCard(Integer enterpriseId, Date startTime, Date endTime);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingDoubleCallingRecord;
public interface TabBillingDoubleCallingRecordMapper {
/**
* 根据主键删除
*
* @param doubleCallingRecordId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer doubleCallingRecordId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingDoubleCallingRecord record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingDoubleCallingRecord record);
/**
* 根据主键查询
*
* @param doubleCallingRecordId 主键
* @return 实体对象
*/
TabBillingDoubleCallingRecord selectByPrimaryKey(Integer doubleCallingRecordId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingDoubleCallingRecord record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingDoubleCallingRecord record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingEnterpriseSmsPackage;
public interface TabBillingEnterpriseSmsPackageMapper {
/**
* 根据主键删除
*
* @param enterpriseSmsPackageId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer enterpriseSmsPackageId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingEnterpriseSmsPackage record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingEnterpriseSmsPackage record);
/**
* 根据主键查询
*
* @param enterpriseSmsPackageId 主键
* @return 实体对象
*/
TabBillingEnterpriseSmsPackage selectByPrimaryKey(Integer enterpriseSmsPackageId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingEnterpriseSmsPackage record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingEnterpriseSmsPackage record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingOrder;
public interface TabBillingOrderMapper {
/**
* 根据主键删除
*
* @param orderId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer orderId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingOrder record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingOrder record);
/**
* 根据主键查询
*
* @param orderId 主键
* @return 实体对象
*/
TabBillingOrder selectByPrimaryKey(Integer orderId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingOrder record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingOrder record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingPayInfo;
public interface TabBillingPayInfoMapper {
/**
* 根据主键删除
*
* @param payInfoId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer payInfoId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingPayInfo record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingPayInfo record);
/**
* 根据主键查询
*
* @param payInfoId 主键
* @return 实体对象
*/
TabBillingPayInfo selectByPrimaryKey(Integer payInfoId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingPayInfo record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingPayInfo record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingRechargeRecord;
public interface TabBillingRechargeRecordMapper {
/**
* 根据主键删除
*
* @param rechargeRecordId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer rechargeRecordId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingRechargeRecord record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingRechargeRecord record);
/**
* 根据主键查询
*
* @param rechargeRecordId 主键
* @return 实体对象
*/
TabBillingRechargeRecord selectByPrimaryKey(Integer rechargeRecordId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingRechargeRecord record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingRechargeRecord record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingRecordingStorageRecord;
public interface TabBillingRecordingStorageRecordMapper {
/**
* 根据主键删除
*
* @param recordingStorageRecordId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer recordingStorageRecordId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingRecordingStorageRecord record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingRecordingStorageRecord record);
/**
* 根据主键查询
*
* @param recordingStorageRecordId 主键
* @return 实体对象
*/
TabBillingRecordingStorageRecord selectByPrimaryKey(Integer recordingStorageRecordId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingRecordingStorageRecord record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingRecordingStorageRecord record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingSmsPackageRecord;
public interface TabBillingSmsPackageRecordMapper {
/**
* 根据主键删除
*
* @param smsPackageRecordId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer smsPackageRecordId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingSmsPackageRecord record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingSmsPackageRecord record);
/**
* 根据主键查询
*
* @param smsPackageRecordId 主键
* @return 实体对象
*/
TabBillingSmsPackageRecord selectByPrimaryKey(Integer smsPackageRecordId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingSmsPackageRecord record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingSmsPackageRecord record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingSmsRecord;
public interface TabBillingSmsRecordMapper {
/**
* 根据主键删除
*
* @param smsRecordId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer smsRecordId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingSmsRecord record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingSmsRecord record);
/**
* 根据主键查询
*
* @param smsRecordId 主键
* @return 实体对象
*/
TabBillingSmsRecord selectByPrimaryKey(Integer smsRecordId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingSmsRecord record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingSmsRecord record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabBillingVoiceCodeRecord;
public interface TabBillingVoiceCodeRecordMapper {
/**
* 根据主键删除
*
* @param voiceCodeRecordId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer voiceCodeRecordId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabBillingVoiceCodeRecord record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabBillingVoiceCodeRecord record);
/**
* 根据主键查询
*
* @param voiceCodeRecordId 主键
* @return 实体对象
*/
TabBillingVoiceCodeRecord selectByPrimaryKey(Integer voiceCodeRecordId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabBillingVoiceCodeRecord record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabBillingVoiceCodeRecord record);
}
\ No newline at end of file
package com.gic.enterprise.entity;
/**
* tab_billing_account
*/
public class TabBillingAccount {
/**
*
*/
private Integer accountId;
/**
*
*/
private Integer enterpriseId;
/**
* 账户余额
*/
private Double accountBalance;
/**
* 授信额度
*/
private Integer creditLine;
/**
* 1:自动续充, 0:手动充
*/
private Integer autoRecharge;
public Integer getAccountId() {
return accountId;
}
public void setAccountId(Integer accountId) {
this.accountId = accountId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public Double getAccountBalance() {
return accountBalance;
}
public void setAccountBalance(Double accountBalance) {
this.accountBalance = accountBalance;
}
public Integer getCreditLine() {
return creditLine;
}
public void setCreditLine(Integer creditLine) {
this.creditLine = creditLine;
}
public Integer getAutoRecharge() {
return autoRecharge;
}
public void setAutoRecharge(Integer autoRecharge) {
this.autoRecharge = autoRecharge;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_account_balance_record
*/
public class TabBillingAccountBalanceRecord {
/**
*
*/
private Integer accountBalanceRecordId;
/**
*
*/
private String productName;
/**
* 支付方式
*/
private Integer payType;
/**
*
*/
private Integer status;
/**
* 产品类型
*/
private Integer productType;
/**
* 账单类型
*/
private Integer billType;
/**
*
*/
private Date createTime;
/**
*
*/
private Integer orderId;
/**
* 扣费时间
*/
private Date deductionTime;
public Integer getAccountBalanceRecordId() {
return accountBalanceRecordId;
}
public void setAccountBalanceRecordId(Integer accountBalanceRecordId) {
this.accountBalanceRecordId = accountBalanceRecordId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public Integer getPayType() {
return payType;
}
public void setPayType(Integer payType) {
this.payType = payType;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getProductType() {
return productType;
}
public void setProductType(Integer productType) {
this.productType = productType;
}
public Integer getBillType() {
return billType;
}
public void setBillType(Integer billType) {
this.billType = billType;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getOrderId() {
return orderId;
}
public void setOrderId(Integer orderId) {
this.orderId = orderId;
}
public Date getDeductionTime() {
return deductionTime;
}
public void setDeductionTime(Date deductionTime) {
this.deductionTime = deductionTime;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_audit_result
*/
public class TabBillingAuditResult {
/**
*
*/
private Integer auditResultId;
/**
*
*/
private Integer enterpriseId;
/**
* 流水号
*/
private String serialNumber;
/**
* 审核状态 1:审核中 2:审核通过(已完成) 3:审核失败
*/
private Integer auditStatus;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 审批时间
*/
private Date auditTime;
/**
* 审批人id
*/
private Integer auditUserId;
/**
* 审批人name
*/
private String auditUserName;
/**
* 审批人手机
*/
private String auditUserPhone;
/**
* 计划到账
*/
private Double feePlan;
/**
* 实际到账
*/
private Double feePaid;
/**
* 拒绝理由
*/
private String refuseReason;
public Integer getAuditResultId() {
return auditResultId;
}
public void setAuditResultId(Integer auditResultId) {
this.auditResultId = auditResultId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getSerialNumber() {
return serialNumber;
}
public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
public Integer getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Integer auditStatus) {
this.auditStatus = auditStatus;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Date getAuditTime() {
return auditTime;
}
public void setAuditTime(Date auditTime) {
this.auditTime = auditTime;
}
public Integer getAuditUserId() {
return auditUserId;
}
public void setAuditUserId(Integer auditUserId) {
this.auditUserId = auditUserId;
}
public String getAuditUserName() {
return auditUserName;
}
public void setAuditUserName(String auditUserName) {
this.auditUserName = auditUserName;
}
public String getAuditUserPhone() {
return auditUserPhone;
}
public void setAuditUserPhone(String auditUserPhone) {
this.auditUserPhone = auditUserPhone;
}
public Double getFeePlan() {
return feePlan;
}
public void setFeePlan(Double feePlan) {
this.feePlan = feePlan;
}
public Double getFeePaid() {
return feePaid;
}
public void setFeePaid(Double feePaid) {
this.feePaid = feePaid;
}
public String getRefuseReason() {
return refuseReason;
}
public void setRefuseReason(String refuseReason) {
this.refuseReason = refuseReason;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_coupon_card
*/
public class TabBillingCouponCard {
/**
*
*/
private Integer couponCardId;
/**
*
*/
private Integer enterpriseId;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 卡券名
*/
private String couponCardName;
/**
* 1:代金券
*/
private Integer type;
/**
* 卡券有效期
*/
private Date effectiveStartDate;
/**
* 卡券有效期
*/
private Date effectiveEndDate;
/**
* 卡券内容 优惠金额
*/
private Double content;
/**
* 适用产品
*/
private Integer applicableProductCode;
/**
* 适用产品
*/
private String applicableProductName;
public Integer getCouponCardId() {
return couponCardId;
}
public void setCouponCardId(Integer couponCardId) {
this.couponCardId = couponCardId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getCouponCardName() {
return couponCardName;
}
public void setCouponCardName(String couponCardName) {
this.couponCardName = couponCardName;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Date getEffectiveStartDate() {
return effectiveStartDate;
}
public void setEffectiveStartDate(Date effectiveStartDate) {
this.effectiveStartDate = effectiveStartDate;
}
public Date getEffectiveEndDate() {
return effectiveEndDate;
}
public void setEffectiveEndDate(Date effectiveEndDate) {
this.effectiveEndDate = effectiveEndDate;
}
public Double getContent() {
return content;
}
public void setContent(Double content) {
this.content = content;
}
public Integer getApplicableProductCode() {
return applicableProductCode;
}
public void setApplicableProductCode(Integer applicableProductCode) {
this.applicableProductCode = applicableProductCode;
}
public String getApplicableProductName() {
return applicableProductName;
}
public void setApplicableProductName(String applicableProductName) {
this.applicableProductName = applicableProductName;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_double_calling_record
*/
public class TabBillingDoubleCallingRecord {
/**
*
*/
private Integer doubleCallingRecordId;
/**
* 主叫
*/
private String callerName;
/**
* 主叫
*/
private String callerPhone;
/**
* 主叫
*/
private Integer callerId;
/**
* 总费用
*/
private Double fee;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
* 扣费时间
*/
private Date deductionTime;
/**
* 被叫
*/
private String calledName;
/**
* 被叫
*/
private String calledPhone;
/**
* 被叫
*/
private Integer calledId;
/**
*
*/
private Integer appId;
/**
*
*/
private String appName;
/**
* 语音时长
*/
private String voiceTime;
public Integer getDoubleCallingRecordId() {
return doubleCallingRecordId;
}
public void setDoubleCallingRecordId(Integer doubleCallingRecordId) {
this.doubleCallingRecordId = doubleCallingRecordId;
}
public String getCallerName() {
return callerName;
}
public void setCallerName(String callerName) {
this.callerName = callerName;
}
public String getCallerPhone() {
return callerPhone;
}
public void setCallerPhone(String callerPhone) {
this.callerPhone = callerPhone;
}
public Integer getCallerId() {
return callerId;
}
public void setCallerId(Integer callerId) {
this.callerId = callerId;
}
public Double getFee() {
return fee;
}
public void setFee(Double fee) {
this.fee = fee;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getDeductionTime() {
return deductionTime;
}
public void setDeductionTime(Date deductionTime) {
this.deductionTime = deductionTime;
}
public String getCalledName() {
return calledName;
}
public void setCalledName(String calledName) {
this.calledName = calledName;
}
public String getCalledPhone() {
return calledPhone;
}
public void setCalledPhone(String calledPhone) {
this.calledPhone = calledPhone;
}
public Integer getCalledId() {
return calledId;
}
public void setCalledId(Integer calledId) {
this.calledId = calledId;
}
public Integer getAppId() {
return appId;
}
public void setAppId(Integer appId) {
this.appId = appId;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public String getVoiceTime() {
return voiceTime;
}
public void setVoiceTime(String voiceTime) {
this.voiceTime = voiceTime;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_enterprise_sms_package
*/
public class TabBillingEnterpriseSmsPackage {
/**
*
*/
private Integer enterpriseSmsPackageId;
/**
*
*/
private Integer enterpriseId;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 套餐包名称
*/
private String smsPackageName;
/**
* 套餐包字典code
*/
private String smsPackageCode;
/**
* 有效截止时间
*/
private Date effectiveDate;
/**
* 订单id
*/
private Integer billingOrderId;
public Integer getEnterpriseSmsPackageId() {
return enterpriseSmsPackageId;
}
public void setEnterpriseSmsPackageId(Integer enterpriseSmsPackageId) {
this.enterpriseSmsPackageId = enterpriseSmsPackageId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getSmsPackageName() {
return smsPackageName;
}
public void setSmsPackageName(String smsPackageName) {
this.smsPackageName = smsPackageName;
}
public String getSmsPackageCode() {
return smsPackageCode;
}
public void setSmsPackageCode(String smsPackageCode) {
this.smsPackageCode = smsPackageCode;
}
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
public Integer getBillingOrderId() {
return billingOrderId;
}
public void setBillingOrderId(Integer billingOrderId) {
this.billingOrderId = billingOrderId;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_order
*/
public class TabBillingOrder {
/**
*
*/
private Integer orderId;
/**
*
*/
private Integer enterpriseId;
/**
* 流水号
*/
private String serialNumber;
/**
* 订单状态
*/
private Integer orderStatus;
/**
* 订单内容
*/
private String orderContent;
/**
* 支付方式 1微信 2支付宝 3.线下支付 4余额支付
*/
private Integer payType;
/**
* 应付金额
*/
private Double totalFee;
/**
* 实付金额
*/
private Double totalFeePaid;
/**
* 支付信息表id
*/
private Integer payInfoId;
/**
* 优惠券id
*/
private Integer couponCardId;
/**
* 审核状态 1:审核中 2:审核通过(已完成) 3:审核失败
*/
private Integer auditStatus;
/**
* 审批结果id
*/
private Integer auditResultId;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 订单项
*/
private String itemJson;
public Integer getOrderId() {
return orderId;
}
public void setOrderId(Integer orderId) {
this.orderId = orderId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getSerialNumber() {
return serialNumber;
}
public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
public Integer getOrderStatus() {
return orderStatus;
}
public void setOrderStatus(Integer orderStatus) {
this.orderStatus = orderStatus;
}
public String getOrderContent() {
return orderContent;
}
public void setOrderContent(String orderContent) {
this.orderContent = orderContent;
}
public Integer getPayType() {
return payType;
}
public void setPayType(Integer payType) {
this.payType = payType;
}
public Double getTotalFee() {
return totalFee;
}
public void setTotalFee(Double totalFee) {
this.totalFee = totalFee;
}
public Double getTotalFeePaid() {
return totalFeePaid;
}
public void setTotalFeePaid(Double totalFeePaid) {
this.totalFeePaid = totalFeePaid;
}
public Integer getPayInfoId() {
return payInfoId;
}
public void setPayInfoId(Integer payInfoId) {
this.payInfoId = payInfoId;
}
public Integer getCouponCardId() {
return couponCardId;
}
public void setCouponCardId(Integer couponCardId) {
this.couponCardId = couponCardId;
}
public Integer getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Integer auditStatus) {
this.auditStatus = auditStatus;
}
public Integer getAuditResultId() {
return auditResultId;
}
public void setAuditResultId(Integer auditResultId) {
this.auditResultId = auditResultId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getItemJson() {
return itemJson;
}
public void setItemJson(String itemJson) {
this.itemJson = itemJson;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_pay_info
*/
public class TabBillingPayInfo {
/**
*
*/
private Integer payInfoId;
/**
*
*/
private Integer enterpriseId;
/**
* 支付流水号
*/
private String serialNumber;
/**
* 支付方式 1微信 2支付宝 3.线下支付 4余额支付
*/
private Integer payType;
/**
* 实付金额
*/
private Double totalFeePaid;
/**
* 支付创建时间
*/
private String timeStart;
/**
* 支付完成时间 (到账时间)
*/
private String timeEnd;
/**
* 业务结果 1成功 2失败
*/
private Integer resultCode;
/**
* 交易返回错误编码
*/
private String errCode;
/**
* 交易返回错误信息
*/
private String errCodeDes;
/**
* 二维码链接
*/
private String codeUrl;
/**
* 预支付交易会话标识
*/
private String prepayId;
/**
* 发票状态 1:已开具 0:未开具
*/
private Integer invoiceStatus;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
public Integer getPayInfoId() {
return payInfoId;
}
public void setPayInfoId(Integer payInfoId) {
this.payInfoId = payInfoId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getSerialNumber() {
return serialNumber;
}
public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
public Integer getPayType() {
return payType;
}
public void setPayType(Integer payType) {
this.payType = payType;
}
public Double getTotalFeePaid() {
return totalFeePaid;
}
public void setTotalFeePaid(Double totalFeePaid) {
this.totalFeePaid = totalFeePaid;
}
public String getTimeStart() {
return timeStart;
}
public void setTimeStart(String timeStart) {
this.timeStart = timeStart;
}
public String getTimeEnd() {
return timeEnd;
}
public void setTimeEnd(String timeEnd) {
this.timeEnd = timeEnd;
}
public Integer getResultCode() {
return resultCode;
}
public void setResultCode(Integer resultCode) {
this.resultCode = resultCode;
}
public String getErrCode() {
return errCode;
}
public void setErrCode(String errCode) {
this.errCode = errCode;
}
public String getErrCodeDes() {
return errCodeDes;
}
public void setErrCodeDes(String errCodeDes) {
this.errCodeDes = errCodeDes;
}
public String getCodeUrl() {
return codeUrl;
}
public void setCodeUrl(String codeUrl) {
this.codeUrl = codeUrl;
}
public String getPrepayId() {
return prepayId;
}
public void setPrepayId(String prepayId) {
this.prepayId = prepayId;
}
public Integer getInvoiceStatus() {
return invoiceStatus;
}
public void setInvoiceStatus(Integer invoiceStatus) {
this.invoiceStatus = invoiceStatus;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_recharge_record
*/
public class TabBillingRechargeRecord {
/**
*
*/
private Integer rechargeRecordId;
/**
*
*/
private Integer enterpriseId;
/**
* 流水号
*/
private String serialNumber;
/**
* 充值金额
*/
private Double totalFee;
/**
* 实付金额
*/
private Double totalFeePaid;
/**
* 支付方式 1微信 2支付宝 3.线下支付
*/
private Integer payType;
/**
* 支付信息表id
*/
private Integer payInfoId;
/**
*
*/
private Integer status;
/**
* 发起方 1:运维平台
*/
private Integer initiator;
/**
* 发起人id
*/
private Integer initiatorUser;
/**
* 审核状态 1:审核中 2:审核通过(已完成) 3:审核失败
*/
private Integer auditStatus;
/**
* 操作人
*/
private Integer operator;
/**
* 验证码
*/
private String verificationCode;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 扣费时间
*/
private Date deductionTime;
public Integer getRechargeRecordId() {
return rechargeRecordId;
}
public void setRechargeRecordId(Integer rechargeRecordId) {
this.rechargeRecordId = rechargeRecordId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getSerialNumber() {
return serialNumber;
}
public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
public Double getTotalFee() {
return totalFee;
}
public void setTotalFee(Double totalFee) {
this.totalFee = totalFee;
}
public Double getTotalFeePaid() {
return totalFeePaid;
}
public void setTotalFeePaid(Double totalFeePaid) {
this.totalFeePaid = totalFeePaid;
}
public Integer getPayType() {
return payType;
}
public void setPayType(Integer payType) {
this.payType = payType;
}
public Integer getPayInfoId() {
return payInfoId;
}
public void setPayInfoId(Integer payInfoId) {
this.payInfoId = payInfoId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getInitiator() {
return initiator;
}
public void setInitiator(Integer initiator) {
this.initiator = initiator;
}
public Integer getInitiatorUser() {
return initiatorUser;
}
public void setInitiatorUser(Integer initiatorUser) {
this.initiatorUser = initiatorUser;
}
public Integer getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Integer auditStatus) {
this.auditStatus = auditStatus;
}
public Integer getOperator() {
return operator;
}
public void setOperator(Integer operator) {
this.operator = operator;
}
public String getVerificationCode() {
return verificationCode;
}
public void setVerificationCode(String verificationCode) {
this.verificationCode = verificationCode;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Date getDeductionTime() {
return deductionTime;
}
public void setDeductionTime(Date deductionTime) {
this.deductionTime = deductionTime;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_recording_storage_record
*/
public class TabBillingRecordingStorageRecord {
/**
*
*/
private Integer recordingStorageRecordId;
/**
* 主叫
*/
private String callerName;
/**
* 主叫
*/
private String callerPhone;
/**
* 主叫
*/
private Integer callerId;
/**
* 总费用
*/
private Double fee;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
* 扣费时间
*/
private Date deductionTime;
/**
* 被叫
*/
private String calledName;
/**
* 被叫
*/
private String calledPhone;
/**
* 被叫
*/
private Integer calledId;
/**
*
*/
private Integer appId;
/**
*
*/
private String appName;
/**
* 语音时长
*/
private String voiceTime;
public Integer getRecordingStorageRecordId() {
return recordingStorageRecordId;
}
public void setRecordingStorageRecordId(Integer recordingStorageRecordId) {
this.recordingStorageRecordId = recordingStorageRecordId;
}
public String getCallerName() {
return callerName;
}
public void setCallerName(String callerName) {
this.callerName = callerName;
}
public String getCallerPhone() {
return callerPhone;
}
public void setCallerPhone(String callerPhone) {
this.callerPhone = callerPhone;
}
public Integer getCallerId() {
return callerId;
}
public void setCallerId(Integer callerId) {
this.callerId = callerId;
}
public Double getFee() {
return fee;
}
public void setFee(Double fee) {
this.fee = fee;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getDeductionTime() {
return deductionTime;
}
public void setDeductionTime(Date deductionTime) {
this.deductionTime = deductionTime;
}
public String getCalledName() {
return calledName;
}
public void setCalledName(String calledName) {
this.calledName = calledName;
}
public String getCalledPhone() {
return calledPhone;
}
public void setCalledPhone(String calledPhone) {
this.calledPhone = calledPhone;
}
public Integer getCalledId() {
return calledId;
}
public void setCalledId(Integer calledId) {
this.calledId = calledId;
}
public Integer getAppId() {
return appId;
}
public void setAppId(Integer appId) {
this.appId = appId;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public String getVoiceTime() {
return voiceTime;
}
public void setVoiceTime(String voiceTime) {
this.voiceTime = voiceTime;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_sms_package_record
*/
public class TabBillingSmsPackageRecord {
/**
*
*/
private Integer smsPackageRecordId;
/**
*
*/
private String productName;
/**
* 数量
*/
private Integer itemCount;
/**
* 单价
*/
private Double itemFee;
/**
* 总费用
*/
private Double totalFee;
/**
* 支付方式
*/
private Integer payType;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Integer orderId;
/**
* 扣费时间
*/
private Date deductionTime;
public Integer getSmsPackageRecordId() {
return smsPackageRecordId;
}
public void setSmsPackageRecordId(Integer smsPackageRecordId) {
this.smsPackageRecordId = smsPackageRecordId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public Integer getItemCount() {
return itemCount;
}
public void setItemCount(Integer itemCount) {
this.itemCount = itemCount;
}
public Double getItemFee() {
return itemFee;
}
public void setItemFee(Double itemFee) {
this.itemFee = itemFee;
}
public Double getTotalFee() {
return totalFee;
}
public void setTotalFee(Double totalFee) {
this.totalFee = totalFee;
}
public Integer getPayType() {
return payType;
}
public void setPayType(Integer payType) {
this.payType = payType;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getOrderId() {
return orderId;
}
public void setOrderId(Integer orderId) {
this.orderId = orderId;
}
public Date getDeductionTime() {
return deductionTime;
}
public void setDeductionTime(Date deductionTime) {
this.deductionTime = deductionTime;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_sms_record
*/
public class TabBillingSmsRecord {
/**
*
*/
private Integer smsRecordId;
/**
*
*/
private Integer status;
/**
* 发送时间
*/
private Date sendTime;
/**
* 接收号码
*/
private String receivePhone;
/**
* 支付方式
*/
private Integer payType;
/**
* 应用
*/
private Integer appId;
/**
* 应用name
*/
private String appName;
/**
* 短信类型
*/
private Integer smsType;
/**
* 计费条数
*/
private Integer billNumber;
/**
* 费用
*/
private Double fee;
/**
* 短信内容
*/
private String smsContent;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 扣费时间
*/
private Date deductionTime;
public Integer getSmsRecordId() {
return smsRecordId;
}
public void setSmsRecordId(Integer smsRecordId) {
this.smsRecordId = smsRecordId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getSendTime() {
return sendTime;
}
public void setSendTime(Date sendTime) {
this.sendTime = sendTime;
}
public String getReceivePhone() {
return receivePhone;
}
public void setReceivePhone(String receivePhone) {
this.receivePhone = receivePhone;
}
public Integer getPayType() {
return payType;
}
public void setPayType(Integer payType) {
this.payType = payType;
}
public Integer getAppId() {
return appId;
}
public void setAppId(Integer appId) {
this.appId = appId;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public Integer getSmsType() {
return smsType;
}
public void setSmsType(Integer smsType) {
this.smsType = smsType;
}
public Integer getBillNumber() {
return billNumber;
}
public void setBillNumber(Integer billNumber) {
this.billNumber = billNumber;
}
public Double getFee() {
return fee;
}
public void setFee(Double fee) {
this.fee = fee;
}
public String getSmsContent() {
return smsContent;
}
public void setSmsContent(String smsContent) {
this.smsContent = smsContent;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Date getDeductionTime() {
return deductionTime;
}
public void setDeductionTime(Date deductionTime) {
this.deductionTime = deductionTime;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_billing_voice_code_record
*/
public class TabBillingVoiceCodeRecord {
/**
*
*/
private Integer voiceCodeRecordId;
/**
*
*/
private Integer status;
/**
* 发送时间
*/
private Date sendTime;
/**
* 接收号码
*/
private String receivePhone;
/**
* 语音时长
*/
private String voiceTime;
/**
* 应用
*/
private Integer appId;
/**
* 应用name
*/
private String appName;
/**
* 费用
*/
private Double fee;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
public Integer getVoiceCodeRecordId() {
return voiceCodeRecordId;
}
public void setVoiceCodeRecordId(Integer voiceCodeRecordId) {
this.voiceCodeRecordId = voiceCodeRecordId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getSendTime() {
return sendTime;
}
public void setSendTime(Date sendTime) {
this.sendTime = sendTime;
}
public String getReceivePhone() {
return receivePhone;
}
public void setReceivePhone(String receivePhone) {
this.receivePhone = receivePhone;
}
public String getVoiceTime() {
return voiceTime;
}
public void setVoiceTime(String voiceTime) {
this.voiceTime = voiceTime;
}
public Integer getAppId() {
return appId;
}
public void setAppId(Integer appId) {
this.appId = appId;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public Double getFee() {
return fee;
}
public void setFee(Double fee) {
this.fee = fee;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.enterprise.service;
import com.gic.enterprise.entity.TabBillingCouponCard;
import com.github.pagehelper.Page;
import java.util.Date;
/**
*
* @ClassName: BillingCouponCardService
* @Description:
* @author zhiwj
* @date 2019/8/14 18:11
*/
public interface BillingCouponCardService {
TabBillingCouponCard getNotExpiredCouponCardById(Integer couponCardId);
Page<TabBillingCouponCard> listBillingCouponCard(Integer enterpriseId, Date startTime, Date endTime);
}
package com.gic.enterprise.service;
import com.gic.enterprise.dto.BillingOrderDTO;
public interface BillingOrderService {
Integer saveOrderBuyNow(BillingOrderDTO billingOrderDTO);
}
package com.gic.enterprise.service.impl;
import com.gic.enterprise.dao.mapper.TabBillingCouponCardMapper;
import com.gic.enterprise.entity.TabBillingCouponCard;
import com.gic.enterprise.service.BillingCouponCardService;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
/**
*
* @ClassName: BillingCouponCardServiceImpl
* @Description:
* @author zhiwj
* @date 2019/8/14 18:11
*/
@Service
public class BillingCouponCardServiceImpl implements BillingCouponCardService {
@Autowired
private TabBillingCouponCardMapper tabBillingCouponCardMapper;
@Override
public TabBillingCouponCard getNotExpiredCouponCardById(Integer couponCardId) {
TabBillingCouponCard couponCard = tabBillingCouponCardMapper.selectByPrimaryKey(couponCardId);
return null;
}
@Override
public Page<TabBillingCouponCard> listBillingCouponCard(Integer enterpriseId, Date startTime, Date endTime) {
return tabBillingCouponCardMapper.listBillingCouponCard(enterpriseId, startTime, endTime);
}
}
package com.gic.enterprise.service.impl;
import com.gic.commons.util.GlobalInfo;
import com.gic.enterprise.constant.BillingAuditStatusEnum;
import com.gic.enterprise.constant.BillingOrderStatusEnum;
import com.gic.enterprise.dao.mapper.TabBillingOrderMapper;
import com.gic.enterprise.dto.BillingOrderDTO;
import com.gic.enterprise.entity.TabBillingOrder;
import com.gic.enterprise.service.BillingOrderService;
import com.gic.store.utils.CreateSerialNumberUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
@Service
public class BillingOrderServiceImpl implements BillingOrderService {
private Logger logger = LogManager.getLogger(BillingOrderServiceImpl.class);
@Autowired
private TabBillingOrderMapper tabBillingOrderMapper;
@Override
public Integer saveOrderBuyNow(BillingOrderDTO billingOrderDTO) {
TabBillingOrder billingOrder = new TabBillingOrder();
billingOrder.setEnterpriseId(billingOrderDTO.getEnterpriseId());
// 统一流水号
billingOrder.setSerialNumber(CreateSerialNumberUtils.createSerialNumber());
billingOrder.setOrderStatus(BillingOrderStatusEnum.WAIT_PAY.getCode());
billingOrder.setTotalFee(billingOrderDTO.getTotalFee());
billingOrder.setStatus(GlobalInfo.DATA_STATUS_NORMAL);
billingOrder.setAuditStatus(BillingAuditStatusEnum.AUDITING.getCode());
billingOrder.setCreateTime(new Date());
billingOrder.setItemJson(billingOrderDTO.getItemJson());
tabBillingOrderMapper.insertSelective(billingOrder);
return billingOrder.getOrderId();
}
}
package com.gic.enterprise.service.outer;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.PageHelperUtils;
import com.gic.enterprise.dto.BillingCouponCardDTO;
import com.gic.enterprise.entity.TabBillingCouponCard;
import com.gic.enterprise.service.BillingCouponCardApiService;
import com.gic.enterprise.service.BillingCouponCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
/**
*
* @ClassName: BillingCouponCardApiServiceImpl
* @Description:
* @author zhiwj
* @date 2019/8/14 18:10
*/
@Service("billingCouponCardApiService")
public class BillingCouponCardApiServiceImpl implements BillingCouponCardApiService {
@Autowired
private BillingCouponCardService billingCouponCardService;
@Override
public ServiceResponse<Page<BillingCouponCardDTO>> listBillingCouponCard(Integer enterpriseId, Date startTime, Date endTime) {
com.github.pagehelper.Page<TabBillingCouponCard> page = billingCouponCardService.listBillingCouponCard(enterpriseId, startTime, endTime);
Page<BillingCouponCardDTO> resultPage = PageHelperUtils.changePageHelperToCurrentPage(page, BillingCouponCardDTO.class);
return ServiceResponse.success(resultPage);
}
@Override
public ServiceResponse<Page<BillingCouponCardDTO>> listBillingCouponCardEnable(Integer enterpriseId, Integer applicableProductCode) {
return null;
}
@Override
public ServiceResponse<BillingCouponCardDTO> getBillingCouponCard(Integer couponCardId) {
return null;
}
}
package com.gic.enterprise.service.outer;
import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.enterprise.constant.Constants;
import com.gic.enterprise.dto.BillingOrderDTO;
import com.gic.enterprise.dto.DictDTO;
import com.gic.enterprise.dto.SmsPackageOrderItemDTO;
import com.gic.enterprise.entity.TabBillingCouponCard;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.service.BillingCouponCardService;
import com.gic.enterprise.service.BillingOrderApiService;
import com.gic.enterprise.service.BillingOrderService;
import com.gic.enterprise.service.DictApiService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
@Service("billingOrderApiService")
public class BillingOrderApiServcImpl implements BillingOrderApiService {
private Logger logger = LogManager.getLogger(BillingOrderApiServcImpl.class);
@Autowired
private BillingOrderService billingOrderService;
@Autowired
private DictApiService dictApiService;
@Autowired
private BillingCouponCardService billingCouponCardService;
@Override
public ServiceResponse<Integer> saveSmsOrderBuyNow(BillingOrderDTO billingOrderDTO, SmsPackageOrderItemDTO smsPackageOrderItemDTO) {
ServiceResponse<DictDTO> dictResponse = dictApiService.getDict(Constants.SMS_PACKAGE, smsPackageOrderItemDTO.getCode());
if (!dictResponse.isSuccess()) {
return ServiceResponse.failure(ErrorCode.NOTEXISTS.getCode(), "选择的套餐包不存在");
}
DictDTO dictDTO = dictResponse.getResult();
smsPackageOrderItemDTO.setSmsAmount(Integer.valueOf(dictDTO.getKey()));
smsPackageOrderItemDTO.setCost(Double.parseDouble(dictDTO.getContent()));
billingOrderDTO.setItemJson(JSON.toJSONString(smsPackageOrderItemDTO));
billingOrderDTO.setTotalFee(smsPackageOrderItemDTO.getSmsAmount() * smsPackageOrderItemDTO.getBuyCount() * smsPackageOrderItemDTO.getCost());
// 判断优惠券是否存在
TabBillingCouponCard couponCard = billingCouponCardService.getNotExpiredCouponCardById(billingOrderDTO.getCouponCardId());
if (couponCard == null) {
return ServiceResponse.failure(ErrorCode.NOTEXISTS.getCode(), "优惠券不存在或已过期");
}
Double content = couponCard.getContent();
double totalFeePaid = billingOrderDTO.getTotalFee() - content;
billingOrderDTO.setTotalFeePaid(totalFeePaid > 0 ? totalFeePaid : 0);
Integer id = billingOrderService.saveOrderBuyNow(billingOrderDTO);
return ServiceResponse.success(id);
}
@Override
public ServiceResponse<Integer> updateOrderConfirmPay(BillingOrderDTO billingOrderDTO) {
return null;
}
@Override
public ServiceResponse<Page<BillingOrderDTO>> listOrder(Date startTime, Date endTime, Integer orderStatus, String search) {
return null;
}
@Override
public ServiceResponse<BillingOrderDTO> getOrderById(Integer orderId) {
return null;
}
@Override
public ServiceResponse<BillingOrderDTO> getOrderBySerialNumber(String serialNumber) {
return null;
}
}
......@@ -43,4 +43,18 @@ public class DictApiServiceImpl implements DictApiService {
return ServiceResponse.failure(ErrorCode.NOTEXISTS.getCode(), ErrorCode.NOTEXISTS.getMsg());
}
}
@Override
public ServiceResponse<DictDTO> getDictOriginal(String categoryCode, String code) {
BizdictDTO bizdictDTO = bizdictService.getByCode(categoryCode, code);
if (bizdictDTO != null) {
DictDTO dictDTO = new DictDTO();
dictDTO.setKey(bizdictDTO.getName());
dictDTO.setValue(bizdictDTO.getCode());
dictDTO.setContent(bizdictDTO.getValueContent());
return ServiceResponse.success(dictDTO);
} else {
return ServiceResponse.failure(ErrorCode.NOTEXISTS.getCode(), ErrorCode.NOTEXISTS.getMsg());
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.enterprise.dao.mapper.TabBillingAccountBalanceRecordMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabBillingAccountBalanceRecord">
<id column="account_balance_record_id" jdbcType="INTEGER" property="accountBalanceRecordId" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="pay_type" jdbcType="INTEGER" property="payType" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="product_type" jdbcType="INTEGER" property="productType" />
<result column="bill_type" jdbcType="INTEGER" property="billType" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="order_id" jdbcType="INTEGER" property="orderId" />
<result column="deduction_time" jdbcType="TIMESTAMP" property="deductionTime" />
</resultMap>
<sql id="Base_Column_List">
account_balance_record_id, product_name, pay_type, status, product_type, bill_type,
create_time, order_id, deduction_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_billing_account_balance_record
where account_balance_record_id = #{accountBalanceRecordId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_billing_account_balance_record
where account_balance_record_id = #{accountBalanceRecordId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabBillingAccountBalanceRecord">
insert into tab_billing_account_balance_record (account_balance_record_id, product_name,
pay_type, status, product_type,
bill_type, create_time, order_id,
deduction_time)
values (#{accountBalanceRecordId,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR},
#{payType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{productType,jdbcType=INTEGER},
#{billType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{orderId,jdbcType=INTEGER},
#{deductionTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabBillingAccountBalanceRecord">
insert into tab_billing_account_balance_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="accountBalanceRecordId != null">
account_balance_record_id,
</if>
<if test="productName != null">
product_name,
</if>
<if test="payType != null">
pay_type,
</if>
<if test="status != null">
status,
</if>
<if test="productType != null">
product_type,
</if>
<if test="billType != null">
bill_type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="orderId != null">
order_id,
</if>
<if test="deductionTime != null">
deduction_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="accountBalanceRecordId != null">
#{accountBalanceRecordId,jdbcType=INTEGER},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="payType != null">
#{payType,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="productType != null">
#{productType,jdbcType=INTEGER},
</if>
<if test="billType != null">
#{billType,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="orderId != null">
#{orderId,jdbcType=INTEGER},
</if>
<if test="deductionTime != null">
#{deductionTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabBillingAccountBalanceRecord">
update tab_billing_account_balance_record
<set>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="payType != null">
pay_type = #{payType,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="productType != null">
product_type = #{productType,jdbcType=INTEGER},
</if>
<if test="billType != null">
bill_type = #{billType,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="orderId != null">
order_id = #{orderId,jdbcType=INTEGER},
</if>
<if test="deductionTime != null">
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
</if>
</set>
where account_balance_record_id = #{accountBalanceRecordId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabBillingAccountBalanceRecord">
update tab_billing_account_balance_record
set product_name = #{productName,jdbcType=VARCHAR},
pay_type = #{payType,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
product_type = #{productType,jdbcType=INTEGER},
bill_type = #{billType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
order_id = #{orderId,jdbcType=INTEGER},
deduction_time = #{deductionTime,jdbcType=TIMESTAMP}
where account_balance_record_id = #{accountBalanceRecordId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.enterprise.dao.mapper.TabBillingAccountMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabBillingAccount">
<id column="account_id" jdbcType="INTEGER" property="accountId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="account_balance" jdbcType="DOUBLE" property="accountBalance" />
<result column="credit_line" jdbcType="INTEGER" property="creditLine" />
<result column="auto_recharge" jdbcType="INTEGER" property="autoRecharge" />
</resultMap>
<sql id="Base_Column_List">
account_id, enterprise_id, account_balance, credit_line, auto_recharge
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_billing_account
where account_id = #{accountId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_billing_account
where account_id = #{accountId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabBillingAccount">
insert into tab_billing_account (account_id, enterprise_id, account_balance,
credit_line, auto_recharge)
values (#{accountId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{accountBalance,jdbcType=DOUBLE},
#{creditLine,jdbcType=INTEGER}, #{autoRecharge,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabBillingAccount">
insert into tab_billing_account
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="accountId != null">
account_id,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="accountBalance != null">
account_balance,
</if>
<if test="creditLine != null">
credit_line,
</if>
<if test="autoRecharge != null">
auto_recharge,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="accountId != null">
#{accountId,jdbcType=INTEGER},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER},
</if>
<if test="accountBalance != null">
#{accountBalance,jdbcType=DOUBLE},
</if>
<if test="creditLine != null">
#{creditLine,jdbcType=INTEGER},
</if>
<if test="autoRecharge != null">
#{autoRecharge,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabBillingAccount">
update tab_billing_account
<set>
<if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if test="accountBalance != null">
account_balance = #{accountBalance,jdbcType=DOUBLE},
</if>
<if test="creditLine != null">
credit_line = #{creditLine,jdbcType=INTEGER},
</if>
<if test="autoRecharge != null">
auto_recharge = #{autoRecharge,jdbcType=INTEGER},
</if>
</set>
where account_id = #{accountId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabBillingAccount">
update tab_billing_account
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
account_balance = #{accountBalance,jdbcType=DOUBLE},
credit_line = #{creditLine,jdbcType=INTEGER},
auto_recharge = #{autoRecharge,jdbcType=INTEGER}
where account_id = #{accountId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.enterprise.dao.mapper.TabBillingAuditResultMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabBillingAuditResult">
<id column="audit_result_id" jdbcType="INTEGER" property="auditResultId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
<result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="audit_time" jdbcType="TIMESTAMP" property="auditTime" />
<result column="audit_user_id" jdbcType="INTEGER" property="auditUserId" />
<result column="audit_user_name" jdbcType="VARCHAR" property="auditUserName" />
<result column="audit_user_phone" jdbcType="VARCHAR" property="auditUserPhone" />
<result column="fee_plan" jdbcType="DOUBLE" property="feePlan" />
<result column="fee_paid" jdbcType="DOUBLE" property="feePaid" />
<result column="refuse_reason" jdbcType="VARCHAR" property="refuseReason" />
</resultMap>
<sql id="Base_Column_List">
audit_result_id, enterprise_id, serial_number, audit_status, status, create_time,
update_time, audit_time, audit_user_id, audit_user_name, audit_user_phone, fee_plan,
fee_paid, refuse_reason
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_billing_audit_result
where audit_result_id = #{auditResultId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_billing_audit_result
where audit_result_id = #{auditResultId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabBillingAuditResult">
insert into tab_billing_audit_result (audit_result_id, enterprise_id, serial_number,
audit_status, status, create_time,
update_time, audit_time, audit_user_id,
audit_user_name, audit_user_phone, fee_plan,
fee_paid, refuse_reason)
values (#{auditResultId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
#{auditStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{auditTime,jdbcType=TIMESTAMP}, #{auditUserId,jdbcType=INTEGER},
#{auditUserName,jdbcType=VARCHAR}, #{auditUserPhone,jdbcType=VARCHAR}, #{feePlan,jdbcType=DOUBLE},
#{feePaid,jdbcType=DOUBLE}, #{refuseReason,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabBillingAuditResult">
insert into tab_billing_audit_result
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="auditResultId != null">
audit_result_id,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="serialNumber != null">
serial_number,
</if>
<if test="auditStatus != null">
audit_status,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="auditTime != null">
audit_time,
</if>
<if test="auditUserId != null">
audit_user_id,
</if>
<if test="auditUserName != null">
audit_user_name,
</if>
<if test="auditUserPhone != null">
audit_user_phone,
</if>
<if test="feePlan != null">
fee_plan,
</if>
<if test="feePaid != null">
fee_paid,
</if>
<if test="refuseReason != null">
refuse_reason,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="auditResultId != null">
#{auditResultId,jdbcType=INTEGER},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER},
</if>
<if test="serialNumber != null">
#{serialNumber,jdbcType=VARCHAR},
</if>
<if test="auditStatus != null">
#{auditStatus,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="auditTime != null">
#{auditTime,jdbcType=TIMESTAMP},
</if>
<if test="auditUserId != null">
#{auditUserId,jdbcType=INTEGER},
</if>
<if test="auditUserName != null">
#{auditUserName,jdbcType=VARCHAR},
</if>
<if test="auditUserPhone != null">
#{auditUserPhone,jdbcType=VARCHAR},
</if>
<if test="feePlan != null">
#{feePlan,jdbcType=DOUBLE},
</if>
<if test="feePaid != null">
#{feePaid,jdbcType=DOUBLE},
</if>
<if test="refuseReason != null">
#{refuseReason,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabBillingAuditResult">
update tab_billing_audit_result
<set>
<if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if test="serialNumber != null">
serial_number = #{serialNumber,jdbcType=VARCHAR},
</if>
<if test="auditStatus != null">
audit_status = #{auditStatus,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="auditTime != null">
audit_time = #{auditTime,jdbcType=TIMESTAMP},
</if>
<if test="auditUserId != null">
audit_user_id = #{auditUserId,jdbcType=INTEGER},
</if>
<if test="auditUserName != null">
audit_user_name = #{auditUserName,jdbcType=VARCHAR},
</if>
<if test="auditUserPhone != null">
audit_user_phone = #{auditUserPhone,jdbcType=VARCHAR},
</if>
<if test="feePlan != null">
fee_plan = #{feePlan,jdbcType=DOUBLE},
</if>
<if test="feePaid != null">
fee_paid = #{feePaid,jdbcType=DOUBLE},
</if>
<if test="refuseReason != null">
refuse_reason = #{refuseReason,jdbcType=VARCHAR},
</if>
</set>
where audit_result_id = #{auditResultId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabBillingAuditResult">
update tab_billing_audit_result
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
serial_number = #{serialNumber,jdbcType=VARCHAR},
audit_status = #{auditStatus,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
audit_time = #{auditTime,jdbcType=TIMESTAMP},
audit_user_id = #{auditUserId,jdbcType=INTEGER},
audit_user_name = #{auditUserName,jdbcType=VARCHAR},
audit_user_phone = #{auditUserPhone,jdbcType=VARCHAR},
fee_plan = #{feePlan,jdbcType=DOUBLE},
fee_paid = #{feePaid,jdbcType=DOUBLE},
refuse_reason = #{refuseReason,jdbcType=VARCHAR}
where audit_result_id = #{auditResultId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.enterprise.dao.mapper.TabBillingCouponCardMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabBillingCouponCard">
<id column="coupon_card_id" jdbcType="INTEGER" property="couponCardId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="coupon_card_name" jdbcType="VARCHAR" property="couponCardName" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="effective_start_date" jdbcType="TIMESTAMP" property="effectiveStartDate" />
<result column="effective_end_date" jdbcType="TIMESTAMP" property="effectiveEndDate" />
<result column="content" jdbcType="DOUBLE" property="content" />
<result column="applicable_product_code" jdbcType="INTEGER" property="applicableProductCode" />
<result column="applicable_product_name" jdbcType="VARCHAR" property="applicableProductName" />
</resultMap>
<sql id="Base_Column_List">
coupon_card_id, enterprise_id, status, create_time, update_time, coupon_card_name,
type, effective_start_date, effective_end_date, content, applicable_product_code,
applicable_product_name
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_billing_coupon_card
where coupon_card_id = #{couponCardId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_billing_coupon_card
where coupon_card_id = #{couponCardId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabBillingCouponCard">
insert into tab_billing_coupon_card (coupon_card_id, enterprise_id, status,
create_time, update_time, coupon_card_name,
type, effective_start_date, effective_end_date,
content, applicable_product_code, applicable_product_name
)
values (#{couponCardId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{couponCardName,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER}, #{effectiveStartDate,jdbcType=TIMESTAMP}, #{effectiveEndDate,jdbcType=TIMESTAMP},
#{content,jdbcType=DOUBLE}, #{applicableProductCode,jdbcType=INTEGER}, #{applicableProductName,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabBillingCouponCard">
insert into tab_billing_coupon_card
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="couponCardId != null">
coupon_card_id,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="couponCardName != null">
coupon_card_name,
</if>
<if test="type != null">
type,
</if>
<if test="effectiveStartDate != null">
effective_start_date,
</if>
<if test="effectiveEndDate != null">
effective_end_date,
</if>
<if test="content != null">
content,
</if>
<if test="applicableProductCode != null">
applicable_product_code,
</if>
<if test="applicableProductName != null">
applicable_product_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="couponCardId != null">
#{couponCardId,jdbcType=INTEGER},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="couponCardName != null">
#{couponCardName,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="effectiveStartDate != null">
#{effectiveStartDate,jdbcType=TIMESTAMP},
</if>
<if test="effectiveEndDate != null">
#{effectiveEndDate,jdbcType=TIMESTAMP},
</if>
<if test="content != null">
#{content,jdbcType=DOUBLE},
</if>
<if test="applicableProductCode != null">
#{applicableProductCode,jdbcType=INTEGER},
</if>
<if test="applicableProductName != null">
#{applicableProductName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabBillingCouponCard">
update tab_billing_coupon_card
<set>
<if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="couponCardName != null">
coupon_card_name = #{couponCardName,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="effectiveStartDate != null">
effective_start_date = #{effectiveStartDate,jdbcType=TIMESTAMP},
</if>
<if test="effectiveEndDate != null">
effective_end_date = #{effectiveEndDate,jdbcType=TIMESTAMP},
</if>
<if test="content != null">
content = #{content,jdbcType=DOUBLE},
</if>
<if test="applicableProductCode != null">
applicable_product_code = #{applicableProductCode,jdbcType=INTEGER},
</if>
<if test="applicableProductName != null">
applicable_product_name = #{applicableProductName,jdbcType=VARCHAR},
</if>
</set>
where coupon_card_id = #{couponCardId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabBillingCouponCard">
update tab_billing_coupon_card
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
coupon_card_name = #{couponCardName,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
effective_start_date = #{effectiveStartDate,jdbcType=TIMESTAMP},
effective_end_date = #{effectiveEndDate,jdbcType=TIMESTAMP},
content = #{content,jdbcType=DOUBLE},
applicable_product_code = #{applicableProductCode,jdbcType=INTEGER},
applicable_product_name = #{applicableProductName,jdbcType=VARCHAR}
where coupon_card_id = #{couponCardId,jdbcType=INTEGER}
</update>
<select id="listBillingCouponCard" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_billing_coupon_card
where status = 1
<if test="enterpriseId != null ">
and enterprise_id = #{enterpriseId}
</if>
<if test="startTime != null ">
and effective_end_date gt; #{startTime}
</if>
<if test="endTime != null ">
and effective_end_date &lt; #{endTime}
</if>
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.enterprise.dao.mapper.TabBillingDoubleCallingRecordMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabBillingDoubleCallingRecord">
<id column="double_calling_record_id" jdbcType="INTEGER" property="doubleCallingRecordId" />
<result column="caller_name" jdbcType="VARCHAR" property="callerName" />
<result column="caller_phone" jdbcType="VARCHAR" property="callerPhone" />
<result column="caller_id" jdbcType="INTEGER" property="callerId" />
<result column="fee" jdbcType="DOUBLE" property="fee" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="deduction_time" jdbcType="TIMESTAMP" property="deductionTime" />
<result column="called_name" jdbcType="VARCHAR" property="calledName" />
<result column="called_phone" jdbcType="VARCHAR" property="calledPhone" />
<result column="called_id" jdbcType="INTEGER" property="calledId" />
<result column="app_id" jdbcType="INTEGER" property="appId" />
<result column="app_name" jdbcType="VARCHAR" property="appName" />
<result column="voice_time" jdbcType="VARCHAR" property="voiceTime" />
</resultMap>
<sql id="Base_Column_List">
double_calling_record_id, caller_name, caller_phone, caller_id, fee, status, create_time,
deduction_time, called_name, called_phone, called_id, app_id, app_name, voice_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_billing_double_calling_record
where double_calling_record_id = #{doubleCallingRecordId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_billing_double_calling_record
where double_calling_record_id = #{doubleCallingRecordId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabBillingDoubleCallingRecord">
insert into tab_billing_double_calling_record (double_calling_record_id, caller_name,
caller_phone, caller_id, fee,
status, create_time, deduction_time,
called_name, called_phone, called_id,
app_id, app_name, voice_time
)
values (#{doubleCallingRecordId,jdbcType=INTEGER}, #{callerName,jdbcType=VARCHAR},
#{callerPhone,jdbcType=VARCHAR}, #{callerId,jdbcType=INTEGER}, #{fee,jdbcType=DOUBLE},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{deductionTime,jdbcType=TIMESTAMP},
#{calledName,jdbcType=VARCHAR}, #{calledPhone,jdbcType=VARCHAR}, #{calledId,jdbcType=INTEGER},
#{appId,jdbcType=INTEGER}, #{appName,jdbcType=VARCHAR}, #{voiceTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabBillingDoubleCallingRecord">
insert into tab_billing_double_calling_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="doubleCallingRecordId != null">
double_calling_record_id,
</if>
<if test="callerName != null">
caller_name,
</if>
<if test="callerPhone != null">
caller_phone,
</if>
<if test="callerId != null">
caller_id,
</if>
<if test="fee != null">
fee,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="deductionTime != null">
deduction_time,
</if>
<if test="calledName != null">
called_name,
</if>
<if test="calledPhone != null">
called_phone,
</if>
<if test="calledId != null">
called_id,
</if>
<if test="appId != null">
app_id,
</if>
<if test="appName != null">
app_name,
</if>
<if test="voiceTime != null">
voice_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="doubleCallingRecordId != null">
#{doubleCallingRecordId,jdbcType=INTEGER},
</if>
<if test="callerName != null">
#{callerName,jdbcType=VARCHAR},
</if>
<if test="callerPhone != null">
#{callerPhone,jdbcType=VARCHAR},
</if>
<if test="callerId != null">
#{callerId,jdbcType=INTEGER},
</if>
<if test="fee != null">
#{fee,jdbcType=DOUBLE},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="deductionTime != null">
#{deductionTime,jdbcType=TIMESTAMP},
</if>
<if test="calledName != null">
#{calledName,jdbcType=VARCHAR},
</if>
<if test="calledPhone != null">
#{calledPhone,jdbcType=VARCHAR},
</if>
<if test="calledId != null">
#{calledId,jdbcType=INTEGER},
</if>
<if test="appId != null">
#{appId,jdbcType=INTEGER},
</if>
<if test="appName != null">
#{appName,jdbcType=VARCHAR},
</if>
<if test="voiceTime != null">
#{voiceTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabBillingDoubleCallingRecord">
update tab_billing_double_calling_record
<set>
<if test="callerName != null">
caller_name = #{callerName,jdbcType=VARCHAR},
</if>
<if test="callerPhone != null">
caller_phone = #{callerPhone,jdbcType=VARCHAR},
</if>
<if test="callerId != null">
caller_id = #{callerId,jdbcType=INTEGER},
</if>
<if test="fee != null">
fee = #{fee,jdbcType=DOUBLE},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="deductionTime != null">
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
</if>
<if test="calledName != null">
called_name = #{calledName,jdbcType=VARCHAR},
</if>
<if test="calledPhone != null">
called_phone = #{calledPhone,jdbcType=VARCHAR},
</if>
<if test="calledId != null">
called_id = #{calledId,jdbcType=INTEGER},
</if>
<if test="appId != null">
app_id = #{appId,jdbcType=INTEGER},
</if>
<if test="appName != null">
app_name = #{appName,jdbcType=VARCHAR},
</if>
<if test="voiceTime != null">
voice_time = #{voiceTime,jdbcType=VARCHAR},
</if>
</set>
where double_calling_record_id = #{doubleCallingRecordId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabBillingDoubleCallingRecord">
update tab_billing_double_calling_record
set caller_name = #{callerName,jdbcType=VARCHAR},
caller_phone = #{callerPhone,jdbcType=VARCHAR},
caller_id = #{callerId,jdbcType=INTEGER},
fee = #{fee,jdbcType=DOUBLE},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
called_name = #{calledName,jdbcType=VARCHAR},
called_phone = #{calledPhone,jdbcType=VARCHAR},
called_id = #{calledId,jdbcType=INTEGER},
app_id = #{appId,jdbcType=INTEGER},
app_name = #{appName,jdbcType=VARCHAR},
voice_time = #{voiceTime,jdbcType=VARCHAR}
where double_calling_record_id = #{doubleCallingRecordId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.enterprise.dao.mapper.TabBillingEnterpriseSmsPackageMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabBillingEnterpriseSmsPackage">
<id column="enterprise_sms_package_id" jdbcType="INTEGER" property="enterpriseSmsPackageId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="sms_package_name" jdbcType="VARCHAR" property="smsPackageName" />
<result column="sms_package_code" jdbcType="VARCHAR" property="smsPackageCode" />
<result column="effective_date" jdbcType="DATE" property="effectiveDate" />
<result column="billing_order_id" jdbcType="INTEGER" property="billingOrderId" />
</resultMap>
<sql id="Base_Column_List">
enterprise_sms_package_id, enterprise_id, status, create_time, update_time, sms_package_name,
sms_package_code, effective_date, billing_order_id
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_billing_enterprise_sms_package
where enterprise_sms_package_id = #{enterpriseSmsPackageId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_billing_enterprise_sms_package
where enterprise_sms_package_id = #{enterpriseSmsPackageId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabBillingEnterpriseSmsPackage">
insert into tab_billing_enterprise_sms_package (enterprise_sms_package_id, enterprise_id,
status, create_time, update_time,
sms_package_name, sms_package_code, effective_date,
billing_order_id)
values (#{enterpriseSmsPackageId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{smsPackageName,jdbcType=VARCHAR}, #{smsPackageCode,jdbcType=VARCHAR}, #{effectiveDate,jdbcType=DATE},
#{billingOrderId,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabBillingEnterpriseSmsPackage">
insert into tab_billing_enterprise_sms_package
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseSmsPackageId != null">
enterprise_sms_package_id,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="smsPackageName != null">
sms_package_name,
</if>
<if test="smsPackageCode != null">
sms_package_code,
</if>
<if test="effectiveDate != null">
effective_date,
</if>
<if test="billingOrderId != null">
billing_order_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="enterpriseSmsPackageId != null">
#{enterpriseSmsPackageId,jdbcType=INTEGER},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="smsPackageName != null">
#{smsPackageName,jdbcType=VARCHAR},
</if>
<if test="smsPackageCode != null">
#{smsPackageCode,jdbcType=VARCHAR},
</if>
<if test="effectiveDate != null">
#{effectiveDate,jdbcType=DATE},
</if>
<if test="billingOrderId != null">
#{billingOrderId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabBillingEnterpriseSmsPackage">
update tab_billing_enterprise_sms_package
<set>
<if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="smsPackageName != null">
sms_package_name = #{smsPackageName,jdbcType=VARCHAR},
</if>
<if test="smsPackageCode != null">
sms_package_code = #{smsPackageCode,jdbcType=VARCHAR},
</if>
<if test="effectiveDate != null">
effective_date = #{effectiveDate,jdbcType=DATE},
</if>
<if test="billingOrderId != null">
billing_order_id = #{billingOrderId,jdbcType=INTEGER},
</if>
</set>
where enterprise_sms_package_id = #{enterpriseSmsPackageId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabBillingEnterpriseSmsPackage">
update tab_billing_enterprise_sms_package
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
sms_package_name = #{smsPackageName,jdbcType=VARCHAR},
sms_package_code = #{smsPackageCode,jdbcType=VARCHAR},
effective_date = #{effectiveDate,jdbcType=DATE},
billing_order_id = #{billingOrderId,jdbcType=INTEGER}
where enterprise_sms_package_id = #{enterpriseSmsPackageId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.enterprise.dao.mapper.TabBillingOrderMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabBillingOrder">
<id column="order_id" jdbcType="INTEGER" property="orderId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
<result column="order_status" jdbcType="INTEGER" property="orderStatus" />
<result column="order_content" jdbcType="VARCHAR" property="orderContent" />
<result column="pay_type" jdbcType="INTEGER" property="payType" />
<result column="total_fee" jdbcType="DOUBLE" property="totalFee" />
<result column="total_fee_paid" jdbcType="DOUBLE" property="totalFeePaid" />
<result column="pay_info_id" jdbcType="INTEGER" property="payInfoId" />
<result column="coupon_card_id" jdbcType="INTEGER" property="couponCardId" />
<result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
<result column="audit_result_id" jdbcType="INTEGER" property="auditResultId" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="item_json" jdbcType="VARCHAR" property="itemJson" />
</resultMap>
<sql id="Base_Column_List">
order_id, enterprise_id, serial_number, order_status, order_content, pay_type, total_fee,
total_fee_paid, pay_info_id, coupon_card_id, audit_status, audit_result_id, status,
create_time, update_time, item_json
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_billing_order
where order_id = #{orderId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_billing_order
where order_id = #{orderId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabBillingOrder">
insert into tab_billing_order (order_id, enterprise_id, serial_number,
order_status, order_content, pay_type,
total_fee, total_fee_paid, pay_info_id,
coupon_card_id, audit_status, audit_result_id,
status, create_time, update_time,
item_json)
values (#{orderId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
#{orderStatus,jdbcType=INTEGER}, #{orderContent,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER},
#{totalFee,jdbcType=DOUBLE}, #{totalFeePaid,jdbcType=DOUBLE}, #{payInfoId,jdbcType=INTEGER},
#{couponCardId,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{auditResultId,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{itemJson,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabBillingOrder">
<selectKey keyProperty="orderId" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into tab_billing_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null">
order_id,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="serialNumber != null">
serial_number,
</if>
<if test="orderStatus != null">
order_status,
</if>
<if test="orderContent != null">
order_content,
</if>
<if test="payType != null">
pay_type,
</if>
<if test="totalFee != null">
total_fee,
</if>
<if test="totalFeePaid != null">
total_fee_paid,
</if>
<if test="payInfoId != null">
pay_info_id,
</if>
<if test="couponCardId != null">
coupon_card_id,
</if>
<if test="auditStatus != null">
audit_status,
</if>
<if test="auditResultId != null">
audit_result_id,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="itemJson != null">
item_json,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">
#{orderId,jdbcType=INTEGER},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER},
</if>
<if test="serialNumber != null">
#{serialNumber,jdbcType=VARCHAR},
</if>
<if test="orderStatus != null">
#{orderStatus,jdbcType=INTEGER},
</if>
<if test="orderContent != null">
#{orderContent,jdbcType=VARCHAR},
</if>
<if test="payType != null">
#{payType,jdbcType=INTEGER},
</if>
<if test="totalFee != null">
#{totalFee,jdbcType=DOUBLE},
</if>
<if test="totalFeePaid != null">
#{totalFeePaid,jdbcType=DOUBLE},
</if>
<if test="payInfoId != null">
#{payInfoId,jdbcType=INTEGER},
</if>
<if test="couponCardId != null">
#{couponCardId,jdbcType=INTEGER},
</if>
<if test="auditStatus != null">
#{auditStatus,jdbcType=INTEGER},
</if>
<if test="auditResultId != null">
#{auditResultId,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="itemJson != null">
#{itemJson,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabBillingOrder">
update tab_billing_order
<set>
<if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if test="serialNumber != null">
serial_number = #{serialNumber,jdbcType=VARCHAR},
</if>
<if test="orderStatus != null">
order_status = #{orderStatus,jdbcType=INTEGER},
</if>
<if test="orderContent != null">
order_content = #{orderContent,jdbcType=VARCHAR},
</if>
<if test="payType != null">
pay_type = #{payType,jdbcType=INTEGER},
</if>
<if test="totalFee != null">
total_fee = #{totalFee,jdbcType=DOUBLE},
</if>
<if test="totalFeePaid != null">
total_fee_paid = #{totalFeePaid,jdbcType=DOUBLE},
</if>
<if test="payInfoId != null">
pay_info_id = #{payInfoId,jdbcType=INTEGER},
</if>
<if test="couponCardId != null">
coupon_card_id = #{couponCardId,jdbcType=INTEGER},
</if>
<if test="auditStatus != null">
audit_status = #{auditStatus,jdbcType=INTEGER},
</if>
<if test="auditResultId != null">
audit_result_id = #{auditResultId,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="itemJson != null">
item_json = #{itemJson,jdbcType=VARCHAR},
</if>
</set>
where order_id = #{orderId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabBillingOrder">
update tab_billing_order
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
serial_number = #{serialNumber,jdbcType=VARCHAR},
order_status = #{orderStatus,jdbcType=INTEGER},
order_content = #{orderContent,jdbcType=VARCHAR},
pay_type = #{payType,jdbcType=INTEGER},
total_fee = #{totalFee,jdbcType=DOUBLE},
total_fee_paid = #{totalFeePaid,jdbcType=DOUBLE},
pay_info_id = #{payInfoId,jdbcType=INTEGER},
coupon_card_id = #{couponCardId,jdbcType=INTEGER},
audit_status = #{auditStatus,jdbcType=INTEGER},
audit_result_id = #{auditResultId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
item_json = #{itemJson,jdbcType=VARCHAR}
where order_id = #{orderId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
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