diff --git a/order-management-common/src/main/java/com/dxhy/order/model/MdmBuyerManageInfo.java b/order-management-common/src/main/java/com/dxhy/order/model/MdmBuyerManageInfo.java new file mode 100644 index 00000000..eaad7946 --- /dev/null +++ b/order-management-common/src/main/java/com/dxhy/order/model/MdmBuyerManageInfo.java @@ -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(); + } +} \ No newline at end of file diff --git a/order-management-common/src/main/java/com/dxhy/order/model/MdmGroupTaxClassCode.java b/order-management-common/src/main/java/com/dxhy/order/model/MdmGroupTaxClassCode.java index 3521c53f..d533d5d1 100644 --- a/order-management-common/src/main/java/com/dxhy/order/model/MdmGroupTaxClassCode.java +++ b/order-management-common/src/main/java/com/dxhy/order/model/MdmGroupTaxClassCode.java @@ -2,11 +2,13 @@ package com.dxhy.order.model; import java.io.Serializable; import java.util.Date; + import lombok.Data; /** * mdm_group_tax_class_code - * @author + * + * @author */ @Data public class MdmGroupTaxClassCode implements Serializable { @@ -45,6 +47,10 @@ public class MdmGroupTaxClassCode implements Serializable { */ private String description; + private Boolean success; + + private String UUID; + private static final long serialVersionUID = 1L; @Override @@ -60,12 +66,12 @@ public class MdmGroupTaxClassCode implements Serializable { } MdmGroupTaxClassCode other = (MdmGroupTaxClassCode) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getSortId() == null ? other.getSortId() == null : this.getSortId().equals(other.getSortId())) - && (this.getMerchandiseName() == null ? other.getMerchandiseName() == null : this.getMerchandiseName().equals(other.getMerchandiseName())) - && (this.getEncoding() == null ? other.getEncoding() == null : this.getEncoding().equals(other.getEncoding())) - && (this.getMeteringUnit() == null ? other.getMeteringUnit() == null : this.getMeteringUnit().equals(other.getMeteringUnit())) - && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) - && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())); + && (this.getSortId() == null ? other.getSortId() == null : this.getSortId().equals(other.getSortId())) + && (this.getMerchandiseName() == null ? other.getMerchandiseName() == null : this.getMerchandiseName().equals(other.getMerchandiseName())) + && (this.getEncoding() == null ? other.getEncoding() == null : this.getEncoding().equals(other.getEncoding())) + && (this.getMeteringUnit() == null ? other.getMeteringUnit() == null : this.getMeteringUnit().equals(other.getMeteringUnit())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())); } @Override diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/api/InvoiceRestSDEnregy.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/api/InvoiceRestSDEnregy.java index 5bc8dfe5..0c3206fb 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/api/InvoiceRestSDEnregy.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/api/InvoiceRestSDEnregy.java @@ -74,7 +74,7 @@ public class InvoiceRestSDEnregy { }) .orElse(new ArrayList()); - AjaxResult syncMdmGroupTax = isdEnregyService.syncBuyerMessage(mdmGmfxxtbReqBOS); + AjaxResult syncMdmGroupTax = isdEnregyService.syncBuyerMessage(mdmGmfxxtbReqBOS, requestBody); if (syncMdmGroupTax.isError()) { log.info("{}[syncBuyerMessage],uuid:{},请求处理失败,原因:{}", LOGGER_MSG, logUUID, syncMdmGroupTax.getMsg()); return syncMdmGroupTax.getMsg(); @@ -109,7 +109,7 @@ public class InvoiceRestSDEnregy { }) .orElse(new ArrayList()); - AjaxResult syncMdmGroupTax = isdEnregyService.syncMdmGroupTax(mdmGmfxxtbReqBOS); + AjaxResult syncMdmGroupTax = isdEnregyService.syncMdmGroupTax(mdmGmfxxtbReqBOS, requestBody); if (syncMdmGroupTax.isError()) { log.info("{}[syncMdmGroupTax],uuid:{},请求处理失败,原因:{}", LOGGER_MSG, logUUID, syncMdmGroupTax.getMsg()); return syncMdmGroupTax.getMsg(); diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/ISDEnregyService.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/ISDEnregyService.java index 26e8ce06..244c098d 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/ISDEnregyService.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/ISDEnregyService.java @@ -25,9 +25,9 @@ public interface ISDEnregyService { * @param mdmGmfxxtbReqBOS * @return */ - public AjaxResult syncBuyerMessage(List mdmGmfxxtbReqBOS); + public AjaxResult syncBuyerMessage(List mdmGmfxxtbReqBOS, String requestBody); - public AjaxResult syncMdmGroupTax(List mdmGmfxxtbReqBOS); + public AjaxResult syncMdmGroupTax(List mdmGmfxxtbReqBOS, String requestBody); public SDEnergyMdmBaseBO buildResult(SDEnergyMdmBaseBO baseBO, List respList, Function handleFunction); } diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/SDEnregyServiceImpl.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/SDEnregyServiceImpl.java index 549ee97e..592e0b50 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/SDEnregyServiceImpl.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/SDEnregyServiceImpl.java @@ -1,13 +1,22 @@ package com.dxhy.order.consumer.openapi.service.impl; +import com.alibaba.fastjson.JSONObject; +import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxtbRspBO; +import com.dxhy.order.constant.OrderInfoContentEnum; import com.dxhy.order.consumer.openapi.protocol.AjaxResult; import com.dxhy.order.consumer.openapi.protocol.v6.sdenergy.*; import com.dxhy.order.consumer.openapi.service.ISDEnregyService; +import com.dxhy.order.invoice.module.invoice.dao.MdmBuyerManageInfoMapper; import com.dxhy.order.invoice.module.invoice.dao.MdmGroupTaxClassCodeMapper; +import com.dxhy.order.model.MdmBuyerManageInfo; import com.dxhy.order.model.MdmGroupTaxClassCode; import com.dxhy.order.utils.DistributedKeyMaker; +import com.dxhy.order.utils.JsonUtils; +import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import java.util.ArrayList; import java.util.Date; @@ -26,10 +35,87 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { @Autowired private MdmGroupTaxClassCodeMapper mdmGroupTaxClassCodeMapper; + @Autowired + private MdmBuyerManageInfoMapper mdmBuyerManageInfoMapper; + @Override - public AjaxResult syncBuyerMessage(List mdmGmfxxtbReqBOS) { - // TODO 存表 - return null; + public AjaxResult syncBuyerMessage(List mdmGmfxxtbReqBOS, String requestBody) { + // 存表 + List list = new ArrayList<>(); + + for (int i = 0; i < mdmGmfxxtbReqBOS.size(); i++) { + MdmGmfxxtbReqBO tempMdmGmfxxtbReqBO = mdmGmfxxtbReqBOS.get(i); + MdmBuyerManageInfo entity = new MdmBuyerManageInfo(); + entity.setId(DistributedKeyMaker.generateShotKey()); + entity.setTaxpayerCode(tempMdmGmfxxtbReqBO.getDESC14()); + entity.setPurchaseName(tempMdmGmfxxtbReqBO.getDESC1()); + String buyerAddress = ""; + buyerAddress = buyerAddress.concat(StringUtils.isEmpty(tempMdmGmfxxtbReqBO.getDESC22()) ? "" : tempMdmGmfxxtbReqBO.getDESC22()); + buyerAddress = buyerAddress.concat(StringUtils.isEmpty(tempMdmGmfxxtbReqBO.getDESC23()) ? "" : tempMdmGmfxxtbReqBO.getDESC23()); + buyerAddress = buyerAddress.concat(StringUtils.isEmpty(tempMdmGmfxxtbReqBO.getDESC24()) ? "" : tempMdmGmfxxtbReqBO.getDESC24()); + entity.setAddress(buyerAddress); + entity.setPhone(tempMdmGmfxxtbReqBO.getDESC27()); + if (tempMdmGmfxxtbReqBO.getMULTICODE() != null && !CollectionUtils.isEmpty(tempMdmGmfxxtbReqBO.getMULTICODE().getVALUELIST())) { + // 处理开户行银行 + MdmGmfxxtbMulticodeValuelistBO firstValueList = tempMdmGmfxxtbReqBO.getMULTICODE().getVALUELIST().get(0); + if (firstValueList != null) { + entity.setBankOfDeposit(firstValueList.getDESC3()); + entity.setBankNumber(firstValueList.getDESC4()); + } + } + + entity.setSjh(tempMdmGmfxxtbReqBO.getDESC27()); + entity.setEmail(tempMdmGmfxxtbReqBO.getDESC29()); + // entity.setRemarks(); + entity.setCreateTime(new Date()); // TODO 记得修改Mapper + entity.setModifyTime(new Date()); + entity.setModifyUserId(null); // TODO + entity.setCreateUserId(null); // TODO + String idCardRegex = "(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)"; + // 税号正则表达式 + String taxNoRegex = "^[a-zA-Z0-9]{15,20}$"; + entity.setGhfQylx(""); + if (StringUtils.isNotEmpty(tempMdmGmfxxtbReqBO.getDESC14())) { + if (tempMdmGmfxxtbReqBO.getDESC14().matches(idCardRegex)) { + entity.setGhfQylx("03"); // 有可能出现个人 + } + if (tempMdmGmfxxtbReqBO.getDESC14().matches(taxNoRegex)) { + entity.setGhfQylx("01"); + } + } + entity.setXhfNsrsbh(null); + entity.setXhfMc(null); + entity.setBuyerCode(tempMdmGmfxxtbReqBO.getCODE()); + entity.setInvoiceName(tempMdmGmfxxtbReqBO.getDESC48()); + entity.setInvoiceTaxno(tempMdmGmfxxtbReqBO.getDESC49()); + entity.setMdmMulticodeJson(JsonUtils.getInstance().toJsonStringNullToEmpty(tempMdmGmfxxtbReqBO.getMULTICODE())); + entity.setUUID(tempMdmGmfxxtbReqBO.getUUID()); + + if (mdmBuyerManageInfoMapper.insertSelectiveOnDuplicateKey(entity) > 0) { + entity.setSuccess(true); + } else { + entity.setSuccess(false); + } + + list.add(entity); + } + SDEnergyMdmBaseBO baseBO = JSONObject.parseObject(requestBody, SDEnergyMdmBaseBO.class); + SDEnergyMdmBaseBO result = buildResult( + baseBO, + list, + i -> { + MdmBuyerManageInfo t = (MdmBuyerManageInfo) i; + SDEnergyMdmBaseRespBO resp = new SDEnergyMdmBaseRespBO(); + resp.setCODE(t.getBuyerCode()); + resp.setUUID(t.getUUID()); + resp.setSYNSTATUS(t.getSuccess() ? "1" : "0"); + resp.setSYNRESULT(t.getSuccess() ? "success" : "failed"); + return resp; + } + ); + + String resp = JsonUtils.getInstance().toJsonStringNullToEmpty(result); + return AjaxResult.success("success", resp); } /** @@ -39,12 +125,11 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { * @return */ @Override - public AjaxResult syncMdmGroupTax(List mdmGmfxxtbReqBOS) { - // TODO 存表 + @Transactional + public AjaxResult syncMdmGroupTax(List mdmGmfxxtbReqBOS, String requestBody) { List list = new ArrayList<>(); for (int i = 0; i < mdmGmfxxtbReqBOS.size(); i++) { MdmSyncGroupTaxCodeReqBO reqBO = mdmGmfxxtbReqBOS.get(i); - MdmGroupTaxClassCode entity = new MdmGroupTaxClassCode(); entity.setId(DistributedKeyMaker.generateShotKey()); entity.setSortId((long) i); @@ -53,10 +138,32 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { entity.setMeteringUnit(reqBO.getDESC5()); entity.setCreateTime(new Date()); entity.setDescription(reqBO.getDESCSHORT()); + entity.setUUID(reqBO.getUUID()); + if (mdmGroupTaxClassCodeMapper.insertOneOnDuplicateKey(entity) <= 0) { + entity.setSuccess(false); + } else { + entity.setSuccess(true); + } list.add(entity); } - mdmGroupTaxClassCodeMapper.insert() - return null; + + SDEnergyMdmBaseBO baseBO = JSONObject.parseObject(requestBody, SDEnergyMdmBaseBO.class); + SDEnergyMdmBaseBO result = buildResult( + baseBO, + list, + i -> { + MdmGroupTaxClassCode t = (MdmGroupTaxClassCode) i; + SDEnergyMdmBaseRespBO resp = new SDEnergyMdmBaseRespBO(); + resp.setCODE(t.getEncoding()); + resp.setUUID(t.getUUID()); + resp.setSYNSTATUS(t.getSuccess() ? "1" : "0"); + resp.setSYNRESULT(t.getSuccess() ? "success" : "failed"); + return resp; + } + ); + + String resp = JsonUtils.getInstance().toJsonStringNullToEmpty(result); + return AjaxResult.success("success", resp); } } diff --git a/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/dao/MdmBuyerManageInfoMapper.java b/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/dao/MdmBuyerManageInfoMapper.java new file mode 100644 index 00000000..3efa2685 --- /dev/null +++ b/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/dao/MdmBuyerManageInfoMapper.java @@ -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); +} \ No newline at end of file diff --git a/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/dao/MdmGroupTaxClassCodeMapper.java b/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/dao/MdmGroupTaxClassCodeMapper.java index aa0f4f6c..604a54aa 100644 --- a/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/dao/MdmGroupTaxClassCodeMapper.java +++ b/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/dao/MdmGroupTaxClassCodeMapper.java @@ -9,6 +9,8 @@ public interface MdmGroupTaxClassCodeMapper { int insert(MdmGroupTaxClassCode record); + int insertOneOnDuplicateKey(MdmGroupTaxClassCode record); + int insertOnDuplicateKey(List record); int insertSelective(MdmGroupTaxClassCode record); diff --git a/order-management-invoice/src/main/resources/mybatis/mapper/MdmBuyerManageInfoMapper.xml b/order-management-invoice/src/main/resources/mybatis/mapper/MdmBuyerManageInfoMapper.xml new file mode 100644 index 00000000..86bb2066 --- /dev/null +++ b/order-management-invoice/src/main/resources/mybatis/mapper/MdmBuyerManageInfoMapper.xml @@ -0,0 +1,494 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + delete + from mdm_buyer_manage_info + where id = #{id,jdbcType=VARCHAR} + + + 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 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, + + + + + #{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 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, + + + + + #{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}, + + + on duplicate key update + + id = VALUES(id), + + + taxpayer_code = VALUES(taxpayer_code), + + + purchase_name = VALUES(purchase_name), + + + address = VALUES(address), + + + phone = VALUES(phone), + + + bank_of_deposit = VALUES(bank_of_deposit), + + + bank_number = VALUES(bank_number), + + + sjh = VALUES(sjh), + + + email = VALUES(email), + + + remarks = VALUES(remarks), + + + create_time = VALUES(create_time), + + + create_user_id = VALUES(create_user_id), + + + modify_time = VALUES(modify_time), + + + modify_user_id = VALUES(modify_user_id), + + + ghf_qylx = VALUES(ghf_qylx), + + + xhf_nsrsbh = VALUES(xhf_nsrsbh), + + + xhf_mc = VALUES(xhf_mc), + + + buyer_code = VALUES(buyer_code), + + + invoice_name = VALUES(invoice_name), + + + invoice_taxno = VALUES(invoice_taxno), + + + mdm_multicode_json = VALUES(mdm_multicode_json) + + + + update mdm_buyer_manage_info + + + 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 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} + + \ No newline at end of file diff --git a/order-management-invoice/src/main/resources/mybatis/mapper/MdmGroupTaxClassCodeDao.xml b/order-management-invoice/src/main/resources/mybatis/mapper/MdmGroupTaxClassCodeDao.xml deleted file mode 100644 index cbf6a384..00000000 --- a/order-management-invoice/src/main/resources/mybatis/mapper/MdmGroupTaxClassCodeDao.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - 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 - - - - delete from mdm_group_tax_class_code - where id = #{id,jdbcType=VARCHAR} - - - 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 into mdm_group_tax_class_code (id,sort_id, merchandise_name, `encoding`, - metering_unit, create_time, description - ) - values - - #{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} - - 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 into mdm_group_tax_class_code - - - sort_id, - - - merchandise_name, - - - `encoding`, - - - metering_unit, - - - create_time, - - - description, - - - - - #{sortId,jdbcType=BIGINT}, - - - #{merchandiseName,jdbcType=VARCHAR}, - - - #{encoding,jdbcType=VARCHAR}, - - - #{meteringUnit,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{description,jdbcType=VARCHAR}, - - - - - update mdm_group_tax_class_code - - - 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 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} - - \ No newline at end of file diff --git a/order-management-invoice/src/main/resources/mybatis/mapper/MdmGroupTaxClassCodeMapper.xml b/order-management-invoice/src/main/resources/mybatis/mapper/MdmGroupTaxClassCodeMapper.xml new file mode 100644 index 00000000..e4e62a98 --- /dev/null +++ b/order-management-invoice/src/main/resources/mybatis/mapper/MdmGroupTaxClassCodeMapper.xml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + 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 + + + + delete + from mdm_group_tax_class_code + where id = #{id,jdbcType=VARCHAR} + + + 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 into mdm_group_tax_class_code (id,sort_id, merchandise_name, `encoding`, + metering_unit, create_time, description + ) + values + + #{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} + + 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 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 into mdm_group_tax_class_code + + + sort_id, + + + merchandise_name, + + + `encoding`, + + + metering_unit, + + + create_time, + + + description, + + + + + #{sortId,jdbcType=BIGINT}, + + + #{merchandiseName,jdbcType=VARCHAR}, + + + #{encoding,jdbcType=VARCHAR}, + + + #{meteringUnit,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{description,jdbcType=VARCHAR}, + + + + + update mdm_group_tax_class_code + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/com/dxhy/order/MdmBuyerManageInfoDao.xml b/src/main/resources/com/dxhy/order/MdmBuyerManageInfoDao.xml new file mode 100644 index 00000000..bc092b6f --- /dev/null +++ b/src/main/resources/com/dxhy/order/MdmBuyerManageInfoDao.xml @@ -0,0 +1,283 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + delete from mdm_buyer_manage_info + where id = #{id,jdbcType=VARCHAR} + + + 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 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, + + + + + #{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}, + + + + + update mdm_buyer_manage_info + + + 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 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} + + \ No newline at end of file