Browse Source

查找待打卡sop更新

wangliang 1 year ago
parent
commit
6357d89bc2
1 changed files with 0 additions and 25 deletions
  1. 0 25
      sop-business/src/main/resources/mapper/TBSopInfoMapper.xml

+ 0 - 25
sop-business/src/main/resources/mapper/TBSopInfoMapper.xml

@@ -214,35 +214,10 @@
         join t_f_flow_approve tffa on tffa.flow_id = tfcfe.flow_id
         join t_b_crm_detail tbcd on tbcd.sop_no = tfcfe.code
         join t_b_user_archives_allocation tbuaa on tbuaa.crm_detail_id = tbcd.id
-        --         where t.status = 'DRAFT' and (tffa.status in ('START', 'DRAFT', 'AUDITING', 'REJECT', 'CANCEL') or (tffa.status = 'FINISH' and (t.datediff <![CDATA[ >= ]]> -1 and t.datediff <![CDATA[ <= ]]> 0)))
         where tbuaa.sop_role_type = 'ENGINEER' and (tffa.status in ('START', 'DRAFT', 'AUDITING', 'REJECT', 'CANCEL') or (tffa.status = 'FINISH' and (t.datediff <![CDATA[ >= ]]> -1 and t.datediff <![CDATA[ <= ]]> 0)))
     </select>
 
     <select id="findFlowByServiceId" resultType="com.qmth.sop.business.bean.result.SopInfoResult">
-<!--        select-->
-<!--            tbsi.id,-->
-<!--            tbsi.sop_no as sopNo,-->
-<!--            tbsi.crm_no as crmNo,-->
-<!--            tbc.name as crmName,-->
-<!--            sc.name as customName,-->
-<!--            sc.type as customType,-->
-<!--            sc.id as customId,-->
-<!--            tbsi.service_id as serviceId,-->
-<!--            tbs.name as serviceName-->
-<!--        from-->
-<!--            t_b_sop_info tbsi-->
-<!--            left join t_b_crm tbc on tbc.crm_no = tbsi.crm_no-->
-<!--            left join sys_custom sc on sc.id = tbsi.custom_id-->
-<!--            left join t_b_service tbs on tbs.id = tbsi.service_id-->
-<!--            left join t_f_custom_flow_entity tfcfe on tfcfe.code = tbsi.sop_no-->
-<!--            left join t_f_flow_approve tffa on tffa.flow_id = tfcfe.flow_id-->
-<!--        <where>-->
-<!--            <if test="serviceId != null and serviceId != ''">-->
-<!--                and tbsi.service_id = #{serviceId}-->
-<!--            </if>-->
-<!--                and tbsi.status = 'DRAFT'-->
-<!--                and tffa.status not in('END')-->
-<!--        </where>-->
         select t.* from(SELECT
         tbsi.id,
         tbsi.sop_no as sopNo,