| | |
| | | <if test="dto.orderNo != null and dto.orderNo != ''"> |
| | | and cbcoot.order_no = #{dto.orderNo} |
| | | </if> |
| | | <if test="dto.userId != null"> |
| | | and cbcoot.user_id = #{dto.userId} |
| | | </if> |
| | | <if test="dto.status != null"> |
| | | and cbcoot.status = #{dto.status} |
| | | </if> |
| | |
| | | order by cbcoot.create_at desc |
| | | </select> |
| | | |
| | | <select id="getUserCollageDetail" resultType="map"> |
| | | SELECT |
| | | count( id ) as ktCount, |
| | | (select count(id) from com_battery_commodity_order_collage_team_people where team_id = #{teamId} and user_id = #{userId} and `type` = 2) as ptCount |
| | | FROM |
| | | com_battery_commodity_order_collage_team_people |
| | | WHERE |
| | | team_id = #{teamId} AND head_user_id = #{userId} |
| | | </select> |
| | | |
| | | </mapper> |
| | | |