From 5e43281d1d7a103c8f211ae5c86df7c89466e13b Mon Sep 17 00:00:00 2001 From: jyy <935090232@qq.com> Date: Tue, 26 Jan 2021 14:16:59 +0800 Subject: [PATCH] Merge branch 'api' into hive2.0 --- zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml | 43 +++++++++++++++++++++++++++++++++++++------ 1 files changed, 37 insertions(+), 6 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml index f5b7550..01462d3 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml @@ -40,6 +40,8 @@ <result property="companyId" column="company_id"/> <result property="comment" column="comment"/> <result property="reply" column="reply"/> + <result property="overtimeNotice" column="overtime_notice"/> + <result property="beautiName" column="beautiName"/> @@ -47,6 +49,7 @@ <result property="shopName" column="shopName"/> <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> @@ -91,7 +94,8 @@ consume_time, company_id, comment, - reply + reply, + overtime_notice ) VALUES ( #{id}, @@ -128,7 +132,8 @@ #{consumeTime}, #{companyId}, #{comment}, - #{reply} + #{reply}, + #{overtimeNotice} ) </insert> @@ -137,6 +142,18 @@ <update id="updateOrderTime"> UPDATE sys_proj_services set CREATE_TIME=#{createTime} WHERE id=#{id} </update> + + <!-- 设置服务单为已通知 --> + <update id="updateNoticeTimes" > + UPDATE sys_proj_services set overtime_notice=1 + where ID in + <foreach collection="list" index="index" item="item" open="(" + separator="," close=")"> + #{item} + </foreach> + </update> + + <update id="update"> UPDATE sys_proj_services @@ -241,12 +258,13 @@ <if test="comment != null "> comment = #{comment} </if> + <if test="overtimeNotice != null "> + overtime_notice = #{overtimeNotice} + </if> </set> WHERE id=#{id} </update> - <update id="comment"> - </update> <!-- 批量删除 --> <delete id="deleteByIds" parameterType="java.util.List"> @@ -410,7 +428,21 @@ left join sys_beautician_state c on a.id=c.SERVICES_ID where a.ID=#{id} </select> - + + <select id="selectNeedNoticeService" resultMap="SysProjServicesMap"> + select + a.id, + a.company_id, + b.VIP_Name + FROM sys_proj_services a + LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID + where a.YY_TIME > now() + and DATE_ADD(now(),INTERVAL 1 HOUR) > a.YY_TIME + and overtime_notice is null + </select> + + + <!-- 根据对象查询--> <select id="selectByModel" resultMap="SysProjServicesMap"> select distinct @@ -664,7 +696,6 @@ left join shopping_goods m on g.proj_id=m.id where a.id=#{id} </select> - </mapper> -- Gitblit v1.9.1