parent
921b1996eb
commit
bfce6a0e70
@ -0,0 +1,139 @@ |
|||||||
|
package com.hai.dao; |
||||||
|
|
||||||
|
import com.hai.entity.HighRefundAudit; |
||||||
|
import com.hai.entity.HighRefundAuditExample; |
||||||
|
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 HighRefundAuditMapper extends HighRefundAuditMapperExt { |
||||||
|
@SelectProvider(type=HighRefundAuditSqlProvider.class, method="countByExample") |
||||||
|
long countByExample(HighRefundAuditExample example); |
||||||
|
|
||||||
|
@DeleteProvider(type=HighRefundAuditSqlProvider.class, method="deleteByExample") |
||||||
|
int deleteByExample(HighRefundAuditExample example); |
||||||
|
|
||||||
|
@Delete({ |
||||||
|
"delete from high_refund_audit", |
||||||
|
"where id = #{id,jdbcType=INTEGER}" |
||||||
|
}) |
||||||
|
int deleteByPrimaryKey(Integer id); |
||||||
|
|
||||||
|
@Insert({ |
||||||
|
"insert into high_refund_audit (refund_source, refund_price, ", |
||||||
|
"pay_type, source_order_no, ", |
||||||
|
"pay_time, created_user_id, ", |
||||||
|
"created_time, updated_user_id, ", |
||||||
|
"updated_time, remark, ", |
||||||
|
"`status`, ext_1, ext_2, ", |
||||||
|
"ext_3)", |
||||||
|
"values (#{refundSource,jdbcType=INTEGER}, #{refundPrice,jdbcType=DECIMAL}, ", |
||||||
|
"#{payType,jdbcType=INTEGER}, #{sourceOrderNo,jdbcType=VARCHAR}, ", |
||||||
|
"#{payTime,jdbcType=TIMESTAMP}, #{createdUserId,jdbcType=INTEGER}, ", |
||||||
|
"#{createdTime,jdbcType=TIMESTAMP}, #{updatedUserId,jdbcType=INTEGER}, ", |
||||||
|
"#{updatedTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, ", |
||||||
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
||||||
|
"#{ext3,jdbcType=VARCHAR})" |
||||||
|
}) |
||||||
|
@Options(useGeneratedKeys=true,keyProperty="id") |
||||||
|
int insert(HighRefundAudit record); |
||||||
|
|
||||||
|
@InsertProvider(type=HighRefundAuditSqlProvider.class, method="insertSelective") |
||||||
|
@Options(useGeneratedKeys=true,keyProperty="id") |
||||||
|
int insertSelective(HighRefundAudit record); |
||||||
|
|
||||||
|
@SelectProvider(type=HighRefundAuditSqlProvider.class, method="selectByExample") |
||||||
|
@Results({ |
||||||
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
||||||
|
@Result(column="refund_source", property="refundSource", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="refund_price", property="refundPrice", jdbcType=JdbcType.DECIMAL), |
||||||
|
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="source_order_no", property="sourceOrderNo", jdbcType=JdbcType.VARCHAR), |
||||||
|
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), |
||||||
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), |
||||||
|
@Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), |
||||||
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
||||||
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
||||||
|
@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<HighRefundAudit> selectByExample(HighRefundAuditExample example); |
||||||
|
|
||||||
|
@Select({ |
||||||
|
"select", |
||||||
|
"id, refund_source, refund_price, pay_type, source_order_no, pay_time, created_user_id, ", |
||||||
|
"created_time, updated_user_id, updated_time, remark, `status`, ext_1, ext_2, ", |
||||||
|
"ext_3", |
||||||
|
"from high_refund_audit", |
||||||
|
"where id = #{id,jdbcType=INTEGER}" |
||||||
|
}) |
||||||
|
@Results({ |
||||||
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
||||||
|
@Result(column="refund_source", property="refundSource", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="refund_price", property="refundPrice", jdbcType=JdbcType.DECIMAL), |
||||||
|
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="source_order_no", property="sourceOrderNo", jdbcType=JdbcType.VARCHAR), |
||||||
|
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), |
||||||
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), |
||||||
|
@Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), |
||||||
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
||||||
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
||||||
|
@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) |
||||||
|
}) |
||||||
|
HighRefundAudit selectByPrimaryKey(Integer id); |
||||||
|
|
||||||
|
@UpdateProvider(type=HighRefundAuditSqlProvider.class, method="updateByExampleSelective") |
||||||
|
int updateByExampleSelective(@Param("record") HighRefundAudit record, @Param("example") HighRefundAuditExample example); |
||||||
|
|
||||||
|
@UpdateProvider(type=HighRefundAuditSqlProvider.class, method="updateByExample") |
||||||
|
int updateByExample(@Param("record") HighRefundAudit record, @Param("example") HighRefundAuditExample example); |
||||||
|
|
||||||
|
@UpdateProvider(type=HighRefundAuditSqlProvider.class, method="updateByPrimaryKeySelective") |
||||||
|
int updateByPrimaryKeySelective(HighRefundAudit record); |
||||||
|
|
||||||
|
@Update({ |
||||||
|
"update high_refund_audit", |
||||||
|
"set refund_source = #{refundSource,jdbcType=INTEGER},", |
||||||
|
"refund_price = #{refundPrice,jdbcType=DECIMAL},", |
||||||
|
"pay_type = #{payType,jdbcType=INTEGER},", |
||||||
|
"source_order_no = #{sourceOrderNo,jdbcType=VARCHAR},", |
||||||
|
"pay_time = #{payTime,jdbcType=TIMESTAMP},", |
||||||
|
"created_user_id = #{createdUserId,jdbcType=INTEGER},", |
||||||
|
"created_time = #{createdTime,jdbcType=TIMESTAMP},", |
||||||
|
"updated_user_id = #{updatedUserId,jdbcType=INTEGER},", |
||||||
|
"updated_time = #{updatedTime,jdbcType=TIMESTAMP},", |
||||||
|
"remark = #{remark,jdbcType=VARCHAR},", |
||||||
|
"`status` = #{status,jdbcType=INTEGER},", |
||||||
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
||||||
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
||||||
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
||||||
|
"where id = #{id,jdbcType=INTEGER}" |
||||||
|
}) |
||||||
|
int updateByPrimaryKey(HighRefundAudit record); |
||||||
|
} |
@ -0,0 +1,7 @@ |
|||||||
|
package com.hai.dao; |
||||||
|
|
||||||
|
/** |
||||||
|
* mapper扩展类 |
||||||
|
*/ |
||||||
|
public interface HighRefundAuditMapperExt { |
||||||
|
} |
@ -0,0 +1,374 @@ |
|||||||
|
package com.hai.dao; |
||||||
|
|
||||||
|
import com.hai.entity.HighRefundAudit; |
||||||
|
import com.hai.entity.HighRefundAuditExample.Criteria; |
||||||
|
import com.hai.entity.HighRefundAuditExample.Criterion; |
||||||
|
import com.hai.entity.HighRefundAuditExample; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
import org.apache.ibatis.jdbc.SQL; |
||||||
|
|
||||||
|
public class HighRefundAuditSqlProvider { |
||||||
|
|
||||||
|
public String countByExample(HighRefundAuditExample example) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.SELECT("count(*)").FROM("high_refund_audit"); |
||||||
|
applyWhere(sql, example, false); |
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
public String deleteByExample(HighRefundAuditExample example) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.DELETE_FROM("high_refund_audit"); |
||||||
|
applyWhere(sql, example, false); |
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
public String insertSelective(HighRefundAudit record) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.INSERT_INTO("high_refund_audit"); |
||||||
|
|
||||||
|
if (record.getRefundSource() != null) { |
||||||
|
sql.VALUES("refund_source", "#{refundSource,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getRefundPrice() != null) { |
||||||
|
sql.VALUES("refund_price", "#{refundPrice,jdbcType=DECIMAL}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPayType() != null) { |
||||||
|
sql.VALUES("pay_type", "#{payType,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getSourceOrderNo() != null) { |
||||||
|
sql.VALUES("source_order_no", "#{sourceOrderNo,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPayTime() != null) { |
||||||
|
sql.VALUES("pay_time", "#{payTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreatedUserId() != null) { |
||||||
|
sql.VALUES("created_user_id", "#{createdUserId,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreatedTime() != null) { |
||||||
|
sql.VALUES("created_time", "#{createdTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getUpdatedUserId() != null) { |
||||||
|
sql.VALUES("updated_user_id", "#{updatedUserId,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getUpdatedTime() != null) { |
||||||
|
sql.VALUES("updated_time", "#{updatedTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getRemark() != null) { |
||||||
|
sql.VALUES("remark", "#{remark,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getStatus() != null) { |
||||||
|
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
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(HighRefundAuditExample example) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
if (example != null && example.isDistinct()) { |
||||||
|
sql.SELECT_DISTINCT("id"); |
||||||
|
} else { |
||||||
|
sql.SELECT("id"); |
||||||
|
} |
||||||
|
sql.SELECT("refund_source"); |
||||||
|
sql.SELECT("refund_price"); |
||||||
|
sql.SELECT("pay_type"); |
||||||
|
sql.SELECT("source_order_no"); |
||||||
|
sql.SELECT("pay_time"); |
||||||
|
sql.SELECT("created_user_id"); |
||||||
|
sql.SELECT("created_time"); |
||||||
|
sql.SELECT("updated_user_id"); |
||||||
|
sql.SELECT("updated_time"); |
||||||
|
sql.SELECT("remark"); |
||||||
|
sql.SELECT("`status`"); |
||||||
|
sql.SELECT("ext_1"); |
||||||
|
sql.SELECT("ext_2"); |
||||||
|
sql.SELECT("ext_3"); |
||||||
|
sql.FROM("high_refund_audit"); |
||||||
|
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) { |
||||||
|
HighRefundAudit record = (HighRefundAudit) parameter.get("record"); |
||||||
|
HighRefundAuditExample example = (HighRefundAuditExample) parameter.get("example"); |
||||||
|
|
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.UPDATE("high_refund_audit"); |
||||||
|
|
||||||
|
if (record.getId() != null) { |
||||||
|
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getRefundSource() != null) { |
||||||
|
sql.SET("refund_source = #{record.refundSource,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getRefundPrice() != null) { |
||||||
|
sql.SET("refund_price = #{record.refundPrice,jdbcType=DECIMAL}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPayType() != null) { |
||||||
|
sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getSourceOrderNo() != null) { |
||||||
|
sql.SET("source_order_no = #{record.sourceOrderNo,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPayTime() != null) { |
||||||
|
sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreatedUserId() != null) { |
||||||
|
sql.SET("created_user_id = #{record.createdUserId,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreatedTime() != null) { |
||||||
|
sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getUpdatedUserId() != null) { |
||||||
|
sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getUpdatedTime() != null) { |
||||||
|
sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getRemark() != null) { |
||||||
|
sql.SET("remark = #{record.remark,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getStatus() != null) { |
||||||
|
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
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("high_refund_audit"); |
||||||
|
|
||||||
|
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||||
|
sql.SET("refund_source = #{record.refundSource,jdbcType=INTEGER}"); |
||||||
|
sql.SET("refund_price = #{record.refundPrice,jdbcType=DECIMAL}"); |
||||||
|
sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); |
||||||
|
sql.SET("source_order_no = #{record.sourceOrderNo,jdbcType=VARCHAR}"); |
||||||
|
sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); |
||||||
|
sql.SET("created_user_id = #{record.createdUserId,jdbcType=INTEGER}"); |
||||||
|
sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); |
||||||
|
sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=INTEGER}"); |
||||||
|
sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); |
||||||
|
sql.SET("remark = #{record.remark,jdbcType=VARCHAR}"); |
||||||
|
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); |
||||||
|
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); |
||||||
|
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); |
||||||
|
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); |
||||||
|
|
||||||
|
HighRefundAuditExample example = (HighRefundAuditExample) parameter.get("example"); |
||||||
|
applyWhere(sql, example, true); |
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
public String updateByPrimaryKeySelective(HighRefundAudit record) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.UPDATE("high_refund_audit"); |
||||||
|
|
||||||
|
if (record.getRefundSource() != null) { |
||||||
|
sql.SET("refund_source = #{refundSource,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getRefundPrice() != null) { |
||||||
|
sql.SET("refund_price = #{refundPrice,jdbcType=DECIMAL}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPayType() != null) { |
||||||
|
sql.SET("pay_type = #{payType,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getSourceOrderNo() != null) { |
||||||
|
sql.SET("source_order_no = #{sourceOrderNo,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPayTime() != null) { |
||||||
|
sql.SET("pay_time = #{payTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreatedUserId() != null) { |
||||||
|
sql.SET("created_user_id = #{createdUserId,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreatedTime() != null) { |
||||||
|
sql.SET("created_time = #{createdTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getUpdatedUserId() != null) { |
||||||
|
sql.SET("updated_user_id = #{updatedUserId,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getUpdatedTime() != null) { |
||||||
|
sql.SET("updated_time = #{updatedTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getRemark() != null) { |
||||||
|
sql.SET("remark = #{remark,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getStatus() != null) { |
||||||
|
sql.SET("`status` = #{status,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
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=INTEGER}"); |
||||||
|
|
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
protected void applyWhere(SQL sql, HighRefundAuditExample 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,290 @@ |
|||||||
|
package com.hai.entity; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.math.BigDecimal; |
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
/** |
||||||
|
* high_refund_audit |
||||||
|
* @author |
||||||
|
*/ |
||||||
|
/** |
||||||
|
* |
||||||
|
* 代码由工具生成 |
||||||
|
* |
||||||
|
**/ |
||||||
|
public class HighRefundAudit implements Serializable { |
||||||
|
/** |
||||||
|
* 主键id |
||||||
|
*/ |
||||||
|
private Integer id; |
||||||
|
|
||||||
|
/** |
||||||
|
* 退款来源 1:话费退款 |
||||||
|
*/ |
||||||
|
private Integer refundSource; |
||||||
|
|
||||||
|
/** |
||||||
|
* 退款金额 |
||||||
|
*/ |
||||||
|
private BigDecimal refundPrice; |
||||||
|
|
||||||
|
/** |
||||||
|
* 支付类型 |
||||||
|
*/ |
||||||
|
private Integer payType; |
||||||
|
|
||||||
|
/** |
||||||
|
* 退款订单号 |
||||||
|
*/ |
||||||
|
private String sourceOrderNo; |
||||||
|
|
||||||
|
/** |
||||||
|
* 支付时间 |
||||||
|
*/ |
||||||
|
private Date payTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 创建人 |
||||||
|
*/ |
||||||
|
private Integer createdUserId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 创建时间 |
||||||
|
*/ |
||||||
|
private Date createdTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 更新人 |
||||||
|
*/ |
||||||
|
private Integer updatedUserId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 更新时间 |
||||||
|
*/ |
||||||
|
private Date updatedTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 备注 |
||||||
|
*/ |
||||||
|
private String remark; |
||||||
|
|
||||||
|
/** |
||||||
|
* 状态:1,审核通过 2.审核驳回 |
||||||
|
*/ |
||||||
|
private Integer status; |
||||||
|
|
||||||
|
/** |
||||||
|
* 额外字段 |
||||||
|
*/ |
||||||
|
private String ext1; |
||||||
|
|
||||||
|
/** |
||||||
|
* 额外字段 |
||||||
|
*/ |
||||||
|
private String ext2; |
||||||
|
|
||||||
|
/** |
||||||
|
* 额外字段 |
||||||
|
*/ |
||||||
|
private String ext3; |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
public Integer getId() { |
||||||
|
return id; |
||||||
|
} |
||||||
|
|
||||||
|
public void setId(Integer id) { |
||||||
|
this.id = id; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getRefundSource() { |
||||||
|
return refundSource; |
||||||
|
} |
||||||
|
|
||||||
|
public void setRefundSource(Integer refundSource) { |
||||||
|
this.refundSource = refundSource; |
||||||
|
} |
||||||
|
|
||||||
|
public BigDecimal getRefundPrice() { |
||||||
|
return refundPrice; |
||||||
|
} |
||||||
|
|
||||||
|
public void setRefundPrice(BigDecimal refundPrice) { |
||||||
|
this.refundPrice = refundPrice; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getPayType() { |
||||||
|
return payType; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPayType(Integer payType) { |
||||||
|
this.payType = payType; |
||||||
|
} |
||||||
|
|
||||||
|
public String getSourceOrderNo() { |
||||||
|
return sourceOrderNo; |
||||||
|
} |
||||||
|
|
||||||
|
public void setSourceOrderNo(String sourceOrderNo) { |
||||||
|
this.sourceOrderNo = sourceOrderNo; |
||||||
|
} |
||||||
|
|
||||||
|
public Date getPayTime() { |
||||||
|
return payTime; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPayTime(Date payTime) { |
||||||
|
this.payTime = payTime; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getCreatedUserId() { |
||||||
|
return createdUserId; |
||||||
|
} |
||||||
|
|
||||||
|
public void setCreatedUserId(Integer createdUserId) { |
||||||
|
this.createdUserId = createdUserId; |
||||||
|
} |
||||||
|
|
||||||
|
public Date getCreatedTime() { |
||||||
|
return createdTime; |
||||||
|
} |
||||||
|
|
||||||
|
public void setCreatedTime(Date createdTime) { |
||||||
|
this.createdTime = createdTime; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getUpdatedUserId() { |
||||||
|
return updatedUserId; |
||||||
|
} |
||||||
|
|
||||||
|
public void setUpdatedUserId(Integer updatedUserId) { |
||||||
|
this.updatedUserId = updatedUserId; |
||||||
|
} |
||||||
|
|
||||||
|
public Date getUpdatedTime() { |
||||||
|
return updatedTime; |
||||||
|
} |
||||||
|
|
||||||
|
public void setUpdatedTime(Date updatedTime) { |
||||||
|
this.updatedTime = updatedTime; |
||||||
|
} |
||||||
|
|
||||||
|
public String getRemark() { |
||||||
|
return remark; |
||||||
|
} |
||||||
|
|
||||||
|
public void setRemark(String remark) { |
||||||
|
this.remark = remark; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getStatus() { |
||||||
|
return status; |
||||||
|
} |
||||||
|
|
||||||
|
public void setStatus(Integer status) { |
||||||
|
this.status = status; |
||||||
|
} |
||||||
|
|
||||||
|
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; |
||||||
|
} |
||||||
|
HighRefundAudit other = (HighRefundAudit) that; |
||||||
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||||
|
&& (this.getRefundSource() == null ? other.getRefundSource() == null : this.getRefundSource().equals(other.getRefundSource())) |
||||||
|
&& (this.getRefundPrice() == null ? other.getRefundPrice() == null : this.getRefundPrice().equals(other.getRefundPrice())) |
||||||
|
&& (this.getPayType() == null ? other.getPayType() == null : this.getPayType().equals(other.getPayType())) |
||||||
|
&& (this.getSourceOrderNo() == null ? other.getSourceOrderNo() == null : this.getSourceOrderNo().equals(other.getSourceOrderNo())) |
||||||
|
&& (this.getPayTime() == null ? other.getPayTime() == null : this.getPayTime().equals(other.getPayTime())) |
||||||
|
&& (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId())) |
||||||
|
&& (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) |
||||||
|
&& (this.getUpdatedUserId() == null ? other.getUpdatedUserId() == null : this.getUpdatedUserId().equals(other.getUpdatedUserId())) |
||||||
|
&& (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) |
||||||
|
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark())) |
||||||
|
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) |
||||||
|
&& (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 + ((getRefundSource() == null) ? 0 : getRefundSource().hashCode()); |
||||||
|
result = prime * result + ((getRefundPrice() == null) ? 0 : getRefundPrice().hashCode()); |
||||||
|
result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode()); |
||||||
|
result = prime * result + ((getSourceOrderNo() == null) ? 0 : getSourceOrderNo().hashCode()); |
||||||
|
result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode()); |
||||||
|
result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode()); |
||||||
|
result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); |
||||||
|
result = prime * result + ((getUpdatedUserId() == null) ? 0 : getUpdatedUserId().hashCode()); |
||||||
|
result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); |
||||||
|
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode()); |
||||||
|
result = prime * result + ((getStatus() == null) ? 0 : getStatus().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(", refundSource=").append(refundSource); |
||||||
|
sb.append(", refundPrice=").append(refundPrice); |
||||||
|
sb.append(", payType=").append(payType); |
||||||
|
sb.append(", sourceOrderNo=").append(sourceOrderNo); |
||||||
|
sb.append(", payTime=").append(payTime); |
||||||
|
sb.append(", createdUserId=").append(createdUserId); |
||||||
|
sb.append(", createdTime=").append(createdTime); |
||||||
|
sb.append(", updatedUserId=").append(updatedUserId); |
||||||
|
sb.append(", updatedTime=").append(updatedTime); |
||||||
|
sb.append(", remark=").append(remark); |
||||||
|
sb.append(", status=").append(status); |
||||||
|
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
Loading…
Reference in new issue