parent
5b1882afb7
commit
5a732b3a2d
File diff suppressed because one or more lines are too long
@ -0,0 +1,142 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.BsMerPlatformPeriodPaid; |
||||
import com.hfkj.entity.BsMerPlatformPeriodPaidExample; |
||||
import java.util.List; |
||||
import org.apache.ibatis.annotations.Delete; |
||||
import org.apache.ibatis.annotations.DeleteProvider; |
||||
import org.apache.ibatis.annotations.Insert; |
||||
import org.apache.ibatis.annotations.InsertProvider; |
||||
import org.apache.ibatis.annotations.Options; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.apache.ibatis.annotations.Result; |
||||
import org.apache.ibatis.annotations.Results; |
||||
import org.apache.ibatis.annotations.Select; |
||||
import org.apache.ibatis.annotations.SelectProvider; |
||||
import org.apache.ibatis.annotations.Update; |
||||
import org.apache.ibatis.annotations.UpdateProvider; |
||||
import org.apache.ibatis.type.JdbcType; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
/** |
||||
* |
||||
* 代码由工具生成,请勿修改!!! |
||||
* 如果需要扩展请在其父类进行扩展 |
||||
* |
||||
**/ |
||||
@Repository |
||||
public interface BsMerPlatformPeriodPaidMapper extends BsMerPlatformPeriodPaidMapperExt { |
||||
@SelectProvider(type=BsMerPlatformPeriodPaidSqlProvider.class, method="countByExample") |
||||
long countByExample(BsMerPlatformPeriodPaidExample example); |
||||
|
||||
@DeleteProvider(type=BsMerPlatformPeriodPaidSqlProvider.class, method="deleteByExample") |
||||
int deleteByExample(BsMerPlatformPeriodPaidExample example); |
||||
|
||||
@Delete({ |
||||
"delete from bs_mer_platform_period_paid", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
int deleteByPrimaryKey(Long id); |
||||
|
||||
@Insert({ |
||||
"insert into bs_mer_platform_period_paid (platform_period_id, mer_id, ", |
||||
"mer_no, pay_type, ", |
||||
"platform_type, platform_no, ", |
||||
"platform_fee_paid, platform_market_id, ", |
||||
"platform_pkg_id, current_settle, ", |
||||
"create_time, update_time, ", |
||||
"ext_1, ext_2, ext_3)", |
||||
"values (#{platformPeriodId,jdbcType=BIGINT}, #{merId,jdbcType=BIGINT}, ", |
||||
"#{merNo,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", |
||||
"#{platformType,jdbcType=INTEGER}, #{platformNo,jdbcType=VARCHAR}, ", |
||||
"#{platformFeePaid,jdbcType=INTEGER}, #{platformMarketId,jdbcType=VARCHAR}, ", |
||||
"#{platformPkgId,jdbcType=VARCHAR}, #{currentSettle,jdbcType=BIT}, ", |
||||
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
||||
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
||||
}) |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insert(BsMerPlatformPeriodPaid record); |
||||
|
||||
@InsertProvider(type=BsMerPlatformPeriodPaidSqlProvider.class, method="insertSelective") |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insertSelective(BsMerPlatformPeriodPaid record); |
||||
|
||||
@SelectProvider(type=BsMerPlatformPeriodPaidSqlProvider.class, method="selectByExample") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||
@Result(column="platform_period_id", property="platformPeriodId", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="platform_no", property="platformNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="platform_fee_paid", property="platformFeePaid", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="platform_market_id", property="platformMarketId", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="platform_pkg_id", property="platformPkgId", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="current_settle", property="currentSettle", jdbcType=JdbcType.BIT), |
||||
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
List<BsMerPlatformPeriodPaid> selectByExample(BsMerPlatformPeriodPaidExample example); |
||||
|
||||
@Select({ |
||||
"select", |
||||
"id, platform_period_id, mer_id, mer_no, pay_type, platform_type, platform_no, ", |
||||
"platform_fee_paid, platform_market_id, platform_pkg_id, current_settle, create_time, ", |
||||
"update_time, ext_1, ext_2, ext_3", |
||||
"from bs_mer_platform_period_paid", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||
@Result(column="platform_period_id", property="platformPeriodId", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="platform_no", property="platformNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="platform_fee_paid", property="platformFeePaid", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="platform_market_id", property="platformMarketId", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="platform_pkg_id", property="platformPkgId", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="current_settle", property="currentSettle", jdbcType=JdbcType.BIT), |
||||
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
BsMerPlatformPeriodPaid selectByPrimaryKey(Long id); |
||||
|
||||
@UpdateProvider(type=BsMerPlatformPeriodPaidSqlProvider.class, method="updateByExampleSelective") |
||||
int updateByExampleSelective(@Param("record") BsMerPlatformPeriodPaid record, @Param("example") BsMerPlatformPeriodPaidExample example); |
||||
|
||||
@UpdateProvider(type=BsMerPlatformPeriodPaidSqlProvider.class, method="updateByExample") |
||||
int updateByExample(@Param("record") BsMerPlatformPeriodPaid record, @Param("example") BsMerPlatformPeriodPaidExample example); |
||||
|
||||
@UpdateProvider(type=BsMerPlatformPeriodPaidSqlProvider.class, method="updateByPrimaryKeySelective") |
||||
int updateByPrimaryKeySelective(BsMerPlatformPeriodPaid record); |
||||
|
||||
@Update({ |
||||
"update bs_mer_platform_period_paid", |
||||
"set platform_period_id = #{platformPeriodId,jdbcType=BIGINT},", |
||||
"mer_id = #{merId,jdbcType=BIGINT},", |
||||
"mer_no = #{merNo,jdbcType=VARCHAR},", |
||||
"pay_type = #{payType,jdbcType=INTEGER},", |
||||
"platform_type = #{platformType,jdbcType=INTEGER},", |
||||
"platform_no = #{platformNo,jdbcType=VARCHAR},", |
||||
"platform_fee_paid = #{platformFeePaid,jdbcType=INTEGER},", |
||||
"platform_market_id = #{platformMarketId,jdbcType=VARCHAR},", |
||||
"platform_pkg_id = #{platformPkgId,jdbcType=VARCHAR},", |
||||
"current_settle = #{currentSettle,jdbcType=BIT},", |
||||
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
||||
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
||||
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
||||
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
||||
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
int updateByPrimaryKey(BsMerPlatformPeriodPaid record); |
||||
} |
@ -0,0 +1,7 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
/** |
||||
* mapper扩展类 |
||||
*/ |
||||
public interface BsMerPlatformPeriodPaidMapperExt { |
||||
} |
@ -0,0 +1,388 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.BsMerPlatformPeriodPaid; |
||||
import com.hfkj.entity.BsMerPlatformPeriodPaidExample.Criteria; |
||||
import com.hfkj.entity.BsMerPlatformPeriodPaidExample.Criterion; |
||||
import com.hfkj.entity.BsMerPlatformPeriodPaidExample; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import org.apache.ibatis.jdbc.SQL; |
||||
|
||||
public class BsMerPlatformPeriodPaidSqlProvider { |
||||
|
||||
public String countByExample(BsMerPlatformPeriodPaidExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.SELECT("count(*)").FROM("bs_mer_platform_period_paid"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String deleteByExample(BsMerPlatformPeriodPaidExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.DELETE_FROM("bs_mer_platform_period_paid"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String insertSelective(BsMerPlatformPeriodPaid record) { |
||||
SQL sql = new SQL(); |
||||
sql.INSERT_INTO("bs_mer_platform_period_paid"); |
||||
|
||||
if (record.getPlatformPeriodId() != null) { |
||||
sql.VALUES("platform_period_id", "#{platformPeriodId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getMerId() != null) { |
||||
sql.VALUES("mer_id", "#{merId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getMerNo() != null) { |
||||
sql.VALUES("mer_no", "#{merNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPayType() != null) { |
||||
sql.VALUES("pay_type", "#{payType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformType() != null) { |
||||
sql.VALUES("platform_type", "#{platformType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformNo() != null) { |
||||
sql.VALUES("platform_no", "#{platformNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPlatformFeePaid() != null) { |
||||
sql.VALUES("platform_fee_paid", "#{platformFeePaid,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformMarketId() != null) { |
||||
sql.VALUES("platform_market_id", "#{platformMarketId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPlatformPkgId() != null) { |
||||
sql.VALUES("platform_pkg_id", "#{platformPkgId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCurrentSettle() != null) { |
||||
sql.VALUES("current_settle", "#{currentSettle,jdbcType=BIT}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getUpdateTime() != null) { |
||||
sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExample(BsMerPlatformPeriodPaidExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("platform_period_id"); |
||||
sql.SELECT("mer_id"); |
||||
sql.SELECT("mer_no"); |
||||
sql.SELECT("pay_type"); |
||||
sql.SELECT("platform_type"); |
||||
sql.SELECT("platform_no"); |
||||
sql.SELECT("platform_fee_paid"); |
||||
sql.SELECT("platform_market_id"); |
||||
sql.SELECT("platform_pkg_id"); |
||||
sql.SELECT("current_settle"); |
||||
sql.SELECT("create_time"); |
||||
sql.SELECT("update_time"); |
||||
sql.SELECT("ext_1"); |
||||
sql.SELECT("ext_2"); |
||||
sql.SELECT("ext_3"); |
||||
sql.FROM("bs_mer_platform_period_paid"); |
||||
applyWhere(sql, example, false); |
||||
|
||||
if (example != null && example.getOrderByClause() != null) { |
||||
sql.ORDER_BY(example.getOrderByClause()); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExampleSelective(Map<String, Object> parameter) { |
||||
BsMerPlatformPeriodPaid record = (BsMerPlatformPeriodPaid) parameter.get("record"); |
||||
BsMerPlatformPeriodPaidExample example = (BsMerPlatformPeriodPaidExample) parameter.get("example"); |
||||
|
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("bs_mer_platform_period_paid"); |
||||
|
||||
if (record.getId() != null) { |
||||
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getPlatformPeriodId() != null) { |
||||
sql.SET("platform_period_id = #{record.platformPeriodId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getMerId() != null) { |
||||
sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getMerNo() != null) { |
||||
sql.SET("mer_no = #{record.merNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPayType() != null) { |
||||
sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformType() != null) { |
||||
sql.SET("platform_type = #{record.platformType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformNo() != null) { |
||||
sql.SET("platform_no = #{record.platformNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPlatformFeePaid() != null) { |
||||
sql.SET("platform_fee_paid = #{record.platformFeePaid,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformMarketId() != null) { |
||||
sql.SET("platform_market_id = #{record.platformMarketId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPlatformPkgId() != null) { |
||||
sql.SET("platform_pkg_id = #{record.platformPkgId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCurrentSettle() != null) { |
||||
sql.SET("current_settle = #{record.currentSettle,jdbcType=BIT}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getUpdateTime() != null) { |
||||
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExample(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("bs_mer_platform_period_paid"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||
sql.SET("platform_period_id = #{record.platformPeriodId,jdbcType=BIGINT}"); |
||||
sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}"); |
||||
sql.SET("mer_no = #{record.merNo,jdbcType=VARCHAR}"); |
||||
sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); |
||||
sql.SET("platform_type = #{record.platformType,jdbcType=INTEGER}"); |
||||
sql.SET("platform_no = #{record.platformNo,jdbcType=VARCHAR}"); |
||||
sql.SET("platform_fee_paid = #{record.platformFeePaid,jdbcType=INTEGER}"); |
||||
sql.SET("platform_market_id = #{record.platformMarketId,jdbcType=VARCHAR}"); |
||||
sql.SET("platform_pkg_id = #{record.platformPkgId,jdbcType=VARCHAR}"); |
||||
sql.SET("current_settle = #{record.currentSettle,jdbcType=BIT}"); |
||||
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); |
||||
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); |
||||
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); |
||||
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); |
||||
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); |
||||
|
||||
BsMerPlatformPeriodPaidExample example = (BsMerPlatformPeriodPaidExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByPrimaryKeySelective(BsMerPlatformPeriodPaid record) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("bs_mer_platform_period_paid"); |
||||
|
||||
if (record.getPlatformPeriodId() != null) { |
||||
sql.SET("platform_period_id = #{platformPeriodId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getMerId() != null) { |
||||
sql.SET("mer_id = #{merId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getMerNo() != null) { |
||||
sql.SET("mer_no = #{merNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPayType() != null) { |
||||
sql.SET("pay_type = #{payType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformType() != null) { |
||||
sql.SET("platform_type = #{platformType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformNo() != null) { |
||||
sql.SET("platform_no = #{platformNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPlatformFeePaid() != null) { |
||||
sql.SET("platform_fee_paid = #{platformFeePaid,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getPlatformMarketId() != null) { |
||||
sql.SET("platform_market_id = #{platformMarketId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPlatformPkgId() != null) { |
||||
sql.SET("platform_pkg_id = #{platformPkgId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCurrentSettle() != null) { |
||||
sql.SET("current_settle = #{currentSettle,jdbcType=BIT}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getUpdateTime() != null) { |
||||
sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
sql.WHERE("id = #{id,jdbcType=BIGINT}"); |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
protected void applyWhere(SQL sql, BsMerPlatformPeriodPaidExample example, boolean includeExamplePhrase) { |
||||
if (example == null) { |
||||
return; |
||||
} |
||||
|
||||
String parmPhrase1; |
||||
String parmPhrase1_th; |
||||
String parmPhrase2; |
||||
String parmPhrase2_th; |
||||
String parmPhrase3; |
||||
String parmPhrase3_th; |
||||
if (includeExamplePhrase) { |
||||
parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; |
||||
parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; |
||||
parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; |
||||
parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; |
||||
parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; |
||||
parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; |
||||
} else { |
||||
parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; |
||||
parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; |
||||
parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; |
||||
parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; |
||||
parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; |
||||
parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; |
||||
} |
||||
|
||||
StringBuilder sb = new StringBuilder(); |
||||
List<Criteria> oredCriteria = example.getOredCriteria(); |
||||
boolean firstCriteria = true; |
||||
for (int i = 0; i < oredCriteria.size(); i++) { |
||||
Criteria criteria = oredCriteria.get(i); |
||||
if (criteria.isValid()) { |
||||
if (firstCriteria) { |
||||
firstCriteria = false; |
||||
} else { |
||||
sb.append(" or "); |
||||
} |
||||
|
||||
sb.append('('); |
||||
List<Criterion> criterions = criteria.getAllCriteria(); |
||||
boolean firstCriterion = true; |
||||
for (int j = 0; j < criterions.size(); j++) { |
||||
Criterion criterion = criterions.get(j); |
||||
if (firstCriterion) { |
||||
firstCriterion = false; |
||||
} else { |
||||
sb.append(" and "); |
||||
} |
||||
|
||||
if (criterion.isNoValue()) { |
||||
sb.append(criterion.getCondition()); |
||||
} else if (criterion.isSingleValue()) { |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); |
||||
} |
||||
} else if (criterion.isBetweenValue()) { |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); |
||||
} |
||||
} else if (criterion.isListValue()) { |
||||
sb.append(criterion.getCondition()); |
||||
sb.append(" ("); |
||||
List<?> listItems = (List<?>) criterion.getValue(); |
||||
boolean comma = false; |
||||
for (int k = 0; k < listItems.size(); k++) { |
||||
if (comma) { |
||||
sb.append(", "); |
||||
} else { |
||||
comma = true; |
||||
} |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase3, i, j, k)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); |
||||
} |
||||
} |
||||
sb.append(')'); |
||||
} |
||||
} |
||||
sb.append(')'); |
||||
} |
||||
} |
||||
|
||||
if (sb.length() > 0) { |
||||
sql.WHERE(sb.toString()); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,100 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.LlgBankCode; |
||||
import com.hfkj.entity.LlgBankCodeExample; |
||||
import java.util.List; |
||||
import org.apache.ibatis.annotations.Delete; |
||||
import org.apache.ibatis.annotations.DeleteProvider; |
||||
import org.apache.ibatis.annotations.Insert; |
||||
import org.apache.ibatis.annotations.InsertProvider; |
||||
import org.apache.ibatis.annotations.Options; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.apache.ibatis.annotations.Result; |
||||
import org.apache.ibatis.annotations.Results; |
||||
import org.apache.ibatis.annotations.Select; |
||||
import org.apache.ibatis.annotations.SelectProvider; |
||||
import org.apache.ibatis.annotations.Update; |
||||
import org.apache.ibatis.annotations.UpdateProvider; |
||||
import org.apache.ibatis.type.JdbcType; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
/** |
||||
* |
||||
* 代码由工具生成,请勿修改!!! |
||||
* 如果需要扩展请在其父类进行扩展 |
||||
* |
||||
**/ |
||||
@Repository |
||||
public interface LlgBankCodeMapper extends LlgBankCodeMapperExt { |
||||
@SelectProvider(type=LlgBankCodeSqlProvider.class, method="countByExample") |
||||
long countByExample(LlgBankCodeExample example); |
||||
|
||||
@DeleteProvider(type=LlgBankCodeSqlProvider.class, method="deleteByExample") |
||||
int deleteByExample(LlgBankCodeExample example); |
||||
|
||||
@Delete({ |
||||
"delete from llg_bank_code", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
int deleteByPrimaryKey(Long id); |
||||
|
||||
@Insert({ |
||||
"insert into llg_bank_code (bank_code, bank_name, ", |
||||
"ext_1, ext_2, ext_3)", |
||||
"values (#{bankCode,jdbcType=BIGINT}, #{bankName,jdbcType=VARCHAR}, ", |
||||
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
||||
}) |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insert(LlgBankCode record); |
||||
|
||||
@InsertProvider(type=LlgBankCodeSqlProvider.class, method="insertSelective") |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insertSelective(LlgBankCode record); |
||||
|
||||
@SelectProvider(type=LlgBankCodeSqlProvider.class, method="selectByExample") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||
@Result(column="bank_code", property="bankCode", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
List<LlgBankCode> selectByExample(LlgBankCodeExample example); |
||||
|
||||
@Select({ |
||||
"select", |
||||
"id, bank_code, bank_name, ext_1, ext_2, ext_3", |
||||
"from llg_bank_code", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||
@Result(column="bank_code", property="bankCode", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
LlgBankCode selectByPrimaryKey(Long id); |
||||
|
||||
@UpdateProvider(type=LlgBankCodeSqlProvider.class, method="updateByExampleSelective") |
||||
int updateByExampleSelective(@Param("record") LlgBankCode record, @Param("example") LlgBankCodeExample example); |
||||
|
||||
@UpdateProvider(type=LlgBankCodeSqlProvider.class, method="updateByExample") |
||||
int updateByExample(@Param("record") LlgBankCode record, @Param("example") LlgBankCodeExample example); |
||||
|
||||
@UpdateProvider(type=LlgBankCodeSqlProvider.class, method="updateByPrimaryKeySelective") |
||||
int updateByPrimaryKeySelective(LlgBankCode record); |
||||
|
||||
@Update({ |
||||
"update llg_bank_code", |
||||
"set bank_code = #{bankCode,jdbcType=BIGINT},", |
||||
"bank_name = #{bankName,jdbcType=VARCHAR},", |
||||
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
||||
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
||||
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
int updateByPrimaryKey(LlgBankCode record); |
||||
} |
@ -0,0 +1,7 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
/** |
||||
* mapper扩展类 |
||||
*/ |
||||
public interface LlgBankCodeMapperExt { |
||||
} |
@ -0,0 +1,248 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.LlgBankCode; |
||||
import com.hfkj.entity.LlgBankCodeExample.Criteria; |
||||
import com.hfkj.entity.LlgBankCodeExample.Criterion; |
||||
import com.hfkj.entity.LlgBankCodeExample; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import org.apache.ibatis.jdbc.SQL; |
||||
|
||||
public class LlgBankCodeSqlProvider { |
||||
|
||||
public String countByExample(LlgBankCodeExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.SELECT("count(*)").FROM("llg_bank_code"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String deleteByExample(LlgBankCodeExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.DELETE_FROM("llg_bank_code"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String insertSelective(LlgBankCode record) { |
||||
SQL sql = new SQL(); |
||||
sql.INSERT_INTO("llg_bank_code"); |
||||
|
||||
if (record.getBankCode() != null) { |
||||
sql.VALUES("bank_code", "#{bankCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getBankName() != null) { |
||||
sql.VALUES("bank_name", "#{bankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExample(LlgBankCodeExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("bank_code"); |
||||
sql.SELECT("bank_name"); |
||||
sql.SELECT("ext_1"); |
||||
sql.SELECT("ext_2"); |
||||
sql.SELECT("ext_3"); |
||||
sql.FROM("llg_bank_code"); |
||||
applyWhere(sql, example, false); |
||||
|
||||
if (example != null && example.getOrderByClause() != null) { |
||||
sql.ORDER_BY(example.getOrderByClause()); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExampleSelective(Map<String, Object> parameter) { |
||||
LlgBankCode record = (LlgBankCode) parameter.get("record"); |
||||
LlgBankCodeExample example = (LlgBankCodeExample) parameter.get("example"); |
||||
|
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("llg_bank_code"); |
||||
|
||||
if (record.getId() != null) { |
||||
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getBankCode() != null) { |
||||
sql.SET("bank_code = #{record.bankCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getBankName() != null) { |
||||
sql.SET("bank_name = #{record.bankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExample(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("llg_bank_code"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||
sql.SET("bank_code = #{record.bankCode,jdbcType=BIGINT}"); |
||||
sql.SET("bank_name = #{record.bankName,jdbcType=VARCHAR}"); |
||||
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); |
||||
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); |
||||
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); |
||||
|
||||
LlgBankCodeExample example = (LlgBankCodeExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByPrimaryKeySelective(LlgBankCode record) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("llg_bank_code"); |
||||
|
||||
if (record.getBankCode() != null) { |
||||
sql.SET("bank_code = #{bankCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getBankName() != null) { |
||||
sql.SET("bank_name = #{bankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
sql.WHERE("id = #{id,jdbcType=BIGINT}"); |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
protected void applyWhere(SQL sql, LlgBankCodeExample example, boolean includeExamplePhrase) { |
||||
if (example == null) { |
||||
return; |
||||
} |
||||
|
||||
String parmPhrase1; |
||||
String parmPhrase1_th; |
||||
String parmPhrase2; |
||||
String parmPhrase2_th; |
||||
String parmPhrase3; |
||||
String parmPhrase3_th; |
||||
if (includeExamplePhrase) { |
||||
parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; |
||||
parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; |
||||
parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; |
||||
parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; |
||||
parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; |
||||
parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; |
||||
} else { |
||||
parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; |
||||
parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; |
||||
parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; |
||||
parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; |
||||
parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; |
||||
parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; |
||||
} |
||||
|
||||
StringBuilder sb = new StringBuilder(); |
||||
List<Criteria> oredCriteria = example.getOredCriteria(); |
||||
boolean firstCriteria = true; |
||||
for (int i = 0; i < oredCriteria.size(); i++) { |
||||
Criteria criteria = oredCriteria.get(i); |
||||
if (criteria.isValid()) { |
||||
if (firstCriteria) { |
||||
firstCriteria = false; |
||||
} else { |
||||
sb.append(" or "); |
||||
} |
||||
|
||||
sb.append('('); |
||||
List<Criterion> criterions = criteria.getAllCriteria(); |
||||
boolean firstCriterion = true; |
||||
for (int j = 0; j < criterions.size(); j++) { |
||||
Criterion criterion = criterions.get(j); |
||||
if (firstCriterion) { |
||||
firstCriterion = false; |
||||
} else { |
||||
sb.append(" and "); |
||||
} |
||||
|
||||
if (criterion.isNoValue()) { |
||||
sb.append(criterion.getCondition()); |
||||
} else if (criterion.isSingleValue()) { |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); |
||||
} |
||||
} else if (criterion.isBetweenValue()) { |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); |
||||
} |
||||
} else if (criterion.isListValue()) { |
||||
sb.append(criterion.getCondition()); |
||||
sb.append(" ("); |
||||
List<?> listItems = (List<?>) criterion.getValue(); |
||||
boolean comma = false; |
||||
for (int k = 0; k < listItems.size(); k++) { |
||||
if (comma) { |
||||
sb.append(", "); |
||||
} else { |
||||
comma = true; |
||||
} |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase3, i, j, k)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); |
||||
} |
||||
} |
||||
sb.append(')'); |
||||
} |
||||
} |
||||
sb.append(')'); |
||||
} |
||||
} |
||||
|
||||
if (sb.length() > 0) { |
||||
sql.WHERE(sb.toString()); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,296 @@ |
||||
package com.hfkj.entity; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* bs_mer_platform_period_paid |
||||
* @author |
||||
*/ |
||||
/** |
||||
* |
||||
* 代码由工具生成 |
||||
* |
||||
**/ |
||||
public class BsMerPlatformPeriodPaid implements Serializable { |
||||
/** |
||||
* 主键 |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 公司id |
||||
*/ |
||||
private Long platformPeriodId; |
||||
|
||||
/** |
||||
* 商户id |
||||
*/ |
||||
private Long merId; |
||||
|
||||
/** |
||||
* 内部商户号 |
||||
*/ |
||||
private String merNo; |
||||
|
||||
/** |
||||
* 分期方式 1:银联 2:花呗 |
||||
*/ |
||||
private Integer payType; |
||||
|
||||
/** |
||||
* 平台 1:零零购 |
||||
*/ |
||||
private Integer platformType; |
||||
|
||||
/** |
||||
* 平台商户号 |
||||
*/ |
||||
private String platformNo; |
||||
|
||||
/** |
||||
* 贴息方式 1:商户贴息 2:用户贴息 3:商户用户各一半 |
||||
*/ |
||||
private Integer platformFeePaid; |
||||
|
||||
/** |
||||
* 平台活动id |
||||
*/ |
||||
private String platformMarketId; |
||||
|
||||
/** |
||||
* 平台子活动id |
||||
*/ |
||||
private String platformPkgId; |
||||
|
||||
/** |
||||
* 是否当前结算方式 |
||||
*/ |
||||
private Boolean currentSettle; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
private Date createTime; |
||||
|
||||
/** |
||||
* 更新时间 |
||||
*/ |
||||
private Date updateTime; |
||||
|
||||
private String ext1; |
||||
|
||||
private String ext2; |
||||
|
||||
private String ext3; |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getPlatformPeriodId() { |
||||
return platformPeriodId; |
||||
} |
||||
|
||||
public void setPlatformPeriodId(Long platformPeriodId) { |
||||
this.platformPeriodId = platformPeriodId; |
||||
} |
||||
|
||||
public Long getMerId() { |
||||
return merId; |
||||
} |
||||
|
||||
public void setMerId(Long merId) { |
||||
this.merId = merId; |
||||
} |
||||
|
||||
public String getMerNo() { |
||||
return merNo; |
||||
} |
||||
|
||||
public void setMerNo(String merNo) { |
||||
this.merNo = merNo; |
||||
} |
||||
|
||||
public Integer getPayType() { |
||||
return payType; |
||||
} |
||||
|
||||
public void setPayType(Integer payType) { |
||||
this.payType = payType; |
||||
} |
||||
|
||||
public Integer getPlatformType() { |
||||
return platformType; |
||||
} |
||||
|
||||
public void setPlatformType(Integer platformType) { |
||||
this.platformType = platformType; |
||||
} |
||||
|
||||
public String getPlatformNo() { |
||||
return platformNo; |
||||
} |
||||
|
||||
public void setPlatformNo(String platformNo) { |
||||
this.platformNo = platformNo; |
||||
} |
||||
|
||||
public Integer getPlatformFeePaid() { |
||||
return platformFeePaid; |
||||
} |
||||
|
||||
public void setPlatformFeePaid(Integer platformFeePaid) { |
||||
this.platformFeePaid = platformFeePaid; |
||||
} |
||||
|
||||
public String getPlatformMarketId() { |
||||
return platformMarketId; |
||||
} |
||||
|
||||
public void setPlatformMarketId(String platformMarketId) { |
||||
this.platformMarketId = platformMarketId; |
||||
} |
||||
|
||||
public String getPlatformPkgId() { |
||||
return platformPkgId; |
||||
} |
||||
|
||||
public void setPlatformPkgId(String platformPkgId) { |
||||
this.platformPkgId = platformPkgId; |
||||
} |
||||
|
||||
public Boolean getCurrentSettle() { |
||||
return currentSettle; |
||||
} |
||||
|
||||
public void setCurrentSettle(Boolean currentSettle) { |
||||
this.currentSettle = currentSettle; |
||||
} |
||||
|
||||
public Date getCreateTime() { |
||||
return createTime; |
||||
} |
||||
|
||||
public void setCreateTime(Date createTime) { |
||||
this.createTime = createTime; |
||||
} |
||||
|
||||
public Date getUpdateTime() { |
||||
return updateTime; |
||||
} |
||||
|
||||
public void setUpdateTime(Date updateTime) { |
||||
this.updateTime = updateTime; |
||||
} |
||||
|
||||
public String getExt1() { |
||||
return ext1; |
||||
} |
||||
|
||||
public void setExt1(String ext1) { |
||||
this.ext1 = ext1; |
||||
} |
||||
|
||||
public String getExt2() { |
||||
return ext2; |
||||
} |
||||
|
||||
public void setExt2(String ext2) { |
||||
this.ext2 = ext2; |
||||
} |
||||
|
||||
public String getExt3() { |
||||
return ext3; |
||||
} |
||||
|
||||
public void setExt3(String ext3) { |
||||
this.ext3 = ext3; |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object that) { |
||||
if (this == that) { |
||||
return true; |
||||
} |
||||
if (that == null) { |
||||
return false; |
||||
} |
||||
if (getClass() != that.getClass()) { |
||||
return false; |
||||
} |
||||
BsMerPlatformPeriodPaid other = (BsMerPlatformPeriodPaid) that; |
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||
&& (this.getPlatformPeriodId() == null ? other.getPlatformPeriodId() == null : this.getPlatformPeriodId().equals(other.getPlatformPeriodId())) |
||||
&& (this.getMerId() == null ? other.getMerId() == null : this.getMerId().equals(other.getMerId())) |
||||
&& (this.getMerNo() == null ? other.getMerNo() == null : this.getMerNo().equals(other.getMerNo())) |
||||
&& (this.getPayType() == null ? other.getPayType() == null : this.getPayType().equals(other.getPayType())) |
||||
&& (this.getPlatformType() == null ? other.getPlatformType() == null : this.getPlatformType().equals(other.getPlatformType())) |
||||
&& (this.getPlatformNo() == null ? other.getPlatformNo() == null : this.getPlatformNo().equals(other.getPlatformNo())) |
||||
&& (this.getPlatformFeePaid() == null ? other.getPlatformFeePaid() == null : this.getPlatformFeePaid().equals(other.getPlatformFeePaid())) |
||||
&& (this.getPlatformMarketId() == null ? other.getPlatformMarketId() == null : this.getPlatformMarketId().equals(other.getPlatformMarketId())) |
||||
&& (this.getPlatformPkgId() == null ? other.getPlatformPkgId() == null : this.getPlatformPkgId().equals(other.getPlatformPkgId())) |
||||
&& (this.getCurrentSettle() == null ? other.getCurrentSettle() == null : this.getCurrentSettle().equals(other.getCurrentSettle())) |
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) |
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) |
||||
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) |
||||
&& (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) |
||||
&& (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
final int prime = 31; |
||||
int result = 1; |
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||
result = prime * result + ((getPlatformPeriodId() == null) ? 0 : getPlatformPeriodId().hashCode()); |
||||
result = prime * result + ((getMerId() == null) ? 0 : getMerId().hashCode()); |
||||
result = prime * result + ((getMerNo() == null) ? 0 : getMerNo().hashCode()); |
||||
result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode()); |
||||
result = prime * result + ((getPlatformType() == null) ? 0 : getPlatformType().hashCode()); |
||||
result = prime * result + ((getPlatformNo() == null) ? 0 : getPlatformNo().hashCode()); |
||||
result = prime * result + ((getPlatformFeePaid() == null) ? 0 : getPlatformFeePaid().hashCode()); |
||||
result = prime * result + ((getPlatformMarketId() == null) ? 0 : getPlatformMarketId().hashCode()); |
||||
result = prime * result + ((getPlatformPkgId() == null) ? 0 : getPlatformPkgId().hashCode()); |
||||
result = prime * result + ((getCurrentSettle() == null) ? 0 : getCurrentSettle().hashCode()); |
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); |
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); |
||||
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); |
||||
result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); |
||||
result = prime * result + ((getExt3() == null) ? 0 : getExt3().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(", platformPeriodId=").append(platformPeriodId); |
||||
sb.append(", merId=").append(merId); |
||||
sb.append(", merNo=").append(merNo); |
||||
sb.append(", payType=").append(payType); |
||||
sb.append(", platformType=").append(platformType); |
||||
sb.append(", platformNo=").append(platformNo); |
||||
sb.append(", platformFeePaid=").append(platformFeePaid); |
||||
sb.append(", platformMarketId=").append(platformMarketId); |
||||
sb.append(", platformPkgId=").append(platformPkgId); |
||||
sb.append(", currentSettle=").append(currentSettle); |
||||
sb.append(", createTime=").append(createTime); |
||||
sb.append(", updateTime=").append(updateTime); |
||||
sb.append(", ext1=").append(ext1); |
||||
sb.append(", ext2=").append(ext2); |
||||
sb.append(", ext3=").append(ext3); |
||||
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||
sb.append("]"); |
||||
return sb.toString(); |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,135 @@ |
||||
package com.hfkj.entity; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* llg_bank_code |
||||
* @author |
||||
*/ |
||||
/** |
||||
* |
||||
* 代码由工具生成 |
||||
* |
||||
**/ |
||||
public class LlgBankCode implements Serializable { |
||||
/** |
||||
* 主键 |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 银行代码 |
||||
*/ |
||||
private Long bankCode; |
||||
|
||||
/** |
||||
* 银行名称 |
||||
*/ |
||||
private String bankName; |
||||
|
||||
private String ext1; |
||||
|
||||
private String ext2; |
||||
|
||||
private String ext3; |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getBankCode() { |
||||
return bankCode; |
||||
} |
||||
|
||||
public void setBankCode(Long bankCode) { |
||||
this.bankCode = bankCode; |
||||
} |
||||
|
||||
public String getBankName() { |
||||
return bankName; |
||||
} |
||||
|
||||
public void setBankName(String bankName) { |
||||
this.bankName = bankName; |
||||
} |
||||
|
||||
public String getExt1() { |
||||
return ext1; |
||||
} |
||||
|
||||
public void setExt1(String ext1) { |
||||
this.ext1 = ext1; |
||||
} |
||||
|
||||
public String getExt2() { |
||||
return ext2; |
||||
} |
||||
|
||||
public void setExt2(String ext2) { |
||||
this.ext2 = ext2; |
||||
} |
||||
|
||||
public String getExt3() { |
||||
return ext3; |
||||
} |
||||
|
||||
public void setExt3(String ext3) { |
||||
this.ext3 = ext3; |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object that) { |
||||
if (this == that) { |
||||
return true; |
||||
} |
||||
if (that == null) { |
||||
return false; |
||||
} |
||||
if (getClass() != that.getClass()) { |
||||
return false; |
||||
} |
||||
LlgBankCode other = (LlgBankCode) that; |
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||
&& (this.getBankCode() == null ? other.getBankCode() == null : this.getBankCode().equals(other.getBankCode())) |
||||
&& (this.getBankName() == null ? other.getBankName() == null : this.getBankName().equals(other.getBankName())) |
||||
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) |
||||
&& (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) |
||||
&& (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
final int prime = 31; |
||||
int result = 1; |
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||
result = prime * result + ((getBankCode() == null) ? 0 : getBankCode().hashCode()); |
||||
result = prime * result + ((getBankName() == null) ? 0 : getBankName().hashCode()); |
||||
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); |
||||
result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); |
||||
result = prime * result + ((getExt3() == null) ? 0 : getExt3().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(", bankCode=").append(bankCode); |
||||
sb.append(", bankName=").append(bankName); |
||||
sb.append(", ext1=").append(ext1); |
||||
sb.append(", ext2=").append(ext2); |
||||
sb.append(", ext3=").append(ext3); |
||||
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||
sb.append("]"); |
||||
return sb.toString(); |
||||
} |
||||
} |
@ -0,0 +1,622 @@ |
||||
package com.hfkj.entity; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
public class LlgBankCodeExample { |
||||
protected String orderByClause; |
||||
|
||||
protected boolean distinct; |
||||
|
||||
protected List<Criteria> oredCriteria; |
||||
|
||||
private Integer limit; |
||||
|
||||
private Long offset; |
||||
|
||||
public LlgBankCodeExample() { |
||||
oredCriteria = new ArrayList<Criteria>(); |
||||
} |
||||
|
||||
public void setOrderByClause(String orderByClause) { |
||||
this.orderByClause = orderByClause; |
||||
} |
||||
|
||||
public String getOrderByClause() { |
||||
return orderByClause; |
||||
} |
||||
|
||||
public void setDistinct(boolean distinct) { |
||||
this.distinct = distinct; |
||||
} |
||||
|
||||
public boolean isDistinct() { |
||||
return distinct; |
||||
} |
||||
|
||||
public List<Criteria> getOredCriteria() { |
||||
return oredCriteria; |
||||
} |
||||
|
||||
public void or(Criteria criteria) { |
||||
oredCriteria.add(criteria); |
||||
} |
||||
|
||||
public Criteria or() { |
||||
Criteria criteria = createCriteriaInternal(); |
||||
oredCriteria.add(criteria); |
||||
return criteria; |
||||
} |
||||
|
||||
public Criteria createCriteria() { |
||||
Criteria criteria = createCriteriaInternal(); |
||||
if (oredCriteria.size() == 0) { |
||||
oredCriteria.add(criteria); |
||||
} |
||||
return criteria; |
||||
} |
||||
|
||||
protected Criteria createCriteriaInternal() { |
||||
Criteria criteria = new Criteria(); |
||||
return criteria; |
||||
} |
||||
|
||||
public void clear() { |
||||
oredCriteria.clear(); |
||||
orderByClause = null; |
||||
distinct = false; |
||||
} |
||||
|
||||
public void setLimit(Integer limit) { |
||||
this.limit = limit; |
||||
} |
||||
|
||||
public Integer getLimit() { |
||||
return limit; |
||||
} |
||||
|
||||
public void setOffset(Long offset) { |
||||
this.offset = offset; |
||||
} |
||||
|
||||
public Long getOffset() { |
||||
return offset; |
||||
} |
||||
|
||||
protected abstract static class GeneratedCriteria { |
||||
protected List<Criterion> criteria; |
||||
|
||||
protected GeneratedCriteria() { |
||||
super(); |
||||
criteria = new ArrayList<Criterion>(); |
||||
} |
||||
|
||||
public boolean isValid() { |
||||
return criteria.size() > 0; |
||||
} |
||||
|
||||
public List<Criterion> getAllCriteria() { |
||||
return criteria; |
||||
} |
||||
|
||||
public List<Criterion> getCriteria() { |
||||
return criteria; |
||||
} |
||||
|
||||
protected void addCriterion(String condition) { |
||||
if (condition == null) { |
||||
throw new RuntimeException("Value for condition cannot be null"); |
||||
} |
||||
criteria.add(new Criterion(condition)); |
||||
} |
||||
|
||||
protected void addCriterion(String condition, Object value, String property) { |
||||
if (value == null) { |
||||
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
} |
||||
criteria.add(new Criterion(condition, value)); |
||||
} |
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
if (value1 == null || value2 == null) { |
||||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
} |
||||
criteria.add(new Criterion(condition, value1, value2)); |
||||
} |
||||
|
||||
public Criteria andIdIsNull() { |
||||
addCriterion("id is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdIsNotNull() { |
||||
addCriterion("id is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdEqualTo(Long value) { |
||||
addCriterion("id =", value, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdNotEqualTo(Long value) { |
||||
addCriterion("id <>", value, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdGreaterThan(Long value) { |
||||
addCriterion("id >", value, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
addCriterion("id >=", value, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdLessThan(Long value) { |
||||
addCriterion("id <", value, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
addCriterion("id <=", value, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdIn(List<Long> values) { |
||||
addCriterion("id in", values, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdNotIn(List<Long> values) { |
||||
addCriterion("id not in", values, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) { |
||||
addCriterion("id between", value1, value2, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
addCriterion("id not between", value1, value2, "id"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeIsNull() { |
||||
addCriterion("bank_code is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeIsNotNull() { |
||||
addCriterion("bank_code is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeEqualTo(Long value) { |
||||
addCriterion("bank_code =", value, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeNotEqualTo(Long value) { |
||||
addCriterion("bank_code <>", value, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeGreaterThan(Long value) { |
||||
addCriterion("bank_code >", value, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeGreaterThanOrEqualTo(Long value) { |
||||
addCriterion("bank_code >=", value, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeLessThan(Long value) { |
||||
addCriterion("bank_code <", value, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeLessThanOrEqualTo(Long value) { |
||||
addCriterion("bank_code <=", value, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeIn(List<Long> values) { |
||||
addCriterion("bank_code in", values, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeNotIn(List<Long> values) { |
||||
addCriterion("bank_code not in", values, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeBetween(Long value1, Long value2) { |
||||
addCriterion("bank_code between", value1, value2, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankCodeNotBetween(Long value1, Long value2) { |
||||
addCriterion("bank_code not between", value1, value2, "bankCode"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameIsNull() { |
||||
addCriterion("bank_name is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameIsNotNull() { |
||||
addCriterion("bank_name is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameEqualTo(String value) { |
||||
addCriterion("bank_name =", value, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameNotEqualTo(String value) { |
||||
addCriterion("bank_name <>", value, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameGreaterThan(String value) { |
||||
addCriterion("bank_name >", value, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameGreaterThanOrEqualTo(String value) { |
||||
addCriterion("bank_name >=", value, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameLessThan(String value) { |
||||
addCriterion("bank_name <", value, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameLessThanOrEqualTo(String value) { |
||||
addCriterion("bank_name <=", value, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameLike(String value) { |
||||
addCriterion("bank_name like", value, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameNotLike(String value) { |
||||
addCriterion("bank_name not like", value, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameIn(List<String> values) { |
||||
addCriterion("bank_name in", values, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameNotIn(List<String> values) { |
||||
addCriterion("bank_name not in", values, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameBetween(String value1, String value2) { |
||||
addCriterion("bank_name between", value1, value2, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andBankNameNotBetween(String value1, String value2) { |
||||
addCriterion("bank_name not between", value1, value2, "bankName"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1IsNull() { |
||||
addCriterion("ext_1 is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1IsNotNull() { |
||||
addCriterion("ext_1 is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1EqualTo(String value) { |
||||
addCriterion("ext_1 =", value, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1NotEqualTo(String value) { |
||||
addCriterion("ext_1 <>", value, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1GreaterThan(String value) { |
||||
addCriterion("ext_1 >", value, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1GreaterThanOrEqualTo(String value) { |
||||
addCriterion("ext_1 >=", value, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1LessThan(String value) { |
||||
addCriterion("ext_1 <", value, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1LessThanOrEqualTo(String value) { |
||||
addCriterion("ext_1 <=", value, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1Like(String value) { |
||||
addCriterion("ext_1 like", value, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1NotLike(String value) { |
||||
addCriterion("ext_1 not like", value, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1In(List<String> values) { |
||||
addCriterion("ext_1 in", values, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1NotIn(List<String> values) { |
||||
addCriterion("ext_1 not in", values, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1Between(String value1, String value2) { |
||||
addCriterion("ext_1 between", value1, value2, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt1NotBetween(String value1, String value2) { |
||||
addCriterion("ext_1 not between", value1, value2, "ext1"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2IsNull() { |
||||
addCriterion("ext_2 is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2IsNotNull() { |
||||
addCriterion("ext_2 is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2EqualTo(String value) { |
||||
addCriterion("ext_2 =", value, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2NotEqualTo(String value) { |
||||
addCriterion("ext_2 <>", value, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2GreaterThan(String value) { |
||||
addCriterion("ext_2 >", value, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2GreaterThanOrEqualTo(String value) { |
||||
addCriterion("ext_2 >=", value, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2LessThan(String value) { |
||||
addCriterion("ext_2 <", value, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2LessThanOrEqualTo(String value) { |
||||
addCriterion("ext_2 <=", value, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2Like(String value) { |
||||
addCriterion("ext_2 like", value, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2NotLike(String value) { |
||||
addCriterion("ext_2 not like", value, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2In(List<String> values) { |
||||
addCriterion("ext_2 in", values, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2NotIn(List<String> values) { |
||||
addCriterion("ext_2 not in", values, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2Between(String value1, String value2) { |
||||
addCriterion("ext_2 between", value1, value2, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt2NotBetween(String value1, String value2) { |
||||
addCriterion("ext_2 not between", value1, value2, "ext2"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3IsNull() { |
||||
addCriterion("ext_3 is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3IsNotNull() { |
||||
addCriterion("ext_3 is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3EqualTo(String value) { |
||||
addCriterion("ext_3 =", value, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3NotEqualTo(String value) { |
||||
addCriterion("ext_3 <>", value, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3GreaterThan(String value) { |
||||
addCriterion("ext_3 >", value, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3GreaterThanOrEqualTo(String value) { |
||||
addCriterion("ext_3 >=", value, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3LessThan(String value) { |
||||
addCriterion("ext_3 <", value, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3LessThanOrEqualTo(String value) { |
||||
addCriterion("ext_3 <=", value, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3Like(String value) { |
||||
addCriterion("ext_3 like", value, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3NotLike(String value) { |
||||
addCriterion("ext_3 not like", value, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3In(List<String> values) { |
||||
addCriterion("ext_3 in", values, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3NotIn(List<String> values) { |
||||
addCriterion("ext_3 not in", values, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3Between(String value1, String value2) { |
||||
addCriterion("ext_3 between", value1, value2, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andExt3NotBetween(String value1, String value2) { |
||||
addCriterion("ext_3 not between", value1, value2, "ext3"); |
||||
return (Criteria) this; |
||||
} |
||||
} |
||||
|
||||
/** |
||||
*/ |
||||
public static class Criteria extends GeneratedCriteria { |
||||
|
||||
protected Criteria() { |
||||
super(); |
||||
} |
||||
} |
||||
|
||||
public static class Criterion { |
||||
private String condition; |
||||
|
||||
private Object value; |
||||
|
||||
private Object secondValue; |
||||
|
||||
private boolean noValue; |
||||
|
||||
private boolean singleValue; |
||||
|
||||
private boolean betweenValue; |
||||
|
||||
private boolean listValue; |
||||
|
||||
private String typeHandler; |
||||
|
||||
public String getCondition() { |
||||
return condition; |
||||
} |
||||
|
||||
public Object getValue() { |
||||
return value; |
||||
} |
||||
|
||||
public Object getSecondValue() { |
||||
return secondValue; |
||||
} |
||||
|
||||
public boolean isNoValue() { |
||||
return noValue; |
||||
} |
||||
|
||||
public boolean isSingleValue() { |
||||
return singleValue; |
||||
} |
||||
|
||||
public boolean isBetweenValue() { |
||||
return betweenValue; |
||||
} |
||||
|
||||
public boolean isListValue() { |
||||
return listValue; |
||||
} |
||||
|
||||
public String getTypeHandler() { |
||||
return typeHandler; |
||||
} |
||||
|
||||
protected Criterion(String condition) { |
||||
super(); |
||||
this.condition = condition; |
||||
this.typeHandler = null; |
||||
this.noValue = true; |
||||
} |
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) { |
||||
super(); |
||||
this.condition = condition; |
||||
this.value = value; |
||||
this.typeHandler = typeHandler; |
||||
if (value instanceof List<?>) { |
||||
this.listValue = true; |
||||
} else { |
||||
this.singleValue = true; |
||||
} |
||||
} |
||||
|
||||
protected Criterion(String condition, Object value) { |
||||
this(condition, value, null); |
||||
} |
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
super(); |
||||
this.condition = condition; |
||||
this.value = value; |
||||
this.secondValue = secondValue; |
||||
this.typeHandler = typeHandler; |
||||
this.betweenValue = true; |
||||
} |
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) { |
||||
this(condition, value, secondValue, null); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,19 @@ |
||||
package com.hfkj.service; |
||||
|
||||
import com.hfkj.entity.LlgBankCode; |
||||
|
||||
/** |
||||
* @className: LlgBankCodeService |
||||
* @author: HuRui |
||||
* @date: 2024/1/10 |
||||
**/ |
||||
public interface LlgBankCodeService { |
||||
|
||||
/** |
||||
* 查询详情 |
||||
* @param bankName 模糊银行名称 |
||||
* @return |
||||
*/ |
||||
LlgBankCode getDetail(String bankName); |
||||
|
||||
} |
@ -0,0 +1,32 @@ |
||||
package com.hfkj.service.impl; |
||||
|
||||
import com.hfkj.dao.LlgBankCodeMapper; |
||||
import com.hfkj.entity.LlgBankCode; |
||||
import com.hfkj.entity.LlgBankCodeExample; |
||||
import com.hfkj.service.LlgBankCodeService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @className: LlgBankCodeServiceImpl |
||||
* @author: HuRui |
||||
* @date: 2024/1/10 |
||||
**/ |
||||
@Service("llgBankCodeService") |
||||
public class LlgBankCodeServiceImpl implements LlgBankCodeService { |
||||
|
||||
@Resource |
||||
private LlgBankCodeMapper llgBankCodeMapper; |
||||
@Override |
||||
public LlgBankCode getDetail(String bankName) { |
||||
LlgBankCodeExample example = new LlgBankCodeExample(); |
||||
example.createCriteria().andBankNameLike("%"+bankName+"%"); |
||||
List<LlgBankCode> list = llgBankCodeMapper.selectByExample(example); |
||||
if (!list.isEmpty()) { |
||||
return list.get(0); |
||||
} |
||||
return null; |
||||
} |
||||
} |
@ -0,0 +1,60 @@ |
||||
package com.hfkj.service.period; |
||||
|
||||
import com.hfkj.entity.BsMerPlatformPeriodPaid; |
||||
import com.hfkj.sysenum.MerPlatformPeriodFeePaidTypeEnum; |
||||
import com.hfkj.sysenum.MerPlatformPeriodPayTypeEnum; |
||||
import com.hfkj.sysenum.PlatformPeriodTypeEnum; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @className: BsMerPlatformPeriodPaidService |
||||
* @author: HuRui |
||||
* @date: 2024/1/9 |
||||
**/ |
||||
public interface BsMerPlatformPeriodPaidService { |
||||
|
||||
/** |
||||
* 编辑数据 |
||||
* @param data |
||||
*/ |
||||
void editData(BsMerPlatformPeriodPaid data); |
||||
|
||||
/** |
||||
* 查询详情 |
||||
* @param merNo |
||||
* @param platformPeriodType |
||||
* @param platformPeriodFeePaidType |
||||
* @return |
||||
*/ |
||||
BsMerPlatformPeriodPaid getDetail(String merNo, PlatformPeriodTypeEnum platformPeriodType, MerPlatformPeriodPayTypeEnum periodPayType, MerPlatformPeriodFeePaidTypeEnum platformPeriodFeePaidType); |
||||
|
||||
/** |
||||
* 查询列表 |
||||
* @param merNo |
||||
* @return |
||||
*/ |
||||
List<BsMerPlatformPeriodPaid> getList(String merNo); |
||||
|
||||
/** |
||||
* 查询列表 |
||||
* @param merNo |
||||
* @param platformPeriodType |
||||
* @return |
||||
*/ |
||||
List<BsMerPlatformPeriodPaid> getList(String merNo, PlatformPeriodTypeEnum platformPeriodType); |
||||
|
||||
/** |
||||
* 查询当前分期平台贴息 |
||||
* @param merNo |
||||
* @param platformPeriodType |
||||
* @return |
||||
*/ |
||||
BsMerPlatformPeriodPaid getCurrenPeriodPaid(String merNo, PlatformPeriodTypeEnum platformPeriodType); |
||||
|
||||
/** |
||||
* 删除数据 |
||||
* @param merNo |
||||
*/ |
||||
void delData(String merNo); |
||||
} |
@ -0,0 +1,42 @@ |
||||
package com.hfkj.service.period; |
||||
|
||||
import com.hfkj.entity.BsMerPlatformPeriod; |
||||
import com.hfkj.entity.BsMerPlatformPeriodRate; |
||||
import com.hfkj.sysenum.MerPlatformPeriodRateTypeEnum; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @className: BsMerPlatformPeriodRateService |
||||
* @author: HuRui |
||||
* @date: 2024/1/8 |
||||
**/ |
||||
public interface BsMerPlatformPeriodRateService { |
||||
|
||||
/** |
||||
* 编辑数据 |
||||
* @param data |
||||
*/ |
||||
void editData(BsMerPlatformPeriodRate data); |
||||
|
||||
/** |
||||
* 查询详情 |
||||
* @param platformPeriodId |
||||
* @param periodNum |
||||
* @return |
||||
*/ |
||||
BsMerPlatformPeriodRate getDetail(Long platformPeriodId, MerPlatformPeriodRateTypeEnum periodRateType, Integer periodNum); |
||||
|
||||
/** |
||||
* 查询列表 |
||||
* @param platformPeriodId |
||||
* @param periodRateType |
||||
*/ |
||||
List<BsMerPlatformPeriodRate> getList(Long platformPeriodId, MerPlatformPeriodRateTypeEnum periodRateType); |
||||
|
||||
/** |
||||
* 删除数据 |
||||
* @param platformPeriodId |
||||
*/ |
||||
void delData(Long platformPeriodId); |
||||
} |
@ -0,0 +1,86 @@ |
||||
package com.hfkj.service.period.impl; |
||||
|
||||
import com.hfkj.dao.BsMerPlatformPeriodPaidMapper; |
||||
import com.hfkj.entity.BsMerPlatformPeriodPaid; |
||||
import com.hfkj.entity.BsMerPlatformPeriodPaidExample; |
||||
import com.hfkj.service.period.BsMerPlatformPeriodPaidService; |
||||
import com.hfkj.sysenum.MerPlatformPeriodFeePaidTypeEnum; |
||||
import com.hfkj.sysenum.MerPlatformPeriodPayTypeEnum; |
||||
import com.hfkj.sysenum.PlatformPeriodTypeEnum; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @className: BsMerPlatformPeriodPaidServiceImpl |
||||
* @author: HuRui |
||||
* @date: 2024/1/9 |
||||
**/ |
||||
@Service("merPlatformPeriodPaidService") |
||||
public class BsMerPlatformPeriodPaidServiceImpl implements BsMerPlatformPeriodPaidService { |
||||
|
||||
@Resource |
||||
private BsMerPlatformPeriodPaidMapper merPlatformPeriodPaidMapper; |
||||
|
||||
@Override |
||||
public void editData(BsMerPlatformPeriodPaid data) { |
||||
if (data.getId() == null) { |
||||
data.setCreateTime(new Date()); |
||||
data.setUpdateTime(new Date()); |
||||
merPlatformPeriodPaidMapper.insert(data); |
||||
} else { |
||||
data.setUpdateTime(new Date()); |
||||
merPlatformPeriodPaidMapper.updateByPrimaryKey(data); |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public BsMerPlatformPeriodPaid getDetail(String merNo, PlatformPeriodTypeEnum platformPeriodType, MerPlatformPeriodPayTypeEnum periodPayType, MerPlatformPeriodFeePaidTypeEnum platformPeriodFeePaidType) { |
||||
BsMerPlatformPeriodPaidExample example = new BsMerPlatformPeriodPaidExample(); |
||||
example.createCriteria() |
||||
.andMerNoEqualTo(merNo) |
||||
.andPlatformTypeEqualTo(platformPeriodType.getNumber()) |
||||
.andPayTypeEqualTo(periodPayType.getNumber()) |
||||
.andPlatformFeePaidEqualTo(platformPeriodFeePaidType.getNumber()); |
||||
List<BsMerPlatformPeriodPaid> list = merPlatformPeriodPaidMapper.selectByExample(example); |
||||
if (list.size() > 0) { |
||||
return list.get(0); |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public List<BsMerPlatformPeriodPaid> getList(String merNo) { |
||||
BsMerPlatformPeriodPaidExample example = new BsMerPlatformPeriodPaidExample(); |
||||
example.createCriteria().andMerNoEqualTo(merNo); |
||||
return merPlatformPeriodPaidMapper.selectByExample(example); |
||||
} |
||||
|
||||
@Override |
||||
public List<BsMerPlatformPeriodPaid> getList(String merNo, PlatformPeriodTypeEnum platformPeriodType) { |
||||
BsMerPlatformPeriodPaidExample example = new BsMerPlatformPeriodPaidExample(); |
||||
example.createCriteria().andMerNoEqualTo(merNo).andPlatformTypeEqualTo(platformPeriodType.getNumber()); |
||||
return merPlatformPeriodPaidMapper.selectByExample(example); |
||||
} |
||||
|
||||
@Override |
||||
public BsMerPlatformPeriodPaid getCurrenPeriodPaid(String merNo, PlatformPeriodTypeEnum platformPeriodType) { |
||||
BsMerPlatformPeriodPaidExample example = new BsMerPlatformPeriodPaidExample(); |
||||
example.createCriteria().andMerNoEqualTo(merNo).andPlatformTypeEqualTo(platformPeriodType.getNumber()).andCurrentSettleEqualTo(true); |
||||
List<BsMerPlatformPeriodPaid> list = merPlatformPeriodPaidMapper.selectByExample(example); |
||||
if (!list.isEmpty()) { |
||||
return list.get(0); |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public void delData(String merNo) { |
||||
BsMerPlatformPeriodPaidExample example = new BsMerPlatformPeriodPaidExample(); |
||||
example.createCriteria().andMerNoEqualTo(merNo); |
||||
merPlatformPeriodPaidMapper.deleteByExample(example); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,61 @@ |
||||
package com.hfkj.service.period.impl; |
||||
|
||||
import com.hfkj.dao.BsMerPlatformPeriodRateMapper; |
||||
import com.hfkj.entity.BsMerPlatformPeriodRate; |
||||
import com.hfkj.entity.BsMerPlatformPeriodRateExample; |
||||
import com.hfkj.service.period.BsMerPlatformPeriodRateService; |
||||
import com.hfkj.sysenum.MerPlatformPeriodRateTypeEnum; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @className: BsMerPlatformPeriodRateServiceImpl |
||||
* @author: HuRui |
||||
* @date: 2024/1/8 |
||||
**/ |
||||
@Service("merPlatformPeriodRateService") |
||||
public class BsMerPlatformPeriodRateServiceImpl implements BsMerPlatformPeriodRateService { |
||||
|
||||
@Resource |
||||
private BsMerPlatformPeriodRateMapper merPlatformPeriodRateMapper; |
||||
|
||||
@Override |
||||
public void editData(BsMerPlatformPeriodRate data) { |
||||
if (data.getId() == null) { |
||||
data.setCreateTime(new Date()); |
||||
data.setUpdateTime(new Date()); |
||||
merPlatformPeriodRateMapper.insert(data); |
||||
} else { |
||||
data.setUpdateTime(new Date()); |
||||
merPlatformPeriodRateMapper.updateByPrimaryKey(data); |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public BsMerPlatformPeriodRate getDetail(Long platformPeriodId, MerPlatformPeriodRateTypeEnum periodRateType, Integer periodNum) { |
||||
BsMerPlatformPeriodRateExample example = new BsMerPlatformPeriodRateExample(); |
||||
example.createCriteria().andPlatformPeriodIdEqualTo(platformPeriodId).andPeriodRateTypeEqualTo(periodRateType.getNumber()).andPeriodNumEqualTo(periodNum); |
||||
List<BsMerPlatformPeriodRate> list = merPlatformPeriodRateMapper.selectByExample(example); |
||||
if (list.size() > 0) { |
||||
return list.get(0); |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public List<BsMerPlatformPeriodRate> getList(Long platformPeriodId, MerPlatformPeriodRateTypeEnum periodRateType) { |
||||
BsMerPlatformPeriodRateExample example = new BsMerPlatformPeriodRateExample(); |
||||
example.createCriteria().andPlatformPeriodIdEqualTo(platformPeriodId).andPeriodRateTypeEqualTo(periodRateType.getNumber()); |
||||
return merPlatformPeriodRateMapper.selectByExample(example); |
||||
} |
||||
|
||||
@Override |
||||
public void delData(Long platformPeriodId) { |
||||
BsMerPlatformPeriodRateExample example = new BsMerPlatformPeriodRateExample(); |
||||
example.createCriteria().andPlatformPeriodIdEqualTo(platformPeriodId); |
||||
merPlatformPeriodRateMapper.deleteByExample(example); |
||||
} |
||||
} |
@ -0,0 +1,49 @@ |
||||
package com.hfkj.sysenum; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 分期平台类型 |
||||
* @author hurui |
||||
*/ |
||||
public enum MerPlatformPeriodFeePaidTypeEnum { |
||||
type1(1, "商户贴息"), |
||||
type2(2, "用户贴息"), |
||||
type3(3, "商户用户各一半"), |
||||
; |
||||
|
||||
|
||||
private Integer number; |
||||
|
||||
private String name; |
||||
|
||||
MerPlatformPeriodFeePaidTypeEnum(int number, String name) { |
||||
this.number = number; |
||||
this.name = name; |
||||
} |
||||
|
||||
public static MerPlatformPeriodFeePaidTypeEnum getDataByNumber(Integer number) { |
||||
for (MerPlatformPeriodFeePaidTypeEnum ele : values()) { |
||||
if (Objects.equals(number,ele.getNumber())) { |
||||
return ele; |
||||
} |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
public Integer getNumber() { |
||||
return number; |
||||
} |
||||
|
||||
public void setNumber(Integer number) { |
||||
this.number = number; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
@ -0,0 +1,48 @@ |
||||
package com.hfkj.sysenum; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 分期平台类型 |
||||
* @author hurui |
||||
*/ |
||||
public enum MerPlatformPeriodPayTypeEnum { |
||||
type1(1, "银联分期"), |
||||
/*type2(2, "花呗分期"),*/ |
||||
; |
||||
|
||||
|
||||
private Integer number; |
||||
|
||||
private String name; |
||||
|
||||
MerPlatformPeriodPayTypeEnum(int number, String name) { |
||||
this.number = number; |
||||
this.name = name; |
||||
} |
||||
|
||||
public static MerPlatformPeriodPayTypeEnum getDataByNumber(Integer number) { |
||||
for (MerPlatformPeriodPayTypeEnum ele : values()) { |
||||
if (Objects.equals(number,ele.getNumber())) { |
||||
return ele; |
||||
} |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
public Integer getNumber() { |
||||
return number; |
||||
} |
||||
|
||||
public void setNumber(Integer number) { |
||||
this.number = number; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
@ -0,0 +1,49 @@ |
||||
package com.hfkj.sysenum; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 分期平台类型 |
||||
* @author hurui |
||||
*/ |
||||
public enum MerPlatformPeriodRateTypeEnum { |
||||
type1(1, "银联分期费率(1类银行)"), |
||||
type2(2, "银联分期费率(2类银行)"), |
||||
type3(3, "花呗分期费率"), |
||||
; |
||||
|
||||
|
||||
private Integer number; |
||||
|
||||
private String name; |
||||
|
||||
MerPlatformPeriodRateTypeEnum(int number, String name) { |
||||
this.number = number; |
||||
this.name = name; |
||||
} |
||||
|
||||
public static MerPlatformPeriodRateTypeEnum getDataByNumber(Integer number) { |
||||
for (MerPlatformPeriodRateTypeEnum ele : values()) { |
||||
if (Objects.equals(number,ele.getNumber())) { |
||||
return ele; |
||||
} |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
public Integer getNumber() { |
||||
return number; |
||||
} |
||||
|
||||
public void setNumber(Integer number) { |
||||
this.number = number; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
@ -0,0 +1,50 @@ |
||||
package com.hfkj.sysenum; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 分期平台类型 |
||||
* @author hurui |
||||
*/ |
||||
public enum MerPlatformPeriodStatusEnum { |
||||
status0(0, "不可用"), |
||||
status1(1, "正常"), |
||||
status2(2, "审核中"), |
||||
status3(3, "审核驳回"), |
||||
; |
||||
|
||||
|
||||
private Integer number; |
||||
|
||||
private String name; |
||||
|
||||
MerPlatformPeriodStatusEnum(int number, String name) { |
||||
this.number = number; |
||||
this.name = name; |
||||
} |
||||
|
||||
public static MerPlatformPeriodStatusEnum getDataByNumber(Integer number) { |
||||
for (MerPlatformPeriodStatusEnum ele : values()) { |
||||
if (Objects.equals(number,ele.getNumber())) { |
||||
return ele; |
||||
} |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
public Integer getNumber() { |
||||
return number; |
||||
} |
||||
|
||||
public void setNumber(Integer number) { |
||||
this.number = number; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
Loading…
Reference in new issue