Pārlūkot izejas kodu

现场人员先结束SOP再打卡,这时可以签退

wangliang 1 gadu atpakaļ
vecāks
revīzija
3ffafc5f6f

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

@@ -181,7 +181,7 @@
             <if test="crmNo != null and crmNo != ''">
                 and tbsi.crm_no = #{crmNo}
             </if>
-                and tbsi.status = 'START' and tffa.status not in('FINISH', 'END')
+                and tbsi.status = 'START' and (tffa.status in ('START','DRAFT','AUDITING','REJECT','CANCEL') or (tffa.status = 'FINISH' and DATE_FORMAT(FROM_UNIXTIME(tffa.update_time  / 1000), '%Y-%m-%d') = CURDATE()))
         </where>
     </select>