Commit ca13102a authored by zhangc's avatar zhangc

commit entity

parent 66f14f4f
package com.jz.manage.moduls.mapper;
package com.jz.dm.gateway.mapper;
import com.jz.common.base.BaseMapper;
import com.jz.manage.moduls.entity.DataGoodsApi;
import com.jz.common.entity.DataGoodsApi;
/**
* api商品(TDataGoodsApi)表数据库访问层
......
package com.jz.manage.moduls.mapper;
package com.jz.dm.gateway.mapper;
import com.jz.common.base.BaseMapper;
import com.jz.manage.moduls.entity.DataGoodsApiParams;
import com.jz.common.entity.DataGoodsApiParams;
/**
* api商品参数配置(TDataGoodsApiParams)表数据库访问层
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity;
package com.jz.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......
package com.jz.manage.moduls.entity.sys;
package com.jz.common.entity.sys;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
......
package com.jz.manage.moduls.entity.sys;
package com.jz.common.entity.sys;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
......
package com.jz.dm.gateway.model.signtype;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
/**
* MD5加密算法
*
* @author Admin
* @version $Id: Md5Utils.java 2014年9月3日 下午4:01:08 $
*/
public class Md5 {
private static Logger log = LoggerFactory.getLogger(Md5.class);
private static final String SIGN_TYPE = "MD5";
private static final String CHARSET_NAME = "UTF-8";
private static final String salt = "3zsAa6W9gfSMMhPSlQTdWFUSHY3LS8Vb";
/**
* MD5加密
*
* @param data
* @return
* @throws NoSuchAlgorithmException
*/
public static String encrypt(byte[] data) {
try {
MessageDigest md5 = MessageDigest.getInstance(SIGN_TYPE);
md5.update(data);
return byte2hex(md5.digest());
} catch (NoSuchAlgorithmException e) {
log.debug("md5 加密异常", e);
}
return "";
}
/**
* MD5加密
*
* @param str
* @return
* @throws NoSuchAlgorithmException
*/
public static String encrypt(String str) {
try {
MessageDigest md5 = MessageDigest.getInstance(SIGN_TYPE);
md5.update((str + salt).getBytes(CHARSET_NAME));
return byte2hex(md5.digest());
} catch (Exception e) {
log.debug("md5 加密异常", e);
}
return null;
}
/**
* MD5加盐加密
*
* @param str
* @param salt
* @return
* @throws NoSuchAlgorithmException
*/
public static String encrypt(String str, String salt) {
try {
MessageDigest md5 = MessageDigest.getInstance(SIGN_TYPE);
md5.update((str + salt).getBytes(CHARSET_NAME));
return byte2hex(md5.digest());
} catch (Exception e) {
if (log.isDebugEnabled()) {
log.debug("md5 加密异常", e);
}
}
return "";
}
public static String encrypt(String str, String salt, String charset) {
try {
MessageDigest md5 = MessageDigest.getInstance(SIGN_TYPE);
md5.update((str + salt).getBytes(charset));
return byte2hex(md5.digest());
} catch (Exception e) {
if (log.isDebugEnabled()) {
log.debug("md5 加密异常", e);
}
}
return "";
}
public static String byte2hex(byte[] bytes) {
StringBuilder sign = new StringBuilder();
for (int i = 0; i < bytes.length; i++) {
String hex = Integer.toHexString(bytes[i] & 0xFF);
if (hex.length() == 1) {
sign.append("0");
}
sign.append(hex.toUpperCase());
}
return sign.toString();
}
public static byte[] hex2byte(String str) {
if (str == null) {
return null;
}
str = str.trim();
int len = str.length();
if (len <= 0 || len % 2 == 1) {
return null;
}
byte[] b = new byte[len / 2];
try {
for (int i = 0; i < str.length(); i += 2) {
b[(i / 2)] = (byte) Integer.decode("0x" + str.substring(i, i + 2)).intValue();
}
return b;
} catch (Exception e) {
}
return null;
}
/**
* 给TOP请求做MD5签名。
*
* @param sortedParams 所有字符型的TOP请求参数
* @param secret 签名密钥
* @return 签名
* @throws IOException
*/
public static String signRequestNew(Map<String, String> sortedParams, String secret) throws IOException {
// 第一步:把字典按Key的字母顺序排序
List<String> keys = new ArrayList<String>(sortedParams.keySet());
Collections.sort(keys);
// 第二步:把所有参数名和参数值串在一起
StringBuilder query = new StringBuilder();
for (int i = 0; i < keys.size(); i++) {
String key = keys.get(i);
String value = sortedParams.get(key);
if (!StringUtils.isEmpty(key) && !StringUtils.isEmpty(value) && !"sign".equals(key)) {
query.append(key).append("=").append(value);
}
}
log.info("获取当APP请求参数,签名前值为:" + query.toString());
return Md5.encrypt(query.toString(), secret);
}
public static void main(String[] args) {
System.out.println(encrypt("200128008012abc@123", ""));
}
}
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 审核记录(TAuditRecord)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:29
*/
@TableName("t_audit_record")
@ApiModel
public class AuditRecord implements Serializable {
private static final long serialVersionUID = 747782852655865930L;
/**
* 主键
*/
private Long auditRecord;
/**
* 实例id
*/
private String exampleId;
/**
* 驳回原因
*/
private String rejectReason;
/**
* 审核类型:01企业审核,02数据审核,03需求审核
*/
private String auditType;
/**
* 创建人
*/
private String creTime;
/**
* 创建时间
*/
private Date crePerson;
/**
* 删除标识
*/
private String delFlag;
public Long getAuditRecord() {
return auditRecord;
}
public void setAuditRecord(Long auditRecord) {
this.auditRecord = auditRecord;
}
public String getExampleId() {
return exampleId;
}
public void setExampleId(String exampleId) {
this.exampleId = exampleId;
}
public String getRejectReason() {
return rejectReason;
}
public void setRejectReason(String rejectReason) {
this.rejectReason = rejectReason;
}
public String getAuditType() {
return auditType;
}
public void setAuditType(String auditType) {
this.auditType = auditType;
}
public String getCreTime() {
return creTime;
}
public void setCreTime(String creTime) {
this.creTime = creTime;
}
public Date getCrePerson() {
return crePerson;
}
public void setCrePerson(Date crePerson) {
this.crePerson = crePerson;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* api商品参数配置(TDataGoodsApiParams)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:31
*/
@TableName("t_data_goods_api_params")
@ApiModel
public class DataGoodsApiParams implements Serializable {
private static final long serialVersionUID = 944366688061324185L;
/**
* api参数id
*/
private Long apiParamsId;
/**
* api商品id
*/
private Long goodsApi;
/**
* 参数分类:01公共参数,02请求参数,03响应参数,04请求头参数,05状态码参数
*/
private String paramsDiff;
/**
* 参数名称
*/
private String paramsName;
/**
* 参数类型
*/
private String paramsType;
/**
* 参数描述
*/
private String paramsDesc;
/**
* 默认值
*/
private String defaultValue;
/**
* 备注
*/
private String remark;
/**
* 是否必选:Y是,N否
*/
private String ifRequird;
/**
* 删除标识:Y是,N否
*/
private String delFlag;
/**
* 创建时间
*/
private Date creTime;
/**
* 更新时间
*/
private Date uptTime;
public Long getApiParamsId() {
return apiParamsId;
}
public void setApiParamsId(Long apiParamsId) {
this.apiParamsId = apiParamsId;
}
public Long getGoodsApi() {
return goodsApi;
}
public void setGoodsApi(Long goodsApi) {
this.goodsApi = goodsApi;
}
public String getParamsDiff() {
return paramsDiff;
}
public void setParamsDiff(String paramsDiff) {
this.paramsDiff = paramsDiff;
}
public String getParamsName() {
return paramsName;
}
public void setParamsName(String paramsName) {
this.paramsName = paramsName;
}
public String getParamsType() {
return paramsType;
}
public void setParamsType(String paramsType) {
this.paramsType = paramsType;
}
public String getParamsDesc() {
return paramsDesc;
}
public void setParamsDesc(String paramsDesc) {
this.paramsDesc = paramsDesc;
}
public String getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getIfRequird() {
return ifRequird;
}
public void setIfRequird(String ifRequird) {
this.ifRequird = ifRequird;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public Date getUptTime() {
return uptTime;
}
public void setUptTime(Date uptTime) {
this.uptTime = uptTime;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* API参数表(DefinitionApiParams)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:33
*/
@TableName("t_definition_api_params")
@ApiModel
public class DefinitionApiParams implements Serializable {
private static final long serialVersionUID = -53949033620241193L;
/**
* api参数id
*/
private Long apiParamsId;
/**
* 定义api接口id
*/
private Long definitionApiId;
/**
* 参数名称
*/
private String paramsName;
/**
* 字段
*/
private String fieldName;
/**
* 类型
*/
private String fieldType;
/**
* 示例值
*/
private String exampleValue;
/**
* 默认值
*/
private String defaultValue;
/**
* 是否必选
*/
private String ifChoose;
/**
* 描述
*/
private String fieldDesc;
/**
* 参数类型
*/
private String paramsType;
/**
* 业务类型:01公共参数,02业务参数
*/
private String serviceType;
/**
* 创建时间
*/
private Date creTime;
public Long getApiParamsId() {
return apiParamsId;
}
public void setApiParamsId(Long apiParamsId) {
this.apiParamsId = apiParamsId;
}
public Long getDefinitionApiId() {
return definitionApiId;
}
public void setDefinitionApiId(Long definitionApiId) {
this.definitionApiId = definitionApiId;
}
public String getParamsName() {
return paramsName;
}
public void setParamsName(String paramsName) {
this.paramsName = paramsName;
}
public String getFieldName() {
return fieldName;
}
public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}
public String getFieldType() {
return fieldType;
}
public void setFieldType(String fieldType) {
this.fieldType = fieldType;
}
public String getExampleValue() {
return exampleValue;
}
public void setExampleValue(String exampleValue) {
this.exampleValue = exampleValue;
}
public String getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
public String getIfChoose() {
return ifChoose;
}
public void setIfChoose(String ifChoose) {
this.ifChoose = ifChoose;
}
public String getFieldDesc() {
return fieldDesc;
}
public void setFieldDesc(String fieldDesc) {
this.fieldDesc = fieldDesc;
}
public String getParamsType() {
return paramsType;
}
public void setParamsType(String paramsType) {
this.paramsType = paramsType;
}
public String getServiceType() {
return serviceType;
}
public void setServiceType(String serviceType) {
this.serviceType = serviceType;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 文件存入表
* (TFileDeposit)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:35
*/
@TableName("t_file_deposit")
@ApiModel
public class FileDeposit implements Serializable {
private static final long serialVersionUID = -50582525275475551L;
/**
* 文件存入id
*/
private Long fileDepositId;
/**
* 文件名称
*/
private String fileName;
/**
* 文件地址
*/
private String fileAddress;
/**
* 文件格式
*/
private String fileFormat;
/**
* 文件上传用户id
*/
private String uploadUserId;
/**
* 创建时间
*/
private Date creTime;
/**
* 备注
*/
private String remark;
/**
* 更新时间
*/
private Date uptTime;
public Long getFileDepositId() {
return fileDepositId;
}
public void setFileDepositId(Long fileDepositId) {
this.fileDepositId = fileDepositId;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getFileAddress() {
return fileAddress;
}
public void setFileAddress(String fileAddress) {
this.fileAddress = fileAddress;
}
public String getFileFormat() {
return fileFormat;
}
public void setFileFormat(String fileFormat) {
this.fileFormat = fileFormat;
}
public String getUploadUserId() {
return uploadUserId;
}
public void setUploadUserId(String uploadUserId) {
this.uploadUserId = uploadUserId;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getUptTime() {
return uptTime;
}
public void setUptTime(Date uptTime) {
this.uptTime = uptTime;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 文件存入字段信息表
* (TFileSaveFieldInfo)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:37
*/
@TableName("t_file_save_field_info")
@ApiModel
public class FileSaveFieldInfo implements Serializable {
private static final long serialVersionUID = -34603271687376756L;
/**
* 文件存入字段信息id
*/
private Long saveInfoId;
/**
* 文件存入id
*/
private Long fileDeposit;
/**
* 字段名称
*/
private String fieldName;
/**
* 字段类型
*/
private String fieldType;
/**
* 修改字段名称
*/
private String modifyFieldName;
/**
* 修改字段类型
*/
private String modifyFieldType;
/**
* 备注
*/
private String remark;
/**
* 是否主键:Y是,N否
*/
private String ifPrimary;
/**
* 清洗规则
*/
private String cleanRule;
/**
* 创建时间
*/
private Date creTime;
public Long getSaveInfoId() {
return saveInfoId;
}
public void setSaveInfoId(Long saveInfoId) {
this.saveInfoId = saveInfoId;
}
public Long getFileDeposit() {
return fileDeposit;
}
public void setFileDeposit(Long fileDeposit) {
this.fileDeposit = fileDeposit;
}
public String getFieldName() {
return fieldName;
}
public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}
public String getFieldType() {
return fieldType;
}
public void setFieldType(String fieldType) {
this.fieldType = fieldType;
}
public String getModifyFieldName() {
return modifyFieldName;
}
public void setModifyFieldName(String modifyFieldName) {
this.modifyFieldName = modifyFieldName;
}
public String getModifyFieldType() {
return modifyFieldType;
}
public void setModifyFieldType(String modifyFieldType) {
this.modifyFieldType = modifyFieldType;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getIfPrimary() {
return ifPrimary;
}
public void setIfPrimary(String ifPrimary) {
this.ifPrimary = ifPrimary;
}
public String getCleanRule() {
return cleanRule;
}
public void setCleanRule(String cleanRule) {
this.cleanRule = cleanRule;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 企业客户充值记录(TFinanceCustomerBalance)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:38
*/
@TableName("t_finance_customer_balance")
@ApiModel
public class FinanceCustomerBalance implements Serializable {
private static final long serialVersionUID = -13102196689933511L;
/**
* 充值id
*/
private Long customerBalanceId;
/**
* 企业客户资产id
*/
private Long assetsId;
/**
* 充值金额
*/
private Double balanceMoney;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date creTime;
/**
* 创建人
*/
private String crePerson;
/**
* 删除标识
*/
private String delFlag;
/**
* 审核状态:01待审核,02审核通过,03未通过
*/
private String auditStatus;
/**
* 审核意见
*/
private String rejectReason;
public Long getCustomerBalanceId() {
return customerBalanceId;
}
public void setCustomerBalanceId(Long customerBalanceId) {
this.customerBalanceId = customerBalanceId;
}
public Long getAssetsId() {
return assetsId;
}
public void setAssetsId(Long assetsId) {
this.assetsId = assetsId;
}
public Double getBalanceMoney() {
return balanceMoney;
}
public void setBalanceMoney(Double balanceMoney) {
this.balanceMoney = balanceMoney;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public String getCrePerson() {
return crePerson;
}
public void setCrePerson(String crePerson) {
this.crePerson = crePerson;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(String auditStatus) {
this.auditStatus = auditStatus;
}
public String getRejectReason() {
return rejectReason;
}
public void setRejectReason(String rejectReason) {
this.rejectReason = rejectReason;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 企业客户交易流水(TFinanceTradeFlow)实体类
*
* @author makejava
* @since 2020-12-01 10:41:39
*/
@TableName("t_finance_trade_flow")
@ApiModel
public class FinanceTradeFlow implements Serializable {
private static final long serialVersionUID = -55257582310832314L;
/**
* 交易流水id
*/
private Long tradeFlowId;
/**
* 订单id
*/
private Long orderId;
/**
* 提现id
*/
private Long cashOutId;
/**
* 充值id
*/
private Long customerBalanceId;
/**
* 交易流水编号
*/
private String tradeFlowNumber;
/**
* 交易流水金额
*/
private Double tradeMoney;
/**
* 交易类型:01提现,02充值,03付款,04收款,05续费
*/
private String tradeType;
/**
* 创建时间
*/
private Date creTime;
/**
* 创建人
*/
private String crePerson;
/**
* 删除标识
*/
private String delFlag;
public Long getTradeFlowId() {
return tradeFlowId;
}
public void setTradeFlowId(Long tradeFlowId) {
this.tradeFlowId = tradeFlowId;
}
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public Long getCashOutId() {
return cashOutId;
}
public void setCashOutId(Long cashOutId) {
this.cashOutId = cashOutId;
}
public Long getCustomerBalanceId() {
return customerBalanceId;
}
public void setCustomerBalanceId(Long customerBalanceId) {
this.customerBalanceId = customerBalanceId;
}
public String getTradeFlowNumber() {
return tradeFlowNumber;
}
public void setTradeFlowNumber(String tradeFlowNumber) {
this.tradeFlowNumber = tradeFlowNumber;
}
public Double getTradeMoney() {
return tradeMoney;
}
public void setTradeMoney(Double tradeMoney) {
this.tradeMoney = tradeMoney;
}
public String getTradeType() {
return tradeType;
}
public void setTradeType(String tradeType) {
this.tradeType = tradeType;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public String getCrePerson() {
return crePerson;
}
public void setCrePerson(String crePerson) {
this.crePerson = crePerson;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 商城用户(TMallCustomer)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:39
*/
@TableName("t_mall_customer")
@ApiModel
public class MallCustomer implements Serializable {
private static final long serialVersionUID = 844124479008859411L;
/**
* 用户id
*/
private Long customerId;
/**
* 企业id
*/
private Long departmentId;
/**
* 密码
*/
private String password;
/**
* 账户
*/
private String customerAccount;
/**
* 用户真实姓名
*/
private String customerName;
/**
* 联系电话
*/
private String customerPhone;
/**
* 邮箱
*/
private String customerEmail;
/**
* 地址
*/
private String customerAddress;
/**
* 用户积分
*/
private Long customerPoint;
/**
* 注册时间
*/
private Date registerTime;
/**
* 会员等级
*/
private String customerLevel;
/**
* 证件号
*/
private String identityCard;
/**
* 创建时间
*/
private Date creTime;
/**
* 更新时间
*/
private Date uptTime;
/**
* 删除标识:Y是,N否
*/
private String delFlag;
public Long getCustomerId() {
return customerId;
}
public void setCustomerId(Long customerId) {
this.customerId = customerId;
}
public Long getDepartmentId() {
return departmentId;
}
public void setDepartmentId(Long departmentId) {
this.departmentId = departmentId;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getCustomerAccount() {
return customerAccount;
}
public void setCustomerAccount(String customerAccount) {
this.customerAccount = customerAccount;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getCustomerPhone() {
return customerPhone;
}
public void setCustomerPhone(String customerPhone) {
this.customerPhone = customerPhone;
}
public String getCustomerEmail() {
return customerEmail;
}
public void setCustomerEmail(String customerEmail) {
this.customerEmail = customerEmail;
}
public String getCustomerAddress() {
return customerAddress;
}
public void setCustomerAddress(String customerAddress) {
this.customerAddress = customerAddress;
}
public Long getCustomerPoint() {
return customerPoint;
}
public void setCustomerPoint(Long customerPoint) {
this.customerPoint = customerPoint;
}
public Date getRegisterTime() {
return registerTime;
}
public void setRegisterTime(Date registerTime) {
this.registerTime = registerTime;
}
public String getCustomerLevel() {
return customerLevel;
}
public void setCustomerLevel(String customerLevel) {
this.customerLevel = customerLevel;
}
public String getIdentityCard() {
return identityCard;
}
public void setIdentityCard(String identityCard) {
this.identityCard = identityCard;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public Date getUptTime() {
return uptTime;
}
public void setUptTime(Date uptTime) {
this.uptTime = uptTime;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 订单支付(TOrderPayment)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:41
*/
@TableName("t_order_payment")
@ApiModel
public class OrderPayment implements Serializable {
private static final long serialVersionUID = -14423507905800987L;
/**
* 支付id
*/
private Long paymentId;
/**
* 订单id
*/
private Long orderId;
/**
* 卖家id(收款方)
*/
private Long sellerId;
/**
* 支付金额
*/
private Double paymentMoney;
/**
* 支付时间
*/
private Date paymentTime;
/**
* 支付方式:01余额
*/
private String paymentMethod;
/**
* 优惠金额
*/
private Double districtMoney;
/**
* 支付状态
*/
private String paymentStatus;
/**
* 购买方式:01年,02季,03月,04次(服务类型)
*/
private String purchaseMethod;
/**
* 创建时间
*/
private Date creTime;
/**
* 删除标识
*/
private String delFlag;
public Long getPaymentId() {
return paymentId;
}
public void setPaymentId(Long paymentId) {
this.paymentId = paymentId;
}
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public Long getSellerId() {
return sellerId;
}
public void setSellerId(Long sellerId) {
this.sellerId = sellerId;
}
public Double getPaymentMoney() {
return paymentMoney;
}
public void setPaymentMoney(Double paymentMoney) {
this.paymentMoney = paymentMoney;
}
public Date getPaymentTime() {
return paymentTime;
}
public void setPaymentTime(Date paymentTime) {
this.paymentTime = paymentTime;
}
public String getPaymentMethod() {
return paymentMethod;
}
public void setPaymentMethod(String paymentMethod) {
this.paymentMethod = paymentMethod;
}
public Double getDistrictMoney() {
return districtMoney;
}
public void setDistrictMoney(Double districtMoney) {
this.districtMoney = districtMoney;
}
public String getPaymentStatus() {
return paymentStatus;
}
public void setPaymentStatus(String paymentStatus) {
this.paymentStatus = paymentStatus;
}
public String getPurchaseMethod() {
return purchaseMethod;
}
public void setPurchaseMethod(String purchaseMethod) {
this.purchaseMethod = purchaseMethod;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 日志管理(TPlatformLog)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:42
*/
@TableName("t_platform_Log")
@ApiModel
public class PlatformLog implements Serializable {
private static final long serialVersionUID = 112371340504875570L;
/**
* 日志id
*/
private Long platformLogId;
/**
* 请求ip
*/
private String requestIp;
/**
* 调用人id
*/
private String callerId;
/**
* 商品id
*/
private Long dataGoodsId;
/**
* apikey
*/
private String apiKey;
/**
* 请求参数
*/
private String requestParams;
/**
* 返回参数
*/
private String returnParams;
/**
* 请求路径
*/
private String requestUrl;
/**
* 请求时间
*/
private Date requestTime;
/**
* 服务类型:01年,02月,03次
*/
private String serviceType;
/**
* 数据类型:01api,02数据包
*/
private String dataGoodsType;
/**
* 下载地址
*/
private String downloadAddress;
/**
* 数据商品单价
*/
private Double dataPrice;
/**
* 价格类型:01免费,02收费
*/
private String priceType;
/**
* 调用总次数
*/
private Long totalTimes;
/**
* 已使用次数
*/
private Long usedTimes;
/**
* 剩余次数
*/
private Long remainTimes;
/**
* 有效开始时间
*/
private Date startTime;
/**
* 有效结束时间
*/
private Date endTime;
/**
* 创建时间
*/
private Date creTime;
/**
* 删除标识
*/
private String delFlag;
public Long getPlatformLogId() {
return platformLogId;
}
public void setPlatformLogId(Long platformLogId) {
this.platformLogId = platformLogId;
}
public String getRequestIp() {
return requestIp;
}
public void setRequestIp(String requestIp) {
this.requestIp = requestIp;
}
public String getCallerId() {
return callerId;
}
public void setCallerId(String callerId) {
this.callerId = callerId;
}
public Long getDataGoodsId() {
return dataGoodsId;
}
public void setDataGoodsId(Long dataGoodsId) {
this.dataGoodsId = dataGoodsId;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public String getRequestParams() {
return requestParams;
}
public void setRequestParams(String requestParams) {
this.requestParams = requestParams;
}
public String getReturnParams() {
return returnParams;
}
public void setReturnParams(String returnParams) {
this.returnParams = returnParams;
}
public String getRequestUrl() {
return requestUrl;
}
public void setRequestUrl(String requestUrl) {
this.requestUrl = requestUrl;
}
public Date getRequestTime() {
return requestTime;
}
public void setRequestTime(Date requestTime) {
this.requestTime = requestTime;
}
public String getServiceType() {
return serviceType;
}
public void setServiceType(String serviceType) {
this.serviceType = serviceType;
}
public String getDataGoodsType() {
return dataGoodsType;
}
public void setDataGoodsType(String dataGoodsType) {
this.dataGoodsType = dataGoodsType;
}
public String getDownloadAddress() {
return downloadAddress;
}
public void setDownloadAddress(String downloadAddress) {
this.downloadAddress = downloadAddress;
}
public Double getDataPrice() {
return dataPrice;
}
public void setDataPrice(Double dataPrice) {
this.dataPrice = dataPrice;
}
public String getPriceType() {
return priceType;
}
public void setPriceType(String priceType) {
this.priceType = priceType;
}
public Long getTotalTimes() {
return totalTimes;
}
public void setTotalTimes(Long totalTimes) {
this.totalTimes = totalTimes;
}
public Long getUsedTimes() {
return usedTimes;
}
public void setUsedTimes(Long usedTimes) {
this.usedTimes = usedTimes;
}
public Long getRemainTimes() {
return remainTimes;
}
public void setRemainTimes(Long remainTimes) {
this.remainTimes = remainTimes;
}
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/*
* 测试样例
* */
@TableName("tb_user")
@ApiModel
public class User implements Serializable {
/**
* id
*/
@TableId(value = "user_id",type = IdType.AUTO)
private Integer userId;
/**
* 用户名
*/
@ApiModelProperty(value = "用户名",required = true)
private String username;
/**
* 密码
*/
@ApiModelProperty(value = "密码")
private String password;
/**
* 年龄
*/
@ApiModelProperty(value = "年龄")
private Integer age;
/**
* 电话
*/
@ApiModelProperty(value = "电话")
private Integer telphone;
/**
* 地址
*/
@ApiModelProperty(value = "地址")
private String addres;
/**
*/
private String delFlag;
/**
* 组织机构ID
*/
@ApiModelProperty(value = "组织机构ID")
private Integer orgId;
/*
* 姓名
* */
@ApiModelProperty(value = "姓名")
private String account;
/**
* 性别
*/
@ApiModelProperty(value = "性别")
private String gender;
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password == null ? null : password.trim();
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public Integer getTelphone() {
return telphone;
}
public void setTelphone(Integer telphone) {
this.telphone = telphone;
}
public String getAddres() {
return addres;
}
public void setAddres(String addres) {
this.addres = addres == null ? null : addres.trim();
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public Integer getOrgId() {
return orgId;
}
public void setOrgId(Integer orgId) {
this.orgId = orgId;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity.sys;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
/**
* 组织机构表(TSysOrg)实体类
*
* @author Bellamy
* @since 2020-11-29 14:30:24
*/
@TableName("t_sys_org")
@ApiModel
public class SysOrg implements Serializable {
private static final long serialVersionUID = 289053694180114461L;
/**
* 组织机构id
*/
@TableId(value = "org_id",type = IdType.AUTO)
@ApiModelProperty(value = "组织机构id")
private Long orgId;
/**
* 组织名称
*/
@ApiModelProperty(value = "组织名称")
private String orgName;
/**
* 父组织id
*/
@ApiModelProperty(value = "父组织id")
private Long parentOrgId;
/**
* 是否子节点:Y是,N否
*/
@ApiModelProperty(value = "是否子节点:Y是,N否")
private String ifChild;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date creTime;
/**
* 创建人
*/
@ApiModelProperty(value = "创建人")
private String crePerson;
/**
* 更新人
*/
@ApiModelProperty(value = "更新人")
private String uptPerson;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date uptTime;
/**
* 删除标识:Y删除,N未删除
*/
@ApiModelProperty(value = "删除标识:Y删除,N未删除")
private String delFlag;
public Long getOrgId() {
return orgId;
}
public void setOrgId(Long orgId) {
this.orgId = orgId;
}
public String getOrgName() {
return orgName;
}
public void setOrgName(String orgName) {
this.orgName = orgName;
}
public Long getParentOrgId() {
return parentOrgId;
}
public void setParentOrgId(Long parentOrgId) {
this.parentOrgId = parentOrgId;
}
public String getIfChild() {
return ifChild;
}
public void setIfChild(String ifChild) {
this.ifChild = ifChild;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public String getCrePerson() {
return crePerson;
}
public void setCrePerson(String crePerson) {
this.crePerson = crePerson;
}
public String getUptPerson() {
return uptPerson;
}
public void setUptPerson(String uptPerson) {
this.uptPerson = uptPerson;
}
public Date getUptTime() {
return uptTime;
}
public void setUptTime(Date uptTime) {
this.uptTime = uptTime;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity.sys;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
/**
* 角色表(TSysRole)实体类
*
* @author Bellamy
* @since 2020-11-29 14:30:24
*/
@TableName("t_sys_role")
@ApiModel
public class SysRole implements Serializable {
private static final long serialVersionUID = 805800518211894799L;
/**
* 角色id
*/
@TableId(value = "role_id",type = IdType.AUTO)
@ApiModelProperty(value = "角色id")
private Long roleId;
/**
* 角色名称
*/
@ApiModelProperty(value = "角色名称")
private String roleName;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date creTime;
/**
* 创建人
*/
@ApiModelProperty(value = "创建人")
private String crePerson;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date uptTime;
/**
* 更新人
*/
@ApiModelProperty(value = "更新人")
private String uptPerson;
/**
* 删除标识:Y删除,N未删除
*/
@ApiModelProperty(value = "删除标识:Y删除,N未删除")
private String delFlag;
public Long getRoleId() {
return roleId;
}
public void setRoleId(Long roleId) {
this.roleId = roleId;
}
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public String getCrePerson() {
return crePerson;
}
public void setCrePerson(String crePerson) {
this.crePerson = crePerson;
}
public Date getUptTime() {
return uptTime;
}
public void setUptTime(Date uptTime) {
this.uptTime = uptTime;
}
public String getUptPerson() {
return uptPerson;
}
public void setUptPerson(String uptPerson) {
this.uptPerson = uptPerson;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity.sys;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
/**
* (SysRoleMenu)实体类
*
* @author Bellamy
* @since 2020-11-29 14:30:25
*/
@TableName("t_sys_role_menu")
@ApiModel
public class SysRoleMenu implements Serializable {
private static final long serialVersionUID = -82724914905011429L;
/**
* 主键
*/
@TableId(value = "role_menu_id",type = IdType.AUTO)
private Long roleMenuId;
/**
* 角色id
*/
private Long roleId;
/**
* 菜单id
*/
private Long menuId;
public Long getRoleMenuId() {
return roleMenuId;
}
public void setRoleMenuId(Long roleMenuId) {
this.roleMenuId = roleMenuId;
}
public Long getRoleId() {
return roleId;
}
public void setRoleId(Long roleId) {
this.roleId = roleId;
}
public Long getMenuId() {
return menuId;
}
public void setMenuId(Long menuId) {
this.menuId = menuId;
}
}
\ No newline at end of file
package com.jz.manage.moduls.entity.sys;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
/**
* 平台系统用户表(SysUser)实体类
*
* @author Bellamy
* @since 2020-11-29 14:30:26
*/
@TableName("t_sys_user")
@ApiModel
public class SysUser implements Serializable {
private static final long serialVersionUID = 340254540407496782L;
/**
* 平台用户id
*/
@TableId(value = "user_id",type = IdType.AUTO)
private Long userId;
/**
* 组织机构id
*/
private Long orgId;
/**
* 用户姓名
*/
private String userName;
/**
* 账户
*/
private String account;
/**
* 密码
*/
private String password;
/**
* 供应商编号
*/
private String supplierCode;
/**
* 供应商名称(店铺名称)
*/
private String supplierName;
/**
* 电话
*/
private String telephone;
/**
* 创建时间
*/
private Date creTime;
/**
* 删除标识
*/
private String delFlag;
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getOrgId() {
return orgId;
}
public void setOrgId(Long orgId) {
this.orgId = orgId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getSupplierCode() {
return supplierCode;
}
public void setSupplierCode(String supplierCode) {
this.supplierCode = supplierCode;
}
public String getSupplierName() {
return supplierName;
}
public void setSupplierName(String supplierName) {
this.supplierName = supplierName;
}
public String getTelephone() {
return telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public Date getCreTime() {
return creTime;
}
public void setCreTime(Date creTime) {
this.creTime = creTime;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
\ 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.jz.manage.moduls.mapper.DataGoodsApiDao">
<resultMap type="com.jz.manage.moduls.entity.DataGoodsApi" id="TDataGoodsApiMap">
<result property="goodsApi" column="goods_api" jdbcType="INTEGER"/>
<result property="dataGoodsId" column="data_goods_id" jdbcType="INTEGER"/>
<result property="apiName" column="api_name" jdbcType="VARCHAR"/>
<result property="requestType" column="request_type" jdbcType="VARCHAR"/>
<result property="apiUrl" column="api_url" jdbcType="VARCHAR"/>
<result property="apiMethod" column="api_method" jdbcType="VARCHAR"/>
<result property="apiProtocl" column="api_protocl" jdbcType="VARCHAR"/>
<result property="returnDataExample" column="return_data_example" jdbcType="VARCHAR"/>
<result property="requestExample" column="request_example" jdbcType="VARCHAR"/>
<result property="returnType" column="return_type" jdbcType="VARCHAR"/>
<result property="apiKey" column="api_key" jdbcType="VARCHAR"/>
<result property="creTime" column="cre_time" jdbcType="TIMESTAMP"/>
<result property="crePerson" column="cre_person" jdbcType="VARCHAR"/>
<result property="uptPerson" column="upt_person" jdbcType="VARCHAR"/>
<result property="uptTime" column="upt_time" jdbcType="TIMESTAMP"/>
<result property="delFlag" column="del_flag" jdbcType="VARCHAR"/>
</resultMap>
<!--查询单个-->
<select id="queryById" resultMap="TDataGoodsApiMap">
select
goods_api, data_goods_id, api_name, request_type, api_url, api_method, api_protocl, return_data_example, request_example, return_type, api_key, cre_time, cre_person, upt_person, upt_time, del_flag
from t_data_goods_api
where goods_api = #{goodsApi}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TDataGoodsApiMap">
select
goods_api, data_goods_id, api_name, request_type, api_url, api_method, api_protocl, return_data_example, request_example, return_type, api_key, cre_time, cre_person, upt_person, upt_time, del_flag
from t_data_goods_api
limit #{offset}, #{limit}
</select>
<!--通过实体作为筛选条件查询-->
<select id="queryAll" resultMap="TDataGoodsApiMap">
select
goods_api, data_goods_id, api_name, request_type, api_url, api_method, api_protocl, return_data_example,
request_example, return_type, api_key, cre_time, cre_person, upt_person, upt_time, del_flag
from t_data_goods_api
<where>
<if test="goodsApi != null">
and goods_api = #{goodsApi}
</if>
<if test="dataGoodsId != null">
and data_goods_id = #{dataGoodsId}
</if>
<if test="apiName != null and apiName != ''">
and api_name = #{apiName}
</if>
<if test="requestType != null and requestType != ''">
and request_type = #{requestType}
</if>
<if test="apiUrl != null and apiUrl != ''">
and api_url = #{apiUrl}
</if>
<if test="apiMethod != null and apiMethod != ''">
and api_method = #{apiMethod}
</if>
<if test="apiProtocl != null and apiProtocl != ''">
and api_protocl = #{apiProtocl}
</if>
<if test="returnDataExample != null and returnDataExample != ''">
and return_data_example = #{returnDataExample}
</if>
<if test="requestExample != null and requestExample != ''">
and request_example = #{requestExample}
</if>
<if test="returnType != null and returnType != ''">
and return_type = #{returnType}
</if>
<if test="apiKey != null and apiKey != ''">
and api_key = #{apiKey}
</if>
<if test="creTime != null">
and cre_time = #{creTime}
</if>
<if test="crePerson != null and crePerson != ''">
and cre_person = #{crePerson}
</if>
<if test="uptPerson != null and uptPerson != ''">
and upt_person = #{uptPerson}
</if>
<if test="uptTime != null">
and upt_time = #{uptTime}
</if>
<if test="delFlag != null and delFlag != ''">
and del_flag = #{delFlag}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="goodsApi" useGeneratedKeys="true">
insert into t_data_goods_api(data_goods_id, api_name, request_type, api_url, api_method, api_protocl, return_data_example, request_example, return_type, api_key, cre_time, cre_person, upt_person, upt_time, del_flag)
values (#{dataGoodsId}, #{apiName}, #{requestType}, #{apiUrl}, #{apiMethod}, #{apiProtocl}, #{returnDataExample}, #{requestExample}, #{returnType}, #{apiKey}, #{creTime}, #{crePerson}, #{uptPerson}, #{uptTime}, #{delFlag})
</insert>
<insert id="insertBatch" keyProperty="goodsApi" useGeneratedKeys="true">
insert into t_data_goods_api(data_goods_id, api_name, request_type, api_url, api_method,
api_protocl, return_data_example, request_example, return_type, api_key, cre_time, cre_person, upt_person,
upt_time, del_flag)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.dataGoodsId}, #{entity.apiName}, #{entity.requestType}, #{entity.apiUrl}, #{entity.apiMethod},
#{entity.apiProtocl}, #{entity.returnDataExample}, #{entity.requestExample}, #{entity.returnType},
#{entity.apiKey}, #{entity.creTime}, #{entity.crePerson}, #{entity.uptPerson}, #{entity.uptTime},
#{entity.delFlag})
</foreach>
</insert>
<insert id="insertOrUpdateBatch" keyProperty="goodsApi" useGeneratedKeys="true">
insert into t_data_goods_api(data_goods_id, api_name, request_type, api_url, api_method,
api_protocl, return_data_example, request_example, return_type, api_key, cre_time, cre_person, upt_person,
upt_time, del_flag)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.dataGoodsId}, #{entity.apiName}, #{entity.requestType}, #{entity.apiUrl}, #{entity.apiMethod},
#{entity.apiProtocl}, #{entity.returnDataExample}, #{entity.requestExample}, #{entity.returnType},
#{entity.apiKey}, #{entity.creTime}, #{entity.crePerson}, #{entity.uptPerson}, #{entity.uptTime},
#{entity.delFlag})
</foreach>
on duplicate key update
data_goods_id = values(data_goods_id) , api_name = values(api_name) , request_type = values(request_type) ,
api_url = values(api_url) , api_method = values(api_method) , api_protocl = values(api_protocl) ,
return_data_example = values(return_data_example) , request_example = values(request_example) , return_type =
values(return_type) , api_key = values(api_key) , cre_time = values(cre_time) , cre_person = values(cre_person)
, upt_person = values(upt_person) , upt_time = values(upt_time) , del_flag = values(del_flag)
</insert>
<!--通过主键修改数据-->
<update id="update">
update t_data_goods_api
<set>
<if test="dataGoodsId != null">
data_goods_id = #{dataGoodsId},
</if>
<if test="apiName != null and apiName != ''">
api_name = #{apiName},
</if>
<if test="requestType != null and requestType != ''">
request_type = #{requestType},
</if>
<if test="apiUrl != null and apiUrl != ''">
api_url = #{apiUrl},
</if>
<if test="apiMethod != null and apiMethod != ''">
api_method = #{apiMethod},
</if>
<if test="apiProtocl != null and apiProtocl != ''">
api_protocl = #{apiProtocl},
</if>
<if test="returnDataExample != null and returnDataExample != ''">
return_data_example = #{returnDataExample},
</if>
<if test="requestExample != null and requestExample != ''">
request_example = #{requestExample},
</if>
<if test="returnType != null and returnType != ''">
return_type = #{returnType},
</if>
<if test="apiKey != null and apiKey != ''">
api_key = #{apiKey},
</if>
<if test="creTime != null">
cre_time = #{creTime},
</if>
<if test="crePerson != null and crePerson != ''">
cre_person = #{crePerson},
</if>
<if test="uptPerson != null and uptPerson != ''">
upt_person = #{uptPerson},
</if>
<if test="uptTime != null">
upt_time = #{uptTime},
</if>
<if test="delFlag != null and delFlag != ''">
del_flag = #{delFlag},
</if>
</set>
where goods_api = #{goodsApi}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete from t_data_goods_api where goods_api = #{goodsApi}
</delete>
</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.jz.manage.moduls.mapper.DataGoodsApiParamsDao">
<resultMap type="com.jz.manage.moduls.entity.DataGoodsApiParams" id="TDataGoodsApiParamsMap">
<result property="apiParamsId" column="api_params_id" jdbcType="INTEGER"/>
<result property="goodsApi" column="goods_api" jdbcType="INTEGER"/>
<result property="paramsDiff" column="params_diff" jdbcType="VARCHAR"/>
<result property="paramsName" column="params_name" jdbcType="VARCHAR"/>
<result property="paramsType" column="params_type" jdbcType="VARCHAR"/>
<result property="paramsDesc" column="params_desc" jdbcType="VARCHAR"/>
<result property="defaultValue" column="default_value" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="ifRequird" column="if_requird" jdbcType="VARCHAR"/>
<result property="delFlag" column="del_flag" jdbcType="VARCHAR"/>
<result property="creTime" column="cre_time" jdbcType="TIMESTAMP"/>
<result property="uptTime" column="upt_time" jdbcType="TIMESTAMP"/>
</resultMap>
<!--查询单个-->
<select id="queryById" resultMap="TDataGoodsApiParamsMap">
select
api_params_id, goods_api, params_diff, params_name, params_type, params_desc, default_value, remark, if_requird, del_flag, cre_time, upt_time
from t_data_goods_api_params
where api_params_id = #{apiParamsId}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TDataGoodsApiParamsMap">
select
api_params_id, goods_api, params_diff, params_name, params_type, params_desc, default_value, remark, if_requird, del_flag, cre_time, upt_time
from t_data_goods_api_params
limit #{offset}, #{limit}
</select>
<!--通过实体作为筛选条件查询-->
<select id="queryAll" resultMap="TDataGoodsApiParamsMap">
select
api_params_id, goods_api, params_diff, params_name, params_type, params_desc, default_value, remark, if_requird,
del_flag, cre_time, upt_time
from t_data_goods_api_params
<where>
<if test="apiParamsId != null">
and api_params_id = #{apiParamsId}
</if>
<if test="goodsApi != null">
and goods_api = #{goodsApi}
</if>
<if test="paramsDiff != null and paramsDiff != ''">
and params_diff = #{paramsDiff}
</if>
<if test="paramsName != null and paramsName != ''">
and params_name = #{paramsName}
</if>
<if test="paramsType != null and paramsType != ''">
and params_type = #{paramsType}
</if>
<if test="paramsDesc != null and paramsDesc != ''">
and params_desc = #{paramsDesc}
</if>
<if test="defaultValue != null and defaultValue != ''">
and default_value = #{defaultValue}
</if>
<if test="remark != null and remark != ''">
and remark = #{remark}
</if>
<if test="ifRequird != null and ifRequird != ''">
and if_requird = #{ifRequird}
</if>
<if test="delFlag != null and delFlag != ''">
and del_flag = #{delFlag}
</if>
<if test="creTime != null">
and cre_time = #{creTime}
</if>
<if test="uptTime != null">
and upt_time = #{uptTime}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="apiParamsId" useGeneratedKeys="true">
insert into t_data_goods_api_params(goods_api, params_diff, params_name, params_type, params_desc, default_value, remark, if_requird, del_flag, cre_time, upt_time)
values (#{goodsApi}, #{paramsDiff}, #{paramsName}, #{paramsType}, #{paramsDesc}, #{defaultValue}, #{remark}, #{ifRequird}, #{delFlag}, #{creTime}, #{uptTime})
</insert>
<insert id="insertBatch" keyProperty="apiParamsId" useGeneratedKeys="true">
insert into t_data_goods_api_params(goods_api, params_diff, params_name, params_type,
params_desc, default_value, remark, if_requird, del_flag, cre_time, upt_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.goodsApi}, #{entity.paramsDiff}, #{entity.paramsName}, #{entity.paramsType}, #{entity.paramsDesc},
#{entity.defaultValue}, #{entity.remark}, #{entity.ifRequird}, #{entity.delFlag}, #{entity.creTime},
#{entity.uptTime})
</foreach>
</insert>
<insert id="insertOrUpdateBatch" keyProperty="apiParamsId" useGeneratedKeys="true">
insert into t_data_goods_api_params(goods_api, params_diff, params_name, params_type,
params_desc, default_value, remark, if_requird, del_flag, cre_time, upt_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.goodsApi}, #{entity.paramsDiff}, #{entity.paramsName}, #{entity.paramsType}, #{entity.paramsDesc},
#{entity.defaultValue}, #{entity.remark}, #{entity.ifRequird}, #{entity.delFlag}, #{entity.creTime},
#{entity.uptTime})
</foreach>
on duplicate key update
goods_api = values(goods_api) , params_diff = values(params_diff) , params_name = values(params_name) ,
params_type = values(params_type) , params_desc = values(params_desc) , default_value = values(default_value) ,
remark = values(remark) , if_requird = values(if_requird) , del_flag = values(del_flag) , cre_time =
values(cre_time) , upt_time = values(upt_time)
</insert>
<!--通过主键修改数据-->
<update id="update">
update t_data_goods_api_params
<set>
<if test="goodsApi != null">
goods_api = #{goodsApi},
</if>
<if test="paramsDiff != null and paramsDiff != ''">
params_diff = #{paramsDiff},
</if>
<if test="paramsName != null and paramsName != ''">
params_name = #{paramsName},
</if>
<if test="paramsType != null and paramsType != ''">
params_type = #{paramsType},
</if>
<if test="paramsDesc != null and paramsDesc != ''">
params_desc = #{paramsDesc},
</if>
<if test="defaultValue != null and defaultValue != ''">
default_value = #{defaultValue},
</if>
<if test="remark != null and remark != ''">
remark = #{remark},
</if>
<if test="ifRequird != null and ifRequird != ''">
if_requird = #{ifRequird},
</if>
<if test="delFlag != null and delFlag != ''">
del_flag = #{delFlag},
</if>
<if test="creTime != null">
cre_time = #{creTime},
</if>
<if test="uptTime != null">
upt_time = #{uptTime},
</if>
</set>
where api_params_id = #{apiParamsId}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete from t_data_goods_api_params where api_params_id = #{apiParamsId}
</delete>
</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