| | |
| | | <result property="comment" column="comment"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="overtimeNotice" column="overtime_notice"/> |
| | | |
| | | <result property="cashierId" column="cashier_id"/> |
| | | <result property="cashierName" column="cashierName"/> |
| | | |
| | | |
| | | <result property="beautiName" column="beautiName"/> |
| | |
| | | <result property="createStaffName" column="createStaffName"/> |
| | | <result property="bedName" column="bedName"/> |
| | | <result property="vipName" column="VIP_Name"/> |
| | | |
| | | |
| | | <association property="vipInfo" resultMap="com.matrix.system.hive.dao.SysVipInfoDao.SysVipInfoMapSimple" ></association> |
| | | |
| | |
| | | company_id, |
| | | comment, |
| | | reply, |
| | | overtime_notice |
| | | overtime_notice, |
| | | cashier_id |
| | | ) |
| | | VALUES ( |
| | | #{id}, |
| | |
| | | #{companyId}, |
| | | #{comment}, |
| | | #{reply}, |
| | | #{overtimeNotice} |
| | | #{overtimeNotice}, |
| | | #{cashierId} |
| | | ) |
| | | |
| | | </insert> |
| | | |
| | | <!-- 根据id更新 部分更新 --> |
| | | <update id="updateOrderTime"> |
| | | UPDATE sys_proj_services set consume_time=#{consumeTime} WHERE id=#{id} |
| | | UPDATE sys_proj_services set |
| | | consume_time=#{serviceOrderTimeDto.consumeTime}, |
| | | yy_time=#{serviceOrderTimeDto.yyTime}, |
| | | create_time=#{serviceOrderTimeDto.createTime} |
| | | WHERE id=#{serviceOrderTimeDto.id} |
| | | </update> |
| | | |
| | | <!-- 设置服务单为已通知 --> |
| | |
| | | <if test="overtimeNotice != null "> |
| | | overtime_notice = #{overtimeNotice}, |
| | | </if> |
| | | <if test="cashierId != null "> |
| | | cashier_id = #{cashierId}, |
| | | </if> |
| | | </set> |
| | | WHERE id=#{id} |
| | | </update> |
| | |
| | | (select su_name from sys_users f where a.CREATE_STAFF_ID=f.su_id ) as createStaffName, |
| | | (select su_name from sys_users j where a.BEAUTICIAN_ID=j.su_id ) as beautiName, |
| | | (select su_name from sys_users k where a.devision_id=k.su_id ) as plsName, |
| | | (select su_name from sys_users l where a.cashier_id=l.su_id ) as cashierName, |
| | | (select shop_name from sys_shop_info h where a.SHOP_ID=h.ID ) as shopName, |
| | | (select bed_name from sys_bed_info i where a.BED_ID=i.ID ) as bedName |
| | | FROM sys_proj_services a |
| | |
| | | <if test="record.state != null and record.state !='' "> |
| | | and a.STATE = #{record.state} |
| | | </if> |
| | | <if test="record.cashierId != null and record.cashierId !='' "> |
| | | and a.cashier_id = #{record.cashierId} |
| | | </if> |
| | | <if test="record.shopId != null and record.shopId !='' "> |
| | | AND a.SHOP_ID = #{record.shopId} |
| | | </if> |
| | | <if test="record.vipId != null and record.vipId !='' "> |
| | | and a.VIP_ID = #{record.vipId} |
| | | </if> |
| | | <if test="record.isOverTime != null and record.serviceNo !='' "> |
| | | and a.IS_OVERTIME > #{record.isOverTime} |
| | | </if> |
| | | |
| | | <if test="record.serviceNo != null and record.serviceNo !='' "> |
| | | and a.SERVICE_NO like CONCAT('%',#{record.serviceNo},'%') |
| | | </if> |
| | |
| | | and a.STATE = #{record.state} |
| | | </if> |
| | | |
| | | <if test="record.cashierId != null and record.cashierId !='' "> |
| | | and a.cashier_id = #{record.cashierId} |
| | | </if> |
| | | <if test="(record.companyId!=null and record.companyId!='') "> |
| | | and a.company_id = #{record.companyId} |
| | | </if> |
| | |
| | | (select su_name from sys_users f where a.CREATE_STAFF_ID=f.su_id ) as createStaffName, |
| | | (select su_name from sys_users j where a.BEAUTICIAN_ID=j.su_id ) as beautiName, |
| | | (select su_name from sys_users k where a.devision_id=k.su_id ) as plsName, |
| | | (select su_name from sys_users l where a.cashier_id=l.su_id ) as cashierName, |
| | | (select shop_name from sys_shop_info h where a.SHOP_ID=h.ID ) as shopName, |
| | | (select bed_name from sys_bed_info i where a.BED_ID=i.ID ) as bedName |
| | | FROM sys_proj_services a |
| | |
| | | (select su_name from sys_users f where a.CREATE_STAFF_ID=f.su_id ) as createStaffName, |
| | | (select su_name from sys_users j where a.BEAUTICIAN_ID=j.su_id ) as beautiName, |
| | | (select su_name from sys_users k where a.devision_id=k.su_id ) as plsName, |
| | | (select su_name from sys_users l where a.cashier_id=l.su_id ) as cashierName, |
| | | (select shop_name from sys_shop_info h where a.SHOP_ID=h.ID ) as shopName, |
| | | (select bed_name from sys_bed_info i where a.BED_ID=i.ID ) as bedName |
| | | FROM sys_proj_services a |
| | |
| | | <if test="record.state != null and record.state !='' "> |
| | | and a.STATE = #{record.state} |
| | | </if> |
| | | <if test="record.cashierId != null and record.cashierId !='' "> |
| | | and a.cashier_id = #{record.cashierId} |
| | | </if> |
| | | <if test="record.shopId != null and record.shopId !='' "> |
| | | AND a.SHOP_ID = #{record.shopId} |
| | | </if> |