| | |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | id, |
| | | proj_use_id, |
| | | surplus_count, |
| | | is_over, |
| | |
| | | now(), |
| | | #{updateBy}, |
| | | now(), |
| | | #{id}, |
| | | #{projUseId}, |
| | | #{surplusCount}, |
| | | #{isOver}, |
| | |
| | | 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> |