|
@@ -1,13 +1,13 @@
|
|
|
<?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.usky.dxtop.dxtop.mapper.DishMapper">
|
|
|
+<mapper namespace="com.usky.dxtop.mapper.DishMapper">
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.usky.dxtop.model.Dish">
|
|
|
<id column="seq" property="seq" />
|
|
|
<result column="create_time" property="createTime" />
|
|
|
<result column="card" property="card" />
|
|
|
- <result column="crad_no" property="cradNo" />
|
|
|
+ <result column="card_no" property="cardNo" />
|
|
|
<result column="type" property="type" />
|
|
|
<result column="term" property="term" />
|
|
|
<result column="shop" property="shop" />
|
|
@@ -19,13 +19,22 @@
|
|
|
<result column="part" property="part" />
|
|
|
<result column="name" property="name" />
|
|
|
<result column="mob" property="mob" />
|
|
|
- <result column="p_id" property="pId" />
|
|
|
- <result column="p_name" property="pName" />
|
|
|
- <result column="p_price" property="pPrice" />
|
|
|
- <result column="p_amt" property="pAmt" />
|
|
|
- <result column="payment_type" property="paymentType" />
|
|
|
- <result column="payment_amt" property="paymentAmt" />
|
|
|
- <result column="payment_balance" property="paymentBalance" />
|
|
|
</resultMap>
|
|
|
+ <select id="page" resultType="com.usky.dxtop.model.Dish">
|
|
|
+ select d.seq,d.card,d.card_no,d.type,d.term,d.shop,d.term_name,d.shop_name,d.amt,d.balance,d.account,
|
|
|
+ d.part,d.name,d.mob
|
|
|
+ from dish as d
|
|
|
+ <where>
|
|
|
+ <if test="startTime != null and endTime != null">
|
|
|
+ and create_time between #{startTime}
|
|
|
+ and #{endTime}
|
|
|
+ </if>
|
|
|
+ <if test="userName !=null and userName !=''">
|
|
|
+ and user_name like CONCAT('%',#{userName},'%')
|
|
|
+ or user_account like CONCAT('%',#{userName},'%')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by create_time desc
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|