| | |
| | | <if test="record.orderType != null"> |
| | | and a.order_type=#{record.orderType} |
| | | </if> |
| | | <if test="record.allStatus == 2"> |
| | | and a.status <![CDATA[<= ]]> 4 |
| | | </if> |
| | | <if test="record.allStatus == 3"> |
| | | and a.status <![CDATA[>= ]]> 4 |
| | | </if> |
| | | </where> |
| | | order by a.created_time desc |
| | | </select> |
| | |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <select id="selectCountByCreateTimeAndMemberId" resultType="java.lang.Integer"> |
| | | select |
| | | count(a.id) |
| | | from mall_order_info a |
| | | where |
| | | date_format(a.CREATED_TIME, '%Y-%m-%d') = #{createdTime} |
| | | and a.member_id = #{memberId} |
| | | </select> |
| | | </mapper> |