Commit ff2dc2dd by 墨竹

feat:企微收费

parent 4a424cf8
package com.gic.haoban.manage.api.dto.fee;
import java.io.Serializable;
import java.util.Date;
/**
* 企业微信收费(TabHaobanQywxFee)实体类
*
* @author mozhu
* @since 2022-08-03 16:12:30
*/
public class HaobanQywxFeeDTO implements Serializable {
private static final long serialVersionUID = -65108900619188163L;
private Long qwFeeId;
private String corpName;
private String corpId;
private String wxEnterpriseId;
/**
* 拦截时间
*/
private Date interceptTime;
/**
* 拦截用户总数
*/
private Integer interceptUserNum;
/**
* 剩余可用许可
*/
private Integer permissionUserNum;
/**
* 购买许可总数
*/
private Integer buyPermissionUserNum;
/**
* 拦截:1:已拦截;0:将被拦截
*/
private Integer interceptFlag;
public Long getQwFeeId() {
return qwFeeId;
}
public void setQwFeeId(Long qwFeeId) {
this.qwFeeId = qwFeeId;
}
public String getCorpName() {
return corpName;
}
public void setCorpName(String corpName) {
this.corpName = corpName;
}
public String getCorpId() {
return corpId;
}
public void setCorpId(String corpId) {
this.corpId = corpId;
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
public Date getInterceptTime() {
return interceptTime;
}
public void setInterceptTime(Date interceptTime) {
this.interceptTime = interceptTime;
}
public Integer getInterceptUserNum() {
return interceptUserNum;
}
public void setInterceptUserNum(Integer interceptUserNum) {
this.interceptUserNum = interceptUserNum;
}
public Integer getPermissionUserNum() {
return permissionUserNum;
}
public void setPermissionUserNum(Integer permissionUserNum) {
this.permissionUserNum = permissionUserNum;
}
public Integer getBuyPermissionUserNum() {
return buyPermissionUserNum;
}
public void setBuyPermissionUserNum(Integer buyPermissionUserNum) {
this.buyPermissionUserNum = buyPermissionUserNum;
}
public Integer getInterceptFlag() {
return interceptFlag;
}
public void setInterceptFlag(Integer interceptFlag) {
this.interceptFlag = interceptFlag;
}
}
package com.gic.haoban.manage.api.service.fee;
/**
* 企业微信收费(TabHaobanQywxFee)表服务接口
*
* @author mozhu
* @since 2022-08-03 16:12:30
*/
public interface HaobanQywxFeeApiService {
}
package com.gic.haoban.manage.service.dao.mapper.fee;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeAccountStaff;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* 企业微信收费订单成员激活详情(TabHaobanQywxFeeAccountStaff)表数据库访问层
*
* @author mozhu
* @since 2022-08-03 16:12:31
*/
public interface TabHaobanQywxFeeAccountStaffMapper {
/**
* 通过ID查询单条数据
*
* @param feeAccountId 主键
* @return 实例对象
*/
TabHaobanQywxFeeAccountStaff queryById(Long feeAccountId);
/**
* 查询指定行数据
*
* @param tabHaobanQywxFeeAccountStaff 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TabHaobanQywxFeeAccountStaff> queryAllByLimit(TabHaobanQywxFeeAccountStaff tabHaobanQywxFeeAccountStaff, @Param("pageable") Pageable pageable);
/**
* 新增数据
*
* @param tabHaobanQywxFeeAccountStaff 实例对象
* @return 影响行数
*/
int insert(TabHaobanQywxFeeAccountStaff tabHaobanQywxFeeAccountStaff);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanQywxFeeAccountStaff> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanQywxFeeAccountStaff> entities);
/**
* 修改数据
*
* @param tabHaobanQywxFeeAccountStaff 实例对象
* @return 影响行数
*/
int update(TabHaobanQywxFeeAccountStaff tabHaobanQywxFeeAccountStaff);
/**
* 通过主键删除数据
*
* @param feeAccountId 主键
* @return 影响行数
*/
int deleteById(Long feeAccountId);
}
package com.gic.haoban.manage.service.dao.mapper.fee;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFee;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* 企业微信收费(TabHaobanQywxFee)表数据库访问层
*
* @author mozhu
* @since 2022-08-03 16:12:29
*/
public interface TabHaobanQywxFeeMapper {
/**
* 通过ID查询单条数据
*
* @param qwFeeId 主键
* @return 实例对象
*/
TabHaobanQywxFee queryById(Long qwFeeId);
/**
* 查询指定行数据
*
* @param tabHaobanQywxFee 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TabHaobanQywxFee> queryAllByLimit(TabHaobanQywxFee tabHaobanQywxFee, @Param("pageable") Pageable pageable);
/**
* 新增数据
*
* @param tabHaobanQywxFee 实例对象
* @return 影响行数
*/
int insert(TabHaobanQywxFee tabHaobanQywxFee);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanQywxFee> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanQywxFee> entities);
/**
* 修改数据
*
* @param tabHaobanQywxFee 实例对象
* @return 影响行数
*/
int update(TabHaobanQywxFee tabHaobanQywxFee);
/**
* 通过主键删除数据
*
* @param qwFeeId 主键
* @return 影响行数
*/
int deleteById(Long qwFeeId);
}
package com.gic.haoban.manage.service.dao.mapper.fee;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrderAccount;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* 企业微信收费订单账号(激活码)(TabHaobanQywxFeeOrderAccount)表数据库访问层
*
* @author mozhu
* @since 2022-08-03 16:12:33
*/
public interface TabHaobanQywxFeeOrderAccountMapper {
/**
* 通过ID查询单条数据
*
* @param feeAccountId 主键
* @return 实例对象
*/
TabHaobanQywxFeeOrderAccount queryById(Long feeAccountId);
/**
* 查询指定行数据
*
* @param tabHaobanQywxFeeOrderAccount 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TabHaobanQywxFeeOrderAccount> queryAllByLimit(TabHaobanQywxFeeOrderAccount tabHaobanQywxFeeOrderAccount, @Param("pageable") Pageable pageable);
/**
* 新增数据
*
* @param tabHaobanQywxFeeOrderAccount 实例对象
* @return 影响行数
*/
int insert(TabHaobanQywxFeeOrderAccount tabHaobanQywxFeeOrderAccount);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanQywxFeeOrderAccount> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanQywxFeeOrderAccount> entities);
/**
* 修改数据
*
* @param tabHaobanQywxFeeOrderAccount 实例对象
* @return 影响行数
*/
int update(TabHaobanQywxFeeOrderAccount tabHaobanQywxFeeOrderAccount);
/**
* 通过主键删除数据
*
* @param feeAccountId 主键
* @return 影响行数
*/
int deleteById(Long feeAccountId);
}
package com.gic.haoban.manage.service.dao.mapper.fee;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* 企业微信收费订单(TabHaobanQywxFeeOrder)表数据库访问层
*
* @author mozhu
* @since 2022-08-03 16:12:32
*/
public interface TabHaobanQywxFeeOrderMapper {
/**
* 通过ID查询单条数据
*
* @param feeOrderId 主键
* @return 实例对象
*/
TabHaobanQywxFeeOrder queryById(Long feeOrderId);
/**
* 查询指定行数据
*
* @param tabHaobanQywxFeeOrder 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TabHaobanQywxFeeOrder> queryAllByLimit(TabHaobanQywxFeeOrder tabHaobanQywxFeeOrder, @Param("pageable") Pageable pageable);
/**
* 新增数据
*
* @param tabHaobanQywxFeeOrder 实例对象
* @return 影响行数
*/
int insert(TabHaobanQywxFeeOrder tabHaobanQywxFeeOrder);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanQywxFeeOrder> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanQywxFeeOrder> entities);
/**
* 修改数据
*
* @param tabHaobanQywxFeeOrder 实例对象
* @return 影响行数
*/
int update(TabHaobanQywxFeeOrder tabHaobanQywxFeeOrder);
/**
* 通过主键删除数据
*
* @param feeOrderId 主键
* @return 影响行数
*/
int deleteById(Long feeOrderId);
}
package com.gic.haoban.manage.service.entity.fee;
import java.io.Serializable;
import java.util.Date;
/**
* 企业微信收费(TabHaobanQywxFee)实体类
*
* @author mozhu
* @since 2022-08-03 16:12:30
*/
public class TabHaobanQywxFee implements Serializable {
private static final long serialVersionUID = -65108900619188163L;
private Long qwFeeId;
private String corpName;
private String corpId;
private String wxEnterpriseId;
/**
* 拦截时间
*/
private Date interceptTime;
/**
* 拦截用户总数
*/
private Integer interceptUserNum;
/**
* 剩余可用许可
*/
private Integer permissionUserNum;
/**
* 购买许可总数
*/
private Integer buyPermissionUserNum;
/**
* 拦截:1:已拦截;0:将被拦截
*/
private Integer interceptFlag;
public Long getQwFeeId() {
return qwFeeId;
}
public void setQwFeeId(Long qwFeeId) {
this.qwFeeId = qwFeeId;
}
public String getCorpName() {
return corpName;
}
public void setCorpName(String corpName) {
this.corpName = corpName;
}
public String getCorpId() {
return corpId;
}
public void setCorpId(String corpId) {
this.corpId = corpId;
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
public Date getInterceptTime() {
return interceptTime;
}
public void setInterceptTime(Date interceptTime) {
this.interceptTime = interceptTime;
}
public Integer getInterceptUserNum() {
return interceptUserNum;
}
public void setInterceptUserNum(Integer interceptUserNum) {
this.interceptUserNum = interceptUserNum;
}
public Integer getPermissionUserNum() {
return permissionUserNum;
}
public void setPermissionUserNum(Integer permissionUserNum) {
this.permissionUserNum = permissionUserNum;
}
public Integer getBuyPermissionUserNum() {
return buyPermissionUserNum;
}
public void setBuyPermissionUserNum(Integer buyPermissionUserNum) {
this.buyPermissionUserNum = buyPermissionUserNum;
}
public Integer getInterceptFlag() {
return interceptFlag;
}
public void setInterceptFlag(Integer interceptFlag) {
this.interceptFlag = interceptFlag;
}
}
package com.gic.haoban.manage.service.entity.fee;
import java.io.Serializable;
import java.util.Date;
/**
* 企业微信收费订单成员激活详情(TabHaobanQywxFeeAccountStaff)实体类
*
* @author mozhu
* @since 2022-08-03 16:12:31
*/
public class TabHaobanQywxFeeAccountStaff implements Serializable {
private static final long serialVersionUID = -61823317787793524L;
private Long feeAccountId;
private String orderId;
private String corpId;
private String wxEnterpriseId;
/**
* 用户id
*/
private String wxUserId;
/**
* 员工id
*/
private String staffId;
/**
* 帐号码
*/
private String activeCode;
/**
* 帐号类型:1:基础帐号,2:互通帐号
*/
private Integer accountType;
/**
* 过期时间
*/
private Date expireTime;
/**
* 激活时间
*/
private Date activeTime;
public Long getFeeAccountId() {
return feeAccountId;
}
public void setFeeAccountId(Long feeAccountId) {
this.feeAccountId = feeAccountId;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getCorpId() {
return corpId;
}
public void setCorpId(String corpId) {
this.corpId = corpId;
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
public String getWxUserId() {
return wxUserId;
}
public void setWxUserId(String wxUserId) {
this.wxUserId = wxUserId;
}
public String getStaffId() {
return staffId;
}
public void setStaffId(String staffId) {
this.staffId = staffId;
}
public String getActiveCode() {
return activeCode;
}
public void setActiveCode(String activeCode) {
this.activeCode = activeCode;
}
public Integer getAccountType() {
return accountType;
}
public void setAccountType(Integer accountType) {
this.accountType = accountType;
}
public Date getExpireTime() {
return expireTime;
}
public void setExpireTime(Date expireTime) {
this.expireTime = expireTime;
}
public Date getActiveTime() {
return activeTime;
}
public void setActiveTime(Date activeTime) {
this.activeTime = activeTime;
}
}
package com.gic.haoban.manage.service.entity.fee;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 企业微信收费订单(TabHaobanQywxFeeOrder)实体类
*
* @author mozhu
* @since 2022-08-03 16:12:32
*/
public class TabHaobanQywxFeeOrder implements Serializable {
private static final long serialVersionUID = -71965900143069067L;
private Long feeOrderId;
/**
* 企微订单id
*/
private String orderId;
private String corpId;
private String wxEnterpriseId;
/**
* 订单类型,1:购买帐号,2:续期帐号,5:历史企业迁移订单
*/
private Integer orderType;
/**
* 订单状态,0:待支付,1:已支付,2:已取消(未支付,订单已关闭)3:未支付,订单已过期,4:申请退款中,5:退款成功,6:退款被拒绝,7:订单已失效
*/
private Integer orderStatus;
/**
* 订单金额,单位分
*/
private BigDecimal price;
/**
* 基础帐号个数
*/
private Integer baseCount;
/**
* 互通帐号个数
*/
private Integer externalContactCount;
/**
* 购买的月数
*/
private Integer months;
/**
* 创建时间
*/
private Date createTime;
/**
* 支付时间
*/
private Date payTime;
public Long getFeeOrderId() {
return feeOrderId;
}
public void setFeeOrderId(Long feeOrderId) {
this.feeOrderId = feeOrderId;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getCorpId() {
return corpId;
}
public void setCorpId(String corpId) {
this.corpId = corpId;
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
public Integer getOrderType() {
return orderType;
}
public void setOrderType(Integer orderType) {
this.orderType = orderType;
}
public Integer getOrderStatus() {
return orderStatus;
}
public void setOrderStatus(Integer orderStatus) {
this.orderStatus = orderStatus;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public Integer getBaseCount() {
return baseCount;
}
public void setBaseCount(Integer baseCount) {
this.baseCount = baseCount;
}
public Integer getExternalContactCount() {
return externalContactCount;
}
public void setExternalContactCount(Integer externalContactCount) {
this.externalContactCount = externalContactCount;
}
public Integer getMonths() {
return months;
}
public void setMonths(Integer months) {
this.months = months;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getPayTime() {
return payTime;
}
public void setPayTime(Date payTime) {
this.payTime = payTime;
}
}
package com.gic.haoban.manage.service.entity.fee;
import java.io.Serializable;
import java.util.Date;
/**
* 企业微信收费订单账号(激活码)(TabHaobanQywxFeeOrderAccount)实体类
*
* @author mozhu
* @since 2022-08-03 16:12:33
*/
public class TabHaobanQywxFeeOrderAccount implements Serializable {
private static final long serialVersionUID = 868383484183982731L;
private Long feeAccountId;
private String orderId;
private String corpId;
private String wxEnterpriseId;
/**
* 用户id
*/
private String wxUserId;
/**
* 帐号码
*/
private String activeCode;
/**
* 帐号类型:1:基础帐号,2:互通帐号
*/
private Integer accountType;
/**
* 帐号状态:1:未绑定,2:已绑定且有效,3:已过期,4:待转移,5:已合并
*/
private Integer status;
/**
* 过期时间
*/
private Date expireTime;
/**
* 激活时间
*/
private Date activeTime;
public Long getFeeAccountId() {
return feeAccountId;
}
public void setFeeAccountId(Long feeAccountId) {
this.feeAccountId = feeAccountId;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getCorpId() {
return corpId;
}
public void setCorpId(String corpId) {
this.corpId = corpId;
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
public String getWxUserId() {
return wxUserId;
}
public void setWxUserId(String wxUserId) {
this.wxUserId = wxUserId;
}
public String getActiveCode() {
return activeCode;
}
public void setActiveCode(String activeCode) {
this.activeCode = activeCode;
}
public Integer getAccountType() {
return accountType;
}
public void setAccountType(Integer accountType) {
this.accountType = accountType;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getExpireTime() {
return expireTime;
}
public void setExpireTime(Date expireTime) {
this.expireTime = expireTime;
}
public Date getActiveTime() {
return activeTime;
}
public void setActiveTime(Date activeTime) {
this.activeTime = activeTime;
}
}
package com.gic.haoban.manage.service.service.fee;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeAccountStaff;
/**
* 企业微信收费订单成员激活详情(TabHaobanQywxFeeAccountStaff)表服务接口
*
* @author mozhu
* @since 2022-08-03 16:12:32
*/
public interface HaobanQywxFeeAccountStaffService {
/**
* 通过ID查询单条数据
*
* @param feeAccountId 主键
* @return 实例对象
*/
TabHaobanQywxFeeAccountStaff queryById(Long feeAccountId);
/**
* 新增数据
*
* @param tabHaobanQywxFeeAccountStaff 实例对象
* @return 实例对象
*/
TabHaobanQywxFeeAccountStaff insert(TabHaobanQywxFeeAccountStaff tabHaobanQywxFeeAccountStaff);
/**
* 修改数据
*
* @param tabHaobanQywxFeeAccountStaff 实例对象
* @return 实例对象
*/
TabHaobanQywxFeeAccountStaff update(TabHaobanQywxFeeAccountStaff tabHaobanQywxFeeAccountStaff);
/**
* 通过主键删除数据
*
* @param feeAccountId 主键
* @return 是否成功
*/
boolean deleteById(Long feeAccountId);
}
package com.gic.haoban.manage.service.service.fee;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrderAccount;
/**
* 企业微信收费订单账号(激活码)(TabHaobanQywxFeeOrderAccount)表服务接口
*
* @author mozhu
* @since 2022-08-03 16:12:33
*/
public interface HaobanQywxFeeOrderAccountService {
/**
* 通过ID查询单条数据
*
* @param feeAccountId 主键
* @return 实例对象
*/
TabHaobanQywxFeeOrderAccount queryById(Long feeAccountId);
/**
* 新增数据
*
* @param tabHaobanQywxFeeOrderAccount 实例对象
* @return 实例对象
*/
TabHaobanQywxFeeOrderAccount insert(TabHaobanQywxFeeOrderAccount tabHaobanQywxFeeOrderAccount);
/**
* 修改数据
*
* @param tabHaobanQywxFeeOrderAccount 实例对象
* @return 实例对象
*/
TabHaobanQywxFeeOrderAccount update(TabHaobanQywxFeeOrderAccount tabHaobanQywxFeeOrderAccount);
/**
* 通过主键删除数据
*
* @param feeAccountId 主键
* @return 是否成功
*/
boolean deleteById(Long feeAccountId);
}
package com.gic.haoban.manage.service.service.fee;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrder;
/**
* 企业微信收费订单(TabHaobanQywxFeeOrder)表服务接口
*
* @author mozhu
* @since 2022-08-03 16:12:33
*/
public interface HaobanQywxFeeOrderService {
/**
* 通过ID查询单条数据
*
* @param feeOrderId 主键
* @return 实例对象
*/
TabHaobanQywxFeeOrder queryById(Long feeOrderId);
/**
* 新增数据
*
* @param tabHaobanQywxFeeOrder 实例对象
* @return 实例对象
*/
TabHaobanQywxFeeOrder insert(TabHaobanQywxFeeOrder tabHaobanQywxFeeOrder);
/**
* 修改数据
*
* @param tabHaobanQywxFeeOrder 实例对象
* @return 实例对象
*/
TabHaobanQywxFeeOrder update(TabHaobanQywxFeeOrder tabHaobanQywxFeeOrder);
/**
* 通过主键删除数据
*
* @param feeOrderId 主键
* @return 是否成功
*/
boolean deleteById(Long feeOrderId);
}
package com.gic.haoban.manage.service.service.fee;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFee;
/**
* 企业微信收费(TabHaobanQywxFee)表服务接口
*
* @author mozhu
* @since 2022-08-03 16:12:30
*/
public interface HaobanQywxFeeService {
/**
* 通过ID查询单条数据
*
* @param qwFeeId 主键
* @return 实例对象
*/
TabHaobanQywxFee queryById(Long qwFeeId);
/**
* 新增数据
*
* @param tabHaobanQywxFee 实例对象
* @return 实例对象
*/
TabHaobanQywxFee insert(TabHaobanQywxFee tabHaobanQywxFee);
/**
* 修改数据
*
* @param tabHaobanQywxFee 实例对象
* @return 实例对象
*/
TabHaobanQywxFee update(TabHaobanQywxFee tabHaobanQywxFee);
/**
* 通过主键删除数据
*
* @param qwFeeId 主键
* @return 是否成功
*/
boolean deleteById(Long qwFeeId);
}
package com.gic.haoban.manage.service.service.fee.impl;
import com.gic.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeAccountStaffMapper;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeAccountStaff;
import com.gic.haoban.manage.service.service.fee.HaobanQywxFeeAccountStaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 企业微信收费订单成员激活详情(TabHaobanQywxFeeAccountStaff)表服务实现类
*
* @author mozhu
* @since 2022-08-03 16:12:32
*/
@Service
public class HaobanQywxFeeAccountStaffServiceImpl implements HaobanQywxFeeAccountStaffService {
@Autowired
private TabHaobanQywxFeeAccountStaffMapper tabHaobanQywxFeeAccountStaffMapper;
/**
* 通过ID查询单条数据
*
* @param feeAccountId 主键
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeAccountStaff queryById(Long feeAccountId) {
return this.tabHaobanQywxFeeAccountStaffMapper.queryById(feeAccountId);
}
/**
* 新增数据
*
* @param tabHaobanQywxFeeAccountStaff 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeAccountStaff insert(TabHaobanQywxFeeAccountStaff tabHaobanQywxFeeAccountStaff) {
this.tabHaobanQywxFeeAccountStaffMapper.insert(tabHaobanQywxFeeAccountStaff);
return tabHaobanQywxFeeAccountStaff;
}
/**
* 修改数据
*
* @param tabHaobanQywxFeeAccountStaff 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeAccountStaff update(TabHaobanQywxFeeAccountStaff tabHaobanQywxFeeAccountStaff) {
this.tabHaobanQywxFeeAccountStaffMapper.update(tabHaobanQywxFeeAccountStaff);
return this.queryById(tabHaobanQywxFeeAccountStaff.getFeeAccountId());
}
/**
* 通过主键删除数据
*
* @param feeAccountId 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long feeAccountId) {
return this.tabHaobanQywxFeeAccountStaffMapper.deleteById(feeAccountId) > 0;
}
}
package com.gic.haoban.manage.service.service.fee.impl;
import com.gic.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeOrderAccountMapper;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrderAccount;
import com.gic.haoban.manage.service.service.fee.HaobanQywxFeeOrderAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 企业微信收费订单账号(激活码)(TabHaobanQywxFeeOrderAccount)表服务实现类
*
* @author mozhu
* @since 2022-08-03 16:12:34
*/
@Service
public class HaobanQywxFeeOrderAccountServiceImpl implements HaobanQywxFeeOrderAccountService {
@Autowired
private TabHaobanQywxFeeOrderAccountMapper tabHaobanQywxFeeOrderAccountMapper;
/**
* 通过ID查询单条数据
*
* @param feeAccountId 主键
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeOrderAccount queryById(Long feeAccountId) {
return this.tabHaobanQywxFeeOrderAccountMapper.queryById(feeAccountId);
}
/**
* 新增数据
*
* @param tabHaobanQywxFeeOrderAccount 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeOrderAccount insert(TabHaobanQywxFeeOrderAccount tabHaobanQywxFeeOrderAccount) {
this.tabHaobanQywxFeeOrderAccountMapper.insert(tabHaobanQywxFeeOrderAccount);
return tabHaobanQywxFeeOrderAccount;
}
/**
* 修改数据
*
* @param tabHaobanQywxFeeOrderAccount 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeOrderAccount update(TabHaobanQywxFeeOrderAccount tabHaobanQywxFeeOrderAccount) {
this.tabHaobanQywxFeeOrderAccountMapper.update(tabHaobanQywxFeeOrderAccount);
return this.queryById(tabHaobanQywxFeeOrderAccount.getFeeAccountId());
}
/**
* 通过主键删除数据
*
* @param feeAccountId 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long feeAccountId) {
return this.tabHaobanQywxFeeOrderAccountMapper.deleteById(feeAccountId) > 0;
}
}
package com.gic.haoban.manage.service.service.fee.impl;
import com.gic.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeOrderMapper;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrder;
import com.gic.haoban.manage.service.service.fee.HaobanQywxFeeOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 企业微信收费订单(TabHaobanQywxFeeOrder)表服务实现类
*
* @author mozhu
* @since 2022-08-03 16:12:33
*/
@Service
public class HaobanQywxFeeOrderServiceImpl implements HaobanQywxFeeOrderService {
@Autowired
private TabHaobanQywxFeeOrderMapper tabHaobanQywxFeeOrderMapper;
/**
* 通过ID查询单条数据
*
* @param feeOrderId 主键
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeOrder queryById(Long feeOrderId) {
return this.tabHaobanQywxFeeOrderMapper.queryById(feeOrderId);
}
/**
* 新增数据
*
* @param tabHaobanQywxFeeOrder 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeOrder insert(TabHaobanQywxFeeOrder tabHaobanQywxFeeOrder) {
this.tabHaobanQywxFeeOrderMapper.insert(tabHaobanQywxFeeOrder);
return tabHaobanQywxFeeOrder;
}
/**
* 修改数据
*
* @param tabHaobanQywxFeeOrder 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeOrder update(TabHaobanQywxFeeOrder tabHaobanQywxFeeOrder) {
this.tabHaobanQywxFeeOrderMapper.update(tabHaobanQywxFeeOrder);
return this.queryById(tabHaobanQywxFeeOrder.getFeeOrderId());
}
/**
* 通过主键删除数据
*
* @param feeOrderId 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long feeOrderId) {
return this.tabHaobanQywxFeeOrderMapper.deleteById(feeOrderId) > 0;
}
}
package com.gic.haoban.manage.service.service.fee.impl;
import com.gic.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeMapper;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFee;
import com.gic.haoban.manage.service.service.fee.HaobanQywxFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 企业微信收费(TabHaobanQywxFee)表服务实现类
*
* @author mozhu
* @since 2022-08-03 16:12:31
*/
@Service
public class HaobanQywxFeeServiceImpl implements HaobanQywxFeeService {
@Autowired
private TabHaobanQywxFeeMapper tabHaobanQywxFeeMapper;
/**
* 通过ID查询单条数据
*
* @param qwFeeId 主键
* @return 实例对象
*/
@Override
public TabHaobanQywxFee queryById(Long qwFeeId) {
return this.tabHaobanQywxFeeMapper.queryById(qwFeeId);
}
/**
* 新增数据
*
* @param tabHaobanQywxFee 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFee insert(TabHaobanQywxFee tabHaobanQywxFee) {
this.tabHaobanQywxFeeMapper.insert(tabHaobanQywxFee);
return tabHaobanQywxFee;
}
/**
* 修改数据
*
* @param tabHaobanQywxFee 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFee update(TabHaobanQywxFee tabHaobanQywxFee) {
this.tabHaobanQywxFeeMapper.update(tabHaobanQywxFee);
return this.queryById(tabHaobanQywxFee.getQwFeeId());
}
/**
* 通过主键删除数据
*
* @param qwFeeId 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long qwFeeId) {
return this.tabHaobanQywxFeeMapper.deleteById(qwFeeId) > 0;
}
}
package com.gic.haoban.manage.service.service.out.impl.fee;
import com.gic.haoban.manage.api.service.fee.HaobanQywxFeeApiService;
import org.springframework.stereotype.Service;
@Service
public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
}
...@@ -123,6 +123,10 @@ ...@@ -123,6 +123,10 @@
ref="hmQrcodeApiServiceImpl" timeout="10000" /> ref="hmQrcodeApiServiceImpl" timeout="10000" />
<dubbo:service interface="com.gic.haoban.manage.api.service.hm.HmLinkVisitLogApiService" <dubbo:service interface="com.gic.haoban.manage.api.service.hm.HmLinkVisitLogApiService"
ref="hmLinkVisitLogApiService" timeout="10000" /> ref="hmLinkVisitLogApiService" timeout="10000" />
<!-- fee -->
<dubbo:service interface="com.gic.haoban.manage.api.service.fee.HaobanQywxFeeApiService" ref="haobanQywxFeeApiService"
timeout="10000"/>
<dubbo:reference interface="com.gic.enterprise.api.service.DepartmentService" id="gicDepartmentService"/> <dubbo:reference interface="com.gic.enterprise.api.service.DepartmentService" id="gicDepartmentService"/>
<dubbo:reference interface="com.gic.wechat.api.service.qywx.QywxDepartmentApiService" <dubbo:reference interface="com.gic.wechat.api.service.qywx.QywxDepartmentApiService"
......
<?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.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeOrderAccountMapper">
<resultMap type="com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrderAccount" id="TabHaobanQywxFeeOrderAccountMap">
<result property="feeAccountId" column="fee_account_id" jdbcType="INTEGER"/>
<result property="orderId" column="order_id" jdbcType="VARCHAR"/>
<result property="corpId" column="corp_id" jdbcType="VARCHAR"/>
<result property="wxEnterpriseId" column="wx_enterprise_id" jdbcType="VARCHAR"/>
<result property="wxUserId" column="wx_user_id" jdbcType="VARCHAR"/>
<result property="activeCode" column="active_code" jdbcType="VARCHAR"/>
<result property="accountType" column="account_type" jdbcType="INTEGER"/>
<result property="status" column="status" jdbcType="INTEGER"/>
<result property="expireTime" column="expire_time" jdbcType="TIMESTAMP"/>
<result property="activeTime" column="active_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
fee_account_id
, order_id, corp_id, wx_enterprise_id, wx_user_id, active_code, account_type, status, expire_time, active_time
</sql>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanQywxFeeOrderAccountMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_order_account
where fee_account_id = #{feeAccountId}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TabHaobanQywxFeeOrderAccountMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_order_account
<where>
<if test="feeAccountId != null">
and fee_account_id = #{feeAccountId}
</if>
<if test="orderId != null and orderId != ''">
and order_id = #{orderId}
</if>
<if test="corpId != null and corpId != ''">
and corp_id = #{corpId}
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if test="wxUserId != null and wxUserId != ''">
and wx_user_id = #{wxUserId}
</if>
<if test="activeCode != null and activeCode != ''">
and active_code = #{activeCode}
</if>
<if test="accountType != null">
and account_type = #{accountType}
</if>
<if test="status != null">
and status = #{status}
</if>
<if test="expireTime != null">
and expire_time = #{expireTime}
</if>
<if test="activeTime != null">
and active_time = #{activeTime}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="feeAccountId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee_order_account(fee_account_id, order_id, corp_id, wx_enterprise_id, wx_user_id,
active_code, account_type, status, expire_time, active_time)
values (#{feeAccountId}, #{orderId}, #{corpId}, #{wxEnterpriseId}, #{wxUserId}, #{activeCode}, #{accountType},
#{status}, #{expireTime}, #{activeTime})
</insert>
<insert id="insertBatch" keyProperty="feeAccountId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee_order_account(fee_account_id, order_id, corp_id, wx_enterprise_id, wx_user_id,
active_code, account_type, status, expire_time, active_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.feeAccountId}, #{entity.orderId}, #{entity.corpId}, #{entity.wxEnterpriseId}, #{entity.wxUserId},
#{entity.activeCode}, #{entity.accountType}, #{entity.status}, #{entity.expireTime}, #{entity.activeTime})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_qywx_fee_order_account
<set>
<if test="orderId != null and orderId != ''">
order_id = #{orderId},
</if>
<if test="corpId != null and corpId != ''">
corp_id = #{corpId},
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="wxUserId != null and wxUserId != ''">
wx_user_id = #{wxUserId},
</if>
<if test="activeCode != null and activeCode != ''">
active_code = #{activeCode},
</if>
<if test="accountType != null">
account_type = #{accountType},
</if>
<if test="status != null">
status = #{status},
</if>
<if test="expireTime != null">
expire_time = #{expireTime},
</if>
<if test="activeTime != null">
active_time = #{activeTime},
</if>
</set>
where fee_account_id = #{feeAccountId}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tab_haoban_qywx_fee_order_account
where fee_account_id = #{feeAccountId}
</delete>
</mapper>
<?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.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeAccountStaffMapper">
<resultMap type="com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeAccountStaff" id="TabHaobanQywxFeeAccountStaffMap">
<result property="feeAccountId" column="fee_account_id" jdbcType="INTEGER"/>
<result property="orderId" column="order_id" jdbcType="VARCHAR"/>
<result property="corpId" column="corp_id" jdbcType="VARCHAR"/>
<result property="wxEnterpriseId" column="wx_enterprise_id" jdbcType="VARCHAR"/>
<result property="wxUserId" column="wx_user_id" jdbcType="VARCHAR"/>
<result property="staffId" column="staff_id" jdbcType="VARCHAR"/>
<result property="activeCode" column="active_code" jdbcType="VARCHAR"/>
<result property="accountType" column="account_type" jdbcType="INTEGER"/>
<result property="expireTime" column="expire_time" jdbcType="TIMESTAMP"/>
<result property="activeTime" column="active_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
fee_account_id
, order_id, corp_id, wx_enterprise_id, wx_user_id, staff_id, active_code, account_type, expire_time, active_time
</sql>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanQywxFeeAccountStaffMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_account_staff
where fee_account_id = #{feeAccountId}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TabHaobanQywxFeeAccountStaffMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_account_staff
<where>
<if test="feeAccountId != null">
and fee_account_id = #{feeAccountId}
</if>
<if test="orderId != null and orderId != ''">
and order_id = #{orderId}
</if>
<if test="corpId != null and corpId != ''">
and corp_id = #{corpId}
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if test="wxUserId != null and wxUserId != ''">
and wx_user_id = #{wxUserId}
</if>
<if test="staffId != null and staffId != ''">
and staff_id = #{staffId}
</if>
<if test="activeCode != null and activeCode != ''">
and active_code = #{activeCode}
</if>
<if test="accountType != null">
and account_type = #{accountType}
</if>
<if test="expireTime != null">
and expire_time = #{expireTime}
</if>
<if test="activeTime != null">
and active_time = #{activeTime}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="feeAccountId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee_account_staff(fee_account_id, order_id, corp_id, wx_enterprise_id, wx_user_id,
staff_id, active_code, account_type, expire_time, active_time)
values (#{feeAccountId}, #{orderId}, #{corpId}, #{wxEnterpriseId}, #{wxUserId}, #{staffId}, #{activeCode},
#{accountType}, #{expireTime}, #{activeTime})
</insert>
<insert id="insertBatch" keyProperty="feeAccountId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee_account_staff(fee_account_id, order_id, corp_id, wx_enterprise_id, wx_user_id,
staff_id, active_code, account_type, expire_time, active_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.feeAccountId}, #{entity.orderId}, #{entity.corpId}, #{entity.wxEnterpriseId}, #{entity.wxUserId},
#{entity.staffId}, #{entity.activeCode}, #{entity.accountType}, #{entity.expireTime}, #{entity.activeTime})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_qywx_fee_account_staff
<set>
<if test="orderId != null and orderId != ''">
order_id = #{orderId},
</if>
<if test="corpId != null and corpId != ''">
corp_id = #{corpId},
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="wxUserId != null and wxUserId != ''">
wx_user_id = #{wxUserId},
</if>
<if test="staffId != null and staffId != ''">
staff_id = #{staffId},
</if>
<if test="activeCode != null and activeCode != ''">
active_code = #{activeCode},
</if>
<if test="accountType != null">
account_type = #{accountType},
</if>
<if test="expireTime != null">
expire_time = #{expireTime},
</if>
<if test="activeTime != null">
active_time = #{activeTime},
</if>
</set>
where fee_account_id = #{feeAccountId}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tab_haoban_qywx_fee_account_staff
where fee_account_id = #{feeAccountId}
</delete>
</mapper>
<?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.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeMapper">
<resultMap type="com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFee" id="TabHaobanQywxFeeMap">
<result property="qwFeeId" column="qw_fee_id" jdbcType="INTEGER"/>
<result property="corpName" column="corp_name" jdbcType="VARCHAR"/>
<result property="corpId" column="corp_id" jdbcType="VARCHAR"/>
<result property="wxEnterpriseId" column="wx_enterprise_id" jdbcType="VARCHAR"/>
<result property="interceptTime" column="intercept_time" jdbcType="TIMESTAMP"/>
<result property="interceptUserNum" column="intercept_user_num" jdbcType="INTEGER"/>
<result property="permissionUserNum" column="permission_user_num" jdbcType="INTEGER"/>
<result property="buyPermissionUserNum" column="buy_permission_user_num" jdbcType="INTEGER"/>
<result property="interceptFlag" column="intercept_flag" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
qw_fee_id
, corp_name, corp_id, wx_enterprise_id, intercept_time, intercept_user_num, permission_user_num, buy_permission_user_num, intercept_flag
</sql>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanQywxFeeMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee
where qw_fee_id = #{qwFeeId}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TabHaobanQywxFeeMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee
<where>
<if test="qwFeeId != null">
and qw_fee_id = #{qwFeeId}
</if>
<if test="corpName != null and corpName != ''">
and corp_name = #{corpName}
</if>
<if test="corpId != null and corpId != ''">
and corp_id = #{corpId}
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if test="interceptTime != null">
and intercept_time = #{interceptTime}
</if>
<if test="interceptUserNum != null">
and intercept_user_num = #{interceptUserNum}
</if>
<if test="permissionUserNum != null">
and permission_user_num = #{permissionUserNum}
</if>
<if test="buyPermissionUserNum != null">
and buy_permission_user_num = #{buyPermissionUserNum}
</if>
<if test="interceptFlag != null">
and intercept_flag = #{interceptFlag}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="qwFeeId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee(qw_fee_id, corp_name, corp_id, wx_enterprise_id, intercept_time,
intercept_user_num, permission_user_num, buy_permission_user_num,
intercept_flag)
values (#{qwFeeId}, #{corpName}, #{corpId}, #{wxEnterpriseId}, #{interceptTime}, #{interceptUserNum},
#{permissionUserNum}, #{buyPermissionUserNum}, #{interceptFlag})
</insert>
<insert id="insertBatch" keyProperty="qwFeeId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee(qw_fee_id, corp_name, corp_id, wx_enterprise_id, intercept_time,
intercept_user_num, permission_user_num, buy_permission_user_num, intercept_flag)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.qwFeeId}, #{entity.corpName}, #{entity.corpId}, #{entity.wxEnterpriseId}, #{entity.interceptTime},
#{entity.interceptUserNum}, #{entity.permissionUserNum}, #{entity.buyPermissionUserNum},
#{entity.interceptFlag})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_qywx_fee
<set>
<if test="corpName != null and corpName != ''">
corp_name = #{corpName},
</if>
<if test="corpId != null and corpId != ''">
corp_id = #{corpId},
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="interceptTime != null">
intercept_time = #{interceptTime},
</if>
<if test="interceptUserNum != null">
intercept_user_num = #{interceptUserNum},
</if>
<if test="permissionUserNum != null">
permission_user_num = #{permissionUserNum},
</if>
<if test="buyPermissionUserNum != null">
buy_permission_user_num = #{buyPermissionUserNum},
</if>
<if test="interceptFlag != null">
intercept_flag = #{interceptFlag},
</if>
</set>
where qw_fee_id = #{qwFeeId}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tab_haoban_qywx_fee
where qw_fee_id = #{qwFeeId}
</delete>
</mapper>
<?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.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeOrderMapper">
<resultMap type="com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrder" id="TabHaobanQywxFeeOrderMap">
<result property="feeOrderId" column="fee_order_id" jdbcType="INTEGER"/>
<result property="orderId" column="order_id" jdbcType="VARCHAR"/>
<result property="corpId" column="corp_id" jdbcType="VARCHAR"/>
<result property="wxEnterpriseId" column="wx_enterprise_id" jdbcType="VARCHAR"/>
<result property="orderType" column="order_type" jdbcType="INTEGER"/>
<result property="orderStatus" column="order_status" jdbcType="INTEGER"/>
<result property="price" column="price" jdbcType="VARCHAR"/>
<result property="baseCount" column="base_count" jdbcType="INTEGER"/>
<result property="externalContactCount" column="external_contact_count" jdbcType="INTEGER"/>
<result property="months" column="months" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="payTime" column="pay_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
fee_order_id
, order_id, corp_id, wx_enterprise_id, order_type, order_status, price, base_count, external_contact_count, months, create_time, pay_time
</sql>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanQywxFeeOrderMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_order
where fee_order_id = #{feeOrderId}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TabHaobanQywxFeeOrderMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_order
<where>
<if test="feeOrderId != null">
and fee_order_id = #{feeOrderId}
</if>
<if test="orderId != null and orderId != ''">
and order_id = #{orderId}
</if>
<if test="corpId != null and corpId != ''">
and corp_id = #{corpId}
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if test="orderType != null">
and order_type = #{orderType}
</if>
<if test="orderStatus != null">
and order_status = #{orderStatus}
</if>
<if test="price != null">
and price = #{price}
</if>
<if test="baseCount != null">
and base_count = #{baseCount}
</if>
<if test="externalContactCount != null">
and external_contact_count = #{externalContactCount}
</if>
<if test="months != null">
and months = #{months}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="payTime != null">
and pay_time = #{payTime}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="feeOrderId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee_order(fee_order_id, order_id, corp_id, wx_enterprise_id, order_type,
order_status, price, base_count, external_contact_count, months,
create_time, pay_time)
values (#{feeOrderId}, #{orderId}, #{corpId}, #{wxEnterpriseId}, #{orderType}, #{orderStatus}, #{price},
#{baseCount}, #{externalContactCount}, #{months}, #{createTime}, #{payTime})
</insert>
<insert id="insertBatch" keyProperty="feeOrderId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee_order(fee_order_id, order_id, corp_id, wx_enterprise_id, order_type,
order_status, price, base_count, external_contact_count, months, create_time, pay_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.feeOrderId}, #{entity.orderId}, #{entity.corpId}, #{entity.wxEnterpriseId}, #{entity.orderType},
#{entity.orderStatus}, #{entity.price}, #{entity.baseCount}, #{entity.externalContactCount},
#{entity.months}, #{entity.createTime}, #{entity.payTime})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_qywx_fee_order
<set>
<if test="orderId != null and orderId != ''">
order_id = #{orderId},
</if>
<if test="corpId != null and corpId != ''">
corp_id = #{corpId},
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="orderType != null">
order_type = #{orderType},
</if>
<if test="orderStatus != null">
order_status = #{orderStatus},
</if>
<if test="price != null">
price = #{price},
</if>
<if test="baseCount != null">
base_count = #{baseCount},
</if>
<if test="externalContactCount != null">
external_contact_count = #{externalContactCount},
</if>
<if test="months != null">
months = #{months},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="payTime != null">
pay_time = #{payTime},
</if>
</set>
where fee_order_id = #{feeOrderId}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tab_haoban_qywx_fee_order
where fee_order_id = #{feeOrderId}
</delete>
</mapper>
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