7 changed files with 930 additions and 1 deletions
@ -0,0 +1,443 @@ |
|||
package cn.chjyj.szwh.bean; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 订单商品明细 |
|||
* (交易快照) |
|||
*/ |
|||
public class OrderGoodsDetail implements Serializable { |
|||
/** |
|||
* order_goods_detail |
|||
* id,batchcode,user_id as userId,entrust_islicode as entrustIslicode,islicode, |
|||
* goods_name as goodsName,goods_image as goodsImage,contract_code as contractCode, |
|||
* orderIslicode,history_entrust_name as historyEntrustName,history_entrust_code, |
|||
* identifier,identifiers,sourcedata_islicode as sourcedataIslicode,close_serial_number as closeSerialNumber, |
|||
* price,goods_price as goodsPrice,service_charge as serviceCharge,earnest_money as earnestMoney, |
|||
* transaction_count as transactionCount,money,entrust_service_charge as entrustServiceCharge, |
|||
* entrust_money as entrustMoney,goods_ownership as goodsOwnership,goods_ownership_str as goodsOwnershipStr, |
|||
* goods_type as goodsType,charges_type as chargesType,goods_islicode as goodsIslicode,goods_entrust as goodsEntrust, |
|||
* contractual_period as contractualPeriod,transaction_class as transactionClass,contract, |
|||
* otherIdentifiers,classification,source_islicode as sourceIslicode,source_islicode_name as sourceIslicodeName, |
|||
* data_json as dataJson,source_json as sourceJson,source_download as sourceDownload,close_id as closeId, |
|||
* close_status as closeStatus,is_close as isClose,callback_msg as callbackMsg,createtime,updatetime,is_deleted as isDeleted |
|||
*/ |
|||
private Integer id; |
|||
private Long batchcode;//订单号
|
|||
private Integer userId;//用户id
|
|||
private String entrustIslicode;//委托方isli标识码
|
|||
private String islicode; |
|||
private String goodsName;//商品名称
|
|||
private String goodsImage;//商品图片
|
|||
private String contractCode;//合约关联编码(订单交易isli标识码)
|
|||
private String orderislicode; |
|||
private String historyEntrustName;//历史委托方名称
|
|||
private String historyEntrustCode;//历史委托方组织机构代码
|
|||
private String identifier;//资源isli
|
|||
private String identifiers;//合约ISLI标志码/商品ISLI编码
|
|||
private String sourcedataIslicode;//sourceData里的islicode
|
|||
private String closeSerialNumber;//结算流水号
|
|||
private BigDecimal price;//单价
|
|||
private BigDecimal goodsPrice;//标的金额(不算服务费)
|
|||
private BigDecimal serviceCharge;//服务费金额
|
|||
private BigDecimal earnestMoney;//商品保证金
|
|||
private Integer transactionCount;//交易数量
|
|||
private BigDecimal money;//商品总金额
|
|||
private BigDecimal entrustServiceCharge;//委托方服务费
|
|||
private BigDecimal entrustMoney;//委托方金额
|
|||
private Integer goodsOwnership;//商品类型;1:所有权;2:使用权
|
|||
private String goodsOwnershipStr;//商品权属
|
|||
private Integer goodsType;//商品类型;1:文化资源数据;2:文化数字内容
|
|||
private Integer chargesType;//商品费用类型;1:免费;2:付费
|
|||
private String goodsIslicode;//商品isli标识码
|
|||
private Integer goodsEntrust;//商品委托类型;1:转让;2:许可
|
|||
private Integer contractualPeriod;//委托周期;1:永久,2:单次,3:周期
|
|||
private Integer transactionClass;//交易种类;1:权属;2:商品
|
|||
private String contract;//描述
|
|||
private String otheridentifiers;//权属自有标识符(商品自有标识符)
|
|||
private String classification;//标的商品的分类(交易种类为商品时候用的)
|
|||
private String sourceIslicode;//资源isli标识码
|
|||
private String sourceIslicodeName;//资源名称
|
|||
private String dataJson;//数据;json格式
|
|||
private String sourceJson; |
|||
private String sourceDownload;//资源下载数据
|
|||
private String closeId;//该次结算批次号
|
|||
private Integer closeStatus;//1:无结算信息;2:结算中;3:用户名和收款人不一致;4:收款信息错误;5:结算成功
|
|||
private Integer isClose; |
|||
private String callbackMsg; |
|||
private Date createtime;//创建时间
|
|||
private Date updatetime;//修改时间
|
|||
private Integer isDeleted;//删除状态;0:未删除;1:已删除
|
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Integer getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Integer id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getBatchcode() { |
|||
return batchcode; |
|||
} |
|||
|
|||
public void setBatchcode(Long batchcode) { |
|||
this.batchcode = batchcode; |
|||
} |
|||
|
|||
public Integer getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Integer userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getEntrustIslicode() { |
|||
return entrustIslicode; |
|||
} |
|||
|
|||
public void setEntrustIslicode(String entrustIslicode) { |
|||
this.entrustIslicode = entrustIslicode; |
|||
} |
|||
|
|||
public String getIslicode() { |
|||
return islicode; |
|||
} |
|||
|
|||
public void setIslicode(String islicode) { |
|||
this.islicode = islicode; |
|||
} |
|||
|
|||
public String getGoodsName() { |
|||
return goodsName; |
|||
} |
|||
|
|||
public void setGoodsName(String goodsName) { |
|||
this.goodsName = goodsName; |
|||
} |
|||
|
|||
public String getGoodsImage() { |
|||
return goodsImage; |
|||
} |
|||
|
|||
public void setGoodsImage(String goodsImage) { |
|||
this.goodsImage = goodsImage; |
|||
} |
|||
|
|||
public String getContractCode() { |
|||
return contractCode; |
|||
} |
|||
|
|||
public void setContractCode(String contractCode) { |
|||
this.contractCode = contractCode; |
|||
} |
|||
|
|||
public String getOrderislicode() { |
|||
return orderislicode; |
|||
} |
|||
|
|||
public void setOrderislicode(String orderislicode) { |
|||
this.orderislicode = orderislicode; |
|||
} |
|||
|
|||
public String getHistoryEntrustName() { |
|||
return historyEntrustName; |
|||
} |
|||
|
|||
public void setHistoryEntrustName(String historyEntrustName) { |
|||
this.historyEntrustName = historyEntrustName; |
|||
} |
|||
|
|||
public String getHistoryEntrustCode() { |
|||
return historyEntrustCode; |
|||
} |
|||
|
|||
public void setHistoryEntrustCode(String historyEntrustCode) { |
|||
this.historyEntrustCode = historyEntrustCode; |
|||
} |
|||
|
|||
public String getIdentifier() { |
|||
return identifier; |
|||
} |
|||
|
|||
public void setIdentifier(String identifier) { |
|||
this.identifier = identifier; |
|||
} |
|||
|
|||
public String getIdentifiers() { |
|||
return identifiers; |
|||
} |
|||
|
|||
public void setIdentifiers(String identifiers) { |
|||
this.identifiers = identifiers; |
|||
} |
|||
|
|||
public String getSourcedataIslicode() { |
|||
return sourcedataIslicode; |
|||
} |
|||
|
|||
public void setSourcedataIslicode(String sourcedataIslicode) { |
|||
this.sourcedataIslicode = sourcedataIslicode; |
|||
} |
|||
|
|||
public String getCloseSerialNumber() { |
|||
return closeSerialNumber; |
|||
} |
|||
|
|||
public void setCloseSerialNumber(String closeSerialNumber) { |
|||
this.closeSerialNumber = closeSerialNumber; |
|||
} |
|||
|
|||
public BigDecimal getPrice() { |
|||
return price; |
|||
} |
|||
|
|||
public void setPrice(BigDecimal price) { |
|||
this.price = price; |
|||
} |
|||
|
|||
public BigDecimal getGoodsPrice() { |
|||
return goodsPrice; |
|||
} |
|||
|
|||
public void setGoodsPrice(BigDecimal goodsPrice) { |
|||
this.goodsPrice = goodsPrice; |
|||
} |
|||
|
|||
public BigDecimal getServiceCharge() { |
|||
return serviceCharge; |
|||
} |
|||
|
|||
public void setServiceCharge(BigDecimal serviceCharge) { |
|||
this.serviceCharge = serviceCharge; |
|||
} |
|||
|
|||
public BigDecimal getEarnestMoney() { |
|||
return earnestMoney; |
|||
} |
|||
|
|||
public void setEarnestMoney(BigDecimal earnestMoney) { |
|||
this.earnestMoney = earnestMoney; |
|||
} |
|||
|
|||
public Integer getTransactionCount() { |
|||
return transactionCount; |
|||
} |
|||
|
|||
public void setTransactionCount(Integer transactionCount) { |
|||
this.transactionCount = transactionCount; |
|||
} |
|||
|
|||
public BigDecimal getMoney() { |
|||
return money; |
|||
} |
|||
|
|||
public void setMoney(BigDecimal money) { |
|||
this.money = money; |
|||
} |
|||
|
|||
public BigDecimal getEntrustServiceCharge() { |
|||
return entrustServiceCharge; |
|||
} |
|||
|
|||
public void setEntrustServiceCharge(BigDecimal entrustServiceCharge) { |
|||
this.entrustServiceCharge = entrustServiceCharge; |
|||
} |
|||
|
|||
public BigDecimal getEntrustMoney() { |
|||
return entrustMoney; |
|||
} |
|||
|
|||
public void setEntrustMoney(BigDecimal entrustMoney) { |
|||
this.entrustMoney = entrustMoney; |
|||
} |
|||
|
|||
public Integer getGoodsOwnership() { |
|||
return goodsOwnership; |
|||
} |
|||
|
|||
public void setGoodsOwnership(Integer goodsOwnership) { |
|||
this.goodsOwnership = goodsOwnership; |
|||
} |
|||
|
|||
public String getGoodsOwnershipStr() { |
|||
return goodsOwnershipStr; |
|||
} |
|||
|
|||
public void setGoodsOwnershipStr(String goodsOwnershipStr) { |
|||
this.goodsOwnershipStr = goodsOwnershipStr; |
|||
} |
|||
|
|||
public Integer getGoodsType() { |
|||
return goodsType; |
|||
} |
|||
|
|||
public void setGoodsType(Integer goodsType) { |
|||
this.goodsType = goodsType; |
|||
} |
|||
|
|||
public Integer getChargesType() { |
|||
return chargesType; |
|||
} |
|||
|
|||
public void setChargesType(Integer chargesType) { |
|||
this.chargesType = chargesType; |
|||
} |
|||
|
|||
public String getGoodsIslicode() { |
|||
return goodsIslicode; |
|||
} |
|||
|
|||
public void setGoodsIslicode(String goodsIslicode) { |
|||
this.goodsIslicode = goodsIslicode; |
|||
} |
|||
|
|||
public Integer getGoodsEntrust() { |
|||
return goodsEntrust; |
|||
} |
|||
|
|||
public void setGoodsEntrust(Integer goodsEntrust) { |
|||
this.goodsEntrust = goodsEntrust; |
|||
} |
|||
|
|||
public Integer getContractualPeriod() { |
|||
return contractualPeriod; |
|||
} |
|||
|
|||
public void setContractualPeriod(Integer contractualPeriod) { |
|||
this.contractualPeriod = contractualPeriod; |
|||
} |
|||
|
|||
public Integer getTransactionClass() { |
|||
return transactionClass; |
|||
} |
|||
|
|||
public void setTransactionClass(Integer transactionClass) { |
|||
this.transactionClass = transactionClass; |
|||
} |
|||
|
|||
public String getContract() { |
|||
return contract; |
|||
} |
|||
|
|||
public void setContract(String contract) { |
|||
this.contract = contract; |
|||
} |
|||
|
|||
public String getOtheridentifiers() { |
|||
return otheridentifiers; |
|||
} |
|||
|
|||
public void setOtheridentifiers(String otheridentifiers) { |
|||
this.otheridentifiers = otheridentifiers; |
|||
} |
|||
|
|||
public String getClassification() { |
|||
return classification; |
|||
} |
|||
|
|||
public void setClassification(String classification) { |
|||
this.classification = classification; |
|||
} |
|||
|
|||
public String getSourceIslicode() { |
|||
return sourceIslicode; |
|||
} |
|||
|
|||
public void setSourceIslicode(String sourceIslicode) { |
|||
this.sourceIslicode = sourceIslicode; |
|||
} |
|||
|
|||
public String getSourceIslicodeName() { |
|||
return sourceIslicodeName; |
|||
} |
|||
|
|||
public void setSourceIslicodeName(String sourceIslicodeName) { |
|||
this.sourceIslicodeName = sourceIslicodeName; |
|||
} |
|||
|
|||
public String getDataJson() { |
|||
return dataJson; |
|||
} |
|||
|
|||
public void setDataJson(String dataJson) { |
|||
this.dataJson = dataJson; |
|||
} |
|||
|
|||
public String getSourceJson() { |
|||
return sourceJson; |
|||
} |
|||
|
|||
public void setSourceJson(String sourceJson) { |
|||
this.sourceJson = sourceJson; |
|||
} |
|||
|
|||
public String getSourceDownload() { |
|||
return sourceDownload; |
|||
} |
|||
|
|||
public void setSourceDownload(String sourceDownload) { |
|||
this.sourceDownload = sourceDownload; |
|||
} |
|||
|
|||
public String getCloseId() { |
|||
return closeId; |
|||
} |
|||
|
|||
public void setCloseId(String closeId) { |
|||
this.closeId = closeId; |
|||
} |
|||
|
|||
public Integer getCloseStatus() { |
|||
return closeStatus; |
|||
} |
|||
|
|||
public void setCloseStatus(Integer closeStatus) { |
|||
this.closeStatus = closeStatus; |
|||
} |
|||
|
|||
public Integer getIsClose() { |
|||
return isClose; |
|||
} |
|||
|
|||
public void setIsClose(Integer isClose) { |
|||
this.isClose = isClose; |
|||
} |
|||
|
|||
public String getCallbackMsg() { |
|||
return callbackMsg; |
|||
} |
|||
|
|||
public void setCallbackMsg(String callbackMsg) { |
|||
this.callbackMsg = callbackMsg; |
|||
} |
|||
|
|||
public Date getCreatetime() { |
|||
return createtime; |
|||
} |
|||
|
|||
public void setCreatetime(Date createtime) { |
|||
this.createtime = createtime; |
|||
} |
|||
|
|||
public Date getUpdatetime() { |
|||
return updatetime; |
|||
} |
|||
|
|||
public void setUpdatetime(Date updatetime) { |
|||
this.updatetime = updatetime; |
|||
} |
|||
|
|||
public Integer getIsDeleted() { |
|||
return isDeleted; |
|||
} |
|||
|
|||
public void setIsDeleted(Integer isDeleted) { |
|||
this.isDeleted = isDeleted; |
|||
} |
|||
} |
|||
@ -0,0 +1,255 @@ |
|||
package cn.chjyj.szwh.bean; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 订单商品资源 |
|||
*/ |
|||
public class OrderGoodsSource implements Serializable { |
|||
/** |
|||
* order_goods_source |
|||
* id,detail_id as detailId,batchcode,servicecode,linkcode,publisherid,registrant,resolution_url as resolutionUrl, |
|||
* source_type as sourceType,source_name_type as sourceNameType,source_name as sourceName, |
|||
* sourceIdentify,source_fragment as sourceFragment,target_name as targetName,target_name_type as targetNameType, |
|||
* targetIdentify,target_fragment as targetFragment,targetFormat,source_data as sourceData, |
|||
* target_data as targetData,metadataXml,cancellation_reason as cancellationReason,cancellationtime, |
|||
* allocationtime,datatype,is_deleted as isDeleted |
|||
*/ |
|||
private Integer id; |
|||
private Integer detailId;//订单商品明细ID
|
|||
private String batchcode;//订单号
|
|||
private String servicecode;//服务编码
|
|||
private String linkcode;//isli编码
|
|||
private Integer publisherid;//文化单位ID
|
|||
private String registrant;//编码登记者(文化单位)
|
|||
private String resolutionUrl;//解析地址-关联的目标资源地址URL
|
|||
private String sourceType;// 源类型;1图书/2:期刊/3:报纸/4:音像/5:音频/6:视频/7:其他文献/8:图片/9:文化产品
|
|||
private String sourceNameType;//源名称类型-->源标识符类型:ISBN/ISLI/CN
|
|||
private String sourceName;//源名称
|
|||
private String sourceidentify;//源标识符:源标识符类型 + 源标识符(ISBN000000XXXXXX)
|
|||
private String sourceFragment;//源片段
|
|||
private String targetName;//目标名称-->整体目标作品名称
|
|||
private String targetNameType;//目标名称类型-->目标标识符类型:ISBN/ISLI
|
|||
private String targetidentify;//目标标识符-->整体目标标识符:目标标识符类型 + 目标标识符(ISBN000000XXXXXX)
|
|||
private String targetFragment;//目标片段
|
|||
private String targetformat;//目标类型:服务关联创建的实体(1:其他文献/2:音频/3:视频/4:图片/5:文化产品)
|
|||
private String sourceData;//isli元数据(其他文献实体/音频实体/视频实体/): json格式
|
|||
private String targetData;//isli元数据(其他文献实体/音频实体/视频实体/): json格式
|
|||
private String metadataxml;//isli元数据(其他文献实体/音频实体/视频实体/): json格式
|
|||
private String cancellationReason;//注销说明
|
|||
private Date cancellationtime;//注销时间
|
|||
private Date allocationtime;//分配日期
|
|||
private Integer datatype;//数据类型
|
|||
private Integer isDeleted;//删除状态;0:未删除;1:已删除
|
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Integer getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Integer id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Integer getDetailId() { |
|||
return detailId; |
|||
} |
|||
|
|||
public void setDetailId(Integer detailId) { |
|||
this.detailId = detailId; |
|||
} |
|||
|
|||
public String getBatchcode() { |
|||
return batchcode; |
|||
} |
|||
|
|||
public void setBatchcode(String batchcode) { |
|||
this.batchcode = batchcode; |
|||
} |
|||
|
|||
public String getServicecode() { |
|||
return servicecode; |
|||
} |
|||
|
|||
public void setServicecode(String servicecode) { |
|||
this.servicecode = servicecode; |
|||
} |
|||
|
|||
public String getLinkcode() { |
|||
return linkcode; |
|||
} |
|||
|
|||
public void setLinkcode(String linkcode) { |
|||
this.linkcode = linkcode; |
|||
} |
|||
|
|||
public Integer getPublisherid() { |
|||
return publisherid; |
|||
} |
|||
|
|||
public void setPublisherid(Integer publisherid) { |
|||
this.publisherid = publisherid; |
|||
} |
|||
|
|||
public String getRegistrant() { |
|||
return registrant; |
|||
} |
|||
|
|||
public void setRegistrant(String registrant) { |
|||
this.registrant = registrant; |
|||
} |
|||
|
|||
public String getResolutionUrl() { |
|||
return resolutionUrl; |
|||
} |
|||
|
|||
public void setResolutionUrl(String resolutionUrl) { |
|||
this.resolutionUrl = resolutionUrl; |
|||
} |
|||
|
|||
public String getSourceType() { |
|||
return sourceType; |
|||
} |
|||
|
|||
public void setSourceType(String sourceType) { |
|||
this.sourceType = sourceType; |
|||
} |
|||
|
|||
public String getSourceNameType() { |
|||
return sourceNameType; |
|||
} |
|||
|
|||
public void setSourceNameType(String sourceNameType) { |
|||
this.sourceNameType = sourceNameType; |
|||
} |
|||
|
|||
public String getSourceName() { |
|||
return sourceName; |
|||
} |
|||
|
|||
public void setSourceName(String sourceName) { |
|||
this.sourceName = sourceName; |
|||
} |
|||
|
|||
public String getSourceidentify() { |
|||
return sourceidentify; |
|||
} |
|||
|
|||
public void setSourceidentify(String sourceidentify) { |
|||
this.sourceidentify = sourceidentify; |
|||
} |
|||
|
|||
public String getSourceFragment() { |
|||
return sourceFragment; |
|||
} |
|||
|
|||
public void setSourceFragment(String sourceFragment) { |
|||
this.sourceFragment = sourceFragment; |
|||
} |
|||
|
|||
public String getTargetName() { |
|||
return targetName; |
|||
} |
|||
|
|||
public void setTargetName(String targetName) { |
|||
this.targetName = targetName; |
|||
} |
|||
|
|||
public String getTargetNameType() { |
|||
return targetNameType; |
|||
} |
|||
|
|||
public void setTargetNameType(String targetNameType) { |
|||
this.targetNameType = targetNameType; |
|||
} |
|||
|
|||
public String getTargetidentify() { |
|||
return targetidentify; |
|||
} |
|||
|
|||
public void setTargetidentify(String targetidentify) { |
|||
this.targetidentify = targetidentify; |
|||
} |
|||
|
|||
public String getTargetFragment() { |
|||
return targetFragment; |
|||
} |
|||
|
|||
public void setTargetFragment(String targetFragment) { |
|||
this.targetFragment = targetFragment; |
|||
} |
|||
|
|||
public String getTargetformat() { |
|||
return targetformat; |
|||
} |
|||
|
|||
public void setTargetformat(String targetformat) { |
|||
this.targetformat = targetformat; |
|||
} |
|||
|
|||
public String getSourceData() { |
|||
return sourceData; |
|||
} |
|||
|
|||
public void setSourceData(String sourceData) { |
|||
this.sourceData = sourceData; |
|||
} |
|||
|
|||
public String getTargetData() { |
|||
return targetData; |
|||
} |
|||
|
|||
public void setTargetData(String targetData) { |
|||
this.targetData = targetData; |
|||
} |
|||
|
|||
public String getMetadataxml() { |
|||
return metadataxml; |
|||
} |
|||
|
|||
public void setMetadataxml(String metadataxml) { |
|||
this.metadataxml = metadataxml; |
|||
} |
|||
|
|||
public String getCancellationReason() { |
|||
return cancellationReason; |
|||
} |
|||
|
|||
public void setCancellationReason(String cancellationReason) { |
|||
this.cancellationReason = cancellationReason; |
|||
} |
|||
|
|||
public Date getCancellationtime() { |
|||
return cancellationtime; |
|||
} |
|||
|
|||
public void setCancellationtime(Date cancellationtime) { |
|||
this.cancellationtime = cancellationtime; |
|||
} |
|||
|
|||
public Date getAllocationtime() { |
|||
return allocationtime; |
|||
} |
|||
|
|||
public void setAllocationtime(Date allocationtime) { |
|||
this.allocationtime = allocationtime; |
|||
} |
|||
|
|||
public Integer getDatatype() { |
|||
return datatype; |
|||
} |
|||
|
|||
public void setDatatype(Integer datatype) { |
|||
this.datatype = datatype; |
|||
} |
|||
|
|||
public Integer getIsDeleted() { |
|||
return isDeleted; |
|||
} |
|||
|
|||
public void setIsDeleted(Integer isDeleted) { |
|||
this.isDeleted = isDeleted; |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package cn.chjyj.szwh.mapper; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 交易快照(订单产品) |
|||
*/ |
|||
@Component |
|||
public interface OrderGoodsDetailMapper { |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package cn.chjyj.szwh.mapper; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 订单商品资源mapper |
|||
*/ |
|||
@Component |
|||
public interface OrderGoodsSourceMapper { |
|||
} |
|||
@ -0,0 +1,109 @@ |
|||
<?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="cn.chjyj.szwh.mapper.OrderGoodsDetailMapper"> |
|||
|
|||
<sql id="column"> |
|||
id,batchcode,user_id as userId,entrust_islicode as entrustIslicode,islicode, |
|||
goods_name as goodsName,goods_image as goodsImage,contract_code as contractCode, |
|||
orderIslicode,history_entrust_name as historyEntrustName,history_entrust_code, |
|||
identifier,identifiers,sourcedata_islicode as sourcedataIslicode,close_serial_number as closeSerialNumber, |
|||
price,goods_price as goodsPrice,service_charge as serviceCharge,earnest_money as earnestMoney, |
|||
transaction_count as transactionCount,money,entrust_service_charge as entrustServiceCharge, |
|||
entrust_money as entrustMoney,goods_ownership as goodsOwnership,goods_ownership_str as goodsOwnershipStr, |
|||
goods_type as goodsType,charges_type as chargesType,goods_islicode as goodsIslicode,goods_entrust as goodsEntrust, |
|||
contractual_period as contractualPeriod,transaction_class as transactionClass,contract, |
|||
otherIdentifiers,classification,source_islicode as sourceIslicode,source_islicode_name as sourceIslicodeName, |
|||
data_json as dataJson,source_json as sourceJson,source_download as sourceDownload,close_id as closeId, |
|||
close_status as closeStatus,is_close as isClose,callback_msg as callbackMsg,createtime, |
|||
updatetime,is_deleted as isDeleted |
|||
</sql> |
|||
<sql id="tbName">order_goods_detail</sql> |
|||
|
|||
<!--查询记录列表--> |
|||
<select id="getGoodsList" parameterType="java.lang.Integer" resultType="cn.chjyj.szwh.bean.Goods"> |
|||
WITH mm as (select * from |
|||
<include refid="tbName"/> |
|||
where id>#{startRs} limit #{pageSize} |
|||
)SELECT * FROM mm ORDER BY id DESC; |
|||
</select> |
|||
|
|||
<!--根据uid查询用户--> |
|||
<select id="getUserByUid" parameterType="java.lang.Integer" resultType="cn.chjyj.szwh.bean.Goods"> |
|||
select <include refid="column"/> |
|||
from <include refid="tbName"/> |
|||
where uid=#{uid} |
|||
</select> |
|||
|
|||
<!--查询用户名,加上密码--> |
|||
<select id="getUserByUname" parameterType="java.lang.String" resultType="cn.chjyj.szwh.bean.Goods"> |
|||
select <include refid="column"/>,password |
|||
from <include refid="tbName"/> |
|||
where uname=#{uname} limit 1; |
|||
</select> |
|||
|
|||
<!--查询用户--> |
|||
<select id="getSingleUserByOpenid" parameterType="java.lang.String" resultType="cn.chjyj.szwh.bean.Goods"> |
|||
select <include refid="column"/> from |
|||
<include refid="tbName"/> |
|||
where openid=#{openid}; |
|||
</select> |
|||
|
|||
<!--新增用户--> |
|||
<insert id="addUser" parameterType="cn.chjyj.szwh.bean.Goods" useGeneratedKeys="true" keyColumn="uid"> |
|||
insert into <include refid="tbName"/> |
|||
(uname,password,gender,urealname,ubirth,nickname,avatarurl,platfrom,sessionkey,openid) |
|||
values ( |
|||
#{uname}, |
|||
#{password}, |
|||
#{gender}, |
|||
#{urealname}, |
|||
#{ubirth}, |
|||
#{nickname}, |
|||
#{avatarurl}, |
|||
#{platfrom}, |
|||
#{sessionkey}, |
|||
#{openid} |
|||
) |
|||
</insert> |
|||
|
|||
<update id="upUser" parameterType="cn.chjyj.szwh.bean.Goods"> |
|||
update <include refid="tbName"/> |
|||
set |
|||
|
|||
<if test="password!=null"> |
|||
password=#{password}, |
|||
</if> |
|||
<if test="urealname!=null"> |
|||
urealname=#{urealname}, |
|||
</if> |
|||
<if test="ubirth!=null"> |
|||
ubirth =#{ubirth}, |
|||
</if> |
|||
<if test="gender!=null"> |
|||
gender=#{gender}, |
|||
</if> |
|||
<if test="nickName!=null"> |
|||
nickname=#{nickName}, |
|||
</if> |
|||
<if test="avatarurl!=null"> |
|||
avatarurl=#{avatarurl}, |
|||
</if> |
|||
<if test="nickname!=null"> |
|||
nickname=#{nickname}, |
|||
</if> |
|||
<if test="platfrom!=null"> |
|||
platfrom=#{platfrom}, |
|||
</if> |
|||
<if test="sessionkey!=null"> |
|||
sessionkey=#{sessionkey}, |
|||
</if> |
|||
<if test="openid!=null"> |
|||
openid=#{openid}, |
|||
</if> |
|||
uname=#{uname} |
|||
where uid=#{uid}; |
|||
</update> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,102 @@ |
|||
<?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="cn.chjyj.szwh.mapper.OrderGoodsSourceMapper"> |
|||
|
|||
<sql id="column"> |
|||
id,detail_id as detailId,batchcode,servicecode,linkcode,publisherid,registrant,resolution_url as resolutionUrl, |
|||
source_type as sourceType,source_name_type as sourceNameType,source_name as sourceName, |
|||
sourceIdentify,source_fragment as sourceFragment,target_name as targetName,target_name_type as targetNameType, |
|||
targetIdentify,target_fragment as targetFragment,targetFormat,source_data as sourceData, |
|||
target_data as targetData,metadataXml,cancellation_reason as cancellationReason,cancellationtime, |
|||
allocationtime,datatype,is_deleted as isDeleted |
|||
</sql> |
|||
<sql id="tbName">order_goods_source</sql> |
|||
|
|||
<!--查询记录列表--> |
|||
<select id="getGoodsList" parameterType="java.lang.Integer" resultType="cn.chjyj.szwh.bean.Goods"> |
|||
WITH mm as (select * from |
|||
<include refid="tbName"/> |
|||
where id>#{startRs} limit #{pageSize} |
|||
)SELECT * FROM mm ORDER BY id DESC; |
|||
</select> |
|||
|
|||
<!--根据uid查询用户--> |
|||
<select id="getUserByUid" parameterType="java.lang.Integer" resultType="cn.chjyj.szwh.bean.Goods"> |
|||
select <include refid="column"/> |
|||
from <include refid="tbName"/> |
|||
where uid=#{uid} |
|||
</select> |
|||
|
|||
<!--查询用户名,加上密码--> |
|||
<select id="getUserByUname" parameterType="java.lang.String" resultType="cn.chjyj.szwh.bean.Goods"> |
|||
select <include refid="column"/>,password |
|||
from <include refid="tbName"/> |
|||
where uname=#{uname} limit 1; |
|||
</select> |
|||
|
|||
<!--查询用户--> |
|||
<select id="getSingleUserByOpenid" parameterType="java.lang.String" resultType="cn.chjyj.szwh.bean.Goods"> |
|||
select <include refid="column"/> from |
|||
<include refid="tbName"/> |
|||
where openid=#{openid}; |
|||
</select> |
|||
|
|||
<!--新增用户--> |
|||
<insert id="addUser" parameterType="cn.chjyj.szwh.bean.Goods" useGeneratedKeys="true" keyColumn="uid"> |
|||
insert into <include refid="tbName"/> |
|||
(uname,password,gender,urealname,ubirth,nickname,avatarurl,platfrom,sessionkey,openid) |
|||
values ( |
|||
#{uname}, |
|||
#{password}, |
|||
#{gender}, |
|||
#{urealname}, |
|||
#{ubirth}, |
|||
#{nickname}, |
|||
#{avatarurl}, |
|||
#{platfrom}, |
|||
#{sessionkey}, |
|||
#{openid} |
|||
) |
|||
</insert> |
|||
|
|||
<update id="upUser" parameterType="cn.chjyj.szwh.bean.Goods"> |
|||
update <include refid="tbName"/> |
|||
set |
|||
|
|||
<if test="password!=null"> |
|||
password=#{password}, |
|||
</if> |
|||
<if test="urealname!=null"> |
|||
urealname=#{urealname}, |
|||
</if> |
|||
<if test="ubirth!=null"> |
|||
ubirth =#{ubirth}, |
|||
</if> |
|||
<if test="gender!=null"> |
|||
gender=#{gender}, |
|||
</if> |
|||
<if test="nickName!=null"> |
|||
nickname=#{nickName}, |
|||
</if> |
|||
<if test="avatarurl!=null"> |
|||
avatarurl=#{avatarurl}, |
|||
</if> |
|||
<if test="nickname!=null"> |
|||
nickname=#{nickname}, |
|||
</if> |
|||
<if test="platfrom!=null"> |
|||
platfrom=#{platfrom}, |
|||
</if> |
|||
<if test="sessionkey!=null"> |
|||
sessionkey=#{sessionkey}, |
|||
</if> |
|||
<if test="openid!=null"> |
|||
openid=#{openid}, |
|||
</if> |
|||
uname=#{uname} |
|||
where uid=#{uid}; |
|||
</update> |
|||
|
|||
</mapper> |
|||
Loading…
Reference in new issue