中继服务
parent
ea4f32b0e1
commit
af338e94a0
@ -0,0 +1,14 @@
|
|||||||
|
package com.glxp.sale.admin.annotation;
|
||||||
|
|
||||||
|
import java.lang.annotation.Documented;
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
|
@Target(ElementType.METHOD)
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Documented
|
||||||
|
public @interface Log {
|
||||||
|
String value() default "";
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
<?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="com.glxp.sale.admin.idc.dao.DbDao">
|
||||||
|
|
||||||
|
<select id="get" resultType="java.util.Map">
|
||||||
|
${sql}
|
||||||
|
</select>
|
||||||
|
<select id="list" resultType="java.util.Map">
|
||||||
|
${sql}
|
||||||
|
<if test="sort != null and sort.trim() != ''">
|
||||||
|
order by ${sort} <if test="order !=null and order !=''">${order}</if>
|
||||||
|
</if>
|
||||||
|
<if test="page != null and limit != null">
|
||||||
|
limit #{page}, #{limit}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="count" resultType="int">
|
||||||
|
${sql}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue