parent
5822cbc520
commit
a4481c6c0e
@ -0,0 +1,28 @@
|
|||||||
|
package au.com.royalpay.payment.manage.mappers.system;
|
||||||
|
|
||||||
|
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;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by yishuqian on 06/03/2017.
|
||||||
|
*/
|
||||||
|
@AutoMapper(tablename = "client_authfile_compliance", pkName = "compliance_id")
|
||||||
|
public interface ClientComplianceCompanyMapper {
|
||||||
|
@AutoSql(type = SqlType.INSERT)
|
||||||
|
void save(JSONObject partner);
|
||||||
|
|
||||||
|
@AutoSql(type = SqlType.UPDATE)
|
||||||
|
void update(JSONObject partner);
|
||||||
|
|
||||||
|
|
||||||
|
@AutoSql(type = SqlType.SELECT)
|
||||||
|
JSONObject findFileByClientId(@Param("client_id") int client_id);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package au.com.royalpay.payment.manage.mappers.system;
|
||||||
|
|
||||||
|
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;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by yishuqian on 06/03/2017.
|
||||||
|
*/
|
||||||
|
@AutoMapper(tablename = "client_authfile_compliance_detail", pkName = "file_detial_id")
|
||||||
|
public interface ClientComplianceFilesMapper {
|
||||||
|
@AutoSql(type = SqlType.INSERT)
|
||||||
|
void save(JSONObject partner);
|
||||||
|
|
||||||
|
@AutoSql(type = SqlType.UPDATE)
|
||||||
|
void update(JSONObject partner);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="au.com.royalpay.payment.manage.mappers.system.ClientComplianceCompanyMapper">
|
||||||
|
<select id="findFileByClientAndType" resultType="com.alibaba.fastjson.JSONObject">
|
||||||
|
select * from sys_files
|
||||||
|
where client_id = #{client_id}
|
||||||
|
and file_name = #{file_name}
|
||||||
|
and status = 1
|
||||||
|
and is_valid = 1
|
||||||
|
order by last_update_date desc
|
||||||
|
</select>
|
||||||
|
<select id="deleteByClientAndType" resultType="com.alibaba.fastjson.JSONObject">
|
||||||
|
update from sys_files set is_valid = 0
|
||||||
|
where client_id = #{client_id}
|
||||||
|
and file_id = #{file_id}
|
||||||
|
</select>
|
||||||
|
<update id="confirmAgreeFile">
|
||||||
|
update sys_files
|
||||||
|
set state = 2
|
||||||
|
where file_name = 'source_agree_file'
|
||||||
|
and client_id = #{client_id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="updateByFileId">
|
||||||
|
update sys_files
|
||||||
|
set is_valid = 0
|
||||||
|
where file_id = #{file_id}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="au.com.royalpay.payment.manage.mappers.system.ClientComplianceFilesMapper">
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in new issue