fanzherong_v 2 달 전
부모
커밋
faff5d602e

+ 3 - 0
snowy-admin-web/src/views/biz/bizappointmentrecord/detail.vue

@@ -60,6 +60,9 @@
 						<a-image :width="200" :src="item.url" />
 					</div>
 				</a-descriptions-item>
+				<a-descriptions-item label="签收审核" :span="4" v-if="formData.auditSign!=null && formData.auditSign!=''">
+					<a-image :width="200" :src="formData.auditSign" />
+				</a-descriptions-item>
 			</a-descriptions>
 		</a-form>
 	</xn-form-container>

+ 8 - 2
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/record/service/impl/BizRecordServiceImpl.java

@@ -591,8 +591,14 @@ public class BizRecordServiceImpl extends ServiceImpl<BizRecordMapper, BizRecord
         //修改预约记录状态
         BizAppointmentRecord appointmentRecord = bizAppointmentRecordService.getById(bizRecord.getAppointmentId());
         if(ObjectUtil.isNotNull(appointmentRecord)){
-            //司机签名后修改为可入场状态
-            appointmentRecord.setStatus("9");
+            BizConfig bizConfig = bizConfigService.getOne(new QueryWrapper<BizConfig>().lambda().last("limit 1"));
+            if(StringUtils.equals(bizConfig.getAccessControlSwitch(),"1")){
+                //开启门禁校验
+                //司机签名后修改为可入场状态
+                appointmentRecord.setStatus("9");
+            }else{
+                appointmentRecord.setStatus("10");
+            }
             bizAppointmentRecordService.updateById(appointmentRecord);
         }