| | |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | id, |
| | | proj_use_id, |
| | | surplus_count, |
| | | is_over, |
| | |
| | | now(), |
| | | #{updateBy}, |
| | | now(), |
| | | #{id}, |
| | | #{projUseId}, |
| | | #{surplusCount}, |
| | | #{isOver}, |
| | |
| | | a.type, |
| | | a.SOURCE, |
| | | e.ORDER_NO, |
| | | a.remark |
| | | a.remark, |
| | | s.SHOP_NAME |
| | | from sys_proj_use a |
| | | left join shopping_goods b on a.proj_id = b.id |
| | | left join sys_vip_info c on c.ID = a.VIP_ID |
| | | left join sys_shop_info s on c.SHOP_ID=s.id |
| | | left join sys_order_item d on d.id = a.ORDER_ITEM_ID |
| | | left join sys_order e on e.id = d.ORDER_ID |
| | | left join shopping_goods_category f on f.id = b.cate_id |
| | | |
| | | |
| | | |
| | | <where> |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectTaocanCountForCourseAndInfinite" resultType="java.lang.Integer"> |
| | | select count(1) from sys_proj_use |
| | | where taocan_id=#{taocanId} and vip_id=#{vipId} |
| | | </select> |
| | | <select id="selectUseCountByOrderItemId" resultType="java.lang.Integer"> |
| | | SELECT count(*) |
| | | from sys_beautician_state a |
| | | LEFT JOIN sys_proj_use b on a.puse_id=b.ID |
| | | left join sys_proj_services c on a.SERVICES_ID=c.id |
| | | where b.ORDER_ITEM_ID=#{orderItemId} |
| | | and c.STATE !='预约取消'; |
| | | </select> |
| | | <select id="selectByOrderItemId" resultType="com.matrix.system.hive.bean.SysProjUse"> |
| | | select * from sys_proj_use where ORDER_ITEM_ID =#{orderItemId} |
| | | </select> |
| | | </mapper> |