| | |
| | | o.id, o.code, o.userId, o.driverId, o.`source`, o.agentId, o.branchOfficeId, o.startTime, o.startAddress, o.startLat, o.startLng, o.endAddress, o.endLat, o.endLng, |
| | | o.boardingTime, o.getoffTime, o.estimatedPrice, o.orderMoney, o.payMoney, o.discountedPrice, o.couponId, o.payType, o.payTime, o.`state`, o.status, o.createTime, |
| | | o.startDistance,o.startPrice,o.overDriveDistance,o.overDrivePrice,o.longDistance,o.longDistancePrice,o.overLongDistance,o.overLongDistancePrice, |
| | | o.waitTime,o.waitTimePrice,o.outWaitTime,o.outWaitTimePrice,o.badWeatherDistance,o.badWeatherPrice,o.overBadWeatherDistance,o.overBadWeatherPrice,a.nickname AS userName, |
| | | a.phone AS userPhone,a.cancelCount,a.status AS userStatus,d.name AS driverName,d.phone AS driverPhone |
| | | o.waitTime,o.waitTimePrice,o.outWaitTime,o.outWaitTimePrice,o.badWeatherDistance,o.badWeatherPrice,o.overBadWeatherDistance,o.overBadWeatherPrice, |
| | | o.userPhone,o.userName,a.cancelCount,a.status AS userStatus,d.name AS driverName,d.phone AS driverPhone |
| | | </sql> |
| | | |
| | | <sql id="Base_Column_Server_Order"> |
| | |
| | | o.boardingTime, o.getoffTime, o.estimatedPrice, o.orderMoney, o.payMoney, o.discountedPrice, o.couponId, o.payType, o.payTime, o.`state`, o.status, o.createTime, |
| | | o.startDistance,o.startPrice,o.overDriveDistance,o.overDrivePrice,o.longDistance,o.longDistancePrice,o.overLongDistance,o.overLongDistancePrice, |
| | | o.waitTime,o.waitTimePrice,o.outWaitTime,o.outWaitTimePrice,o.badWeatherDistance,o.badWeatherPrice,o.overBadWeatherDistance,o.overBadWeatherPrice, |
| | | d.name AS driverName,d.phone AS driverPhone |
| | | o.userPhone,o.userName,d.name AS driverName,d.phone AS driverPhone |
| | | </sql> |
| | | |
| | | <select id="getOrderList" resultType="com.stylefeng.guns.modular.system.controller.resp.TOrderResp"> |
| | |
| | | @ApiModelProperty(value = "是否已开票 1是 0否") |
| | | private Integer isInvoice; |
| | | |
| | | @ApiModelProperty(value = "用户手机号") |
| | | private String userPhone; |
| | | |
| | | @ApiModelProperty(value = "用户姓名") |
| | | private String userName; |
| | | |
| | | public String getUserPhone() { |
| | | return userPhone; |
| | | } |
| | | |
| | | public void setUserPhone(String userPhone) { |
| | | this.userPhone = userPhone; |
| | | } |
| | | |
| | | public String getUserName() { |
| | | return userName; |
| | | } |
| | | |
| | | public void setUserName(String userName) { |
| | | this.userName = userName; |
| | | } |
| | | |
| | | public Integer getIsInvoice() { |
| | | return isInvoice; |
| | | } |
| | |
| | | model.addAttribute("discountAmount",tOrder.getDiscountAmount());//折扣金额 |
| | | model.addAttribute("userId",tOrder.getUserId());//用户id |
| | | model.addAttribute("routeRecord",tOrder.getRouteRecord());//行程录音 |
| | | model.addAttribute("userPhone",tOrder.getUserPhone());//用户手机号 |
| | | model.addAttribute("userName",tOrder.getUserName());//用户名称 |
| | | |
| | | // 查询用户 |
| | | TAppUser tAppUser = tAppUserMapper.selectById(tOrder.getUserId()); |
| | | if(Objects.nonNull(tAppUser)){ |
| | | model.addAttribute("userName",tAppUser.getNickname()); |
| | | model.addAttribute("userPhone",tAppUser.getPhone()); |
| | | model.addAttribute("havDiscount",tAppUser.getHavDiscount()); |
| | | if(1 == tAppUser.getHavDiscount()){ |
| | | // 计算9折优惠金额 |
| | |
| | | model.addAttribute("multiply",0); |
| | | } |
| | | }else { |
| | | model.addAttribute("userName",""); |
| | | model.addAttribute("userPhone",""); |
| | | model.addAttribute("havDiscount",""); |
| | | model.addAttribute("havDiscount",0); |
| | | model.addAttribute("multiply",0); |
| | | } |
| | | |
| | |
| | | field: 'rePassword', |
| | | message: '两次密码不一致' |
| | | }, |
| | | regexp: { |
| | | regexp: /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{8,30}/, |
| | | message: '密码中必须包含大小字母、数字、特称字符,至少8个字符,最多30个字符' |
| | | }, |
| | | // regexp: { |
| | | // regexp: /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{8,30}/, |
| | | // message: '密码中必须包含大小字母、数字、特称字符,至少8个字符,最多30个字符' |
| | | // }, |
| | | } |
| | | }, |
| | | rePassword: { |
| | |
| | | field: 'password', |
| | | message: '两次密码不一致' |
| | | }, |
| | | regexp: { |
| | | regexp: /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{8,30}/, |
| | | message: '密码中必须包含大小字母、数字、特称字符,至少8个字符,最多30个字符' |
| | | }, |
| | | // regexp: { |
| | | // regexp: /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{8,30}/, |
| | | // message: '密码中必须包含大小字母、数字、特称字符,至少8个字符,最多30个字符' |
| | | // }, |
| | | } |
| | | } |
| | | } |
| | |
| | | Feng.error("新密码不能和原始密码相同"); |
| | | return |
| | | } |
| | | let patt = /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{8,30}/; |
| | | if(!patt.test(newPwd)){ |
| | | Feng.error("密码中必须包含大小字母、数字、特称字符,至少8个字符,最多30个字符"); |
| | | return |
| | | } |
| | | // let patt = /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{8,30}/; |
| | | // if(!patt.test(newPwd)){ |
| | | // Feng.error("密码中必须包含大小字母、数字、特称字符,至少8个字符,最多30个字符"); |
| | | // return |
| | | // } |
| | | var ajax = new $ax(Feng.ctxPath + "/mgr/changePwd", function (data) { |
| | | Feng.success("修改成功!"); |
| | | }, function (data) { |