|
@@ -34,6 +34,7 @@
|
|
|
<result column="album_price" property="albumPrice" jdbcType="DECIMAL"/>
|
|
<result column="album_price" property="albumPrice" jdbcType="DECIMAL"/>
|
|
|
<result column="album_quantity" property="albumQuantity" jdbcType="INTEGER"/>
|
|
<result column="album_quantity" property="albumQuantity" jdbcType="INTEGER"/>
|
|
|
<result column="order_name" property="orderName" jdbcType="VARCHAR"/>
|
|
<result column="order_name" property="orderName" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="recycle_flag" property="recycleFlag" jdbcType="CHAR"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
@@ -100,6 +101,7 @@
|
|
|
album_quantity,
|
|
album_quantity,
|
|
|
|
|
|
|
|
order_name,
|
|
order_name,
|
|
|
|
|
+ recycle_flag,
|
|
|
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
</sql>
|
|
</sql>
|
|
@@ -213,6 +215,9 @@
|
|
|
<if test="orderName!= null">
|
|
<if test="orderName!= null">
|
|
|
order_name,
|
|
order_name,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="recycleFlag!= null">
|
|
|
|
|
+ recycle_flag,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -311,6 +316,9 @@
|
|
|
<if test="orderName != null">
|
|
<if test="orderName != null">
|
|
|
#{orderName,jdbcType=VARCHAR},
|
|
#{orderName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="recycleFlag != null">
|
|
|
|
|
+ #{recycleFlag,jdbcType=CHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ClientOrder">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ClientOrder">
|
|
@@ -412,6 +420,9 @@
|
|
|
<if test="orderName != null">
|
|
<if test="orderName != null">
|
|
|
order_name= #{orderName,jdbcType=VARCHAR},
|
|
order_name= #{orderName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="recycleFlag != null">
|
|
|
|
|
+ recycle_flag= #{recycleFlag,jdbcType=CHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where
|
|
where
|
|
|
<if test="id != null and !"".equals(id)">
|
|
<if test="id != null and !"".equals(id)">
|
|
@@ -529,11 +540,22 @@
|
|
|
<if test="record.orderName != null and !"".equals(record.orderName)">
|
|
<if test="record.orderName != null and !"".equals(record.orderName)">
|
|
|
and order_name = #{record.orderName}
|
|
and order_name = #{record.orderName}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.recycleFlag != null and !"".equals(record.recycleFlag)">
|
|
|
|
|
+ and recycle_flag = #{record.recycleFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
|
|
|
<if test="record.statusStr != null and !"".equals(record.statusStr)">
|
|
<if test="record.statusStr != null and !"".equals(record.statusStr)">
|
|
|
and status_flag in (${record.statusStr})
|
|
and status_flag in (${record.statusStr})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="record.searchBeginTime != null and !"".equals(record.searchBeginTime)">
|
|
|
|
|
+ and create_time <![CDATA[ >= ]]> #{record.searchBeginTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.searchEndTime != null and !"".equals(record.searchEndTime)">
|
|
|
|
|
+ and create_time <![CDATA[ <= ]]> #{record.searchEndTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
OR order_code LIKE concat('%',#{record.searchKey},'%')
|
|
OR order_code LIKE concat('%',#{record.searchKey},'%')
|
|
@@ -706,6 +728,18 @@
|
|
|
and status_flag in (${record.statusStr})
|
|
and status_flag in (${record.statusStr})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="record.recycleFlag != null and !"".equals(record.recycleFlag)">
|
|
|
|
|
+ and recycle_flag = #{record.recycleFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="record.searchBeginTime != null and !"".equals(record.searchBeginTime)">
|
|
|
|
|
+ and create_time <![CDATA[ >= ]]> #{record.searchBeginTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.searchEndTime != null and !"".equals(record.searchEndTime)">
|
|
|
|
|
+ and create_time <![CDATA[ <= ]]> #{record.searchEndTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
OR order_code LIKE concat('%',#{record.searchKey},'%')
|
|
OR order_code LIKE concat('%',#{record.searchKey},'%')
|
|
@@ -878,6 +912,17 @@
|
|
|
and status_flag in (${statusStr})
|
|
and status_flag in (${statusStr})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="recycleFlag != null and !"".equals(recycleFlag)">
|
|
|
|
|
+ and recycle_flag = #{recycleFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="searchBeginTime != null and !"".equals(searchBeginTime)">
|
|
|
|
|
+ and create_time <![CDATA[ >= ]]> #{searchBeginTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="searchEndTime != null and !"".equals(searchEndTime)">
|
|
|
|
|
+ and create_time <![CDATA[ <= ]]> #{searchEndTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
OR order_code LIKE concat('%',#{searchKey},'%')
|
|
OR order_code LIKE concat('%',#{searchKey},'%')
|
|
@@ -1041,6 +1086,10 @@
|
|
|
and order_name = #{orderName}
|
|
and order_name = #{orderName}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="recycleFlag != null and !"".equals(recycleFlag)">
|
|
|
|
|
+ and recycle_flag = #{recycleFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
</where>
|
|
</where>
|
|
|
LIMIT 1
|
|
LIMIT 1
|
|
|
</select>
|
|
</select>
|