Commit a5187f5a by yinyong

WISH新增FBW、违规费用

parent d1461497
package com.bailuntec.domain;
import com.bailuntec.domain.entity.DcBaseFinanceWishFbw;
import lombok.Data;
import java.util.List;
import java.util.Map;
@Data
public class FBWFeeInfo {
private String message;
private Integer code;
private List<Map<String, DcBaseFinanceWishFbw>> data;
}
package com.bailuntec.domain;
import com.bailuntec.domain.entity.DcBaseFinanceWishFbw;
import com.bailuntec.domain.entity.DcBaseFinanceWishInfraction;
import lombok.Data;
import java.util.List;
import java.util.Map;
@Data
public class InfractionFeeInfo {
private String message;
private Integer code;
private Map<String, Map<String, List<Map<String, DcBaseFinanceWishInfraction>>>> data;
private List<Map<String, String>> paging;
}
package com.bailuntec.job;
import com.alibaba.fastjson.JSON;
import com.bailuntec.domain.FBWFeeInfo;
import com.bailuntec.domain.WishAuth;
import com.bailuntec.domain.WishExceptionInfo;
import com.bailuntec.domain.WishInfo;
import com.bailuntec.domain.constant.CommonConstant;
import com.bailuntec.domain.entity.*;
import com.bailuntec.domain.enumerate.AccountPlatformType;
import com.bailuntec.domain.enumerate.CurrencyType;
import com.bailuntec.domain.example.*;
import com.bailuntec.mapper.*;
import com.bailuntec.support.CallBailunSystem;
import com.bailuntec.support.PointJob;
import com.bailuntec.utils.OkHttpUtil;
import com.bailuntec.utils.PropertiesUtil;
import com.bailuntec.utils.SessionUtil;
import com.dangdang.ddframe.job.api.ShardingContext;
import lombok.extern.slf4j.Slf4j;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang3.StringUtils;
import java.io.IOException;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@Slf4j
public class FBWFeeSyncJob {
private OkHttpClient okHttpClient = OkHttpUtil.getInstance();
private PropertiesUtil propertiesUtil = PropertiesUtil.getInstance("const");
public void handleFBWFee(JobAccountLog jobAccountLog, DcBaseCompanyAccount dcBaseCompanyAccount) {
LinkedHashMap<String, String> map = new LinkedHashMap<>(4);
WishAuth wishAuth = JSON.parseObject(dcBaseCompanyAccount.getAuthJson(), WishAuth.class);
map.put("since", DateTimeFormatter.ofPattern(CommonConstant.DATE_FORMAT).format(jobAccountLog.getStartTime()));
map.put("access_token", wishAuth.getAccessToken());
map.put("limit", String.valueOf(jobAccountLog.getPageSize()));
Integer start = 0;
do{
map.put("start", start.toString());
Response response = null;
String FBWFeeResultStr = null;
try {
Request request = new Request.Builder()
.get()
.url(OkHttpUtil.attachHttpGetParams(propertiesUtil.getPropertyAsString("FBW_FEE_GET_URL"), map))
.addHeader("Content-Type", "application/json")
.build();
response = okHttpClient.newCall(request).execute();
FBWFeeResultStr = response.body().string();
} catch (IOException e) {
throw new RuntimeException("请求FBWFee接口失败" + response, e);
} finally {
if (response != null) {
response.close();
}
}
if(StringUtils.isNotBlank(FBWFeeResultStr)) {
WishExceptionInfo wishExceptionInfo = JSON.parseObject(FBWFeeResultStr, WishExceptionInfo.class);
if(wishExceptionInfo.getCode() == 0) {
FBWFeeInfo fbwFeeInfo = JSON.parseObject(FBWFeeResultStr, FBWFeeInfo.class);
List<Map<String, DcBaseFinanceWishFbw>> mapList = fbwFeeInfo.getData();
if(mapList != null && mapList.size() > 0) {
for(Map<String, DcBaseFinanceWishFbw> maps : mapList) {
DcBaseFinanceWishFbw dcBaseFinanceWishFbw = null;
try {
dcBaseFinanceWishFbw = maps.get("FBWFee");
BigDecimal exchangeRate = CallBailunSystem.getExchangeRate(CurrencyType.USD.value(), CurrencyType.CNY.value(), dcBaseFinanceWishFbw.getCreatedTime());
dcBaseFinanceWishFbw.setOtherToCnyExchangeRate(exchangeRate);
dcBaseFinanceWishFbw.setAccountId(jobAccountLog.getAccountId());
dcBaseFinanceWishFbw.setCompanyId(jobAccountLog.getCompanyId());
dcBaseFinanceWishFbw.setRecordTime(jobAccountLog.getStartTime().toLocalDate());
DcBaseFinanceWishFbwMapper mapper = SessionUtil.getSession().getMapper(DcBaseFinanceWishFbwMapper.class);
mapper.insertSelective(dcBaseFinanceWishFbw);
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("Mybatis操作DB插入任务记录失败", e);
} finally {
SessionUtil.closeSession();
}
}
start = start + jobAccountLog.getPageSize();
}else{
jobAccountLog.setMessage("执行成功");
break;
}
}else {
jobAccountLog.setMessage(FBWFeeResultStr);
break;
}
}
}while(true);
}
}
package com.bailuntec.job;
import com.alibaba.fastjson.JSON;
import com.bailuntec.domain.InfractionFeeInfo;
import com.bailuntec.domain.WishAuth;
import com.bailuntec.domain.WishExceptionInfo;
import com.bailuntec.domain.constant.CommonConstant;
import com.bailuntec.domain.entity.*;
import com.bailuntec.domain.enumerate.CurrencyType;
import com.bailuntec.domain.example.*;
import com.bailuntec.mapper.*;
import com.bailuntec.support.CallBailunSystem;
import com.bailuntec.utils.OkHttpUtil;
import com.bailuntec.utils.PropertiesUtil;
import com.bailuntec.utils.SessionUtil;
import lombok.extern.slf4j.Slf4j;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import org.apache.commons.lang3.StringUtils;
import java.io.IOException;
import java.math.BigDecimal;
import java.time.format.DateTimeFormatter;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@Slf4j
public class InfractionFeeSyncJob {
private OkHttpClient okHttpClient = OkHttpUtil.getInstance();
private PropertiesUtil propertiesUtil = PropertiesUtil.getInstance("const");
public void handleInfractionFee(JobAccountLog jobAccountLog, DcBaseCompanyAccount dcBaseCompanyAccount) {
LinkedHashMap<String, String> map = new LinkedHashMap<>(3);
WishAuth wishAuth = JSON.parseObject(dcBaseCompanyAccount.getAuthJson(), WishAuth.class);
map.put("since", DateTimeFormatter.ofPattern(CommonConstant.DATE_FORMAT).format(jobAccountLog.getStartTime()));
map.put("access_token", wishAuth.getAccessToken());
map.put("limit", String.valueOf(jobAccountLog.getPageSize()));
String urlPath = OkHttpUtil.attachHttpGetParams(propertiesUtil.getPropertyAsString("INFRACTIONS_GET_URL"), map);
updateInfractionFeeInfo(jobAccountLog, urlPath);
}
private void updateInfractionFeeInfo(JobAccountLog jobAccountLog, String urlPath) {
Response response = null;
String palResultStr = null;
try {
Request request = new Request.Builder()
.get()
.url(urlPath)
.addHeader("Content-Type", "application/json")
.build();
response = okHttpClient.newCall(request).execute();
palResultStr = response.body().string();
} catch (IOException e) {
throw new RuntimeException(urlPath + "请求wish接口失败" + response, e);
} finally {
if (response != null) {
response.close();
}
}
if(StringUtils.isNotBlank(palResultStr)) {
WishExceptionInfo wishExceptionInfo = JSON.parseObject(palResultStr, WishExceptionInfo.class);
if(wishExceptionInfo.getCode() == 0) {
InfractionFeeInfo infractionFeeInfo = JSON.parseObject(palResultStr, InfractionFeeInfo.class);
List<Map<String, DcBaseFinanceWishInfraction>> mapList = infractionFeeInfo.getData().get("InfractionsResponse").get("infractions");
for(Map<String, DcBaseFinanceWishInfraction> dcBaseFinanceWishInfractionMap : mapList) {
DcBaseFinanceWishInfraction dcBaseFinanceWishInfraction = dcBaseFinanceWishInfractionMap.get("Infraction");
try {
dcBaseFinanceWishInfraction.setId(null);
BigDecimal exchangeRate = CallBailunSystem.getExchangeRate(CurrencyType.USD.value(), CurrencyType.CNY.value(), dcBaseFinanceWishInfraction.getCreateTime());
dcBaseFinanceWishInfraction.setOtherToCnyExchangeRate(exchangeRate);
dcBaseFinanceWishInfraction.setAccountId(jobAccountLog.getAccountId());
dcBaseFinanceWishInfraction.setCompanyId(jobAccountLog.getCompanyId());
dcBaseFinanceWishInfraction.setRecordTime(jobAccountLog.getStartTime().toLocalDate());
DcBaseFinanceWishInfractionMapper mapper = SessionUtil.getSession().getMapper(DcBaseFinanceWishInfractionMapper.class);
int updateInt = mapper.updateByExampleSelective(dcBaseFinanceWishInfraction, DcBaseFinanceWishInfractionExample.newAndCreateCriteria().andInfractionsIdEqualTo(dcBaseFinanceWishInfraction.getInfractionsId()).andRecordTimeEqualTo(dcBaseFinanceWishInfraction.getRecordTime()).example());
if(updateInt == 0) {
mapper.insertSelective(dcBaseFinanceWishInfraction);
}
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("Mybatis操作DB插入任务记录失败", e);
} finally {
SessionUtil.closeSession();
}
}
if(infractionFeeInfo.getPaging() != null) {
for(Map<String, String> stringMap : infractionFeeInfo.getPaging()) {
if(stringMap.get("next") != null) {
updateInfractionFeeInfo(jobAccountLog, stringMap.get("next"));
}
}
}
jobAccountLog.setMessage("执行成功");
}else {
jobAccountLog.setMessage(palResultStr);
}
}
}
private DcBaseCompanyAccount getToken(JobAccountLog jobAccountLog) {
DcBaseCompanyAccountMapper mapper = SessionUtil.getSession().getMapper(DcBaseCompanyAccountMapper.class);
return mapper.selectOneByExample(DcBaseCompanyAccountExample.newAndCreateCriteria().andCompanyIdEqualTo(jobAccountLog.getCompanyId()).andAccountIdEqualTo(jobAccountLog.getAccountId()).example());
}
}
......@@ -75,6 +75,8 @@ public class WishSyncJob extends PointJob {
public void handleCampaign(JobAccountLog jobAccountLog) {
LinkedHashMap<String, String> map = new LinkedHashMap<>(3);
DcBaseCompanyAccount dcBaseCompanyAccount = getToken(jobAccountLog);
new FBWFeeSyncJob().handleFBWFee(jobAccountLog, dcBaseCompanyAccount);
new InfractionFeeSyncJob().handleInfractionFee(jobAccountLog,dcBaseCompanyAccount);
WishAuth wishAuth = JSON.parseObject(dcBaseCompanyAccount.getAuthJson(), WishAuth.class);
// map.put("start_time", DateTimeFormatter.ofPattern(CommonConstant.DATE_FORMAT).format(jobAccountLog.getStartTime()));
map.put("access_token", wishAuth.getAccessToken());
......
MULTI_CAMPAIGN_GET_URL=https://merchant.wish.com/api/v2/product-boost/campaign/multi-get
DETAIL_CAMPAIGN_GET_URL=https://merchant.wish.com/api/v2/product-boost/campaign/get
\ No newline at end of file
DETAIL_CAMPAIGN_GET_URL=https://merchant.wish.com/api/v2/product-boost/campaign/get
INFRACTIONS_GET_URL=https://merchant.wish.com/api/v2/get/infractions
FBW_FEE_GET_URL=https://merchant.wish.com/api/v2/fbw/fee
\ No newline at end of file
......@@ -3,7 +3,9 @@ package com.bailuntec.domain.entity;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
@Data
public class DcBaseFinanceEbay {
......@@ -206,6 +208,15 @@ public class DcBaseFinanceEbay {
private BigDecimal exchangeRateUsd;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_ebay.report_date
*
* @mbg.generated
*/
private Date reportDate;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_ebay
*
......@@ -239,6 +250,7 @@ public class DcBaseFinanceEbay {
sb.append(", currency=").append(currency);
sb.append(", exchangeRate=").append(exchangeRate);
sb.append(", exchangeRateUsd=").append(exchangeRateUsd);
sb.append(", reportDate=").append(reportDate);
sb.append("]");
return sb.toString();
}
......@@ -282,7 +294,8 @@ public class DcBaseFinanceEbay {
&& (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
&& (this.getCurrency() == null ? other.getCurrency() == null : this.getCurrency().equals(other.getCurrency()))
&& (this.getExchangeRate() == null ? other.getExchangeRate() == null : this.getExchangeRate().equals(other.getExchangeRate()))
&& (this.getExchangeRateUsd() == null ? other.getExchangeRateUsd() == null : this.getExchangeRateUsd().equals(other.getExchangeRateUsd()));
&& (this.getExchangeRateUsd() == null ? other.getExchangeRateUsd() == null : this.getExchangeRateUsd().equals(other.getExchangeRateUsd()))
&& (this.getReportDate() == null ? other.getReportDate() == null : this.getReportDate().equals(other.getReportDate()));
}
/**
......@@ -317,6 +330,7 @@ public class DcBaseFinanceEbay {
result = prime * result + ((getCurrency() == null) ? 0 : getCurrency().hashCode());
result = prime * result + ((getExchangeRate() == null) ? 0 : getExchangeRate().hashCode());
result = prime * result + ((getExchangeRateUsd() == null) ? 0 : getExchangeRateUsd().hashCode());
result = prime * result + ((getReportDate() == null) ? 0 : getReportDate().hashCode());
return result;
}
}
\ No newline at end of file
package com.bailuntec.domain.entity;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
public class DcBaseFinanceWishFbw {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.account_id
*
* @mbg.generated
*/
private Integer accountId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.company_id
*
* @mbg.generated
*/
private Integer companyId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.gmt_create_time
*
* @mbg.generated
*/
private LocalDateTime gmtCreateTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.gmt_modify_time
*
* @mbg.generated
*/
private LocalDateTime gmtModifyTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.record_time
*
* @mbg.generated
*/
private LocalDate recordTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.currency
*
* @mbg.generated
*/
private String currency;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.amount
*
* @mbg.generated
*/
private BigDecimal amount;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.invoice_url
*
* @mbg.generated
*/
private String invoiceUrl;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.created_time
*
* @mbg.generated
*/
private LocalDateTime createdTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.shipping_plan_id
*
* @mbg.generated
*/
private String shippingPlanId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.order_id
*
* @mbg.generated
*/
private String orderId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.fee_name
*
* @mbg.generated
*/
private String feeName;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_fbw.other_to_cny_exchange_rate
*
* @mbg.generated
*/
private BigDecimal otherToCnyExchangeRate;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
@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(", accountId=").append(accountId);
sb.append(", companyId=").append(companyId);
sb.append(", gmtCreateTime=").append(gmtCreateTime);
sb.append(", gmtModifyTime=").append(gmtModifyTime);
sb.append(", recordTime=").append(recordTime);
sb.append(", currency=").append(currency);
sb.append(", amount=").append(amount);
sb.append(", invoiceUrl=").append(invoiceUrl);
sb.append(", createdTime=").append(createdTime);
sb.append(", shippingPlanId=").append(shippingPlanId);
sb.append(", orderId=").append(orderId);
sb.append(", feeName=").append(feeName);
sb.append(", otherToCnyExchangeRate=").append(otherToCnyExchangeRate);
sb.append("]");
return sb.toString();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
DcBaseFinanceWishFbw other = (DcBaseFinanceWishFbw) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getGmtCreateTime() == null ? other.getGmtCreateTime() == null : this.getGmtCreateTime().equals(other.getGmtCreateTime()))
&& (this.getGmtModifyTime() == null ? other.getGmtModifyTime() == null : this.getGmtModifyTime().equals(other.getGmtModifyTime()))
&& (this.getRecordTime() == null ? other.getRecordTime() == null : this.getRecordTime().equals(other.getRecordTime()))
&& (this.getCurrency() == null ? other.getCurrency() == null : this.getCurrency().equals(other.getCurrency()))
&& (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
&& (this.getInvoiceUrl() == null ? other.getInvoiceUrl() == null : this.getInvoiceUrl().equals(other.getInvoiceUrl()))
&& (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
&& (this.getShippingPlanId() == null ? other.getShippingPlanId() == null : this.getShippingPlanId().equals(other.getShippingPlanId()))
&& (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
&& (this.getFeeName() == null ? other.getFeeName() == null : this.getFeeName().equals(other.getFeeName()))
&& (this.getOtherToCnyExchangeRate() == null ? other.getOtherToCnyExchangeRate() == null : this.getOtherToCnyExchangeRate().equals(other.getOtherToCnyExchangeRate()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
result = prime * result + ((getGmtCreateTime() == null) ? 0 : getGmtCreateTime().hashCode());
result = prime * result + ((getGmtModifyTime() == null) ? 0 : getGmtModifyTime().hashCode());
result = prime * result + ((getRecordTime() == null) ? 0 : getRecordTime().hashCode());
result = prime * result + ((getCurrency() == null) ? 0 : getCurrency().hashCode());
result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
result = prime * result + ((getInvoiceUrl() == null) ? 0 : getInvoiceUrl().hashCode());
result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
result = prime * result + ((getShippingPlanId() == null) ? 0 : getShippingPlanId().hashCode());
result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
result = prime * result + ((getFeeName() == null) ? 0 : getFeeName().hashCode());
result = prime * result + ((getOtherToCnyExchangeRate() == null) ? 0 : getOtherToCnyExchangeRate().hashCode());
return result;
}
}
\ No newline at end of file
package com.bailuntec.domain.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
public class DcBaseFinanceWishInfraction {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.fine_amount
*
* @mbg.generated
*/
@JSONField(name = "fine_amount")
private BigDecimal fineAmount;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.reason
*
* @mbg.generated
*/
private String reason;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.last_updated
*
* @mbg.generated
*/
@JSONField(name = "last_updated")
private LocalDateTime lastUpdated;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.state
*
* @mbg.generated
*/
private String state;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.create_time
*
* @mbg.generated
*/
@JSONField(name = "created_time")
private LocalDateTime createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.link
*
* @mbg.generated
*/
private String link;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.infractions_id
*
* @mbg.generated
*/
@JSONField(name = "id")
private String infractionsId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.account_id
*
* @mbg.generated
*/
private Integer accountId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.company_id
*
* @mbg.generated
*/
private Integer companyId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.gmt_create_time
*
* @mbg.generated
*/
private LocalDateTime gmtCreateTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.gmt_modify_time
*
* @mbg.generated
*/
private LocalDateTime gmtModifyTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.record_time
*
* @mbg.generated
*/
private LocalDate recordTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_wish_infraction.other_to_cny_exchange_rate
*
* @mbg.generated
*/
private BigDecimal otherToCnyExchangeRate;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
@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(", fineAmount=").append(fineAmount);
sb.append(", reason=").append(reason);
sb.append(", lastUpdated=").append(lastUpdated);
sb.append(", state=").append(state);
sb.append(", createTime=").append(createTime);
sb.append(", link=").append(link);
sb.append(", infractionsId=").append(infractionsId);
sb.append(", accountId=").append(accountId);
sb.append(", companyId=").append(companyId);
sb.append(", gmtCreateTime=").append(gmtCreateTime);
sb.append(", gmtModifyTime=").append(gmtModifyTime);
sb.append(", recordTime=").append(recordTime);
sb.append(", otherToCnyExchangeRate=").append(otherToCnyExchangeRate);
sb.append("]");
return sb.toString();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
DcBaseFinanceWishInfraction other = (DcBaseFinanceWishInfraction) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getFineAmount() == null ? other.getFineAmount() == null : this.getFineAmount().equals(other.getFineAmount()))
&& (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()))
&& (this.getLastUpdated() == null ? other.getLastUpdated() == null : this.getLastUpdated().equals(other.getLastUpdated()))
&& (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getLink() == null ? other.getLink() == null : this.getLink().equals(other.getLink()))
&& (this.getInfractionsId() == null ? other.getInfractionsId() == null : this.getInfractionsId().equals(other.getInfractionsId()))
&& (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getGmtCreateTime() == null ? other.getGmtCreateTime() == null : this.getGmtCreateTime().equals(other.getGmtCreateTime()))
&& (this.getGmtModifyTime() == null ? other.getGmtModifyTime() == null : this.getGmtModifyTime().equals(other.getGmtModifyTime()))
&& (this.getRecordTime() == null ? other.getRecordTime() == null : this.getRecordTime().equals(other.getRecordTime()))
&& (this.getOtherToCnyExchangeRate() == null ? other.getOtherToCnyExchangeRate() == null : this.getOtherToCnyExchangeRate().equals(other.getOtherToCnyExchangeRate()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getFineAmount() == null) ? 0 : getFineAmount().hashCode());
result = prime * result + ((getReason() == null) ? 0 : getReason().hashCode());
result = prime * result + ((getLastUpdated() == null) ? 0 : getLastUpdated().hashCode());
result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getLink() == null) ? 0 : getLink().hashCode());
result = prime * result + ((getInfractionsId() == null) ? 0 : getInfractionsId().hashCode());
result = prime * result + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
result = prime * result + ((getGmtCreateTime() == null) ? 0 : getGmtCreateTime().hashCode());
result = prime * result + ((getGmtModifyTime() == null) ? 0 : getGmtModifyTime().hashCode());
result = prime * result + ((getRecordTime() == null) ? 0 : getRecordTime().hashCode());
result = prime * result + ((getOtherToCnyExchangeRate() == null) ? 0 : getOtherToCnyExchangeRate().hashCode());
return result;
}
}
\ No newline at end of file
package com.bailuntec.domain.example;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
......@@ -1780,6 +1781,66 @@ public class DcBaseFinanceEbayExample {
addCriterion("exchange_rate_usd not between", value1, value2, "exchangeRateUsd");
return (Criteria) this;
}
public Criteria andReportDateIsNull() {
addCriterion("report_date is null");
return (Criteria) this;
}
public Criteria andReportDateIsNotNull() {
addCriterion("report_date is not null");
return (Criteria) this;
}
public Criteria andReportDateEqualTo(LocalDate value) {
addCriterion("report_date =", value, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateNotEqualTo(LocalDate value) {
addCriterion("report_date <>", value, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateGreaterThan(LocalDate value) {
addCriterion("report_date >", value, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateGreaterThanOrEqualTo(LocalDate value) {
addCriterion("report_date >=", value, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateLessThan(LocalDate value) {
addCriterion("report_date <", value, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateLessThanOrEqualTo(LocalDate value) {
addCriterion("report_date <=", value, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateIn(List<LocalDate> values) {
addCriterion("report_date in", values, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateNotIn(List<LocalDate> values) {
addCriterion("report_date not in", values, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateBetween(LocalDate value1, LocalDate value2) {
addCriterion("report_date between", value1, value2, "reportDate");
return (Criteria) this;
}
public Criteria andReportDateNotBetween(LocalDate value1, LocalDate value2) {
addCriterion("report_date not between", value1, value2, "reportDate");
return (Criteria) this;
}
}
/**
......
......@@ -64,6 +64,9 @@ public interface DcBaseCrmRefundMapper {
*/
List<DcBaseCrmRefund> selectByExample(DcBaseCrmRefundExample example);
List<DcBaseCrmRefund> selectByExample1(DcBaseCrmRefundExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_crm_refund
......
......@@ -116,26 +116,17 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from dc_base_crm_refund
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
<if test="rows != null">
<if test="offset != null">
limit ${offset}, ${rows}
</if>
<if test="offset == null">
limit ${rows}
</if>
</if>
select <include refid="Base_Column_List" /> from dc_base_crm_refund where date_format(refund_time, '%Y-%m') = '2019-07' and order_status = ''
</select>
<select id="selectByExample1" parameterType="com.bailuntec.domain.example.DcBaseCrmRefundExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select dc0.origin_order_id, dc0.crm_id, dc0.platform_type, dc0.bailun_account_id from dc_base_crm_refund dc0 where date_format(dc0.refund_time, '%Y-%m') = '2019-08'
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--
......
......@@ -28,6 +28,7 @@
<result column="currency" jdbcType="VARCHAR" property="currency" />
<result column="exchange_rate" jdbcType="DECIMAL" property="exchangeRate" />
<result column="exchange_rate_usd" jdbcType="DECIMAL" property="exchangeRateUsd" />
<result column="report_date" jdbcType="DATE" property="reportDate" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -102,7 +103,8 @@
-->
id, bj_create, bj_modified, account_entry_type, description, gmt_date, bj_date, gross_amount,
item_id, memo, net_amount, ref_number, vat_percent, title, order_line_id, transaction_id,
company_id, received_top_rated_discount, account_id, currency, exchange_rate, exchange_rate_usd
company_id, received_top_rated_discount, account_id, currency, exchange_rate, exchange_rate_usd,
report_date
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceEbayExample" resultMap="BaseResultMap">
<!--
......@@ -170,7 +172,7 @@
vat_percent, title, order_line_id,
transaction_id, company_id, received_top_rated_discount,
account_id, currency, exchange_rate,
exchange_rate_usd)
exchange_rate_usd, report_date)
values (#{id,jdbcType=INTEGER}, #{bjCreate,jdbcType=TIMESTAMP}, #{bjModified,jdbcType=TIMESTAMP},
#{accountEntryType,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{gmtDate,jdbcType=TIMESTAMP},
#{bjDate,jdbcType=TIMESTAMP}, #{grossAmount,jdbcType=DECIMAL}, #{itemId,jdbcType=VARCHAR},
......@@ -178,14 +180,14 @@
#{vatPercent,jdbcType=DECIMAL}, #{title,jdbcType=VARCHAR}, #{orderLineId,jdbcType=VARCHAR},
#{transactionId,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{receivedTopRatedDiscount,jdbcType=BIT},
#{accountId,jdbcType=INTEGER}, #{currency,jdbcType=VARCHAR}, #{exchangeRate,jdbcType=DECIMAL},
#{exchangeRateUsd,jdbcType=DECIMAL})
#{exchangeRateUsd,jdbcType=DECIMAL}, #{reportDate,jdbcType=DATE})
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbay">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_base_finance_ebay
insert into dc_base_finance_ebay_temp
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
......@@ -253,6 +255,9 @@
<if test="exchangeRateUsd != null">
exchange_rate_usd,
</if>
<if test="reportDate != null">
report_date,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -321,6 +326,9 @@
<if test="exchangeRateUsd != null">
#{exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="reportDate != null">
#{reportDate,jdbcType=DATE},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceEbayExample" resultType="java.lang.Long">
......@@ -406,6 +414,9 @@
<if test="record.exchangeRateUsd != null">
exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="record.reportDate != null">
report_date = #{record.reportDate,jdbcType=DATE},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -438,7 +449,8 @@
account_id = #{record.accountId,jdbcType=INTEGER},
currency = #{record.currency,jdbcType=VARCHAR},
exchange_rate = #{record.exchangeRate,jdbcType=DECIMAL},
exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL}
exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL},
report_date = #{record.reportDate,jdbcType=DATE}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -513,6 +525,9 @@
<if test="exchangeRateUsd != null">
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="reportDate != null">
report_date = #{reportDate,jdbcType=DATE},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -542,7 +557,8 @@
account_id = #{accountId,jdbcType=INTEGER},
currency = #{currency,jdbcType=VARCHAR},
exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL}
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
report_date = #{reportDate,jdbcType=DATE}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbay">
......@@ -619,6 +635,9 @@
<if test="exchangeRateUsd != null">
exchange_rate_usd,
</if>
<if test="reportDate != null">
report_date,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -688,6 +707,9 @@
<if test="exchangeRateUsd != null">
#{exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="reportDate != null">
#{reportDate,jdbcType=DATE},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
......@@ -757,6 +779,9 @@
<if test="exchangeRateUsd != null">
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="reportDate != null">
report_date = #{reportDate,jdbcType=DATE},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbay">
......@@ -769,7 +794,7 @@
(id, bj_create, bj_modified, account_entry_type, description, gmt_date, bj_date,
gross_amount, item_id, memo, net_amount, ref_number, vat_percent, title, order_line_id,
transaction_id, company_id, received_top_rated_discount, account_id, currency,
exchange_rate, exchange_rate_usd)
exchange_rate, exchange_rate_usd, report_date)
values
(#{id,jdbcType=INTEGER}, #{bjCreate,jdbcType=TIMESTAMP}, #{bjModified,jdbcType=TIMESTAMP},
#{accountEntryType,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{gmtDate,jdbcType=TIMESTAMP},
......@@ -778,7 +803,7 @@
#{vatPercent,jdbcType=DECIMAL}, #{title,jdbcType=VARCHAR}, #{orderLineId,jdbcType=VARCHAR},
#{transactionId,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{receivedTopRatedDiscount,jdbcType=BIT},
#{accountId,jdbcType=INTEGER}, #{currency,jdbcType=VARCHAR}, #{exchangeRate,jdbcType=DECIMAL},
#{exchangeRateUsd,jdbcType=DECIMAL})
#{exchangeRateUsd,jdbcType=DECIMAL}, #{reportDate,jdbcType=DATE})
on duplicate key update
id = #{id,jdbcType=INTEGER},
bj_create = #{bjCreate,jdbcType=TIMESTAMP},
......@@ -801,7 +826,8 @@
account_id = #{accountId,jdbcType=INTEGER},
currency = #{currency,jdbcType=VARCHAR},
exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL}
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
report_date = #{reportDate,jdbcType=DATE}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceEbayExample" resultMap="BaseResultMap">
<!--
......
package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcBaseFinanceWishFbw;
import com.bailuntec.domain.example.DcBaseFinanceWishFbwExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DcBaseFinanceWishFbwMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
long countByExample(DcBaseFinanceWishFbwExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
int deleteByExample(DcBaseFinanceWishFbwExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
int insert(DcBaseFinanceWishFbw record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
int insertSelective(DcBaseFinanceWishFbw record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcBaseFinanceWishFbw selectOneByExample(DcBaseFinanceWishFbwExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
List<DcBaseFinanceWishFbw> selectByExample(DcBaseFinanceWishFbwExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
DcBaseFinanceWishFbw selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DcBaseFinanceWishFbw record, @Param("example") DcBaseFinanceWishFbwExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
int updateByExample(@Param("record") DcBaseFinanceWishFbw record, @Param("example") DcBaseFinanceWishFbwExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DcBaseFinanceWishFbw record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
*/
int updateByPrimaryKey(DcBaseFinanceWishFbw record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsert(DcBaseFinanceWishFbw record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_fbw
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseFinanceWishFbw record);
}
\ No newline at end of file
package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcBaseFinanceWishInfraction;
import com.bailuntec.domain.example.DcBaseFinanceWishInfractionExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DcBaseFinanceWishInfractionMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
long countByExample(DcBaseFinanceWishInfractionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
int deleteByExample(DcBaseFinanceWishInfractionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
int insert(DcBaseFinanceWishInfraction record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
int insertSelective(DcBaseFinanceWishInfraction record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcBaseFinanceWishInfraction selectOneByExample(DcBaseFinanceWishInfractionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
List<DcBaseFinanceWishInfraction> selectByExample(DcBaseFinanceWishInfractionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
DcBaseFinanceWishInfraction selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DcBaseFinanceWishInfraction record, @Param("example") DcBaseFinanceWishInfractionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
int updateByExample(@Param("record") DcBaseFinanceWishInfraction record, @Param("example") DcBaseFinanceWishInfractionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DcBaseFinanceWishInfraction record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
*/
int updateByPrimaryKey(DcBaseFinanceWishInfraction record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsert(DcBaseFinanceWishInfraction record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_wish_infraction
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseFinanceWishInfraction record);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment