From 0567dc9b0a82124d7b85733cfdbe8f40ab037400 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Tue, 10 Apr 2018 14:08:05 +0800 Subject: [PATCH] tmp --- .../mappers/system/ClientConfigMapper.java | 30 +++++++++++++++++++ .../mappers/system/ClientsConfigMapper.java | 27 +++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientConfigMapper.java create mode 100644 src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientsConfigMapper.java diff --git a/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientConfigMapper.java b/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientConfigMapper.java new file mode 100644 index 000000000..31934d5b1 --- /dev/null +++ b/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientConfigMapper.java @@ -0,0 +1,30 @@ +package au.com.royalpay.payment.manage.mappers.system; + +import java.util.Date; +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import com.alibaba.fastjson.JSONObject; +import com.github.miemiedev.mybatis.paginator.domain.PageBounds; +import com.github.miemiedev.mybatis.paginator.domain.PageList; + +import cn.yixblog.support.mybatis.autosql.annotations.AdvanceSelect; +import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper; +import cn.yixblog.support.mybatis.autosql.annotations.AutoSql; +import cn.yixblog.support.mybatis.autosql.annotations.SqlType; + +/** + * Created by yixian on 2016-06-25. + */ +@AutoMapper(tablename = "sys_clients_config", pkName = "client_id") +public interface ClientConfigMapper { + @AutoSql(type = SqlType.INSERT) + void save(JSONObject partner); + + @AutoSql(type = SqlType.UPDATE) + int update(JSONObject partner); + + @AutoSql(type = SqlType.SELECT) + JSONObject find(@Param("client_id") int client_id); +} diff --git a/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientsConfigMapper.java b/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientsConfigMapper.java new file mode 100644 index 000000000..2cef074d9 --- /dev/null +++ b/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientsConfigMapper.java @@ -0,0 +1,27 @@ +package au.com.royalpay.payment.manage.mappers.system; + +import java.util.Date; +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import com.alibaba.fastjson.JSONObject; +import com.github.miemiedev.mybatis.paginator.domain.PageBounds; +import com.github.miemiedev.mybatis.paginator.domain.PageList; + +import cn.yixblog.support.mybatis.autosql.annotations.AdvanceSelect; +import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper; +import cn.yixblog.support.mybatis.autosql.annotations.AutoSql; +import cn.yixblog.support.mybatis.autosql.annotations.SqlType; + +/** + * Created by yixian on 2016-06-25. + */ +@AutoMapper(tablename = "sys_clients_config", pkName = "client_id") +public interface ClientConfigMapper { + @AutoSql(type = SqlType.INSERT) + void save(JSONObject partner); + + @AutoSql(type = SqlType.UPDATE) + int update(JSONObject partner); +}