parent
f9f84f31ea
commit
af85f884bf
@ -0,0 +1,220 @@ |
|||||||
|
package com.dxhy.order.model; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
/** |
||||||
|
* mdm_buyer_manage_info |
||||||
|
* |
||||||
|
* @author |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class MdmBuyerManageInfo implements Serializable { |
||||||
|
/** |
||||||
|
* 购方信息表ID |
||||||
|
*/ |
||||||
|
private String id; |
||||||
|
|
||||||
|
/** |
||||||
|
* 纳税人识别号 |
||||||
|
*/ |
||||||
|
private String taxpayerCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 购方名称 |
||||||
|
*/ |
||||||
|
private String purchaseName; |
||||||
|
|
||||||
|
/** |
||||||
|
* 购方地址 |
||||||
|
*/ |
||||||
|
private String address; |
||||||
|
|
||||||
|
/** |
||||||
|
* 购方电话 |
||||||
|
*/ |
||||||
|
private String phone; |
||||||
|
|
||||||
|
/** |
||||||
|
* 开户银行 |
||||||
|
*/ |
||||||
|
private String bankOfDeposit; |
||||||
|
|
||||||
|
/** |
||||||
|
* 银行账号 |
||||||
|
*/ |
||||||
|
private String bankNumber; |
||||||
|
|
||||||
|
/** |
||||||
|
* 手机号 |
||||||
|
*/ |
||||||
|
private String sjh; |
||||||
|
|
||||||
|
/** |
||||||
|
* 购方联系人邮箱 |
||||||
|
*/ |
||||||
|
private String email; |
||||||
|
|
||||||
|
/** |
||||||
|
* 备注 |
||||||
|
*/ |
||||||
|
private String remarks; |
||||||
|
|
||||||
|
/** |
||||||
|
* 创建时间 |
||||||
|
*/ |
||||||
|
private Date createTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 创建人 |
||||||
|
*/ |
||||||
|
private String createUserId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 更新时间 |
||||||
|
*/ |
||||||
|
private Date modifyTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 更新人ID |
||||||
|
*/ |
||||||
|
private String modifyUserId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 购买方企业类型 |
||||||
|
*/ |
||||||
|
private String ghfQylx; |
||||||
|
|
||||||
|
/** |
||||||
|
* 父级税号 |
||||||
|
*/ |
||||||
|
private String xhfNsrsbh; |
||||||
|
|
||||||
|
/** |
||||||
|
* 销货方名称 |
||||||
|
*/ |
||||||
|
private String xhfMc; |
||||||
|
|
||||||
|
/** |
||||||
|
* 购买方编码 |
||||||
|
*/ |
||||||
|
private String buyerCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 开票名称的值 山东能源 MDM 客商api DESC48 |
||||||
|
*/ |
||||||
|
private String invoiceName; |
||||||
|
|
||||||
|
/** |
||||||
|
* 开票税号的值,山东能源 客商API MDM DESC49 |
||||||
|
*/ |
||||||
|
private String invoiceTaxno; |
||||||
|
|
||||||
|
/** |
||||||
|
* MULTICODE字符串 山东能源 mdm 客商API MULTICODE字段的json字符串 |
||||||
|
*/ |
||||||
|
private String mdmMulticodeJson; |
||||||
|
|
||||||
|
private Boolean success; |
||||||
|
|
||||||
|
private String UUID; |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean equals(Object that) { |
||||||
|
if (this == that) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
if (that == null) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
if (getClass() != that.getClass()) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
MdmBuyerManageInfo other = (MdmBuyerManageInfo) that; |
||||||
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||||
|
&& (this.getTaxpayerCode() == null ? other.getTaxpayerCode() == null : this.getTaxpayerCode().equals(other.getTaxpayerCode())) |
||||||
|
&& (this.getPurchaseName() == null ? other.getPurchaseName() == null : this.getPurchaseName().equals(other.getPurchaseName())) |
||||||
|
&& (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress())) |
||||||
|
&& (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) |
||||||
|
&& (this.getBankOfDeposit() == null ? other.getBankOfDeposit() == null : this.getBankOfDeposit().equals(other.getBankOfDeposit())) |
||||||
|
&& (this.getBankNumber() == null ? other.getBankNumber() == null : this.getBankNumber().equals(other.getBankNumber())) |
||||||
|
&& (this.getSjh() == null ? other.getSjh() == null : this.getSjh().equals(other.getSjh())) |
||||||
|
&& (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail())) |
||||||
|
&& (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks())) |
||||||
|
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) |
||||||
|
&& (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId())) |
||||||
|
&& (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime())) |
||||||
|
&& (this.getModifyUserId() == null ? other.getModifyUserId() == null : this.getModifyUserId().equals(other.getModifyUserId())) |
||||||
|
&& (this.getGhfQylx() == null ? other.getGhfQylx() == null : this.getGhfQylx().equals(other.getGhfQylx())) |
||||||
|
&& (this.getXhfNsrsbh() == null ? other.getXhfNsrsbh() == null : this.getXhfNsrsbh().equals(other.getXhfNsrsbh())) |
||||||
|
&& (this.getXhfMc() == null ? other.getXhfMc() == null : this.getXhfMc().equals(other.getXhfMc())) |
||||||
|
&& (this.getBuyerCode() == null ? other.getBuyerCode() == null : this.getBuyerCode().equals(other.getBuyerCode())) |
||||||
|
&& (this.getInvoiceName() == null ? other.getInvoiceName() == null : this.getInvoiceName().equals(other.getInvoiceName())) |
||||||
|
&& (this.getInvoiceTaxno() == null ? other.getInvoiceTaxno() == null : this.getInvoiceTaxno().equals(other.getInvoiceTaxno())) |
||||||
|
&& (this.getMdmMulticodeJson() == null ? other.getMdmMulticodeJson() == null : this.getMdmMulticodeJson().equals(other.getMdmMulticodeJson())); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public int hashCode() { |
||||||
|
final int prime = 31; |
||||||
|
int result = 1; |
||||||
|
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||||
|
result = prime * result + ((getTaxpayerCode() == null) ? 0 : getTaxpayerCode().hashCode()); |
||||||
|
result = prime * result + ((getPurchaseName() == null) ? 0 : getPurchaseName().hashCode()); |
||||||
|
result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode()); |
||||||
|
result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode()); |
||||||
|
result = prime * result + ((getBankOfDeposit() == null) ? 0 : getBankOfDeposit().hashCode()); |
||||||
|
result = prime * result + ((getBankNumber() == null) ? 0 : getBankNumber().hashCode()); |
||||||
|
result = prime * result + ((getSjh() == null) ? 0 : getSjh().hashCode()); |
||||||
|
result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode()); |
||||||
|
result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode()); |
||||||
|
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); |
||||||
|
result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode()); |
||||||
|
result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode()); |
||||||
|
result = prime * result + ((getModifyUserId() == null) ? 0 : getModifyUserId().hashCode()); |
||||||
|
result = prime * result + ((getGhfQylx() == null) ? 0 : getGhfQylx().hashCode()); |
||||||
|
result = prime * result + ((getXhfNsrsbh() == null) ? 0 : getXhfNsrsbh().hashCode()); |
||||||
|
result = prime * result + ((getXhfMc() == null) ? 0 : getXhfMc().hashCode()); |
||||||
|
result = prime * result + ((getBuyerCode() == null) ? 0 : getBuyerCode().hashCode()); |
||||||
|
result = prime * result + ((getInvoiceName() == null) ? 0 : getInvoiceName().hashCode()); |
||||||
|
result = prime * result + ((getInvoiceTaxno() == null) ? 0 : getInvoiceTaxno().hashCode()); |
||||||
|
result = prime * result + ((getMdmMulticodeJson() == null) ? 0 : getMdmMulticodeJson().hashCode()); |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String toString() { |
||||||
|
StringBuilder sb = new StringBuilder(); |
||||||
|
sb.append(getClass().getSimpleName()); |
||||||
|
sb.append(" ["); |
||||||
|
sb.append("Hash = ").append(hashCode()); |
||||||
|
sb.append(", id=").append(id); |
||||||
|
sb.append(", taxpayerCode=").append(taxpayerCode); |
||||||
|
sb.append(", purchaseName=").append(purchaseName); |
||||||
|
sb.append(", address=").append(address); |
||||||
|
sb.append(", phone=").append(phone); |
||||||
|
sb.append(", bankOfDeposit=").append(bankOfDeposit); |
||||||
|
sb.append(", bankNumber=").append(bankNumber); |
||||||
|
sb.append(", sjh=").append(sjh); |
||||||
|
sb.append(", email=").append(email); |
||||||
|
sb.append(", remarks=").append(remarks); |
||||||
|
sb.append(", createTime=").append(createTime); |
||||||
|
sb.append(", createUserId=").append(createUserId); |
||||||
|
sb.append(", modifyTime=").append(modifyTime); |
||||||
|
sb.append(", modifyUserId=").append(modifyUserId); |
||||||
|
sb.append(", ghfQylx=").append(ghfQylx); |
||||||
|
sb.append(", xhfNsrsbh=").append(xhfNsrsbh); |
||||||
|
sb.append(", xhfMc=").append(xhfMc); |
||||||
|
sb.append(", buyerCode=").append(buyerCode); |
||||||
|
sb.append(", invoiceName=").append(invoiceName); |
||||||
|
sb.append(", invoiceTaxno=").append(invoiceTaxno); |
||||||
|
sb.append(", mdmMulticodeJson=").append(mdmMulticodeJson); |
||||||
|
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||||
|
sb.append("]"); |
||||||
|
return sb.toString(); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package com.dxhy.order.invoice.module.invoice.dao; |
||||||
|
|
||||||
|
|
||||||
|
import com.dxhy.order.model.MdmBuyerManageInfo; |
||||||
|
|
||||||
|
public interface MdmBuyerManageInfoMapper { |
||||||
|
int deleteByPrimaryKey(String id); |
||||||
|
|
||||||
|
int insert(MdmBuyerManageInfo record); |
||||||
|
|
||||||
|
int insertSelective(MdmBuyerManageInfo record); |
||||||
|
|
||||||
|
int insertSelectiveOnDuplicateKey(MdmBuyerManageInfo record); |
||||||
|
|
||||||
|
MdmBuyerManageInfo selectByPrimaryKey(String id); |
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(MdmBuyerManageInfo record); |
||||||
|
|
||||||
|
int updateByPrimaryKey(MdmBuyerManageInfo record); |
||||||
|
} |
@ -0,0 +1,494 @@ |
|||||||
|
<?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.dxhy.order.invoice.module.invoice.dao.MdmBuyerManageInfoMapper"> |
||||||
|
<resultMap id="BaseResultMap" type="com.dxhy.order.model.MdmBuyerManageInfo"> |
||||||
|
<id column="mdm_buyer_manage_info_id" jdbcType="VARCHAR" property="id"/> |
||||||
|
<result column="mdm_buyer_manage_info_taxpayer_code" jdbcType="VARCHAR" property="taxpayerCode"/> |
||||||
|
<result column="mdm_buyer_manage_info_purchase_name" jdbcType="VARCHAR" property="purchaseName"/> |
||||||
|
<result column="mdm_buyer_manage_info_address" jdbcType="VARCHAR" property="address"/> |
||||||
|
<result column="mdm_buyer_manage_info_phone" jdbcType="VARCHAR" property="phone"/> |
||||||
|
<result column="mdm_buyer_manage_info_bank_of_deposit" jdbcType="VARCHAR" property="bankOfDeposit"/> |
||||||
|
<result column="mdm_buyer_manage_info_bank_number" jdbcType="VARCHAR" property="bankNumber"/> |
||||||
|
<result column="mdm_buyer_manage_info_sjh" jdbcType="VARCHAR" property="sjh"/> |
||||||
|
<result column="mdm_buyer_manage_info_email" jdbcType="VARCHAR" property="email"/> |
||||||
|
<result column="mdm_buyer_manage_info_remarks" jdbcType="VARCHAR" property="remarks"/> |
||||||
|
<result column="mdm_buyer_manage_info_create_time" jdbcType="TIMESTAMP" property="createTime"/> |
||||||
|
<result column="mdm_buyer_manage_info_create_user_id" jdbcType="VARCHAR" property="createUserId"/> |
||||||
|
<result column="mdm_buyer_manage_info_modify_time" jdbcType="TIMESTAMP" property="modifyTime"/> |
||||||
|
<result column="mdm_buyer_manage_info_modify_user_id" jdbcType="VARCHAR" property="modifyUserId"/> |
||||||
|
<result column="mdm_buyer_manage_info_ghf_qylx" jdbcType="VARCHAR" property="ghfQylx"/> |
||||||
|
<result column="mdm_buyer_manage_info_xhf_nsrsbh" jdbcType="VARCHAR" property="xhfNsrsbh"/> |
||||||
|
<result column="mdm_buyer_manage_info_xhf_mc" jdbcType="VARCHAR" property="xhfMc"/> |
||||||
|
<result column="mdm_buyer_manage_info_buyer_code" jdbcType="VARCHAR" property="buyerCode"/> |
||||||
|
<result column="mdm_buyer_manage_info_invoice_name" jdbcType="VARCHAR" property="invoiceName"/> |
||||||
|
<result column="mdm_buyer_manage_info_invoice_taxno" jdbcType="VARCHAR" property="invoiceTaxno"/> |
||||||
|
<result column="mdm_buyer_manage_info_mdm_multicode_json" jdbcType="VARCHAR" property="mdmMulticodeJson"/> |
||||||
|
</resultMap> |
||||||
|
<sql id="Base_Column_List"> |
||||||
|
mdm_buyer_manage_info |
||||||
|
. |
||||||
|
id |
||||||
|
as mdm_buyer_manage_info_id, mdm_buyer_manage_info.taxpayer_code as mdm_buyer_manage_info_taxpayer_code, |
||||||
|
mdm_buyer_manage_info.purchase_name as mdm_buyer_manage_info_purchase_name, mdm_buyer_manage_info.address as mdm_buyer_manage_info_address, |
||||||
|
mdm_buyer_manage_info.phone as mdm_buyer_manage_info_phone, mdm_buyer_manage_info.bank_of_deposit as mdm_buyer_manage_info_bank_of_deposit, |
||||||
|
mdm_buyer_manage_info.bank_number as mdm_buyer_manage_info_bank_number, mdm_buyer_manage_info.sjh as mdm_buyer_manage_info_sjh, |
||||||
|
mdm_buyer_manage_info.email as mdm_buyer_manage_info_email, mdm_buyer_manage_info.remarks as mdm_buyer_manage_info_remarks, |
||||||
|
mdm_buyer_manage_info.create_time as mdm_buyer_manage_info_create_time, mdm_buyer_manage_info.create_user_id as mdm_buyer_manage_info_create_user_id, |
||||||
|
mdm_buyer_manage_info.modify_time as mdm_buyer_manage_info_modify_time, mdm_buyer_manage_info.modify_user_id as mdm_buyer_manage_info_modify_user_id, |
||||||
|
mdm_buyer_manage_info.ghf_qylx as mdm_buyer_manage_info_ghf_qylx, mdm_buyer_manage_info.xhf_nsrsbh as mdm_buyer_manage_info_xhf_nsrsbh, |
||||||
|
mdm_buyer_manage_info.xhf_mc as mdm_buyer_manage_info_xhf_mc, mdm_buyer_manage_info.buyer_code as mdm_buyer_manage_info_buyer_code, |
||||||
|
mdm_buyer_manage_info.invoice_name as mdm_buyer_manage_info_invoice_name, mdm_buyer_manage_info.invoice_taxno as mdm_buyer_manage_info_invoice_taxno, |
||||||
|
mdm_buyer_manage_info.mdm_multicode_json as mdm_buyer_manage_info_mdm_multicode_json |
||||||
|
</sql> |
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
||||||
|
select |
||||||
|
<include refid="Base_Column_List"/> |
||||||
|
from mdm_buyer_manage_info mdm_buyer_manage_info |
||||||
|
where mdm_buyer_manage_info.id = #{id,jdbcType=VARCHAR} |
||||||
|
</select> |
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
||||||
|
delete |
||||||
|
from mdm_buyer_manage_info |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</delete> |
||||||
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dxhy.order.model.MdmBuyerManageInfo"> |
||||||
|
insert into mdm_buyer_manage_info (id, taxpayer_code, purchase_name, address, |
||||||
|
phone, bank_of_deposit, bank_number, |
||||||
|
sjh, email, remarks, |
||||||
|
create_time, create_user_id, modify_time, |
||||||
|
modify_user_id, ghf_qylx, xhf_nsrsbh, |
||||||
|
xhf_mc, buyer_code, invoice_name, |
||||||
|
invoice_taxno, mdm_multicode_json) |
||||||
|
values (#{id,jdbcType=VARCHAR}, #{taxpayerCode,jdbcType=VARCHAR}, #{purchaseName,jdbcType=VARCHAR}, |
||||||
|
#{address,jdbcType=VARCHAR}, |
||||||
|
#{phone,jdbcType=VARCHAR}, #{bankOfDeposit,jdbcType=VARCHAR}, #{bankNumber,jdbcType=VARCHAR}, |
||||||
|
#{sjh,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, |
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
#{modifyUserId,jdbcType=VARCHAR}, #{ghfQylx,jdbcType=VARCHAR}, #{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
#{xhfMc,jdbcType=VARCHAR}, #{buyerCode,jdbcType=VARCHAR}, #{invoiceName,jdbcType=VARCHAR}, |
||||||
|
#{invoiceTaxno,jdbcType=VARCHAR}, #{mdmMulticodeJson,jdbcType=VARCHAR}) |
||||||
|
</insert> |
||||||
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dxhy.order.model.MdmBuyerManageInfo" |
||||||
|
useGeneratedKeys="true"> |
||||||
|
insert into mdm_buyer_manage_info |
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||||
|
<if test="id != null"> |
||||||
|
id, |
||||||
|
</if> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
taxpayer_code, |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
purchase_name, |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
address, |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
phone, |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
bank_of_deposit, |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
bank_number, |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
sjh, |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
email, |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
remarks, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
create_time, |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
create_user_id, |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
modify_time, |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
modify_user_id, |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
ghf_qylx, |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
xhf_nsrsbh, |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
xhf_mc, |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
buyer_code, |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
invoice_name, |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
invoice_taxno, |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
mdm_multicode_json, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||||
|
<if test="id != null"> |
||||||
|
#{id,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
#{taxpayerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
#{purchaseName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
#{address,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
#{phone,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
#{bankOfDeposit,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
#{bankNumber,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
#{sjh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
#{email,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
#{remarks,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
#{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
#{createUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
#{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
#{modifyUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
#{ghfQylx,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
#{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
#{xhfMc,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
#{buyerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
#{invoiceName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
#{invoiceTaxno,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
#{mdmMulticodeJson,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
</insert> |
||||||
|
|
||||||
|
<insert id="insertSelectiveOnDuplicateKey" keyColumn="id" keyProperty="id" |
||||||
|
parameterType="com.dxhy.order.model.MdmBuyerManageInfo" useGeneratedKeys="true"> |
||||||
|
insert into mdm_buyer_manage_info |
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||||
|
<if test="id != null"> |
||||||
|
id, |
||||||
|
</if> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
taxpayer_code, |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
purchase_name, |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
address, |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
phone, |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
bank_of_deposit, |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
bank_number, |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
sjh, |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
email, |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
remarks, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
create_time, |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
create_user_id, |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
modify_time, |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
modify_user_id, |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
ghf_qylx, |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
xhf_nsrsbh, |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
xhf_mc, |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
buyer_code, |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
invoice_name, |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
invoice_taxno, |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
mdm_multicode_json, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||||
|
<if test="id != null"> |
||||||
|
#{id,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
#{taxpayerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
#{purchaseName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
#{address,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
#{phone,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
#{bankOfDeposit,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
#{bankNumber,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
#{sjh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
#{email,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
#{remarks,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
#{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
#{createUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
#{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
#{modifyUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
#{ghfQylx,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
#{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
#{xhfMc,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
#{buyerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
#{invoiceName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
#{invoiceTaxno,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
#{mdmMulticodeJson,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
on duplicate key update |
||||||
|
<if test="id != null"> |
||||||
|
id = VALUES(id), |
||||||
|
</if> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
taxpayer_code = VALUES(taxpayer_code), |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
purchase_name = VALUES(purchase_name), |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
address = VALUES(address), |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
phone = VALUES(phone), |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
bank_of_deposit = VALUES(bank_of_deposit), |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
bank_number = VALUES(bank_number), |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
sjh = VALUES(sjh), |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
email = VALUES(email), |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
remarks = VALUES(remarks), |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
create_time = VALUES(create_time), |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
create_user_id = VALUES(create_user_id), |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
modify_time = VALUES(modify_time), |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
modify_user_id = VALUES(modify_user_id), |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
ghf_qylx = VALUES(ghf_qylx), |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
xhf_nsrsbh = VALUES(xhf_nsrsbh), |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
xhf_mc = VALUES(xhf_mc), |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
buyer_code = VALUES(buyer_code), |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
invoice_name = VALUES(invoice_name), |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
invoice_taxno = VALUES(invoice_taxno), |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
mdm_multicode_json = VALUES(mdm_multicode_json) |
||||||
|
</if> |
||||||
|
</insert> |
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.dxhy.order.model.MdmBuyerManageInfo"> |
||||||
|
update mdm_buyer_manage_info |
||||||
|
<set> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
taxpayer_code = #{taxpayerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
purchase_name = #{purchaseName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
address = #{address,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
phone = #{phone,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
bank_of_deposit = #{bankOfDeposit,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
bank_number = #{bankNumber,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
sjh = #{sjh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
email = #{email,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
remarks = #{remarks,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
create_user_id = #{createUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
modify_user_id = #{modifyUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
ghf_qylx = #{ghfQylx,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
xhf_mc = #{xhfMc,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
buyer_code = #{buyerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
invoice_name = #{invoiceName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
invoice_taxno = #{invoiceTaxno,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
mdm_multicode_json = #{mdmMulticodeJson,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
</set> |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
<update id="updateByPrimaryKey" parameterType="com.dxhy.order.model.MdmBuyerManageInfo"> |
||||||
|
update mdm_buyer_manage_info |
||||||
|
set taxpayer_code = #{taxpayerCode,jdbcType=VARCHAR}, |
||||||
|
purchase_name = #{purchaseName,jdbcType=VARCHAR}, |
||||||
|
address = #{address,jdbcType=VARCHAR}, |
||||||
|
phone = #{phone,jdbcType=VARCHAR}, |
||||||
|
bank_of_deposit = #{bankOfDeposit,jdbcType=VARCHAR}, |
||||||
|
bank_number = #{bankNumber,jdbcType=VARCHAR}, |
||||||
|
sjh = #{sjh,jdbcType=VARCHAR}, |
||||||
|
email = #{email,jdbcType=VARCHAR}, |
||||||
|
remarks = #{remarks,jdbcType=VARCHAR}, |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
create_user_id = #{createUserId,jdbcType=VARCHAR}, |
||||||
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
modify_user_id = #{modifyUserId,jdbcType=VARCHAR}, |
||||||
|
ghf_qylx = #{ghfQylx,jdbcType=VARCHAR}, |
||||||
|
xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
xhf_mc = #{xhfMc,jdbcType=VARCHAR}, |
||||||
|
buyer_code = #{buyerCode,jdbcType=VARCHAR}, |
||||||
|
invoice_name = #{invoiceName,jdbcType=VARCHAR}, |
||||||
|
invoice_taxno = #{invoiceTaxno,jdbcType=VARCHAR}, |
||||||
|
mdm_multicode_json = #{mdmMulticodeJson,jdbcType=VARCHAR} |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
</mapper> |
@ -1,126 +0,0 @@ |
|||||||
<?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.dxhy.order.invoice.module.invoice.dao.MdmGroupTaxClassCodeMapper"> |
|
||||||
<resultMap id="BaseResultMap" type="com.dxhy.order.model.InvoiceTaxRateRequestInfo.MdmGroupTaxClassCode"> |
|
||||||
<id column="mdm_group_tax_class_code_id" jdbcType="VARCHAR" property="id" /> |
|
||||||
<result column="mdm_group_tax_class_code_sort_id" jdbcType="BIGINT" property="sortId" /> |
|
||||||
<result column="mdm_group_tax_class_code_merchandise_name" jdbcType="VARCHAR" property="merchandiseName" /> |
|
||||||
<result column="mdm_group_tax_class_code_encoding" jdbcType="VARCHAR" property="encoding" /> |
|
||||||
<result column="mdm_group_tax_class_code_metering_unit" jdbcType="VARCHAR" property="meteringUnit" /> |
|
||||||
<result column="mdm_group_tax_class_code_create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|
||||||
<result column="mdm_group_tax_class_code_description" jdbcType="VARCHAR" property="description" /> |
|
||||||
</resultMap> |
|
||||||
<sql id="Base_Column_List"> |
|
||||||
mdm_group_tax_class_code.id as mdm_group_tax_class_code_id, mdm_group_tax_class_code.sort_id as mdm_group_tax_class_code_sort_id, |
|
||||||
mdm_group_tax_class_code.merchandise_name as mdm_group_tax_class_code_merchandise_name, |
|
||||||
mdm_group_tax_class_code.`encoding` as `mdm_group_tax_class_code_encoding`, mdm_group_tax_class_code.metering_unit as mdm_group_tax_class_code_metering_unit, |
|
||||||
mdm_group_tax_class_code.create_time as mdm_group_tax_class_code_create_time, mdm_group_tax_class_code.description as mdm_group_tax_class_code_description |
|
||||||
</sql> |
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
|
||||||
select |
|
||||||
<include refid="Base_Column_List" /> |
|
||||||
from mdm_group_tax_class_code mdm_group_tax_class_code |
|
||||||
where mdm_group_tax_class_code.id = #{id,jdbcType=VARCHAR} |
|
||||||
</select> |
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
|
||||||
delete from mdm_group_tax_class_code |
|
||||||
where id = #{id,jdbcType=VARCHAR} |
|
||||||
</delete> |
|
||||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="generator.MdmGroupTaxClassCode" useGeneratedKeys="false"> |
|
||||||
insert into mdm_group_tax_class_code (sort_id, merchandise_name, `encoding`, |
|
||||||
metering_unit, create_time, description |
|
||||||
) |
|
||||||
values (#{sortId,jdbcType=BIGINT}, #{merchandiseName,jdbcType=VARCHAR}, #{encoding,jdbcType=VARCHAR}, |
|
||||||
#{meteringUnit,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{description,jdbcType=VARCHAR} |
|
||||||
) |
|
||||||
</insert> |
|
||||||
|
|
||||||
<insert id="insertOnDuplicateKey" useGeneratedKeys="false"> |
|
||||||
insert into mdm_group_tax_class_code (id,sort_id, merchandise_name, `encoding`, |
|
||||||
metering_unit, create_time, description |
|
||||||
) |
|
||||||
values |
|
||||||
<foreach collection="array" index="index" item="item" separator="," open="(" close=")"> |
|
||||||
#{item.id,jdbcType=VARCHAR},#{item.sortId,jdbcType=BIGINT}, #{item.merchandiseName,jdbcType=VARCHAR}, #{item.encoding,jdbcType=VARCHAR}, |
|
||||||
#{item.meteringUnit,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.description,jdbcType=VARCHAR} |
|
||||||
</foreach> |
|
||||||
on duplicate key update id = VALUES(id),sort_id = VALUES(sort_id), merchandise_name = VALUES(merchandise_name), `encoding` = VALUES(`encoding`), metering_unit = VALUES(metering_unit), create_time = VALUES(create_time), description = VALUES(description) |
|
||||||
</insert> |
|
||||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="generator.MdmGroupTaxClassCode" useGeneratedKeys="false"> |
|
||||||
insert into mdm_group_tax_class_code |
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
||||||
<if test="sortId != null"> |
|
||||||
sort_id, |
|
||||||
</if> |
|
||||||
<if test="merchandiseName != null"> |
|
||||||
merchandise_name, |
|
||||||
</if> |
|
||||||
<if test="encoding != null"> |
|
||||||
`encoding`, |
|
||||||
</if> |
|
||||||
<if test="meteringUnit != null"> |
|
||||||
metering_unit, |
|
||||||
</if> |
|
||||||
<if test="createTime != null"> |
|
||||||
create_time, |
|
||||||
</if> |
|
||||||
<if test="description != null"> |
|
||||||
description, |
|
||||||
</if> |
|
||||||
</trim> |
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
||||||
<if test="sortId != null"> |
|
||||||
#{sortId,jdbcType=BIGINT}, |
|
||||||
</if> |
|
||||||
<if test="merchandiseName != null"> |
|
||||||
#{merchandiseName,jdbcType=VARCHAR}, |
|
||||||
</if> |
|
||||||
<if test="encoding != null"> |
|
||||||
#{encoding,jdbcType=VARCHAR}, |
|
||||||
</if> |
|
||||||
<if test="meteringUnit != null"> |
|
||||||
#{meteringUnit,jdbcType=VARCHAR}, |
|
||||||
</if> |
|
||||||
<if test="createTime != null"> |
|
||||||
#{createTime,jdbcType=TIMESTAMP}, |
|
||||||
</if> |
|
||||||
<if test="description != null"> |
|
||||||
#{description,jdbcType=VARCHAR}, |
|
||||||
</if> |
|
||||||
</trim> |
|
||||||
</insert> |
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="generator.MdmGroupTaxClassCode"> |
|
||||||
update mdm_group_tax_class_code |
|
||||||
<set> |
|
||||||
<if test="sortId != null"> |
|
||||||
sort_id = #{sortId,jdbcType=BIGINT}, |
|
||||||
</if> |
|
||||||
<if test="merchandiseName != null"> |
|
||||||
merchandise_name = #{merchandiseName,jdbcType=VARCHAR}, |
|
||||||
</if> |
|
||||||
<if test="encoding != null"> |
|
||||||
`encoding` = #{encoding,jdbcType=VARCHAR}, |
|
||||||
</if> |
|
||||||
<if test="meteringUnit != null"> |
|
||||||
metering_unit = #{meteringUnit,jdbcType=VARCHAR}, |
|
||||||
</if> |
|
||||||
<if test="createTime != null"> |
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
||||||
</if> |
|
||||||
<if test="description != null"> |
|
||||||
description = #{description,jdbcType=VARCHAR}, |
|
||||||
</if> |
|
||||||
</set> |
|
||||||
where id = #{id,jdbcType=VARCHAR} |
|
||||||
</update> |
|
||||||
<update id="updateByPrimaryKey" parameterType="generator.MdmGroupTaxClassCode"> |
|
||||||
update mdm_group_tax_class_code |
|
||||||
set sort_id = #{sortId,jdbcType=BIGINT}, |
|
||||||
merchandise_name = #{merchandiseName,jdbcType=VARCHAR}, |
|
||||||
`encoding` = #{encoding,jdbcType=VARCHAR}, |
|
||||||
metering_unit = #{meteringUnit,jdbcType=VARCHAR}, |
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
||||||
description = #{description,jdbcType=VARCHAR} |
|
||||||
where id = #{id,jdbcType=VARCHAR} |
|
||||||
</update> |
|
||||||
</mapper> |
|
@ -0,0 +1,150 @@ |
|||||||
|
<?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.dxhy.order.invoice.module.invoice.dao.MdmGroupTaxClassCodeMapper"> |
||||||
|
<resultMap id="BaseResultMap" type="com.dxhy.order.model.MdmGroupTaxClassCode"> |
||||||
|
<id column="mdm_group_tax_class_code_id" jdbcType="VARCHAR" property="id"/> |
||||||
|
<result column="mdm_group_tax_class_code_sort_id" jdbcType="BIGINT" property="sortId"/> |
||||||
|
<result column="mdm_group_tax_class_code_merchandise_name" jdbcType="VARCHAR" property="merchandiseName"/> |
||||||
|
<result column="mdm_group_tax_class_code_encoding" jdbcType="VARCHAR" property="encoding"/> |
||||||
|
<result column="mdm_group_tax_class_code_metering_unit" jdbcType="VARCHAR" property="meteringUnit"/> |
||||||
|
<result column="mdm_group_tax_class_code_create_time" jdbcType="TIMESTAMP" property="createTime"/> |
||||||
|
<result column="mdm_group_tax_class_code_description" jdbcType="VARCHAR" property="description"/> |
||||||
|
</resultMap> |
||||||
|
<sql id="Base_Column_List"> |
||||||
|
mdm_group_tax_class_code |
||||||
|
. |
||||||
|
id |
||||||
|
as mdm_group_tax_class_code_id, mdm_group_tax_class_code.sort_id as mdm_group_tax_class_code_sort_id, |
||||||
|
mdm_group_tax_class_code.merchandise_name as mdm_group_tax_class_code_merchandise_name, |
||||||
|
mdm_group_tax_class_code.`encoding` as `mdm_group_tax_class_code_encoding`, mdm_group_tax_class_code.metering_unit as mdm_group_tax_class_code_metering_unit, |
||||||
|
mdm_group_tax_class_code.create_time as mdm_group_tax_class_code_create_time, mdm_group_tax_class_code.description as mdm_group_tax_class_code_description |
||||||
|
</sql> |
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
||||||
|
select |
||||||
|
<include refid="Base_Column_List"/> |
||||||
|
from mdm_group_tax_class_code mdm_group_tax_class_code |
||||||
|
where mdm_group_tax_class_code.id = #{id,jdbcType=VARCHAR} |
||||||
|
</select> |
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
||||||
|
delete |
||||||
|
from mdm_group_tax_class_code |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</delete> |
||||||
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dxhy.order.model.MdmGroupTaxClassCode" |
||||||
|
useGeneratedKeys="false"> |
||||||
|
insert into mdm_group_tax_class_code (sort_id, merchandise_name, `encoding`, |
||||||
|
metering_unit, create_time, description) |
||||||
|
values (#{sortId,jdbcType=BIGINT}, #{merchandiseName,jdbcType=VARCHAR}, #{encoding,jdbcType=VARCHAR}, |
||||||
|
#{meteringUnit,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{description,jdbcType=VARCHAR}) |
||||||
|
</insert> |
||||||
|
|
||||||
|
<insert id="insertOnDuplicateKey" useGeneratedKeys="false"> |
||||||
|
insert into mdm_group_tax_class_code (id,sort_id, merchandise_name, `encoding`, |
||||||
|
metering_unit, create_time, description |
||||||
|
) |
||||||
|
values |
||||||
|
<foreach collection="array" index="index" item="item" separator="," open="(" close=")"> |
||||||
|
#{item.id,jdbcType=VARCHAR},#{item.sortId,jdbcType=BIGINT}, #{item.merchandiseName,jdbcType=VARCHAR}, |
||||||
|
#{item.encoding,jdbcType=VARCHAR}, |
||||||
|
#{item.meteringUnit,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, |
||||||
|
#{item.description,jdbcType=VARCHAR} |
||||||
|
</foreach> |
||||||
|
on duplicate key update id = VALUES(id),sort_id = VALUES(sort_id), merchandise_name = VALUES(merchandise_name), |
||||||
|
`encoding` = VALUES(`encoding`), metering_unit = VALUES(metering_unit), create_time = VALUES(create_time), |
||||||
|
description = VALUES(description) |
||||||
|
</insert> |
||||||
|
|
||||||
|
<insert id="insertOneOnDuplicateKey" useGeneratedKeys="false"> |
||||||
|
insert into mdm_group_tax_class_code (id, sort_id, merchandise_name, `encoding`, |
||||||
|
metering_unit, create_time, description) |
||||||
|
values (#{id,jdbcType=VARCHAR},#{sortId,jdbcType=BIGINT}, #{merchandiseName,jdbcType=VARCHAR}, #{encoding,jdbcType=VARCHAR}, |
||||||
|
#{meteringUnit,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
#{description,jdbcType=VARCHAR}) on duplicate key |
||||||
|
update id = |
||||||
|
VALUES (id), sort_id = |
||||||
|
VALUES (sort_id), merchandise_name = |
||||||
|
VALUES (merchandise_name), `encoding` = |
||||||
|
VALUES (`encoding`), metering_unit = |
||||||
|
VALUES (metering_unit), create_time = |
||||||
|
VALUES (create_time), description = |
||||||
|
VALUES (description) |
||||||
|
</insert> |
||||||
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dxhy.order.model.MdmGroupTaxClassCode" |
||||||
|
useGeneratedKeys="false"> |
||||||
|
insert into mdm_group_tax_class_code |
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||||
|
<if test="sortId != null"> |
||||||
|
sort_id, |
||||||
|
</if> |
||||||
|
<if test="merchandiseName != null"> |
||||||
|
merchandise_name, |
||||||
|
</if> |
||||||
|
<if test="encoding != null"> |
||||||
|
`encoding`, |
||||||
|
</if> |
||||||
|
<if test="meteringUnit != null"> |
||||||
|
metering_unit, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
create_time, |
||||||
|
</if> |
||||||
|
<if test="description != null"> |
||||||
|
description, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||||
|
<if test="sortId != null"> |
||||||
|
#{sortId,jdbcType=BIGINT}, |
||||||
|
</if> |
||||||
|
<if test="merchandiseName != null"> |
||||||
|
#{merchandiseName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="encoding != null"> |
||||||
|
#{encoding,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="meteringUnit != null"> |
||||||
|
#{meteringUnit,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
#{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="description != null"> |
||||||
|
#{description,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
</insert> |
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.dxhy.order.model.MdmGroupTaxClassCode"> |
||||||
|
update mdm_group_tax_class_code |
||||||
|
<set> |
||||||
|
<if test="sortId != null"> |
||||||
|
sort_id = #{sortId,jdbcType=BIGINT}, |
||||||
|
</if> |
||||||
|
<if test="merchandiseName != null"> |
||||||
|
merchandise_name = #{merchandiseName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="encoding != null"> |
||||||
|
`encoding` = #{encoding,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="meteringUnit != null"> |
||||||
|
metering_unit = #{meteringUnit,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="description != null"> |
||||||
|
description = #{description,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
</set> |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
<update id="updateByPrimaryKey" parameterType="com.dxhy.order.model.MdmGroupTaxClassCode"> |
||||||
|
update mdm_group_tax_class_code |
||||||
|
set sort_id = #{sortId,jdbcType=BIGINT}, |
||||||
|
merchandise_name = #{merchandiseName,jdbcType=VARCHAR}, |
||||||
|
`encoding` = #{encoding,jdbcType=VARCHAR}, |
||||||
|
metering_unit = #{meteringUnit,jdbcType=VARCHAR}, |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
description = #{description,jdbcType=VARCHAR} |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
</mapper> |
@ -0,0 +1,283 @@ |
|||||||
|
<?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.dxhy.order.MdmBuyerManageInfoDao"> |
||||||
|
<resultMap id="BaseResultMap" type="com.dxhy.order.MdmBuyerManageInfo"> |
||||||
|
<id column="mdm_buyer_manage_info_id" jdbcType="VARCHAR" property="id" /> |
||||||
|
<result column="mdm_buyer_manage_info_taxpayer_code" jdbcType="VARCHAR" property="taxpayerCode" /> |
||||||
|
<result column="mdm_buyer_manage_info_purchase_name" jdbcType="VARCHAR" property="purchaseName" /> |
||||||
|
<result column="mdm_buyer_manage_info_address" jdbcType="VARCHAR" property="address" /> |
||||||
|
<result column="mdm_buyer_manage_info_phone" jdbcType="VARCHAR" property="phone" /> |
||||||
|
<result column="mdm_buyer_manage_info_bank_of_deposit" jdbcType="VARCHAR" property="bankOfDeposit" /> |
||||||
|
<result column="mdm_buyer_manage_info_bank_number" jdbcType="VARCHAR" property="bankNumber" /> |
||||||
|
<result column="mdm_buyer_manage_info_sjh" jdbcType="VARCHAR" property="sjh" /> |
||||||
|
<result column="mdm_buyer_manage_info_email" jdbcType="VARCHAR" property="email" /> |
||||||
|
<result column="mdm_buyer_manage_info_remarks" jdbcType="VARCHAR" property="remarks" /> |
||||||
|
<result column="mdm_buyer_manage_info_create_time" jdbcType="TIMESTAMP" property="createTime" /> |
||||||
|
<result column="mdm_buyer_manage_info_create_user_id" jdbcType="VARCHAR" property="createUserId" /> |
||||||
|
<result column="mdm_buyer_manage_info_modify_time" jdbcType="TIMESTAMP" property="modifyTime" /> |
||||||
|
<result column="mdm_buyer_manage_info_modify_user_id" jdbcType="VARCHAR" property="modifyUserId" /> |
||||||
|
<result column="mdm_buyer_manage_info_ghf_qylx" jdbcType="VARCHAR" property="ghfQylx" /> |
||||||
|
<result column="mdm_buyer_manage_info_xhf_nsrsbh" jdbcType="VARCHAR" property="xhfNsrsbh" /> |
||||||
|
<result column="mdm_buyer_manage_info_xhf_mc" jdbcType="VARCHAR" property="xhfMc" /> |
||||||
|
<result column="mdm_buyer_manage_info_buyer_code" jdbcType="VARCHAR" property="buyerCode" /> |
||||||
|
<result column="mdm_buyer_manage_info_invoice_name" jdbcType="VARCHAR" property="invoiceName" /> |
||||||
|
<result column="mdm_buyer_manage_info_invoice_taxno" jdbcType="VARCHAR" property="invoiceTaxno" /> |
||||||
|
<result column="mdm_buyer_manage_info_mdm_multicode_json" jdbcType="VARCHAR" property="mdmMulticodeJson" /> |
||||||
|
</resultMap> |
||||||
|
<sql id="Base_Column_List"> |
||||||
|
mdm_buyer_manage_info.id as mdm_buyer_manage_info_id, mdm_buyer_manage_info.taxpayer_code as mdm_buyer_manage_info_taxpayer_code, |
||||||
|
mdm_buyer_manage_info.purchase_name as mdm_buyer_manage_info_purchase_name, mdm_buyer_manage_info.address as mdm_buyer_manage_info_address, |
||||||
|
mdm_buyer_manage_info.phone as mdm_buyer_manage_info_phone, mdm_buyer_manage_info.bank_of_deposit as mdm_buyer_manage_info_bank_of_deposit, |
||||||
|
mdm_buyer_manage_info.bank_number as mdm_buyer_manage_info_bank_number, mdm_buyer_manage_info.sjh as mdm_buyer_manage_info_sjh, |
||||||
|
mdm_buyer_manage_info.email as mdm_buyer_manage_info_email, mdm_buyer_manage_info.remarks as mdm_buyer_manage_info_remarks, |
||||||
|
mdm_buyer_manage_info.create_time as mdm_buyer_manage_info_create_time, mdm_buyer_manage_info.create_user_id as mdm_buyer_manage_info_create_user_id, |
||||||
|
mdm_buyer_manage_info.modify_time as mdm_buyer_manage_info_modify_time, mdm_buyer_manage_info.modify_user_id as mdm_buyer_manage_info_modify_user_id, |
||||||
|
mdm_buyer_manage_info.ghf_qylx as mdm_buyer_manage_info_ghf_qylx, mdm_buyer_manage_info.xhf_nsrsbh as mdm_buyer_manage_info_xhf_nsrsbh, |
||||||
|
mdm_buyer_manage_info.xhf_mc as mdm_buyer_manage_info_xhf_mc, mdm_buyer_manage_info.buyer_code as mdm_buyer_manage_info_buyer_code, |
||||||
|
mdm_buyer_manage_info.invoice_name as mdm_buyer_manage_info_invoice_name, mdm_buyer_manage_info.invoice_taxno as mdm_buyer_manage_info_invoice_taxno, |
||||||
|
mdm_buyer_manage_info.mdm_multicode_json as mdm_buyer_manage_info_mdm_multicode_json |
||||||
|
</sql> |
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
||||||
|
select |
||||||
|
<include refid="Base_Column_List" /> |
||||||
|
from mdm_buyer_manage_info mdm_buyer_manage_info |
||||||
|
where mdm_buyer_manage_info.id = #{id,jdbcType=VARCHAR} |
||||||
|
</select> |
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
||||||
|
delete from mdm_buyer_manage_info |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</delete> |
||||||
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dxhy.order.MdmBuyerManageInfo" useGeneratedKeys="true"> |
||||||
|
insert into mdm_buyer_manage_info (taxpayer_code, purchase_name, address, |
||||||
|
phone, bank_of_deposit, bank_number, |
||||||
|
sjh, email, remarks, |
||||||
|
create_time, create_user_id, modify_time, |
||||||
|
modify_user_id, ghf_qylx, xhf_nsrsbh, |
||||||
|
xhf_mc, buyer_code, invoice_name, |
||||||
|
invoice_taxno, mdm_multicode_json) |
||||||
|
values (#{taxpayerCode,jdbcType=VARCHAR}, #{purchaseName,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, |
||||||
|
#{phone,jdbcType=VARCHAR}, #{bankOfDeposit,jdbcType=VARCHAR}, #{bankNumber,jdbcType=VARCHAR}, |
||||||
|
#{sjh,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, |
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
#{modifyUserId,jdbcType=VARCHAR}, #{ghfQylx,jdbcType=VARCHAR}, #{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
#{xhfMc,jdbcType=VARCHAR}, #{buyerCode,jdbcType=VARCHAR}, #{invoiceName,jdbcType=VARCHAR}, |
||||||
|
#{invoiceTaxno,jdbcType=VARCHAR}, #{mdmMulticodeJson,jdbcType=VARCHAR}) |
||||||
|
</insert> |
||||||
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dxhy.order.MdmBuyerManageInfo" useGeneratedKeys="true"> |
||||||
|
insert into mdm_buyer_manage_info |
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
taxpayer_code, |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
purchase_name, |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
address, |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
phone, |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
bank_of_deposit, |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
bank_number, |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
sjh, |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
email, |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
remarks, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
create_time, |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
create_user_id, |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
modify_time, |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
modify_user_id, |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
ghf_qylx, |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
xhf_nsrsbh, |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
xhf_mc, |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
buyer_code, |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
invoice_name, |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
invoice_taxno, |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
mdm_multicode_json, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
#{taxpayerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
#{purchaseName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
#{address,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
#{phone,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
#{bankOfDeposit,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
#{bankNumber,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
#{sjh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
#{email,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
#{remarks,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
#{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
#{createUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
#{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
#{modifyUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
#{ghfQylx,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
#{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
#{xhfMc,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
#{buyerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
#{invoiceName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
#{invoiceTaxno,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
#{mdmMulticodeJson,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
</insert> |
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.dxhy.order.MdmBuyerManageInfo"> |
||||||
|
update mdm_buyer_manage_info |
||||||
|
<set> |
||||||
|
<if test="taxpayerCode != null"> |
||||||
|
taxpayer_code = #{taxpayerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="purchaseName != null"> |
||||||
|
purchase_name = #{purchaseName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="address != null"> |
||||||
|
address = #{address,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="phone != null"> |
||||||
|
phone = #{phone,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankOfDeposit != null"> |
||||||
|
bank_of_deposit = #{bankOfDeposit,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="bankNumber != null"> |
||||||
|
bank_number = #{bankNumber,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="sjh != null"> |
||||||
|
sjh = #{sjh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="email != null"> |
||||||
|
email = #{email,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="remarks != null"> |
||||||
|
remarks = #{remarks,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null"> |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="createUserId != null"> |
||||||
|
create_user_id = #{createUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="modifyTime != null"> |
||||||
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="modifyUserId != null"> |
||||||
|
modify_user_id = #{modifyUserId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="ghfQylx != null"> |
||||||
|
ghf_qylx = #{ghfQylx,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfNsrsbh != null"> |
||||||
|
xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xhfMc != null"> |
||||||
|
xhf_mc = #{xhfMc,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="buyerCode != null"> |
||||||
|
buyer_code = #{buyerCode,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceName != null"> |
||||||
|
invoice_name = #{invoiceName,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="invoiceTaxno != null"> |
||||||
|
invoice_taxno = #{invoiceTaxno,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="mdmMulticodeJson != null"> |
||||||
|
mdm_multicode_json = #{mdmMulticodeJson,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
</set> |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
<update id="updateByPrimaryKey" parameterType="com.dxhy.order.MdmBuyerManageInfo"> |
||||||
|
update mdm_buyer_manage_info |
||||||
|
set taxpayer_code = #{taxpayerCode,jdbcType=VARCHAR}, |
||||||
|
purchase_name = #{purchaseName,jdbcType=VARCHAR}, |
||||||
|
address = #{address,jdbcType=VARCHAR}, |
||||||
|
phone = #{phone,jdbcType=VARCHAR}, |
||||||
|
bank_of_deposit = #{bankOfDeposit,jdbcType=VARCHAR}, |
||||||
|
bank_number = #{bankNumber,jdbcType=VARCHAR}, |
||||||
|
sjh = #{sjh,jdbcType=VARCHAR}, |
||||||
|
email = #{email,jdbcType=VARCHAR}, |
||||||
|
remarks = #{remarks,jdbcType=VARCHAR}, |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
create_user_id = #{createUserId,jdbcType=VARCHAR}, |
||||||
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP}, |
||||||
|
modify_user_id = #{modifyUserId,jdbcType=VARCHAR}, |
||||||
|
ghf_qylx = #{ghfQylx,jdbcType=VARCHAR}, |
||||||
|
xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR}, |
||||||
|
xhf_mc = #{xhfMc,jdbcType=VARCHAR}, |
||||||
|
buyer_code = #{buyerCode,jdbcType=VARCHAR}, |
||||||
|
invoice_name = #{invoiceName,jdbcType=VARCHAR}, |
||||||
|
invoice_taxno = #{invoiceTaxno,jdbcType=VARCHAR}, |
||||||
|
mdm_multicode_json = #{mdmMulticodeJson,jdbcType=VARCHAR} |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
</mapper> |
Loading…
Reference in new issue