Commit d1ce99b7 by lihui.wang

规范命名

parent 17a4c9da
package com.freemud.pay.job.dao.mapper;
import com.freemud.pay.job.dao.IBaseDao;
import com.freemud.pay.job.dao.dbModel.PartnerDM;
public interface PartnerMapper extends IBaseDao<PartnerDM>{
int deleteByPrimaryKey(Integer id);
@Override
int insert(PartnerDM record);
@Override
int insertSelective(PartnerDM record);
PartnerDM selectByPrimaryKey(Integer id);
@Override
int updateByPrimaryKeySelective(PartnerDM record);
@Override
int updateByPrimaryKey(PartnerDM record);
}
\ No newline at end of file
package com.freemud.pay.job.dao.mapper;
import com.freemud.pay.job.dao.IBaseDao;
import com.freemud.pay.job.dao.dbModel.PayDM;
public interface PayMapper extends IBaseDao<PayDM>{
int deleteByPrimaryKey(Long id);
int insert(PayDM record);
int insertSelective(PayDM record);
PayDM selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(PayDM record);
@Override
int updateByPrimaryKey(PayDM record);
}
\ No newline at end of file
package com.freemud.pay.job.dao.mapper;
import com.freemud.pay.job.dao.IBaseDao;
import com.freemud.pay.job.dao.dbModel.PayMessageActiveDM;
public interface PayMessageActiveMapper extends IBaseDao<PayMessageActiveDM> {
int deleteByPrimaryKey(Long id);
int insert(PayMessageActiveDM record);
@Override
int insertSelective(PayMessageActiveDM record);
PayMessageActiveDM selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(PayMessageActiveDM record);
@Override
int updateByPrimaryKey(PayMessageActiveDM record);
}
\ No newline at end of file
package com.freemud.pay.job.dao.mapper;
import com.freemud.pay.job.dao.IBaseDao;
import com.freemud.pay.job.dao.dbModel.PayMessageDM;
import java.util.List;
public interface PayMessageMapper extends IBaseDao<PayMessageDM>{
int deleteByPrimaryKey(Long id);
@Override
int insert(PayMessageDM record);
@Override
int insertSelective(PayMessageDM record);
PayMessageDM selectByPrimaryKey(Long id);
@Override
int updateByPrimaryKeySelective(PayMessageDM record);
@Override
int updateByPrimaryKey(PayMessageDM record);
List<PayMessageDM> getPayMessages(String dbPartition, String linkServer);
}
\ No newline at end of file
package com.freemud.pay.job.dao.repository;
import com.freemud.pay.job.dao.dbModel.PayMessageActiveDM;
import com.freemud.pay.job.dao.dbModel.PayMessageDM;
import com.freemud.pay.job.entity.PayMessage;
import java.util.List;
......
......@@ -2,11 +2,9 @@ package com.freemud.pay.job.dao.repository.Impl;
import com.freemud.pay.job.dao.IBaseDao;
import com.freemud.pay.job.dao.dbModel.PayMessageActiveDM;
import com.freemud.pay.job.dao.mapper.PayMessageActiveMapper;
import com.freemud.pay.job.dao.mapper.PayMessageActiveDMMapper;
import com.freemud.pay.job.dao.repository.IPayMessageActiveRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;
/**
* All rights Reserved, Designed By www.freemud.cn
......@@ -24,7 +22,7 @@ import org.springframework.stereotype.Repository;
public class PayMessageActiveRepositoryImpl extends BaseRepositoryImpl implements IPayMessageActiveRepository {
@Autowired
PayMessageActiveMapper payMessageActiveMapper;
PayMessageActiveDMMapper payMessageActiveMapper;
@Override
protected IBaseDao getDao() {
......
......@@ -2,11 +2,9 @@ package com.freemud.pay.job.dao.repository.Impl;
import com.freemud.pay.job.dao.IBaseDao;
import com.freemud.pay.job.dao.dbModel.PayMessageDM;
import com.freemud.pay.job.dao.mapper.PayMessageMapper;
import com.freemud.pay.job.dao.mapper.PayMessageDMMapper;
import com.freemud.pay.job.dao.repository.IPayMessageRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;
import java.util.List;
......@@ -26,7 +24,7 @@ import java.util.List;
public class PayMessageRepositoryImpl extends BaseRepositoryImpl implements IPayMessageRepository {
@Autowired
PayMessageMapper payMessageMapper;
PayMessageDMMapper payMessageMapper;
@Override
protected IBaseDao getDao() {
......
package com.freemud.pay.job.service;
import com.freemud.pay.job.dao.dbModel.PartnerDM;
import org.springframework.stereotype.Service;
import java.util.List;
......
......@@ -2,7 +2,6 @@ package com.freemud.pay.job.service;
import com.freemud.pay.job.dao.dbModel.PayMessageActiveDM;
import com.freemud.pay.job.dao.dbModel.PayMessageDM;
import com.freemud.pay.job.entity.PayMessage;
import com.freemud.pay.job.service.impl.AliFuWuChuangSingleMessageSender;
import org.apache.commons.lang.StringUtils;
......
......@@ -23,7 +23,7 @@
<!--JDBC URL: jdbc:mysql://<host>:<port>/<database_name>-->
<jdbcConnection
driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver"
connectionURL="jdbc:sqlserver://115.159.142.32:9528;databasename=Freemud_ThirdParty"
connectionURL="jdbc:sqlserver://115.159.142.32:9528;databasename=zhuihu"
userId="zhuihutest"
password="zhuihutest@freemud">
</jdbcConnection>
......@@ -55,25 +55,25 @@
</javaModelGenerator>
<!--Mapper映射文件生成所在的目录 为每一个数据库的表生成对应的SqlMap文件 -->
<!--<sqlMapGenerator targetPackage="mapper"-->
<!--targetProject="src/main/resources">-->
<!--<property name="enableSubPackages" value="false"/>-->
<!--</sqlMapGenerator>-->
<sqlMapGenerator targetPackage="mapper"
targetProject="src/main/resources">
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
<!-- 客户端代码,生成易于使用的针对Model对象和XML配置文件 的代码
type="ANNOTATEDMAPPER",生成Java Model 和基于注解的Mapper对象
type="MIXEDMAPPER",生成基于注解的Java Model 和相应的Mapper对象
type="XMLMAPPER",生成SQLMap XML文件和独立的Mapper接口
-->
<!--<javaClientGenerator targetPackage="com.freemud.pay.job.dao.mapper"-->
<!--targetProject="src/main/java" type="XMLMAPPER">-->
<!--<property name="enableSubPackages" value="true"/>-->
<!--</javaClientGenerator>-->
<!--<table tableName="pay" domainObjectName="PayDM" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>-->
<table tableName="Pay_Message" domainObjectName="PayMessageDM" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>
<table tableName="Pay_Message_Active" domainObjectName="PayMessageActiveDM" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>
<!--<table tableName="Partner" domainObjectName="PartnerDM" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>-->
<javaClientGenerator targetPackage="com.freemud.pay.job.dao.mapper"
targetProject="src/main/java" type="XMLMAPPER">
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<table tableName="pay" domainObjectName="PayDM" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>
<!--<table tableName="Pay_Message" domainObjectName="PayMessageDM" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>-->
<!--<table tableName="Pay_Message_Active" domainObjectName="PayMessageActiveDM" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>-->
<table tableName="Partner" domainObjectName="PartnerDM" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>
<!--<table tableName="partner" domainObjectName="Partner" ></table>
......
<?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.freemud.pay.job.dao.mapper.PartnerMapper">
<resultMap id="BaseResultMap" type="com.freemud.pay.job.dao.dbModel.PartnerDM">
<id column="ID" jdbcType="INTEGER" property="id" />
<result column="PartnerName" jdbcType="VARCHAR" property="partnername" />
<result column="OurAccount_Partner" jdbcType="VARCHAR" property="ouraccountPartner" />
<result column="Logo" jdbcType="VARCHAR" property="logo" />
<result column="Description" jdbcType="VARCHAR" property="description" />
<result column="PartnerCode" jdbcType="VARCHAR" property="partnercode" />
<result column="AppSecret" jdbcType="VARCHAR" property="appsecret" />
<result column="EBCode" jdbcType="VARCHAR" property="ebcode" />
<result column="EnableSMS" jdbcType="BIT" property="enablesms" />
<result column="PartnerType" jdbcType="VARCHAR" property="partnertype" />
<result column="UnifyId" jdbcType="VARCHAR" property="unifyid" />
</resultMap>
<sql id="Base_Column_List">
ID, PartnerName, OurAccount_Partner, Logo, Description, PartnerCode, AppSecret, EBCode,
EnableSMS, PartnerType, UnifyId
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from Partner
where ID = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from Partner
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.freemud.pay.job.dao.dbModel.Partner">
insert into Partner (ID, PartnerName, OurAccount_Partner,
Logo, Description, PartnerCode,
AppSecret, EBCode, EnableSMS,
PartnerType, UnifyId)
values (#{id,jdbcType=INTEGER}, #{partnername,jdbcType=VARCHAR}, #{ouraccountPartner,jdbcType=VARCHAR},
#{logo,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{partnercode,jdbcType=VARCHAR},
#{appsecret,jdbcType=VARCHAR}, #{ebcode,jdbcType=VARCHAR}, #{enablesms,jdbcType=BIT},
#{partnertype,jdbcType=VARCHAR}, #{unifyid,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.freemud.pay.job.dao.dbModel.PartnerDM">
insert into Partner
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
ID,
</if>
<if test="partnername != null">
PartnerName,
</if>
<if test="ouraccountPartner != null">
OurAccount_Partner,
</if>
<if test="logo != null">
Logo,
</if>
<if test="description != null">
Description,
</if>
<if test="partnercode != null">
PartnerCode,
</if>
<if test="appsecret != null">
AppSecret,
</if>
<if test="ebcode != null">
EBCode,
</if>
<if test="enablesms != null">
EnableSMS,
</if>
<if test="partnertype != null">
PartnerType,
</if>
<if test="unifyid != null">
UnifyId,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="partnername != null">
#{partnername,jdbcType=VARCHAR},
</if>
<if test="ouraccountPartner != null">
#{ouraccountPartner,jdbcType=VARCHAR},
</if>
<if test="logo != null">
#{logo,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="partnercode != null">
#{partnercode,jdbcType=VARCHAR},
</if>
<if test="appsecret != null">
#{appsecret,jdbcType=VARCHAR},
</if>
<if test="ebcode != null">
#{ebcode,jdbcType=VARCHAR},
</if>
<if test="enablesms != null">
#{enablesms,jdbcType=BIT},
</if>
<if test="partnertype != null">
#{partnertype,jdbcType=VARCHAR},
</if>
<if test="unifyid != null">
#{unifyid,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.freemud.pay.job.dao.dbModel.PartnerDM">
update Partner
<set>
<if test="partnername != null">
PartnerName = #{partnername,jdbcType=VARCHAR},
</if>
<if test="ouraccountPartner != null">
OurAccount_Partner = #{ouraccountPartner,jdbcType=VARCHAR},
</if>
<if test="logo != null">
Logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="description != null">
Description = #{description,jdbcType=VARCHAR},
</if>
<if test="partnercode != null">
PartnerCode = #{partnercode,jdbcType=VARCHAR},
</if>
<if test="appsecret != null">
AppSecret = #{appsecret,jdbcType=VARCHAR},
</if>
<if test="ebcode != null">
EBCode = #{ebcode,jdbcType=VARCHAR},
</if>
<if test="enablesms != null">
EnableSMS = #{enablesms,jdbcType=BIT},
</if>
<if test="partnertype != null">
PartnerType = #{partnertype,jdbcType=VARCHAR},
</if>
<if test="unifyid != null">
UnifyId = #{unifyid,jdbcType=VARCHAR},
</if>
</set>
where ID = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.freemud.pay.job.dao.dbModel.PartnerDM">
update Partner
set PartnerName = #{partnername,jdbcType=VARCHAR},
OurAccount_Partner = #{ouraccountPartner,jdbcType=VARCHAR},
Logo = #{logo,jdbcType=VARCHAR},
Description = #{description,jdbcType=VARCHAR},
PartnerCode = #{partnercode,jdbcType=VARCHAR},
AppSecret = #{appsecret,jdbcType=VARCHAR},
EBCode = #{ebcode,jdbcType=VARCHAR},
EnableSMS = #{enablesms,jdbcType=BIT},
PartnerType = #{partnertype,jdbcType=VARCHAR},
UnifyId = #{unifyid,jdbcType=VARCHAR}
where ID = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.freemud.pay.job.dao.mapper.PayMapper">
<resultMap id="BaseResultMap" type="com.freemud.pay.job.dao.dbModel.PayDM">
<id column="ID" jdbcType="BIGINT" property="id" />
<result column="Store_Id" jdbcType="VARCHAR" property="storeId" />
<result column="Station_Id" jdbcType="VARCHAR" property="stationId" />
<result column="Operator_Id" jdbcType="VARCHAR" property="operatorId" />
<result column="Partner" jdbcType="NVARCHAR" property="partner" />
<result column="PartnerAccount" jdbcType="VARCHAR" property="partneraccount" />
<result column="PartnerOrderID" jdbcType="VARCHAR" property="partnerorderid" />
<result column="PlatformTradeAccount" jdbcType="VARCHAR" property="platformtradeaccount" />
<result column="PlatformTradeNumber" jdbcType="VARCHAR" property="platformtradenumber" />
<result column="Code" jdbcType="VARCHAR" property="code" />
<result column="Amount" jdbcType="DECIMAL" property="amount" />
<result column="State" jdbcType="INTEGER" property="state" />
<result column="Subject" jdbcType="NVARCHAR" property="subject" />
<result column="Remark" jdbcType="NVARCHAR" property="remark" />
<result column="CreateUser" jdbcType="VARCHAR" property="createuser" />
<result column="CreateDate" jdbcType="TIMESTAMP" property="createdate" />
<result column="CancelUser" jdbcType="VARCHAR" property="canceluser" />
<result column="CancelDate" jdbcType="TIMESTAMP" property="canceldate" />
<result column="Trans_Id" jdbcType="VARCHAR" property="transId" />
<result column="ZhuiHuOrderId" jdbcType="VARCHAR" property="zhuihuorderid" />
<result column="AlipayState" jdbcType="INTEGER" property="alipaystate" />
<result column="PlatformPartnerID" jdbcType="VARCHAR" property="platformpartnerid" />
<result column="PartnerID" jdbcType="INTEGER" property="partnerid" />
<result column="PlatformBuyerUserId" jdbcType="VARCHAR" property="platformbuyeruserid" />
<result column="Platform" jdbcType="VARCHAR" property="platform" />
<result column="mcoupon" jdbcType="DECIMAL" property="mcoupon" />
<result column="BusinessDate" jdbcType="VARCHAR" property="businessdate" />
<result column="OrginalPayId" jdbcType="BIGINT" property="orginalpayid" />
<result column="pcoupon" jdbcType="DECIMAL" property="pcoupon" />
<result column="LiquidatorCommissionRate" jdbcType="DECIMAL" property="liquidatorcommissionrate" />
<result column="LiquidatorCommissionFee" jdbcType="DECIMAL" property="liquidatorcommissionfee" />
<result column="BankCommissionFee" jdbcType="DECIMAL" property="bankcommissionfee" />
<result column="BankCommissionRate" jdbcType="DECIMAL" property="bankcommissionrate" />
<result column="PayPlatformRate" jdbcType="DECIMAL" property="payplatformrate" />
<result column="PayPlatformFee" jdbcType="DECIMAL" property="payplatformfee" />
<result column="NetAmount" jdbcType="DECIMAL" property="netamount" />
</resultMap>
<sql id="Base_Column_List">
ID, Store_Id, Station_Id, Operator_Id, Partner, PartnerAccount, PartnerOrderID, PlatformTradeAccount,
PlatformTradeNumber, Code, Amount, State, Subject, Remark, CreateUser, CreateDate,
CancelUser, CancelDate, Trans_Id, ZhuiHuOrderId, AlipayState, PlatformPartnerID,
PartnerID, PlatformBuyerUserId, Platform, mcoupon, BusinessDate, OrginalPayId, pcoupon,
LiquidatorCommissionRate, LiquidatorCommissionFee, BankCommissionFee, BankCommissionRate,
PayPlatformRate, PayPlatformFee, NetAmount
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from Pay
where ID = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from Pay
where ID = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.freemud.pay.job.dao.dbModel.PayDM">
insert into Pay (ID, Store_Id, Station_Id,
Operator_Id, Partner, PartnerAccount,
PartnerOrderID, PlatformTradeAccount, PlatformTradeNumber,
Code, Amount, State,
Subject, Remark, CreateUser,
CreateDate, CancelUser, CancelDate,
Trans_Id, ZhuiHuOrderId, AlipayState,
PlatformPartnerID, PartnerID, PlatformBuyerUserId,
Platform, mcoupon, BusinessDate,
OrginalPayId, pcoupon, LiquidatorCommissionRate,
LiquidatorCommissionFee, BankCommissionFee,
BankCommissionRate, PayPlatformRate, PayPlatformFee,
NetAmount)
values (#{id,jdbcType=BIGINT}, #{storeId,jdbcType=VARCHAR}, #{stationId,jdbcType=VARCHAR},
#{operatorId,jdbcType=VARCHAR}, #{partner,jdbcType=NVARCHAR}, #{partneraccount,jdbcType=VARCHAR},
#{partnerorderid,jdbcType=VARCHAR}, #{platformtradeaccount,jdbcType=VARCHAR}, #{platformtradenumber,jdbcType=VARCHAR},
#{code,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{state,jdbcType=INTEGER},
#{subject,jdbcType=NVARCHAR}, #{remark,jdbcType=NVARCHAR}, #{createuser,jdbcType=VARCHAR},
#{createdate,jdbcType=TIMESTAMP}, #{canceluser,jdbcType=VARCHAR}, #{canceldate,jdbcType=TIMESTAMP},
#{transId,jdbcType=VARCHAR}, #{zhuihuorderid,jdbcType=VARCHAR}, #{alipaystate,jdbcType=INTEGER},
#{platformpartnerid,jdbcType=VARCHAR}, #{partnerid,jdbcType=INTEGER}, #{platformbuyeruserid,jdbcType=VARCHAR},
#{platform,jdbcType=VARCHAR}, #{mcoupon,jdbcType=DECIMAL}, #{businessdate,jdbcType=VARCHAR},
#{orginalpayid,jdbcType=BIGINT}, #{pcoupon,jdbcType=DECIMAL}, #{liquidatorcommissionrate,jdbcType=DECIMAL},
#{liquidatorcommissionfee,jdbcType=DECIMAL}, #{bankcommissionfee,jdbcType=DECIMAL},
#{bankcommissionrate,jdbcType=DECIMAL}, #{payplatformrate,jdbcType=DECIMAL}, #{payplatformfee,jdbcType=DECIMAL},
#{netamount,jdbcType=DECIMAL})
</insert>
<insert id="insertSelective" parameterType="com.freemud.pay.job.dao.dbModel.PayDM">
insert into Pay
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
ID,
</if>
<if test="storeId != null">
Store_Id,
</if>
<if test="stationId != null">
Station_Id,
</if>
<if test="operatorId != null">
Operator_Id,
</if>
<if test="partner != null">
Partner,
</if>
<if test="partneraccount != null">
PartnerAccount,
</if>
<if test="partnerorderid != null">
PartnerOrderID,
</if>
<if test="platformtradeaccount != null">
PlatformTradeAccount,
</if>
<if test="platformtradenumber != null">
PlatformTradeNumber,
</if>
<if test="code != null">
Code,
</if>
<if test="amount != null">
Amount,
</if>
<if test="state != null">
State,
</if>
<if test="subject != null">
Subject,
</if>
<if test="remark != null">
Remark,
</if>
<if test="createuser != null">
CreateUser,
</if>
<if test="createdate != null">
CreateDate,
</if>
<if test="canceluser != null">
CancelUser,
</if>
<if test="canceldate != null">
CancelDate,
</if>
<if test="transId != null">
Trans_Id,
</if>
<if test="zhuihuorderid != null">
ZhuiHuOrderId,
</if>
<if test="alipaystate != null">
AlipayState,
</if>
<if test="platformpartnerid != null">
PlatformPartnerID,
</if>
<if test="partnerid != null">
PartnerID,
</if>
<if test="platformbuyeruserid != null">
PlatformBuyerUserId,
</if>
<if test="platform != null">
Platform,
</if>
<if test="mcoupon != null">
mcoupon,
</if>
<if test="businessdate != null">
BusinessDate,
</if>
<if test="orginalpayid != null">
OrginalPayId,
</if>
<if test="pcoupon != null">
pcoupon,
</if>
<if test="liquidatorcommissionrate != null">
LiquidatorCommissionRate,
</if>
<if test="liquidatorcommissionfee != null">
LiquidatorCommissionFee,
</if>
<if test="bankcommissionfee != null">
BankCommissionFee,
</if>
<if test="bankcommissionrate != null">
BankCommissionRate,
</if>
<if test="payplatformrate != null">
PayPlatformRate,
</if>
<if test="payplatformfee != null">
PayPlatformFee,
</if>
<if test="netamount != null">
NetAmount,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="storeId != null">
#{storeId,jdbcType=VARCHAR},
</if>
<if test="stationId != null">
#{stationId,jdbcType=VARCHAR},
</if>
<if test="operatorId != null">
#{operatorId,jdbcType=VARCHAR},
</if>
<if test="partner != null">
#{partner,jdbcType=NVARCHAR},
</if>
<if test="partneraccount != null">
#{partneraccount,jdbcType=VARCHAR},
</if>
<if test="partnerorderid != null">
#{partnerorderid,jdbcType=VARCHAR},
</if>
<if test="platformtradeaccount != null">
#{platformtradeaccount,jdbcType=VARCHAR},
</if>
<if test="platformtradenumber != null">
#{platformtradenumber,jdbcType=VARCHAR},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="amount != null">
#{amount,jdbcType=DECIMAL},
</if>
<if test="state != null">
#{state,jdbcType=INTEGER},
</if>
<if test="subject != null">
#{subject,jdbcType=NVARCHAR},
</if>
<if test="remark != null">
#{remark,jdbcType=NVARCHAR},
</if>
<if test="createuser != null">
#{createuser,jdbcType=VARCHAR},
</if>
<if test="createdate != null">
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="canceluser != null">
#{canceluser,jdbcType=VARCHAR},
</if>
<if test="canceldate != null">
#{canceldate,jdbcType=TIMESTAMP},
</if>
<if test="transId != null">
#{transId,jdbcType=VARCHAR},
</if>
<if test="zhuihuorderid != null">
#{zhuihuorderid,jdbcType=VARCHAR},
</if>
<if test="alipaystate != null">
#{alipaystate,jdbcType=INTEGER},
</if>
<if test="platformpartnerid != null">
#{platformpartnerid,jdbcType=VARCHAR},
</if>
<if test="partnerid != null">
#{partnerid,jdbcType=INTEGER},
</if>
<if test="platformbuyeruserid != null">
#{platformbuyeruserid,jdbcType=VARCHAR},
</if>
<if test="platform != null">
#{platform,jdbcType=VARCHAR},
</if>
<if test="mcoupon != null">
#{mcoupon,jdbcType=DECIMAL},
</if>
<if test="businessdate != null">
#{businessdate,jdbcType=VARCHAR},
</if>
<if test="orginalpayid != null">
#{orginalpayid,jdbcType=BIGINT},
</if>
<if test="pcoupon != null">
#{pcoupon,jdbcType=DECIMAL},
</if>
<if test="liquidatorcommissionrate != null">
#{liquidatorcommissionrate,jdbcType=DECIMAL},
</if>
<if test="liquidatorcommissionfee != null">
#{liquidatorcommissionfee,jdbcType=DECIMAL},
</if>
<if test="bankcommissionfee != null">
#{bankcommissionfee,jdbcType=DECIMAL},
</if>
<if test="bankcommissionrate != null">
#{bankcommissionrate,jdbcType=DECIMAL},
</if>
<if test="payplatformrate != null">
#{payplatformrate,jdbcType=DECIMAL},
</if>
<if test="payplatformfee != null">
#{payplatformfee,jdbcType=DECIMAL},
</if>
<if test="netamount != null">
#{netamount,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.freemud.pay.job.dao.dbModel.PayDM">
update Pay
<set>
<if test="storeId != null">
Store_Id = #{storeId,jdbcType=VARCHAR},
</if>
<if test="stationId != null">
Station_Id = #{stationId,jdbcType=VARCHAR},
</if>
<if test="operatorId != null">
Operator_Id = #{operatorId,jdbcType=VARCHAR},
</if>
<if test="partner != null">
Partner = #{partner,jdbcType=NVARCHAR},
</if>
<if test="partneraccount != null">
PartnerAccount = #{partneraccount,jdbcType=VARCHAR},
</if>
<if test="partnerorderid != null">
PartnerOrderID = #{partnerorderid,jdbcType=VARCHAR},
</if>
<if test="platformtradeaccount != null">
PlatformTradeAccount = #{platformtradeaccount,jdbcType=VARCHAR},
</if>
<if test="platformtradenumber != null">
PlatformTradeNumber = #{platformtradenumber,jdbcType=VARCHAR},
</if>
<if test="code != null">
Code = #{code,jdbcType=VARCHAR},
</if>
<if test="amount != null">
Amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="state != null">
State = #{state,jdbcType=INTEGER},
</if>
<if test="subject != null">
Subject = #{subject,jdbcType=NVARCHAR},
</if>
<if test="remark != null">
Remark = #{remark,jdbcType=NVARCHAR},
</if>
<if test="createuser != null">
CreateUser = #{createuser,jdbcType=VARCHAR},
</if>
<if test="createdate != null">
CreateDate = #{createdate,jdbcType=TIMESTAMP},
</if>
<if test="canceluser != null">
CancelUser = #{canceluser,jdbcType=VARCHAR},
</if>
<if test="canceldate != null">
CancelDate = #{canceldate,jdbcType=TIMESTAMP},
</if>
<if test="transId != null">
Trans_Id = #{transId,jdbcType=VARCHAR},
</if>
<if test="zhuihuorderid != null">
ZhuiHuOrderId = #{zhuihuorderid,jdbcType=VARCHAR},
</if>
<if test="alipaystate != null">
AlipayState = #{alipaystate,jdbcType=INTEGER},
</if>
<if test="platformpartnerid != null">
PlatformPartnerID = #{platformpartnerid,jdbcType=VARCHAR},
</if>
<if test="partnerid != null">
PartnerID = #{partnerid,jdbcType=INTEGER},
</if>
<if test="platformbuyeruserid != null">
PlatformBuyerUserId = #{platformbuyeruserid,jdbcType=VARCHAR},
</if>
<if test="platform != null">
Platform = #{platform,jdbcType=VARCHAR},
</if>
<if test="mcoupon != null">
mcoupon = #{mcoupon,jdbcType=DECIMAL},
</if>
<if test="businessdate != null">
BusinessDate = #{businessdate,jdbcType=VARCHAR},
</if>
<if test="orginalpayid != null">
OrginalPayId = #{orginalpayid,jdbcType=BIGINT},
</if>
<if test="pcoupon != null">
pcoupon = #{pcoupon,jdbcType=DECIMAL},
</if>
<if test="liquidatorcommissionrate != null">
LiquidatorCommissionRate = #{liquidatorcommissionrate,jdbcType=DECIMAL},
</if>
<if test="liquidatorcommissionfee != null">
LiquidatorCommissionFee = #{liquidatorcommissionfee,jdbcType=DECIMAL},
</if>
<if test="bankcommissionfee != null">
BankCommissionFee = #{bankcommissionfee,jdbcType=DECIMAL},
</if>
<if test="bankcommissionrate != null">
BankCommissionRate = #{bankcommissionrate,jdbcType=DECIMAL},
</if>
<if test="payplatformrate != null">
PayPlatformRate = #{payplatformrate,jdbcType=DECIMAL},
</if>
<if test="payplatformfee != null">
PayPlatformFee = #{payplatformfee,jdbcType=DECIMAL},
</if>
<if test="netamount != null">
NetAmount = #{netamount,jdbcType=DECIMAL},
</if>
</set>
where ID = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.freemud.pay.job.dao.dbModel.PayDM">
update Pay
set Store_Id = #{storeId,jdbcType=VARCHAR},
Station_Id = #{stationId,jdbcType=VARCHAR},
Operator_Id = #{operatorId,jdbcType=VARCHAR},
Partner = #{partner,jdbcType=NVARCHAR},
PartnerAccount = #{partneraccount,jdbcType=VARCHAR},
PartnerOrderID = #{partnerorderid,jdbcType=VARCHAR},
PlatformTradeAccount = #{platformtradeaccount,jdbcType=VARCHAR},
PlatformTradeNumber = #{platformtradenumber,jdbcType=VARCHAR},
Code = #{code,jdbcType=VARCHAR},
Amount = #{amount,jdbcType=DECIMAL},
State = #{state,jdbcType=INTEGER},
Subject = #{subject,jdbcType=NVARCHAR},
Remark = #{remark,jdbcType=NVARCHAR},
CreateUser = #{createuser,jdbcType=VARCHAR},
CreateDate = #{createdate,jdbcType=TIMESTAMP},
CancelUser = #{canceluser,jdbcType=VARCHAR},
CancelDate = #{canceldate,jdbcType=TIMESTAMP},
Trans_Id = #{transId,jdbcType=VARCHAR},
ZhuiHuOrderId = #{zhuihuorderid,jdbcType=VARCHAR},
AlipayState = #{alipaystate,jdbcType=INTEGER},
PlatformPartnerID = #{platformpartnerid,jdbcType=VARCHAR},
PartnerID = #{partnerid,jdbcType=INTEGER},
PlatformBuyerUserId = #{platformbuyeruserid,jdbcType=VARCHAR},
Platform = #{platform,jdbcType=VARCHAR},
mcoupon = #{mcoupon,jdbcType=DECIMAL},
BusinessDate = #{businessdate,jdbcType=VARCHAR},
OrginalPayId = #{orginalpayid,jdbcType=BIGINT},
pcoupon = #{pcoupon,jdbcType=DECIMAL},
LiquidatorCommissionRate = #{liquidatorcommissionrate,jdbcType=DECIMAL},
LiquidatorCommissionFee = #{liquidatorcommissionfee,jdbcType=DECIMAL},
BankCommissionFee = #{bankcommissionfee,jdbcType=DECIMAL},
BankCommissionRate = #{bankcommissionrate,jdbcType=DECIMAL},
PayPlatformRate = #{payplatformrate,jdbcType=DECIMAL},
PayPlatformFee = #{payplatformfee,jdbcType=DECIMAL},
NetAmount = #{netamount,jdbcType=DECIMAL}
where ID = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.freemud.pay.job.dao.mapper.PayMessageActiveMapper">
<resultMap id="BaseResultMap" type="com.freemud.pay.job.dao.dbModel.PayMessageActiveDM">
<id column="ID" jdbcType="BIGINT" property="id" />
<result column="PartnerId" jdbcType="INTEGER" property="partnerid" />
<result column="CouponActiveId" jdbcType="INTEGER" property="couponactiveid" />
<result column="Name" jdbcType="NVARCHAR" property="name" />
<result column="Description" jdbcType="NVARCHAR" property="description" />
<result column="PlatformAccountId" jdbcType="INTEGER" property="platformaccountid" />
<result column="TemplateId" jdbcType="VARCHAR" property="templateid" />
<result column="Status" jdbcType="INTEGER" property="status" />
<result column="StartTime" jdbcType="TIMESTAMP" property="starttime" />
<result column="EndTime" jdbcType="TIMESTAMP" property="endtime" />
<result column="Scope" jdbcType="INTEGER" property="scope" />
<result column="Area" jdbcType="INTEGER" property="area" />
<result column="AmountLimit" jdbcType="DECIMAL" property="amountlimit" />
<result column="Platform" jdbcType="VARCHAR" property="platform" />
<result column="Action" jdbcType="CHAR" property="action" />
<result column="Priority" jdbcType="INTEGER" property="priority" />
<result column="CreateDate" jdbcType="TIMESTAMP" property="createdate" />
<result column="CreateUser" jdbcType="VARCHAR" property="createuser" />
<result column="LastEditDate" jdbcType="TIMESTAMP" property="lasteditdate" />
<result column="LastEditUser" jdbcType="VARCHAR" property="lastedituser" />
<result column="IntervalLimit" jdbcType="INTEGER" property="intervallimit" />
<result column="DateIntervalLimit" jdbcType="INTEGER" property="dateintervallimit" />
<result column="MaxAmountLimit" jdbcType="DECIMAL" property="maxamountlimit" />
<result column="DelayTimeLimit" jdbcType="DECIMAL" property="delaytimelimit" />
<result column="SecondActiveId" jdbcType="BIGINT" property="secondactiveid" />
<result column="WXMsgActiveId" jdbcType="NVARCHAR" property="wxmsgactiveid" />
</resultMap>
<sql id="Base_Column_List">
ID, PartnerId, CouponActiveId, Name, Description, PlatformAccountId, TemplateId,
Status, StartTime, EndTime, Scope, Area, AmountLimit, Platform, Action, Priority,
CreateDate, CreateUser, LastEditDate, LastEditUser, IntervalLimit, DateIntervalLimit,
MaxAmountLimit, DelayTimeLimit, SecondActiveId, WXMsgActiveId
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from Pay_Message_Active
where ID = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from Pay_Message_Active
where ID = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.freemud.pay.job.dao.dbModel.PayMessageActiveDM">
insert into Pay_Message_Active (ID, PartnerId, CouponActiveId,
Name, Description, PlatformAccountId,
TemplateId, Status, StartTime,
EndTime, Scope, Area,
AmountLimit, Platform, Action,
Priority, CreateDate, CreateUser,
LastEditDate, LastEditUser, IntervalLimit,
DateIntervalLimit, MaxAmountLimit, DelayTimeLimit,
SecondActiveId, WXMsgActiveId)
values (#{id,jdbcType=BIGINT}, #{partnerid,jdbcType=INTEGER}, #{couponactiveid,jdbcType=INTEGER},
#{name,jdbcType=NVARCHAR}, #{description,jdbcType=NVARCHAR}, #{platformaccountid,jdbcType=INTEGER},
#{templateid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{starttime,jdbcType=TIMESTAMP},
#{endtime,jdbcType=TIMESTAMP}, #{scope,jdbcType=INTEGER}, #{area,jdbcType=INTEGER},
#{amountlimit,jdbcType=DECIMAL}, #{platform,jdbcType=VARCHAR}, #{action,jdbcType=CHAR},
#{priority,jdbcType=INTEGER}, #{createdate,jdbcType=TIMESTAMP}, #{createuser,jdbcType=VARCHAR},
#{lasteditdate,jdbcType=TIMESTAMP}, #{lastedituser,jdbcType=VARCHAR}, #{intervallimit,jdbcType=INTEGER},
#{dateintervallimit,jdbcType=INTEGER}, #{maxamountlimit,jdbcType=DECIMAL}, #{delaytimelimit,jdbcType=DECIMAL},
#{secondactiveid,jdbcType=BIGINT}, #{wxmsgactiveid,jdbcType=NVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.freemud.pay.job.dao.dbModel.PayMessageActiveDM">
insert into Pay_Message_Active
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
ID,
</if>
<if test="partnerid != null">
PartnerId,
</if>
<if test="couponactiveid != null">
CouponActiveId,
</if>
<if test="name != null">
Name,
</if>
<if test="description != null">
Description,
</if>
<if test="platformaccountid != null">
PlatformAccountId,
</if>
<if test="templateid != null">
TemplateId,
</if>
<if test="status != null">
Status,
</if>
<if test="starttime != null">
StartTime,
</if>
<if test="endtime != null">
EndTime,
</if>
<if test="scope != null">
Scope,
</if>
<if test="area != null">
Area,
</if>
<if test="amountlimit != null">
AmountLimit,
</if>
<if test="platform != null">
Platform,
</if>
<if test="action != null">
Action,
</if>
<if test="priority != null">
Priority,
</if>
<if test="createdate != null">
CreateDate,
</if>
<if test="createuser != null">
CreateUser,
</if>
<if test="lasteditdate != null">
LastEditDate,
</if>
<if test="lastedituser != null">
LastEditUser,
</if>
<if test="intervallimit != null">
IntervalLimit,
</if>
<if test="dateintervallimit != null">
DateIntervalLimit,
</if>
<if test="maxamountlimit != null">
MaxAmountLimit,
</if>
<if test="delaytimelimit != null">
DelayTimeLimit,
</if>
<if test="secondactiveid != null">
SecondActiveId,
</if>
<if test="wxmsgactiveid != null">
WXMsgActiveId,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="partnerid != null">
#{partnerid,jdbcType=INTEGER},
</if>
<if test="couponactiveid != null">
#{couponactiveid,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=NVARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=NVARCHAR},
</if>
<if test="platformaccountid != null">
#{platformaccountid,jdbcType=INTEGER},
</if>
<if test="templateid != null">
#{templateid,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="starttime != null">
#{starttime,jdbcType=TIMESTAMP},
</if>
<if test="endtime != null">
#{endtime,jdbcType=TIMESTAMP},
</if>
<if test="scope != null">
#{scope,jdbcType=INTEGER},
</if>
<if test="area != null">
#{area,jdbcType=INTEGER},
</if>
<if test="amountlimit != null">
#{amountlimit,jdbcType=DECIMAL},
</if>
<if test="platform != null">
#{platform,jdbcType=VARCHAR},
</if>
<if test="action != null">
#{action,jdbcType=CHAR},
</if>
<if test="priority != null">
#{priority,jdbcType=INTEGER},
</if>
<if test="createdate != null">
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="createuser != null">
#{createuser,jdbcType=VARCHAR},
</if>
<if test="lasteditdate != null">
#{lasteditdate,jdbcType=TIMESTAMP},
</if>
<if test="lastedituser != null">
#{lastedituser,jdbcType=VARCHAR},
</if>
<if test="intervallimit != null">
#{intervallimit,jdbcType=INTEGER},
</if>
<if test="dateintervallimit != null">
#{dateintervallimit,jdbcType=INTEGER},
</if>
<if test="maxamountlimit != null">
#{maxamountlimit,jdbcType=DECIMAL},
</if>
<if test="delaytimelimit != null">
#{delaytimelimit,jdbcType=DECIMAL},
</if>
<if test="secondactiveid != null">
#{secondactiveid,jdbcType=BIGINT},
</if>
<if test="wxmsgactiveid != null">
#{wxmsgactiveid,jdbcType=NVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.freemud.pay.job.dao.dbModel.PayMessageActiveDM">
update Pay_Message_Active
<set>
<if test="partnerid != null">
PartnerId = #{partnerid,jdbcType=INTEGER},
</if>
<if test="couponactiveid != null">
CouponActiveId = #{couponactiveid,jdbcType=INTEGER},
</if>
<if test="name != null">
Name = #{name,jdbcType=NVARCHAR},
</if>
<if test="description != null">
Description = #{description,jdbcType=NVARCHAR},
</if>
<if test="platformaccountid != null">
PlatformAccountId = #{platformaccountid,jdbcType=INTEGER},
</if>
<if test="templateid != null">
TemplateId = #{templateid,jdbcType=VARCHAR},
</if>
<if test="status != null">
Status = #{status,jdbcType=INTEGER},
</if>
<if test="starttime != null">
StartTime = #{starttime,jdbcType=TIMESTAMP},
</if>
<if test="endtime != null">
EndTime = #{endtime,jdbcType=TIMESTAMP},
</if>
<if test="scope != null">
Scope = #{scope,jdbcType=INTEGER},
</if>
<if test="area != null">
Area = #{area,jdbcType=INTEGER},
</if>
<if test="amountlimit != null">
AmountLimit = #{amountlimit,jdbcType=DECIMAL},
</if>
<if test="platform != null">
Platform = #{platform,jdbcType=VARCHAR},
</if>
<if test="action != null">
Action = #{action,jdbcType=CHAR},
</if>
<if test="priority != null">
Priority = #{priority,jdbcType=INTEGER},
</if>
<if test="createdate != null">
CreateDate = #{createdate,jdbcType=TIMESTAMP},
</if>
<if test="createuser != null">
CreateUser = #{createuser,jdbcType=VARCHAR},
</if>
<if test="lasteditdate != null">
LastEditDate = #{lasteditdate,jdbcType=TIMESTAMP},
</if>
<if test="lastedituser != null">
LastEditUser = #{lastedituser,jdbcType=VARCHAR},
</if>
<if test="intervallimit != null">
IntervalLimit = #{intervallimit,jdbcType=INTEGER},
</if>
<if test="dateintervallimit != null">
DateIntervalLimit = #{dateintervallimit,jdbcType=INTEGER},
</if>
<if test="maxamountlimit != null">
MaxAmountLimit = #{maxamountlimit,jdbcType=DECIMAL},
</if>
<if test="delaytimelimit != null">
DelayTimeLimit = #{delaytimelimit,jdbcType=DECIMAL},
</if>
<if test="secondactiveid != null">
SecondActiveId = #{secondactiveid,jdbcType=BIGINT},
</if>
<if test="wxmsgactiveid != null">
WXMsgActiveId = #{wxmsgactiveid,jdbcType=NVARCHAR},
</if>
</set>
where ID = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.freemud.pay.job.dao.dbModel.PayMessageActiveDM">
update Pay_Message_Active
set PartnerId = #{partnerid,jdbcType=INTEGER},
CouponActiveId = #{couponactiveid,jdbcType=INTEGER},
Name = #{name,jdbcType=NVARCHAR},
Description = #{description,jdbcType=NVARCHAR},
PlatformAccountId = #{platformaccountid,jdbcType=INTEGER},
TemplateId = #{templateid,jdbcType=VARCHAR},
Status = #{status,jdbcType=INTEGER},
StartTime = #{starttime,jdbcType=TIMESTAMP},
EndTime = #{endtime,jdbcType=TIMESTAMP},
Scope = #{scope,jdbcType=INTEGER},
Area = #{area,jdbcType=INTEGER},
AmountLimit = #{amountlimit,jdbcType=DECIMAL},
Platform = #{platform,jdbcType=VARCHAR},
Action = #{action,jdbcType=CHAR},
Priority = #{priority,jdbcType=INTEGER},
CreateDate = #{createdate,jdbcType=TIMESTAMP},
CreateUser = #{createuser,jdbcType=VARCHAR},
LastEditDate = #{lasteditdate,jdbcType=TIMESTAMP},
LastEditUser = #{lastedituser,jdbcType=VARCHAR},
IntervalLimit = #{intervallimit,jdbcType=INTEGER},
DateIntervalLimit = #{dateintervallimit,jdbcType=INTEGER},
MaxAmountLimit = #{maxamountlimit,jdbcType=DECIMAL},
DelayTimeLimit = #{delaytimelimit,jdbcType=DECIMAL},
SecondActiveId = #{secondactiveid,jdbcType=BIGINT},
WXMsgActiveId = #{wxmsgactiveid,jdbcType=NVARCHAR}
where ID = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.freemud.pay.job.dao.mapper.PayMessageMapper">
<resultMap id="BaseResultMap" type="com.freemud.pay.job.dao.dbModel.PayMessageDM">
<id column="Id" jdbcType="BIGINT" property="id" />
<result column="PartnerId" jdbcType="INTEGER" property="partnerid" />
<result column="FMId" jdbcType="VARCHAR" property="fmid" />
<result column="TemplateId" jdbcType="VARCHAR" property="templateid" />
<result column="UserId" jdbcType="VARCHAR" property="userid" />
<result column="Status" jdbcType="INTEGER" property="status" />
<result column="TryTimes" jdbcType="INTEGER" property="trytimes" />
<result column="CreateDate" jdbcType="TIMESTAMP" property="createdate" />
<result column="LastEditDate" jdbcType="TIMESTAMP" property="lasteditdate" />
<result column="Code" jdbcType="CHAR" property="code" />
<result column="Pay_Message_Active_ID" jdbcType="BIGINT" property="payMessageActiveId" />
</resultMap>
<sql id="Base_Column_List">
Id, PartnerId, FMId, TemplateId, UserId, Status, TryTimes, CreateDate, LastEditDate,
Code, Pay_Message_Active_ID
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from Pay_Message
where Id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from Pay_Message
where Id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.freemud.pay.job.dao.dbModel.PayMessageDM">
insert into Pay_Message (Id, PartnerId, FMId,
TemplateId, UserId, Status,
TryTimes, CreateDate, LastEditDate,
Code, Pay_Message_Active_ID)
values (#{id,jdbcType=BIGINT}, #{partnerid,jdbcType=INTEGER}, #{fmid,jdbcType=VARCHAR},
#{templateid,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{trytimes,jdbcType=INTEGER}, #{createdate,jdbcType=TIMESTAMP}, #{lasteditdate,jdbcType=TIMESTAMP},
#{code,jdbcType=CHAR}, #{payMessageActiveId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.freemud.pay.job.dao.dbModel.PayMessageDM">
insert into Pay_Message
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
Id,
</if>
<if test="partnerid != null">
PartnerId,
</if>
<if test="fmid != null">
FMId,
</if>
<if test="templateid != null">
TemplateId,
</if>
<if test="userid != null">
UserId,
</if>
<if test="status != null">
Status,
</if>
<if test="trytimes != null">
TryTimes,
</if>
<if test="createdate != null">
CreateDate,
</if>
<if test="lasteditdate != null">
LastEditDate,
</if>
<if test="code != null">
Code,
</if>
<if test="payMessageActiveId != null">
Pay_Message_Active_ID,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="partnerid != null">
#{partnerid,jdbcType=INTEGER},
</if>
<if test="fmid != null">
#{fmid,jdbcType=VARCHAR},
</if>
<if test="templateid != null">
#{templateid,jdbcType=VARCHAR},
</if>
<if test="userid != null">
#{userid,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="trytimes != null">
#{trytimes,jdbcType=INTEGER},
</if>
<if test="createdate != null">
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="lasteditdate != null">
#{lasteditdate,jdbcType=TIMESTAMP},
</if>
<if test="code != null">
#{code,jdbcType=CHAR},
</if>
<if test="payMessageActiveId != null">
#{payMessageActiveId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.freemud.pay.job.dao.dbModel.PayMessageDM">
update Pay_Message
<set>
<if test="partnerid != null">
PartnerId = #{partnerid,jdbcType=INTEGER},
</if>
<if test="fmid != null">
FMId = #{fmid,jdbcType=VARCHAR},
</if>
<if test="templateid != null">
TemplateId = #{templateid,jdbcType=VARCHAR},
</if>
<if test="userid != null">
UserId = #{userid,jdbcType=VARCHAR},
</if>
<if test="status != null">
Status = #{status,jdbcType=INTEGER},
</if>
<if test="trytimes != null">
TryTimes = #{trytimes,jdbcType=INTEGER},
</if>
<if test="createdate != null">
CreateDate = #{createdate,jdbcType=TIMESTAMP},
</if>
<if test="lasteditdate != null">
LastEditDate = #{lasteditdate,jdbcType=TIMESTAMP},
</if>
<if test="code != null">
Code = #{code,jdbcType=CHAR},
</if>
<if test="payMessageActiveId != null">
Pay_Message_Active_ID = #{payMessageActiveId,jdbcType=BIGINT},
</if>
</set>
where Id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.freemud.pay.job.dao.dbModel.PayMessageDM">
update Pay_Message
set PartnerId = #{partnerid,jdbcType=INTEGER},
FMId = #{fmid,jdbcType=VARCHAR},
TemplateId = #{templateid,jdbcType=VARCHAR},
UserId = #{userid,jdbcType=VARCHAR},
Status = #{status,jdbcType=INTEGER},
TryTimes = #{trytimes,jdbcType=INTEGER},
CreateDate = #{createdate,jdbcType=TIMESTAMP},
LastEditDate = #{lasteditdate,jdbcType=TIMESTAMP},
Code = #{code,jdbcType=CHAR},
Pay_Message_Active_ID = #{payMessageActiveId,jdbcType=BIGINT}
where Id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment