LIVE_YE 1 year ago
parent
commit
848e81e0f3

+ 1 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/BomanReservatServiceImpl.java

@@ -104,7 +104,7 @@ public class BomanReservatServiceImpl implements IBomanReservatService
     public AjaxResult examine(BomanReservat bomanReservat) {
     public AjaxResult examine(BomanReservat bomanReservat) {
         BomanReservat reservat = bomanReservatMapper.selectBomanReservatByReservatId(bomanReservat.getReservatId());
         BomanReservat reservat = bomanReservatMapper.selectBomanReservatByReservatId(bomanReservat.getReservatId());
 
 
-        if("Y".equals(reservat.getIsReception()) && StringUtils.isEmpty(reservat.getReceptionName())){
+        if("3".equals(bomanReservat.getVisitType()) && "Y".equals(reservat.getIsReception()) && StringUtils.isEmpty(reservat.getReceptionName())){
             return AjaxResult.error("请先分配接待人员");
             return AjaxResult.error("请先分配接待人员");
         }
         }
         bomanReservat.setUpdateTime(DateUtils.getNowDate());
         bomanReservat.setUpdateTime(DateUtils.getNowDate());