| | |
| | | Map<String, Object> map = driverService.queryPhone(code); |
| | | return ResultUtil.success(map); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | log.error("获取忘记密码页面的电话报错:", e); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("phone", ""); |
| | | return ResultUtil.success(map); |
| | | } |
| | | } |
| | | |
| | |
| | | return map; |
| | | } |
| | | OpenCity openCity = openCityService.openCity1(code); |
| | | Phone phone = phoneMapper.queryInfo(openCity.getId(), 2, 2); |
| | | map.put("phone", null != phone ? phone.getPhone() : ""); |
| | | if(Objects.nonNull(openCity)) { |
| | | Phone phone = phoneMapper.queryInfo(openCity.getId(), 2, 2); |
| | | map.put("phone", null != phone ? phone.getPhone() : ""); |
| | | } else { |
| | | map.put("phone", ""); |
| | | } |
| | | return map; |
| | | } |
| | | |
| | |
| | | import com.stylefeng.guns.modular.system.model.*; |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.util.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.poi.ss.usermodel.Cell; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | | import org.apache.poi.ss.usermodel.Sheet; |
| | |
| | | * @author fengshuonan |
| | | * @Date 2020-06-04 17:35:28 |
| | | */ |
| | | @Slf4j |
| | | @Controller |
| | | @RequestMapping("/tDriver") |
| | | public class TDriverController extends BaseController { |
| | |
| | | return new ErrorTip(500, "司机姓名和身份证号不匹配【" + drivers.stream().collect(Collectors.joining(",")).toString() + "】"); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("司机导入报错:", e); |
| | | e.printStackTrace(); |
| | | } |
| | | return SUCCESS_TIP; |
| | |
| | | return ResultUtil.error("订单已完成支付,不允许重复支付", ""); |
| | | } |
| | | if (orderTaxi.getState() != 7) { |
| | | return ResultUtil.error("订单不在待支付状态,不允许支付", ""); |
| | | return ResultUtil.error("等待司机确认附加费用", ""); |
| | | } |
| | | if (Integer.valueOf(1).equals(orderTaxi.getPaymentMode()) && Integer.valueOf(4).equals(orderTaxi.getPrepayStage())) { |
| | | return ResultUtil.error("订单退款处理中,请等待退款完成", ""); |
| | |
| | | return ResultUtil.error("订单已完成支付,不允许重复支付", ""); |
| | | } |
| | | if (orderTaxi.getState() != 7) { |
| | | return ResultUtil.error("订单不在待支付状态,不允许支付", ""); |
| | | return ResultUtil.error("等待司机确认附加费用", ""); |
| | | } |
| | | if (Integer.valueOf(1).equals(orderTaxi.getPaymentMode()) && Integer.valueOf(4).equals(orderTaxi.getPrepayStage())) { |
| | | return ResultUtil.error("订单退款处理中,请等待退款完成", ""); |