同步代码
This commit is contained in:
parent
1e1fc1a394
commit
b50161853c
|
@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import static com.chint.infrastructure.constant.CommonMessageConstant.SUCCESS;
|
||||
import static com.chint.infrastructure.constant.FSSCConstant.FSSC_LOGIN_PATH;
|
||||
import static com.chint.infrastructure.constant.FSSCConstant.FSSC_LOGIN_PATH_APPROVAL;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/fssc")
|
||||
|
@ -24,9 +24,8 @@ public class FSSCController {
|
|||
@PostMapping("/login")
|
||||
public Result<LoginResponse> loginToFSSC() {
|
||||
User currentUser = BaseContext.getCurrentUser();
|
||||
return Result.Success(SUCCESS, LoginResponse.success(FSSCUrl +FSSC_LOGIN_PATH + currentUser.getEmployeeNo().toString()));
|
||||
return Result.Success(SUCCESS, LoginResponse.success(FSSCUrl + FSSC_LOGIN_PATH_APPROVAL + currentUser.getEmployeeNo().toString()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -36,8 +36,8 @@ public class CTripEstimate implements AmountEstimate {
|
|||
Integer legType = leg.getLegType();
|
||||
return switch (legType) {
|
||||
case LEG_TYPE_TRAIN -> queryTrainPrice(leg);
|
||||
case LEG_TYPE_AIRPLANE -> queryTrainPrice(leg);
|
||||
case LEG_TYPE_HOTEL -> queryTrainPrice(leg);
|
||||
case LEG_TYPE_AIRPLANE -> queryFlightPrice(leg);
|
||||
case LEG_TYPE_HOTEL -> queryHotelPrice(leg);
|
||||
default -> throw new IllegalStateException("Unexpected value: " + legType);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,4 +10,5 @@ public class FSSCConstant {
|
|||
public static final String TRIP_CALLBACK_TRAIN_TYPE = "Train";//出租车
|
||||
public static final String TRIP_CALLBACK_OTHER_TYPE = "Other";//其他
|
||||
public static final String FSSC_LOGIN_PATH = "/ecs-console/api/rest/loginWeaver?loginName=";//申请单类型
|
||||
public static final String FSSC_LOGIN_PATH_APPROVAL = "/ecs-console/api/rest/pushNewOA?billDefineId=fcc76666fb1211e98e2019f4db5548fd&loginName=";//申请单类型
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue