commit
2873442d13
Binary file not shown.
Binary file not shown.
@ -0,0 +1,307 @@ |
||||
package com.hai.common.utils; |
||||
|
||||
import com.alibaba.fastjson.JSON; |
||||
import com.google.common.collect.Maps; |
||||
import com.hai.common.pay.util.sdk.WXPayConstants; |
||||
import com.hai.common.pay.util.sdk.WXPayXmlUtil; |
||||
import com.thoughtworks.xstream.XStream; |
||||
import com.thoughtworks.xstream.io.naming.NoNameCoder; |
||||
import com.thoughtworks.xstream.io.xml.XppDriver; |
||||
import net.sf.cglib.beans.BeanMap; |
||||
import org.apache.http.conn.ssl.SSLConnectionSocketFactory; |
||||
import org.apache.http.conn.ssl.SSLContexts; |
||||
|
||||
import javax.crypto.Mac; |
||||
import javax.crypto.spec.SecretKeySpec; |
||||
import javax.net.ssl.SSLContext; |
||||
import javax.net.ssl.SSLSocket; |
||||
import javax.net.ssl.SSLSocketFactory; |
||||
import javax.xml.transform.OutputKeys; |
||||
import javax.xml.transform.Transformer; |
||||
import javax.xml.transform.TransformerFactory; |
||||
import javax.xml.transform.dom.DOMSource; |
||||
import javax.xml.transform.stream.StreamResult; |
||||
import java.io.File; |
||||
import java.io.FileInputStream; |
||||
import java.io.StringWriter; |
||||
import java.security.KeyStore; |
||||
import java.security.MessageDigest; |
||||
import java.security.SecureRandom; |
||||
import java.util.*; |
||||
|
||||
public class WxUtils { |
||||
|
||||
private static final Random RANDOM = new SecureRandom(); |
||||
|
||||
private static final String SYMBOLS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; |
||||
|
||||
|
||||
/** |
||||
* 生成签名 |
||||
* |
||||
* @param signMaps |
||||
* @return |
||||
* @throws Exception |
||||
*/ |
||||
public static String generateSign(SortedMap<String, String> signMaps, String mchKey) { |
||||
StringBuffer sb = new StringBuffer(); |
||||
|
||||
// 字典序
|
||||
for (Map.Entry signMap : signMaps.entrySet()) { |
||||
String key = (String) signMap.getKey(); |
||||
String value = (String) signMap.getValue(); |
||||
|
||||
// 为空不参与签名、参数名区分大小写
|
||||
if (null != value && !"".equals(value) && !"sign".equals(key) && !"key".equals(key)) { |
||||
sb.append(key).append("=").append(value).append("&"); |
||||
} |
||||
} |
||||
|
||||
// 拼接key
|
||||
sb.append("key=").append(mchKey); |
||||
// MD5加密
|
||||
String sign = MD5Encode(sb.toString(), "UTF-8").toUpperCase(); |
||||
return sign; |
||||
} |
||||
|
||||
public static String generateSignSHA256(SortedMap<String, String> signMaps,String mchKey)throws Exception{ |
||||
StringBuffer sb = new StringBuffer(); |
||||
|
||||
// 字典序
|
||||
for (Map.Entry signMap : signMaps.entrySet()) { |
||||
String key = (String) signMap.getKey(); |
||||
String value = (String) signMap.getValue(); |
||||
|
||||
// 为空不参与签名、参数名区分大小写
|
||||
if (null != value && !"".equals(value) && !"sign".equals(key) && !"key".equals(key)) { |
||||
sb.append(key).append("=").append(value).append("&"); |
||||
} |
||||
} |
||||
|
||||
// 拼接key
|
||||
sb.append("key=").append(mchKey); |
||||
// HMACSHA256加密
|
||||
String sign = HMACSHA256(sb.toString(), mchKey).toUpperCase(); |
||||
return sign; |
||||
} |
||||
|
||||
private static String byteArrayToHexString(byte b[]) { |
||||
StringBuffer resultSb = new StringBuffer(); |
||||
for (int i = 0; i < b.length; i++) |
||||
resultSb.append(byteToHexString(b[i])); |
||||
|
||||
return resultSb.toString(); |
||||
} |
||||
|
||||
private static String byteToHexString(byte b) { |
||||
int n = b; |
||||
if (n < 0) |
||||
n += 256; |
||||
int d1 = n / 16; |
||||
int d2 = n % 16; |
||||
return hexDigits[d1] + hexDigits[d2]; |
||||
} |
||||
|
||||
public static String MD5Encode(String origin, String charsetname) { |
||||
String resultString = null; |
||||
try { |
||||
resultString = new String(origin); |
||||
MessageDigest md = MessageDigest.getInstance("MD5"); |
||||
if (charsetname == null || "".equals(charsetname)) |
||||
resultString = byteArrayToHexString(md.digest(resultString |
||||
.getBytes())); |
||||
else |
||||
resultString = byteArrayToHexString(md.digest(resultString |
||||
.getBytes(charsetname))); |
||||
} catch (Exception exception) { |
||||
} |
||||
return resultString; |
||||
} |
||||
|
||||
private static final String[] hexDigits = { "0", "1", "2", "3", "4", "5", |
||||
"6", "7", "8", "9", "a", "b", "c", "d", "e", "f" }; |
||||
|
||||
|
||||
|
||||
private static HashMap<String, String> sortAsc(Map<String, String> map) { |
||||
HashMap<String, String> tempMap = new LinkedHashMap<String, String>(); |
||||
List<Map.Entry<String, String>> infoIds = new ArrayList<Map.Entry<String, String>>(map.entrySet()); |
||||
//排序
|
||||
infoIds.sort(new Comparator<Map.Entry<String, String>>() { |
||||
@Override |
||||
public int compare(Map.Entry<String, String> o1, Map.Entry<String, String> o2) { |
||||
return o1.getKey().compareTo(o2.getKey()); |
||||
} |
||||
}); |
||||
|
||||
for (int i = 0; i < infoIds.size(); i++) { |
||||
Map.Entry<String, String> item = infoIds.get(i); |
||||
tempMap.put(item.getKey(), item.getValue()); |
||||
} |
||||
return tempMap; |
||||
} |
||||
|
||||
|
||||
|
||||
/** |
||||
* 生成 HMACSHA256 |
||||
* @param data 待处理数据 |
||||
* @param key 密钥 |
||||
* @return 加密结果 |
||||
* @throws Exception |
||||
*/ |
||||
public static String HMACSHA256(String data, String key) throws Exception { |
||||
Mac sha256_HMAC = Mac.getInstance("HmacSHA256"); |
||||
SecretKeySpec secret_key = new SecretKeySpec(key.getBytes("UTF-8"), "HmacSHA256"); |
||||
sha256_HMAC.init(secret_key); |
||||
byte[] array = sha256_HMAC.doFinal(data.getBytes("UTF-8")); |
||||
StringBuilder sb = new StringBuilder(); |
||||
for (byte item : array) { |
||||
sb.append(Integer.toHexString((item & 0xFF) | 0x100).substring(1, 3)); |
||||
} |
||||
return sb.toString().toUpperCase(); |
||||
} |
||||
|
||||
/** |
||||
* 获取随机字符串 Nonce Str |
||||
* |
||||
* @return String 随机字符串 |
||||
*/ |
||||
public static String makeNonStr() { |
||||
char[] nonceChars = new char[32]; |
||||
for (int index = 0; index < nonceChars.length; ++index) { |
||||
nonceChars[index] = SYMBOLS.charAt(RANDOM.nextInt(SYMBOLS.length())); |
||||
} |
||||
return new String(nonceChars); |
||||
} |
||||
|
||||
/** |
||||
* 拼接签名数据 |
||||
* |
||||
*/ |
||||
public static String makeSign(BeanMap beanMap, String mchKey, String signType)throws Exception { |
||||
SortedMap<String, String> signMaps = Maps.newTreeMap(); |
||||
|
||||
for (Object key : beanMap.keySet()) { |
||||
Object value = beanMap.get(key); |
||||
|
||||
// 排除空数据
|
||||
if (value == null) { |
||||
continue; |
||||
} |
||||
signMaps.put(key + "", String.valueOf(value)); |
||||
} |
||||
if(signType.equals("MD5")) { |
||||
// 生成签名
|
||||
return generateSign(signMaps, mchKey); |
||||
}else if(signType.equals("SHA256")){ |
||||
return generateSignSHA256(signMaps, mchKey); |
||||
}else{ |
||||
return null; |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 数据转换为xml格式 |
||||
* |
||||
* @param object |
||||
* @param obj |
||||
* @return |
||||
*/ |
||||
public static String truncateDataToXML(Class<?> object, Object obj) { |
||||
XStream xStream = new XStream(new XppDriver(new NoNameCoder())); |
||||
xStream.alias("xml", object); |
||||
return xStream.toXML(obj); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 生成签名. 注意,若含有sign_type字段,必须和signType参数保持一致。 |
||||
* |
||||
* @param data 待签名数据 |
||||
* @param key API密钥 |
||||
* @param signType 签名方式 |
||||
* @return 签名 |
||||
*/ |
||||
public static String generateSignature(final Map<String, String> data, String key, WXPayConstants.SignType signType) throws Exception { |
||||
Set<String> keySet = data.keySet(); |
||||
String[] keyArray = keySet.toArray(new String[keySet.size()]); |
||||
Arrays.sort(keyArray); |
||||
StringBuilder sb = new StringBuilder(); |
||||
for (String k : keyArray) { |
||||
if (k.equals(WXPayConstants.FIELD_SIGN)) { |
||||
continue; |
||||
} |
||||
if (data.get(k).trim().length() > 0) // 参数值为空,则不参与签名
|
||||
sb.append(k).append("=").append(data.get(k).trim()).append("&"); |
||||
} |
||||
sb.append("key=").append(key); |
||||
if (WXPayConstants.SignType.MD5.equals(signType)) { |
||||
return MD5(sb.toString()).toUpperCase(); |
||||
} |
||||
else if (WXPayConstants.SignType.HMACSHA256.equals(signType)) { |
||||
return HMACSHA256(sb.toString(), key); |
||||
} |
||||
else { |
||||
throw new Exception(String.format("Invalid sign_type: %s", signType)); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 生成 MD5 |
||||
* |
||||
* @param data 待处理数据 |
||||
* @return MD5结果 |
||||
*/ |
||||
public static String MD5(String data) throws Exception { |
||||
java.security.MessageDigest md = MessageDigest.getInstance("MD5"); |
||||
byte[] array = md.digest(data.getBytes("UTF-8")); |
||||
StringBuilder sb = new StringBuilder(); |
||||
for (byte item : array) { |
||||
sb.append(Integer.toHexString((item & 0xFF) | 0x100).substring(1, 3)); |
||||
} |
||||
return sb.toString().toUpperCase(); |
||||
} |
||||
|
||||
/** |
||||
* 将Map转换为XML格式的字符串 |
||||
* |
||||
* @param data Map类型数据 |
||||
* @return XML格式的字符串 |
||||
* @throws Exception |
||||
*/ |
||||
public static String mapToXml(Map<String, String> data) throws Exception { |
||||
org.w3c.dom.Document document = WXPayXmlUtil.newDocument(); |
||||
org.w3c.dom.Element root = document.createElement("xml"); |
||||
document.appendChild(root); |
||||
for (String key: data.keySet()) { |
||||
String value = data.get(key); |
||||
if (value == null) { |
||||
value = ""; |
||||
} |
||||
value = value.trim(); |
||||
org.w3c.dom.Element filed = document.createElement(key); |
||||
filed.appendChild(document.createTextNode(value)); |
||||
root.appendChild(filed); |
||||
} |
||||
TransformerFactory tf = TransformerFactory.newInstance(); |
||||
Transformer transformer = tf.newTransformer(); |
||||
DOMSource source = new DOMSource(document); |
||||
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); |
||||
transformer.setOutputProperty(OutputKeys.INDENT, "yes"); |
||||
StringWriter writer = new StringWriter(); |
||||
StreamResult result = new StreamResult(writer); |
||||
transformer.transform(source, result); |
||||
String output = writer.getBuffer().toString(); //.replaceAll("\n|\r", "");
|
||||
try { |
||||
writer.close(); |
||||
} |
||||
catch (Exception ex) { |
||||
} |
||||
return output; |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,110 @@ |
||||
package com.hai.dao; |
||||
|
||||
import com.hai.entity.HighProfitSharingRecord; |
||||
import com.hai.entity.HighProfitSharingRecordExample; |
||||
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 HighProfitSharingRecordMapper extends HighProfitSharingRecordMapperExt { |
||||
@SelectProvider(type=HighProfitSharingRecordSqlProvider.class, method="countByExample") |
||||
long countByExample(HighProfitSharingRecordExample example); |
||||
|
||||
@DeleteProvider(type=HighProfitSharingRecordSqlProvider.class, method="deleteByExample") |
||||
int deleteByExample(HighProfitSharingRecordExample example); |
||||
|
||||
@Delete({ |
||||
"delete from high_profit_sharing_record", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
int deleteByPrimaryKey(Long id); |
||||
|
||||
@Insert({ |
||||
"insert into high_profit_sharing_record (transaction_id, out_order_no, ", |
||||
"order_id, price, ", |
||||
"content, create_time, ", |
||||
"`status`)", |
||||
"values (#{transactionId,jdbcType=VARCHAR}, #{outOrderNo,jdbcType=VARCHAR}, ", |
||||
"#{orderId,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, ", |
||||
"#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
||||
"#{status,jdbcType=VARCHAR})" |
||||
}) |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insert(HighProfitSharingRecord record); |
||||
|
||||
@InsertProvider(type=HighProfitSharingRecordSqlProvider.class, method="insertSelective") |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insertSelective(HighProfitSharingRecord record); |
||||
|
||||
@SelectProvider(type=HighProfitSharingRecordSqlProvider.class, method="selectByExample") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||
@Result(column="transaction_id", property="transactionId", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="out_order_no", property="outOrderNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="order_id", property="orderId", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="status", property="status", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
List<HighProfitSharingRecord> selectByExample(HighProfitSharingRecordExample example); |
||||
|
||||
@Select({ |
||||
"select", |
||||
"id, transaction_id, out_order_no, order_id, price, content, create_time, `status`", |
||||
"from high_profit_sharing_record", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||
@Result(column="transaction_id", property="transactionId", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="out_order_no", property="outOrderNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="order_id", property="orderId", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="status", property="status", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
HighProfitSharingRecord selectByPrimaryKey(Long id); |
||||
|
||||
@UpdateProvider(type=HighProfitSharingRecordSqlProvider.class, method="updateByExampleSelective") |
||||
int updateByExampleSelective(@Param("record") HighProfitSharingRecord record, @Param("example") HighProfitSharingRecordExample example); |
||||
|
||||
@UpdateProvider(type=HighProfitSharingRecordSqlProvider.class, method="updateByExample") |
||||
int updateByExample(@Param("record") HighProfitSharingRecord record, @Param("example") HighProfitSharingRecordExample example); |
||||
|
||||
@UpdateProvider(type=HighProfitSharingRecordSqlProvider.class, method="updateByPrimaryKeySelective") |
||||
int updateByPrimaryKeySelective(HighProfitSharingRecord record); |
||||
|
||||
@Update({ |
||||
"update high_profit_sharing_record", |
||||
"set transaction_id = #{transactionId,jdbcType=VARCHAR},", |
||||
"out_order_no = #{outOrderNo,jdbcType=VARCHAR},", |
||||
"order_id = #{orderId,jdbcType=VARCHAR},", |
||||
"price = #{price,jdbcType=DECIMAL},", |
||||
"content = #{content,jdbcType=VARCHAR},", |
||||
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
||||
"`status` = #{status,jdbcType=VARCHAR}", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
int updateByPrimaryKey(HighProfitSharingRecord record); |
||||
} |
@ -0,0 +1,7 @@ |
||||
package com.hai.dao; |
||||
|
||||
/** |
||||
* mapper扩展类 |
||||
*/ |
||||
public interface HighProfitSharingRecordMapperExt { |
||||
} |
@ -0,0 +1,276 @@ |
||||
package com.hai.dao; |
||||
|
||||
import com.hai.entity.HighProfitSharingRecord; |
||||
import com.hai.entity.HighProfitSharingRecordExample.Criteria; |
||||
import com.hai.entity.HighProfitSharingRecordExample.Criterion; |
||||
import com.hai.entity.HighProfitSharingRecordExample; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import org.apache.ibatis.jdbc.SQL; |
||||
|
||||
public class HighProfitSharingRecordSqlProvider { |
||||
|
||||
public String countByExample(HighProfitSharingRecordExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.SELECT("count(*)").FROM("high_profit_sharing_record"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String deleteByExample(HighProfitSharingRecordExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.DELETE_FROM("high_profit_sharing_record"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String insertSelective(HighProfitSharingRecord record) { |
||||
SQL sql = new SQL(); |
||||
sql.INSERT_INTO("high_profit_sharing_record"); |
||||
|
||||
if (record.getTransactionId() != null) { |
||||
sql.VALUES("transaction_id", "#{transactionId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOutOrderNo() != null) { |
||||
sql.VALUES("out_order_no", "#{outOrderNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOrderId() != null) { |
||||
sql.VALUES("order_id", "#{orderId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPrice() != null) { |
||||
sql.VALUES("price", "#{price,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getContent() != null) { |
||||
sql.VALUES("content", "#{content,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getStatus() != null) { |
||||
sql.VALUES("`status`", "#{status,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExample(HighProfitSharingRecordExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("transaction_id"); |
||||
sql.SELECT("out_order_no"); |
||||
sql.SELECT("order_id"); |
||||
sql.SELECT("price"); |
||||
sql.SELECT("content"); |
||||
sql.SELECT("create_time"); |
||||
sql.SELECT("`status`"); |
||||
sql.FROM("high_profit_sharing_record"); |
||||
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) { |
||||
HighProfitSharingRecord record = (HighProfitSharingRecord) parameter.get("record"); |
||||
HighProfitSharingRecordExample example = (HighProfitSharingRecordExample) parameter.get("example"); |
||||
|
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("high_profit_sharing_record"); |
||||
|
||||
if (record.getId() != null) { |
||||
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getTransactionId() != null) { |
||||
sql.SET("transaction_id = #{record.transactionId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOutOrderNo() != null) { |
||||
sql.SET("out_order_no = #{record.outOrderNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOrderId() != null) { |
||||
sql.SET("order_id = #{record.orderId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPrice() != null) { |
||||
sql.SET("price = #{record.price,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getContent() != null) { |
||||
sql.SET("content = #{record.content,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getStatus() != null) { |
||||
sql.SET("`status` = #{record.status,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExample(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("high_profit_sharing_record"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||
sql.SET("transaction_id = #{record.transactionId,jdbcType=VARCHAR}"); |
||||
sql.SET("out_order_no = #{record.outOrderNo,jdbcType=VARCHAR}"); |
||||
sql.SET("order_id = #{record.orderId,jdbcType=VARCHAR}"); |
||||
sql.SET("price = #{record.price,jdbcType=DECIMAL}"); |
||||
sql.SET("content = #{record.content,jdbcType=VARCHAR}"); |
||||
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); |
||||
sql.SET("`status` = #{record.status,jdbcType=VARCHAR}"); |
||||
|
||||
HighProfitSharingRecordExample example = (HighProfitSharingRecordExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByPrimaryKeySelective(HighProfitSharingRecord record) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("high_profit_sharing_record"); |
||||
|
||||
if (record.getTransactionId() != null) { |
||||
sql.SET("transaction_id = #{transactionId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOutOrderNo() != null) { |
||||
sql.SET("out_order_no = #{outOrderNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOrderId() != null) { |
||||
sql.SET("order_id = #{orderId,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPrice() != null) { |
||||
sql.SET("price = #{price,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getContent() != null) { |
||||
sql.SET("content = #{content,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getStatus() != null) { |
||||
sql.SET("`status` = #{status,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
sql.WHERE("id = #{id,jdbcType=BIGINT}"); |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
protected void applyWhere(SQL sql, HighProfitSharingRecordExample 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,178 @@ |
||||
package com.hai.entity; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* high_profit_sharing_record |
||||
* @author |
||||
*/ |
||||
/** |
||||
* |
||||
* 代码由工具生成 |
||||
* |
||||
**/ |
||||
public class HighProfitSharingRecord implements Serializable { |
||||
/** |
||||
* 主键ID |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 微信订单号 |
||||
*/ |
||||
private String transactionId; |
||||
|
||||
/** |
||||
* 商户分账单号 |
||||
*/ |
||||
private String outOrderNo; |
||||
|
||||
/** |
||||
* 微信分账单号 |
||||
*/ |
||||
private String orderId; |
||||
|
||||
/** |
||||
* 分账金额 |
||||
*/ |
||||
private BigDecimal price; |
||||
|
||||
/** |
||||
* 报文内容 |
||||
*/ |
||||
private String content; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
private Date createTime; |
||||
|
||||
/** |
||||
* 状态(以微信返回为准) |
||||
*/ |
||||
private String status; |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public String getTransactionId() { |
||||
return transactionId; |
||||
} |
||||
|
||||
public void setTransactionId(String transactionId) { |
||||
this.transactionId = transactionId; |
||||
} |
||||
|
||||
public String getOutOrderNo() { |
||||
return outOrderNo; |
||||
} |
||||
|
||||
public void setOutOrderNo(String outOrderNo) { |
||||
this.outOrderNo = outOrderNo; |
||||
} |
||||
|
||||
public String getOrderId() { |
||||
return orderId; |
||||
} |
||||
|
||||
public void setOrderId(String orderId) { |
||||
this.orderId = orderId; |
||||
} |
||||
|
||||
public BigDecimal getPrice() { |
||||
return price; |
||||
} |
||||
|
||||
public void setPrice(BigDecimal price) { |
||||
this.price = price; |
||||
} |
||||
|
||||
public String getContent() { |
||||
return content; |
||||
} |
||||
|
||||
public void setContent(String content) { |
||||
this.content = content; |
||||
} |
||||
|
||||
public Date getCreateTime() { |
||||
return createTime; |
||||
} |
||||
|
||||
public void setCreateTime(Date createTime) { |
||||
this.createTime = createTime; |
||||
} |
||||
|
||||
public String getStatus() { |
||||
return status; |
||||
} |
||||
|
||||
public void setStatus(String status) { |
||||
this.status = status; |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object that) { |
||||
if (this == that) { |
||||
return true; |
||||
} |
||||
if (that == null) { |
||||
return false; |
||||
} |
||||
if (getClass() != that.getClass()) { |
||||
return false; |
||||
} |
||||
HighProfitSharingRecord other = (HighProfitSharingRecord) that; |
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||
&& (this.getTransactionId() == null ? other.getTransactionId() == null : this.getTransactionId().equals(other.getTransactionId())) |
||||
&& (this.getOutOrderNo() == null ? other.getOutOrderNo() == null : this.getOutOrderNo().equals(other.getOutOrderNo())) |
||||
&& (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId())) |
||||
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice())) |
||||
&& (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent())) |
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) |
||||
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
final int prime = 31; |
||||
int result = 1; |
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||
result = prime * result + ((getTransactionId() == null) ? 0 : getTransactionId().hashCode()); |
||||
result = prime * result + ((getOutOrderNo() == null) ? 0 : getOutOrderNo().hashCode()); |
||||
result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode()); |
||||
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode()); |
||||
result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode()); |
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); |
||||
result = prime * result + ((getStatus() == null) ? 0 : getStatus().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(", transactionId=").append(transactionId); |
||||
sb.append(", outOrderNo=").append(outOrderNo); |
||||
sb.append(", orderId=").append(orderId); |
||||
sb.append(", price=").append(price); |
||||
sb.append(", content=").append(content); |
||||
sb.append(", createTime=").append(createTime); |
||||
sb.append(", status=").append(status); |
||||
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||
sb.append("]"); |
||||
return sb.toString(); |
||||
} |
||||
} |
@ -0,0 +1,754 @@ |
||||
package com.hai.entity; |
||||
|
||||
import java.math.BigDecimal; |
||||
import java.util.ArrayList; |
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
public class HighProfitSharingRecordExample { |
||||
protected String orderByClause; |
||||
|
||||
protected boolean distinct; |
||||
|
||||
protected List<Criteria> oredCriteria; |
||||
|
||||
private Integer limit; |
||||
|
||||
private Long offset; |
||||
|
||||
public HighProfitSharingRecordExample() { |
||||
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 andTransactionIdIsNull() { |
||||
addCriterion("transaction_id is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdIsNotNull() { |
||||
addCriterion("transaction_id is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdEqualTo(String value) { |
||||
addCriterion("transaction_id =", value, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdNotEqualTo(String value) { |
||||
addCriterion("transaction_id <>", value, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdGreaterThan(String value) { |
||||
addCriterion("transaction_id >", value, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdGreaterThanOrEqualTo(String value) { |
||||
addCriterion("transaction_id >=", value, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdLessThan(String value) { |
||||
addCriterion("transaction_id <", value, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdLessThanOrEqualTo(String value) { |
||||
addCriterion("transaction_id <=", value, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdLike(String value) { |
||||
addCriterion("transaction_id like", value, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdNotLike(String value) { |
||||
addCriterion("transaction_id not like", value, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdIn(List<String> values) { |
||||
addCriterion("transaction_id in", values, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdNotIn(List<String> values) { |
||||
addCriterion("transaction_id not in", values, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdBetween(String value1, String value2) { |
||||
addCriterion("transaction_id between", value1, value2, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andTransactionIdNotBetween(String value1, String value2) { |
||||
addCriterion("transaction_id not between", value1, value2, "transactionId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoIsNull() { |
||||
addCriterion("out_order_no is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoIsNotNull() { |
||||
addCriterion("out_order_no is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoEqualTo(String value) { |
||||
addCriterion("out_order_no =", value, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoNotEqualTo(String value) { |
||||
addCriterion("out_order_no <>", value, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoGreaterThan(String value) { |
||||
addCriterion("out_order_no >", value, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoGreaterThanOrEqualTo(String value) { |
||||
addCriterion("out_order_no >=", value, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoLessThan(String value) { |
||||
addCriterion("out_order_no <", value, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoLessThanOrEqualTo(String value) { |
||||
addCriterion("out_order_no <=", value, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoLike(String value) { |
||||
addCriterion("out_order_no like", value, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoNotLike(String value) { |
||||
addCriterion("out_order_no not like", value, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoIn(List<String> values) { |
||||
addCriterion("out_order_no in", values, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoNotIn(List<String> values) { |
||||
addCriterion("out_order_no not in", values, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoBetween(String value1, String value2) { |
||||
addCriterion("out_order_no between", value1, value2, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOutOrderNoNotBetween(String value1, String value2) { |
||||
addCriterion("out_order_no not between", value1, value2, "outOrderNo"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdIsNull() { |
||||
addCriterion("order_id is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdIsNotNull() { |
||||
addCriterion("order_id is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdEqualTo(String value) { |
||||
addCriterion("order_id =", value, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdNotEqualTo(String value) { |
||||
addCriterion("order_id <>", value, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdGreaterThan(String value) { |
||||
addCriterion("order_id >", value, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdGreaterThanOrEqualTo(String value) { |
||||
addCriterion("order_id >=", value, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdLessThan(String value) { |
||||
addCriterion("order_id <", value, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdLessThanOrEqualTo(String value) { |
||||
addCriterion("order_id <=", value, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdLike(String value) { |
||||
addCriterion("order_id like", value, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdNotLike(String value) { |
||||
addCriterion("order_id not like", value, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdIn(List<String> values) { |
||||
addCriterion("order_id in", values, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdNotIn(List<String> values) { |
||||
addCriterion("order_id not in", values, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdBetween(String value1, String value2) { |
||||
addCriterion("order_id between", value1, value2, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andOrderIdNotBetween(String value1, String value2) { |
||||
addCriterion("order_id not between", value1, value2, "orderId"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceIsNull() { |
||||
addCriterion("price is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceIsNotNull() { |
||||
addCriterion("price is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceEqualTo(BigDecimal value) { |
||||
addCriterion("price =", value, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceNotEqualTo(BigDecimal value) { |
||||
addCriterion("price <>", value, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceGreaterThan(BigDecimal value) { |
||||
addCriterion("price >", value, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) { |
||||
addCriterion("price >=", value, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceLessThan(BigDecimal value) { |
||||
addCriterion("price <", value, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceLessThanOrEqualTo(BigDecimal value) { |
||||
addCriterion("price <=", value, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceIn(List<BigDecimal> values) { |
||||
addCriterion("price in", values, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceNotIn(List<BigDecimal> values) { |
||||
addCriterion("price not in", values, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) { |
||||
addCriterion("price between", value1, value2, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) { |
||||
addCriterion("price not between", value1, value2, "price"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentIsNull() { |
||||
addCriterion("content is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentIsNotNull() { |
||||
addCriterion("content is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentEqualTo(String value) { |
||||
addCriterion("content =", value, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentNotEqualTo(String value) { |
||||
addCriterion("content <>", value, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentGreaterThan(String value) { |
||||
addCriterion("content >", value, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentGreaterThanOrEqualTo(String value) { |
||||
addCriterion("content >=", value, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentLessThan(String value) { |
||||
addCriterion("content <", value, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentLessThanOrEqualTo(String value) { |
||||
addCriterion("content <=", value, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentLike(String value) { |
||||
addCriterion("content like", value, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentNotLike(String value) { |
||||
addCriterion("content not like", value, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentIn(List<String> values) { |
||||
addCriterion("content in", values, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentNotIn(List<String> values) { |
||||
addCriterion("content not in", values, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentBetween(String value1, String value2) { |
||||
addCriterion("content between", value1, value2, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andContentNotBetween(String value1, String value2) { |
||||
addCriterion("content not between", value1, value2, "content"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeIsNull() { |
||||
addCriterion("create_time is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeIsNotNull() { |
||||
addCriterion("create_time is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) { |
||||
addCriterion("create_time =", value, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) { |
||||
addCriterion("create_time <>", value, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) { |
||||
addCriterion("create_time >", value, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
||||
addCriterion("create_time >=", value, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) { |
||||
addCriterion("create_time <", value, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
||||
addCriterion("create_time <=", value, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) { |
||||
addCriterion("create_time in", values, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) { |
||||
addCriterion("create_time not in", values, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
||||
addCriterion("create_time between", value1, value2, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
||||
addCriterion("create_time not between", value1, value2, "createTime"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusIsNull() { |
||||
addCriterion("`status` is null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusIsNotNull() { |
||||
addCriterion("`status` is not null"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusEqualTo(String value) { |
||||
addCriterion("`status` =", value, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusNotEqualTo(String value) { |
||||
addCriterion("`status` <>", value, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusGreaterThan(String value) { |
||||
addCriterion("`status` >", value, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(String value) { |
||||
addCriterion("`status` >=", value, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusLessThan(String value) { |
||||
addCriterion("`status` <", value, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(String value) { |
||||
addCriterion("`status` <=", value, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusLike(String value) { |
||||
addCriterion("`status` like", value, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusNotLike(String value) { |
||||
addCriterion("`status` not like", value, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusIn(List<String> values) { |
||||
addCriterion("`status` in", values, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusNotIn(List<String> values) { |
||||
addCriterion("`status` not in", values, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusBetween(String value1, String value2) { |
||||
addCriterion("`status` between", value1, value2, "status"); |
||||
return (Criteria) this; |
||||
} |
||||
|
||||
public Criteria andStatusNotBetween(String value1, String value2) { |
||||
addCriterion("`status` not between", value1, value2, "status"); |
||||
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,98 @@ |
||||
package com.hai.model; |
||||
|
||||
/** |
||||
* 分账结果 |
||||
*/ |
||||
public class ResultProfitSharing { |
||||
|
||||
private String return_code; |
||||
private String result_code; |
||||
private String mch_id; |
||||
private String sub_mch_id; |
||||
private String appid; |
||||
private String nonce_str; |
||||
private String sign; |
||||
private String transaction_id; |
||||
private String out_order_no; |
||||
private String order_id; |
||||
|
||||
public String getReturn_code() { |
||||
return return_code; |
||||
} |
||||
|
||||
public void setReturn_code(String return_code) { |
||||
this.return_code = return_code; |
||||
} |
||||
|
||||
public String getResult_code() { |
||||
return result_code; |
||||
} |
||||
|
||||
public void setResult_code(String result_code) { |
||||
this.result_code = result_code; |
||||
} |
||||
|
||||
public String getMch_id() { |
||||
return mch_id; |
||||
} |
||||
|
||||
public void setMch_id(String mch_id) { |
||||
this.mch_id = mch_id; |
||||
} |
||||
|
||||
public String getSub_mch_id() { |
||||
return sub_mch_id; |
||||
} |
||||
|
||||
public void setSub_mch_id(String sub_mch_id) { |
||||
this.sub_mch_id = sub_mch_id; |
||||
} |
||||
|
||||
public String getAppid() { |
||||
return appid; |
||||
} |
||||
|
||||
public void setAppid(String appid) { |
||||
this.appid = appid; |
||||
} |
||||
|
||||
public String getNonce_str() { |
||||
return nonce_str; |
||||
} |
||||
|
||||
public void setNonce_str(String nonce_str) { |
||||
this.nonce_str = nonce_str; |
||||
} |
||||
|
||||
public String getSign() { |
||||
return sign; |
||||
} |
||||
|
||||
public void setSign(String sign) { |
||||
this.sign = sign; |
||||
} |
||||
|
||||
public String getTransaction_id() { |
||||
return transaction_id; |
||||
} |
||||
|
||||
public void setTransaction_id(String transaction_id) { |
||||
this.transaction_id = transaction_id; |
||||
} |
||||
|
||||
public String getOut_order_no() { |
||||
return out_order_no; |
||||
} |
||||
|
||||
public void setOut_order_no(String out_order_no) { |
||||
this.out_order_no = out_order_no; |
||||
} |
||||
|
||||
public String getOrder_id() { |
||||
return order_id; |
||||
} |
||||
|
||||
public void setOrder_id(String order_id) { |
||||
this.order_id = order_id; |
||||
} |
||||
} |
@ -0,0 +1,162 @@ |
||||
package com.hai.model; |
||||
|
||||
/** |
||||
* 分账请求类 |
||||
*/ |
||||
public class WxSharingOrderRequestModel { |
||||
|
||||
/** |
||||
* 服务商商户号 |
||||
*/ |
||||
private String mch_id; |
||||
|
||||
/** |
||||
* 子商户号 |
||||
*/ |
||||
private String sub_mch_id; |
||||
|
||||
/** |
||||
* 服务商appid |
||||
*/ |
||||
private String appid; |
||||
|
||||
/** |
||||
* 子商户appid |
||||
*/ |
||||
private String sub_appid; |
||||
|
||||
/** |
||||
* 随机字符串 |
||||
*/ |
||||
private String nonce_str; |
||||
|
||||
/** |
||||
* 签名 |
||||
*/ |
||||
private String sign; |
||||
/** |
||||
* 签名类型(只支持HMAC-SHA256) |
||||
*/ |
||||
private String sign_type; |
||||
|
||||
/** |
||||
* 微信订单号 |
||||
*/ |
||||
private String transaction_id; |
||||
|
||||
/** |
||||
* 商家订单号 |
||||
*/ |
||||
private String out_trade_no; |
||||
|
||||
/** |
||||
* 商户分账单号(同一个单号多次提交只算一次) |
||||
*/ |
||||
private String out_order_no; |
||||
|
||||
/** |
||||
* 商户分账金额(小于等于订单金额*(1-手续费)*最大分账比例) |
||||
*/ |
||||
private Integer amount; |
||||
|
||||
/** |
||||
* 分账接收方列表(单次分账不能即是支付商户又是接收商户,多次分账没有限制) |
||||
*/ |
||||
private String receiver; |
||||
|
||||
public String getMch_id() { |
||||
return mch_id; |
||||
} |
||||
|
||||
public void setMch_id(String mch_id) { |
||||
this.mch_id = mch_id; |
||||
} |
||||
|
||||
public String getSub_mch_id() { |
||||
return sub_mch_id; |
||||
} |
||||
|
||||
public void setSub_mch_id(String sub_mch_id) { |
||||
this.sub_mch_id = sub_mch_id; |
||||
} |
||||
|
||||
public String getAppid() { |
||||
return appid; |
||||
} |
||||
|
||||
public void setAppid(String appid) { |
||||
this.appid = appid; |
||||
} |
||||
|
||||
public String getSub_appid() { |
||||
return sub_appid; |
||||
} |
||||
|
||||
public void setSub_appid(String sub_appid) { |
||||
this.sub_appid = sub_appid; |
||||
} |
||||
|
||||
public String getNonce_str() { |
||||
return nonce_str; |
||||
} |
||||
|
||||
public void setNonce_str(String nonce_str) { |
||||
this.nonce_str = nonce_str; |
||||
} |
||||
|
||||
public String getSign() { |
||||
return sign; |
||||
} |
||||
|
||||
public void setSign(String sign) { |
||||
this.sign = sign; |
||||
} |
||||
|
||||
public String getSign_type() { |
||||
return sign_type; |
||||
} |
||||
|
||||
public void setSign_type(String sign_type) { |
||||
this.sign_type = sign_type; |
||||
} |
||||
|
||||
public String getTransaction_id() { |
||||
return transaction_id; |
||||
} |
||||
|
||||
public void setTransaction_id(String transaction_id) { |
||||
this.transaction_id = transaction_id; |
||||
} |
||||
|
||||
public String getOut_trade_no() { |
||||
return out_trade_no; |
||||
} |
||||
|
||||
public void setOut_trade_no(String out_trade_no) { |
||||
this.out_trade_no = out_trade_no; |
||||
} |
||||
|
||||
public String getOut_order_no() { |
||||
return out_order_no; |
||||
} |
||||
|
||||
public void setOut_order_no(String out_order_no) { |
||||
this.out_order_no = out_order_no; |
||||
} |
||||
|
||||
public Integer getAmount() { |
||||
return amount; |
||||
} |
||||
|
||||
public void setAmount(Integer amount) { |
||||
this.amount = amount; |
||||
} |
||||
|
||||
public String getReceiver() { |
||||
return receiver; |
||||
} |
||||
|
||||
public void setReceiver(String receiver) { |
||||
this.receiver = receiver; |
||||
} |
||||
} |
@ -0,0 +1,147 @@ |
||||
package com.hai.model; |
||||
|
||||
// 分账返回
|
||||
public class WxSharingOrderResp { |
||||
|
||||
//返回状态码,通信标识,SUCCESS/FAIL
|
||||
private String return_code; |
||||
//返回信息,通信标识OK
|
||||
private String return_msg; |
||||
//业务结果,交易标识,SUCCESS/FAIL
|
||||
private String result_code; |
||||
//错误代码
|
||||
private String err_code; |
||||
//错误代码描述
|
||||
private String err_code_des; |
||||
//商户号
|
||||
private String mch_id; |
||||
//子商户号
|
||||
private String sub_mch_id; |
||||
//公众账号id
|
||||
private String appid; |
||||
|
||||
private String sub_appid; |
||||
|
||||
//随机字符串
|
||||
private String nonce_str; |
||||
//签名
|
||||
private String sign; |
||||
//微信支付订单号
|
||||
private String transaction_id; |
||||
//商户分账单号(商户订单号)
|
||||
private String out_order_no; |
||||
//商户分账单号
|
||||
private String order_id; |
||||
|
||||
public String getReturn_code() { |
||||
return return_code; |
||||
} |
||||
|
||||
public void setReturn_code(String return_code) { |
||||
this.return_code = return_code; |
||||
} |
||||
|
||||
public String getReturn_msg() { |
||||
return return_msg; |
||||
} |
||||
|
||||
public void setReturn_msg(String return_msg) { |
||||
this.return_msg = return_msg; |
||||
} |
||||
|
||||
public String getResult_code() { |
||||
return result_code; |
||||
} |
||||
|
||||
public void setResult_code(String result_code) { |
||||
this.result_code = result_code; |
||||
} |
||||
|
||||
public String getErr_code() { |
||||
return err_code; |
||||
} |
||||
|
||||
public void setErr_code(String err_code) { |
||||
this.err_code = err_code; |
||||
} |
||||
|
||||
public String getErr_code_des() { |
||||
return err_code_des; |
||||
} |
||||
|
||||
public void setErr_code_des(String err_code_des) { |
||||
this.err_code_des = err_code_des; |
||||
} |
||||
|
||||
public String getMch_id() { |
||||
return mch_id; |
||||
} |
||||
|
||||
public void setMch_id(String mch_id) { |
||||
this.mch_id = mch_id; |
||||
} |
||||
|
||||
public String getSub_mch_id() { |
||||
return sub_mch_id; |
||||
} |
||||
|
||||
public void setSub_mch_id(String sub_mch_id) { |
||||
this.sub_mch_id = sub_mch_id; |
||||
} |
||||
|
||||
public String getAppid() { |
||||
return appid; |
||||
} |
||||
|
||||
public void setAppid(String appid) { |
||||
this.appid = appid; |
||||
} |
||||
|
||||
public String getSub_appid() { |
||||
return sub_appid; |
||||
} |
||||
|
||||
public void setSub_appid(String sub_appid) { |
||||
this.sub_appid = sub_appid; |
||||
} |
||||
|
||||
public String getNonce_str() { |
||||
return nonce_str; |
||||
} |
||||
|
||||
public void setNonce_str(String nonce_str) { |
||||
this.nonce_str = nonce_str; |
||||
} |
||||
|
||||
public String getSign() { |
||||
return sign; |
||||
} |
||||
|
||||
public void setSign(String sign) { |
||||
this.sign = sign; |
||||
} |
||||
|
||||
public String getTransaction_id() { |
||||
return transaction_id; |
||||
} |
||||
|
||||
public void setTransaction_id(String transaction_id) { |
||||
this.transaction_id = transaction_id; |
||||
} |
||||
|
||||
public String getOut_order_no() { |
||||
return out_order_no; |
||||
} |
||||
|
||||
public void setOut_order_no(String out_order_no) { |
||||
this.out_order_no = out_order_no; |
||||
} |
||||
|
||||
public String getOrder_id() { |
||||
return order_id; |
||||
} |
||||
|
||||
public void setOrder_id(String order_id) { |
||||
this.order_id = order_id; |
||||
} |
||||
} |
@ -0,0 +1,84 @@ |
||||
package com.hai.model; |
||||
|
||||
/** |
||||
* 分账接收方 |
||||
*/ |
||||
public class WxSharingReceiversVO { |
||||
/** |
||||
* 分账接收方类型 |
||||
*/ |
||||
private String type; |
||||
|
||||
/** |
||||
* 分账接收方帐号 |
||||
*/ |
||||
private String account; |
||||
|
||||
/** |
||||
* 分账金额 |
||||
*/ |
||||
private Integer amount; |
||||
|
||||
/** |
||||
* 分账描述 |
||||
*/ |
||||
private String description; |
||||
|
||||
/** |
||||
* 与分账方的关系类型 |
||||
*/ |
||||
private String relation_type; |
||||
|
||||
/** |
||||
* 分账接收方全称 |
||||
*/ |
||||
private String name; |
||||
|
||||
public String getType() { |
||||
return type; |
||||
} |
||||
|
||||
public void setType(String type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
public String getAccount() { |
||||
return account; |
||||
} |
||||
|
||||
public void setAccount(String account) { |
||||
this.account = account; |
||||
} |
||||
|
||||
public Integer getAmount() { |
||||
return amount; |
||||
} |
||||
|
||||
public void setAmount(Integer amount) { |
||||
this.amount = amount; |
||||
} |
||||
|
||||
public String getDescription() { |
||||
return description; |
||||
} |
||||
|
||||
public void setDescription(String description) { |
||||
this.description = description; |
||||
} |
||||
|
||||
public String getRelation_type() { |
||||
return relation_type; |
||||
} |
||||
|
||||
public void setRelation_type(String relation_type) { |
||||
this.relation_type = relation_type; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
@ -0,0 +1,12 @@ |
||||
package com.hai.service; |
||||
|
||||
import com.hai.entity.HighProfitSharingRecord; |
||||
|
||||
/** |
||||
* 分账记录 |
||||
*/ |
||||
public interface HighProfitSharingRecordService { |
||||
|
||||
|
||||
void insert(HighProfitSharingRecord highProfitSharingRecord); |
||||
} |
@ -0,0 +1,20 @@ |
||||
package com.hai.service.impl; |
||||
|
||||
import com.hai.dao.HighProfitSharingRecordMapper; |
||||
import com.hai.entity.HighProfitSharingRecord; |
||||
import com.hai.service.HighProfitSharingRecordService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import javax.annotation.Resource; |
||||
|
||||
@Service("highProfitSharingRecord") |
||||
public class HighProfitSharingRecordServiceImpl implements HighProfitSharingRecordService { |
||||
|
||||
@Resource |
||||
private HighProfitSharingRecordMapper highProfitSharingRecordMapper; |
||||
|
||||
@Override |
||||
public void insert(HighProfitSharingRecord highProfitSharingRecord) { |
||||
highProfitSharingRecordMapper.insert(highProfitSharingRecord); |
||||
} |
||||
} |
Binary file not shown.
@ -0,0 +1,23 @@ |
||||
-----BEGIN CERTIFICATE----- |
||||
MIID2jCCAsKgAwIBAgIUUPi1hMq87bxzKky00MSigY+1IZswDQYJKoZIhvcNAQEL |
||||
BQAwXjELMAkGA1UEBhMCQ04xEzARBgNVBAoTClRlbnBheS5jb20xHTAbBgNVBAsT |
||||
FFRlbnBheS5jb20gQ0EgQ2VudGVyMRswGQYDVQQDExJUZW5wYXkuY29tIFJvb3Qg |
||||
Q0EwHhcNMjAxMjMxMTAyNDAzWhcNMjUxMjMwMTAyNDAzWjBsMRMwEQYDVQQDDAox |
||||
NjA0OTY4MDU1MRswGQYDVQQKDBLlvq7kv6HllYbmiLfns7vnu58xGDAWBgNVBAsM |
||||
D+S4quS9k+aIt+aWuea2mzELMAkGA1UEBgwCQ04xETAPBgNVBAcMCFNoZW5aaGVu |
||||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtDjbxytOraNz5QkibnZN |
||||
6Q8fBPA11FQyEducTlOxFTXEN2mVIlPrnDJMZ8jQ0fBTHpWsuPMdLY6quEpnBUhf |
||||
vzip0giRCo8HAbT8TO2KiQSB0cPiW4HBGvHLI447EXG/xpisHAk6TR1rvdvGtjih |
||||
nRpnTLrDTK6TLDKi/hwDGYu2fzGYsXiN++bP45FSLiOn4T29o8PDG2zTpvcrsHEe |
||||
lerNltWzPbk5TXnnMDvcoUq/AgvhQjXRpLtOtkhegBBOHJFdTo/ldyV2YJkb/Yjp |
||||
SBGA+C/iuXkA5G7QW79LGa5Y0j5YNNHPlLHlxp5jfX+SZyBwmGtlHLFY44xwCN23 |
||||
oQIDAQABo4GBMH8wCQYDVR0TBAIwADALBgNVHQ8EBAMCBPAwZQYDVR0fBF4wXDBa |
||||
oFigVoZUaHR0cDovL2V2Y2EuaXRydXMuY29tLmNuL3B1YmxpYy9pdHJ1c2NybD9D |
||||
QT0xQkQ0MjIwRTUwREJDMDRCMDZBRDM5NzU0OTg0NkMwMUMzRThFQkQyMA0GCSqG |
||||
SIb3DQEBCwUAA4IBAQAkPTsxOuOj2BMLj7EzRmx3e3KCjvnz0Y9bmT9ahpgwX4hS |
||||
Dv+iHL6urT6FBnGVfE0Ejyymk/zq8DGSG7l7lsCU7s4ul5aaWFpjF30CCGqo4n2B |
||||
RRDHaC+Mw2MvUttHvnwR5SB4Exot4Nc1jVqOMos9FVyh3EWkUExVPRSJcdHSANLo |
||||
WgiJcuqE7cnvm+njM4ZhywI/HUvSp7+Y7dbQfA5pjh8vEVI9j8+l+7fhD/wCIeoA |
||||
zLfCVhdPsJnVdJW31yXQLped2HoQXhFagYNc2/6LR8imF3CUfI+LCIg+SZeGGsdY |
||||
ADnqbf9JGLxbXTfjvoOWFUDiWE8mMWuhwki0EI2W |
||||
-----END CERTIFICATE----- |
@ -0,0 +1,28 @@ |
||||
-----BEGIN PRIVATE KEY----- |
||||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC0ONvHK06to3Pl |
||||
CSJudk3pDx8E8DXUVDIR25xOU7EVNcQ3aZUiU+ucMkxnyNDR8FMelay48x0tjqq4 |
||||
SmcFSF+/OKnSCJEKjwcBtPxM7YqJBIHRw+JbgcEa8csjjjsRcb/GmKwcCTpNHWu9 |
||||
28a2OKGdGmdMusNMrpMsMqL+HAMZi7Z/MZixeI375s/jkVIuI6fhPb2jw8MbbNOm |
||||
9yuwcR6V6s2W1bM9uTlNeecwO9yhSr8CC+FCNdGku062SF6AEE4ckV1Oj+V3JXZg |
||||
mRv9iOlIEYD4L+K5eQDkbtBbv0sZrljSPlg00c+UseXGnmN9f5JnIHCYa2UcsVjj |
||||
jHAI3behAgMBAAECggEANZGRAiqFQGeNU07bxSm1DslH1xfvaCV+nIBCfaWyxTMu |
||||
F6pygbmgFtV8kHzIVR6yFi03IeJhkeEOLakv5goVK6mUELIrKpBI7OD2/Ya93uxQ |
||||
CiHHbpuq4m9sii0EsbK15joLLmovwiw0kkJ5VkCPCTuH6O66jlh1tnV2rUF2SmkU |
||||
9kfuEx+Id2fK+RK2+K8dCXQmYiS9R3mLQk9OSbanujVyQhlcKg7oPR6ko6UsI+jt |
||||
OGlkqxhPNFOuEKDbAsuKWp6kbvM1oWFb36oLpu+wzI0mUfbVatnsRKyE/ltH8xGY |
||||
Cm0T98Zic3kHb+k1PHPqm9Cn6olj1nk4A+o7BGAB4QKBgQDjjMqh4mz4G68PVgxI |
||||
0FXsEiFv8dr13MnwTzDd1dzPUksPqvPlTThn3I1IwLveDTx8+0SHknPyaJbz3a1d |
||||
gFfCCc5/MtK2n12PwwluiPHKNYvHnm/SFI6i5B/V5h5Ngk3g2WJi3shsQrdi620E |
||||
vfjSs8SJLLKpOncOfASitFCUqwKBgQDKwT2W4w1TVx7N5LSpVbvJJ01MPtoyHg90 |
||||
e0aqCuAycjw6Fwta4OcwHQrfzGoGPSYbvYTW126uZF7HE7Rl+/SCvZcKFfYa6Y/L |
||||
sBeSUW6LGAQpbzwhcYOO6B4RwuX6/BMMruITwtGjUnVfurK4xeyir/Oq7VWCYKMG |
||||
AAy0bpWs4wKBgB6Ak/UJVhQYGepTXYgxLSNc9tB7uh80/njRFLrX3SaJYHh0MQdu |
||||
x33cqa+z7jsAyTfzsqb9sb8v1/ROpdufxaPEDsMsO+SxDiikO1Ju1wKFFPyoN1MQ |
||||
4GHjdIUGuM8pBWl7ml2ogXNJqi1/Y3i8Qmt0H4dHz5cxuB3f7/sjcp3LAoGAA+qr |
||||
t+h27281ZyDN5J+FWyNpONnV+TXfco6XFN3U6uSOCUk8rOq/TIyjEyOtwKUZwVtt |
||||
34CV4MSLmCjnSTkOxh/HdShrcqWkY3jpW6g7DHDQU8SUUskQk4gkXI95RdnsvEf8 |
||||
kgknZ5JGNi0zGqKoKZRgjqK7DiOzwn/pvuqL9aUCgYEAzJVZIOW5fBmyZgA3VrCd |
||||
TUl84gldhg9bcqOUmPYOQdOlLx2gZeLqVWi2Lni66h8gz7Vka4OQGtjgULx96ggL |
||||
aV9ZHMSWXYxWj7dpF2QrM72vlybGs1VKCf/j/CGWJAzE1t5Uj/TAShtO3egS/4bk |
||||
dsTO2NlRDbN+Ty/TSN36l6o= |
||||
-----END PRIVATE KEY----- |
Loading…
Reference in new issue