|
|
@@ -144,7 +144,7 @@ public class DispatchServiceImpl implements DispatchService {
|
|
|
if (!O_PENDING.equals(order.getStatus())) {
|
|
|
return Result.error("仅待接单工单可指派");
|
|
|
}
|
|
|
- // 资质闸口:PromotionService.unlockCheck 接线(profile.status=approved 且 auth_level 已认证)
|
|
|
+ // 资质闸口:PromotionService.unlockCheck 接线(profile.status ∈ {active,approved} 且 auth_level 已认证)
|
|
|
Result<Map<String, Object>> gate = promotionService.unlockCheck(workerId, serviceTypeBody(body.get("serviceType")));
|
|
|
String gateMsg = gateData(gate, "allowed");
|
|
|
if (!"true".equals(gateMsg)) {
|
|
|
@@ -330,7 +330,8 @@ public class DispatchServiceImpl implements DispatchService {
|
|
|
new LambdaQueryWrapper<TrainPractitionerProfile>()
|
|
|
.eq(TrainPractitionerProfile::getUserId, m.getUserId())
|
|
|
.last("LIMIT 1"));
|
|
|
- if (p == null || p.getStatus() == null || !"approved".equals(p.getStatus())) {
|
|
|
+ if (p == null || p.getStatus() == null
|
|
|
+ || (!"active".equals(p.getStatus()) && !"approved".equals(p.getStatus()))) {
|
|
|
continue; // 只有资质生效(档案 approved)者可派
|
|
|
}
|
|
|
TrainUser u = trainUserMapper.selectById(m.getUserId());
|