103个文件已修改
1个文件已删除
8个文件已添加
| | |
| | | @ApiImplicitParam(value = "车辆照片", name = "carPhoto", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "保险照片", name = "insurancePhoto", required = false, dataType = "string"), |
| | | @ApiImplicitParam(value = "保险到期时间(yyyy-MM-dd)", name = "commercialInsuranceTime", required = false, dataType = "string"), |
| | | @ApiImplicitParam(value = "人车合影照片", name = "peopleAndCarsPhone", required = false, dataType = "string"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = false, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil addCar(Integer modelId, String color, String licensePlate, Date time, String drivingLicensePhoto, |
| | | String drivingLicenseEndTime, String carPhoto, String insurancePhoto, String commercialInsuranceTime, HttpServletRequest request,Integer id){ |
| | | String drivingLicenseEndTime, String carPhoto, String insurancePhoto, String commercialInsuranceTime, |
| | | String peopleAndCarsPhone, HttpServletRequest request,Integer id){ |
| | | try { |
| | | Integer uid = driverService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return carService.addCar(modelId, color, licensePlate, time, drivingLicensePhoto, drivingLicenseEndTime, carPhoto, insurancePhoto, commercialInsuranceTime, uid,id); |
| | | return carService.addCar(modelId, color, licensePlate, time, drivingLicensePhoto, drivingLicenseEndTime, carPhoto, insurancePhoto |
| | | , commercialInsuranceTime, uid,id, peopleAndCarsPhone); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/driver/editEmail") |
| | | @ApiOperation(value = "个人中心修改邮箱【1.0】", tags = {"司机端-个人中心"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "邮箱", name = "email", required = true, dataType = "string"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil editEmail(String email, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = driverService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | Driver driver = driverService.selectById(uid); |
| | | driver.setEmail(email); |
| | | driverService.updateById(driver); |
| | | return ResultUtil.success(); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 司机注册后完善车辆信息 |
| | | * @param |
| | |
| | | @ApiImplicitParam(value = "车辆照片", name = "carPhoto", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "保险照片", name = "insurancePhoto", required = false, dataType = "string"), |
| | | @ApiImplicitParam(value = "保险到期时间(yyyy-MM-dd)", name = "commercialInsuranceTime", required = false, dataType = "string"), |
| | | @ApiImplicitParam(value = "人车合一照片", name = "peopleAndCarsPhone", required = false, dataType = "string"), |
| | | @ApiImplicitParam(value = "司机id", name = "uid", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "车辆id", name = "carId", required = false, dataType = "int") |
| | | }) |
| | | public ResultUtil addDriverCar(Integer modelId, String color, String licensePlate, Date time, String drivingLicensePhoto, String drivingLicenseEndTime, |
| | | String carPhoto, String insurancePhoto, String commercialInsuranceTime, Integer uid, Integer carId){ |
| | | String carPhoto, String insurancePhoto, String commercialInsuranceTime, Integer uid, Integer carId, String peopleAndCarsPhone){ |
| | | try { |
| | | return carService.addCar(modelId, color, licensePlate, time, drivingLicensePhoto, drivingLicenseEndTime, carPhoto, insurancePhoto, commercialInsuranceTime, uid,carId); |
| | | return carService.addCar(modelId, color, licensePlate, time, drivingLicensePhoto, drivingLicenseEndTime, carPhoto, insurancePhoto, commercialInsuranceTime, uid,carId, peopleAndCarsPhone); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.specialTrain.dao.OrderPrivateCarMapper; |
| | | import com.stylefeng.guns.modular.specialTrain.model.OrderPrivateCar; |
| | | import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService; |
| | |
| | | |
| | | |
| | | //夜间服务处理逻辑 |
| | | Calendar s = Calendar.getInstance(); |
| | | s.setTime(date); |
| | | s.set(Calendar.HOUR_OF_DAY, Integer.valueOf(num16.split(" - ")[0].split(":")[0])); |
| | | s.set(Calendar.MINUTE, Integer.valueOf(num16.split(" - ")[0].split(":")[1])); |
| | | if(ToolUtil.isNotEmpty(num16)){ |
| | | Calendar s = Calendar.getInstance(); |
| | | s.setTime(date); |
| | | s.set(Calendar.HOUR_OF_DAY, Integer.valueOf(num16.split(" - ")[0].split(":")[0])); |
| | | s.set(Calendar.MINUTE, Integer.valueOf(num16.split(" - ")[0].split(":")[1])); |
| | | |
| | | Calendar e = Calendar.getInstance(); |
| | | e.setTime(date); |
| | | e.set(Calendar.HOUR_OF_DAY, Integer.valueOf(num16.split(" - ")[1].split(":")[0])); |
| | | e.set(Calendar.MINUTE, Integer.valueOf(num16.split(" - ")[1].split(":")[1])); |
| | | Calendar e = Calendar.getInstance(); |
| | | e.setTime(date); |
| | | e.set(Calendar.HOUR_OF_DAY, Integer.valueOf(num16.split(" - ")[1].split(":")[0])); |
| | | e.set(Calendar.MINUTE, Integer.valueOf(num16.split(" - ")[1].split(":")[1])); |
| | | |
| | | if(date.getTime() > s.getTimeInMillis() && date.getTime() < e.getTimeInMillis()){ |
| | | if(d > num8.doubleValue() && d <= num9.doubleValue()){ |
| | | yt1 = num20 * (d - num8); |
| | | if(date.getTime() > s.getTimeInMillis() && date.getTime() < e.getTimeInMillis()){ |
| | | if(d > num8.doubleValue() && d <= num9.doubleValue()){ |
| | | yt1 = num20 * (d - num8); |
| | | } |
| | | if(d > num9.doubleValue()){ |
| | | yt1 = num20 * (num9 - num8); |
| | | } |
| | | if(d > num11.doubleValue() && d <= num12.doubleValue()){ |
| | | yt2 = num21 * (d - num11); |
| | | } |
| | | if(d > num12.doubleValue()){ |
| | | yt2 = num21 * (num12 - num11); |
| | | } |
| | | if(d > num14.doubleValue()){ |
| | | yt3 = num22 * (d - num14); |
| | | } |
| | | amount = num17 + (d1 * num18) + (t1 * num19) + (w1 * num7) + yt1 + yt2 + yt3; |
| | | orderPrivateCar.setStartMileage(num2); |
| | | orderPrivateCar.setStartMoney(num17);//起步价 |
| | | orderPrivateCar.setStartDuration((int)(num3.doubleValue())); |
| | | orderPrivateCar.setMileageKilometers(new BigDecimal(d1).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setMileageMoney(new BigDecimal(d1 * num18).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue());//里程费 |
| | | orderPrivateCar.setDuration(new BigDecimal(t1).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setDurationMoney(new BigDecimal(t1 * num19).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue());//时长费 |
| | | orderPrivateCar.setWait(new BigDecimal(w1).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setWaitMoney(new BigDecimal(w1 * num7).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue());//等待费 |
| | | orderPrivateCar.setLongDistance(new BigDecimal((d > num8) ? d - num8 : 0).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setLongDistanceMoney(new BigDecimal(yt1 + yt2 + yt3).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue());//远途费 |
| | | orderPrivateCar.setParkMoney(parkingFee);//停车费 |
| | | orderPrivateCar.setRoadTollMoney(crossingFee);//过路费 |
| | | orderPrivateCar.setRedPacketMoney(0D);//红包抵扣 |
| | | orderPrivateCar.setCouponMoney(0D);//优惠券抵扣 |
| | | orderPrivateCar.setDiscount(0D);//优惠抵扣 |
| | | orderPrivateCar.setPayMoney(0D);//支付金额 |
| | | orderPrivateCar.setOrderMoney(new BigDecimal(amount + parkingFee + crossingFee).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setMoneyType(2); |
| | | orderPrivateCar.setMoneyTime(num16); |
| | | return orderPrivateCar; |
| | | } |
| | | if(d > num9.doubleValue()){ |
| | | yt1 = num20 * (num9 - num8); |
| | | } |
| | | if(d > num11.doubleValue() && d <= num12.doubleValue()){ |
| | | yt2 = num21 * (d - num11); |
| | | } |
| | | if(d > num12.doubleValue()){ |
| | | yt2 = num21 * (num12 - num11); |
| | | } |
| | | if(d > num14.doubleValue()){ |
| | | yt3 = num22 * (d - num14); |
| | | } |
| | | amount = num17 + (d1 * num18) + (t1 * num19) + (w1 * num7) + yt1 + yt2 + yt3; |
| | | orderPrivateCar.setStartMileage(num2); |
| | | orderPrivateCar.setStartMoney(num17);//起步价 |
| | | orderPrivateCar.setStartDuration((int)(num3.doubleValue())); |
| | | orderPrivateCar.setMileageKilometers(new BigDecimal(d1).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setMileageMoney(new BigDecimal(d1 * num18).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue());//里程费 |
| | | orderPrivateCar.setDuration(new BigDecimal(t1).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setDurationMoney(new BigDecimal(t1 * num19).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue());//时长费 |
| | | orderPrivateCar.setWait(new BigDecimal(w1).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setWaitMoney(new BigDecimal(w1 * num7).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue());//等待费 |
| | | orderPrivateCar.setLongDistance(new BigDecimal((d > num8) ? d - num8 : 0).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setLongDistanceMoney(new BigDecimal(yt1 + yt2 + yt3).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue());//远途费 |
| | | orderPrivateCar.setParkMoney(parkingFee);//停车费 |
| | | orderPrivateCar.setRoadTollMoney(crossingFee);//过路费 |
| | | orderPrivateCar.setRedPacketMoney(0D);//红包抵扣 |
| | | orderPrivateCar.setCouponMoney(0D);//优惠券抵扣 |
| | | orderPrivateCar.setDiscount(0D);//优惠抵扣 |
| | | orderPrivateCar.setPayMoney(0D);//支付金额 |
| | | orderPrivateCar.setOrderMoney(new BigDecimal(amount + parkingFee + crossingFee).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue()); |
| | | orderPrivateCar.setMoneyType(2); |
| | | orderPrivateCar.setMoneyTime(num16); |
| | | return orderPrivateCar; |
| | | } |
| | | |
| | | |
| | |
| | | <result column="drivingLicensePhoto" property="drivingLicensePhoto"/> |
| | | <result column="annualInspectionTime" property="annualInspectionTime"/> |
| | | <result column="insurancePhoto" property="insurancePhoto" /> |
| | | <result column="peopleAndCarsPhone" property="peopleAndCarsPhone"/> |
| | | <result column="commercialInsuranceTime" property="commercialInsuranceTime"/> |
| | | <result column="insertTime" property="insertTime"/> |
| | | <result column="state" property="state"/> |
| | |
| | | @TableField("commercialInsuranceTime") |
| | | private Date commercialInsuranceTime; |
| | | /** |
| | | * 人车合影照片 |
| | | */ |
| | | @TableField("peopleAndCarsPhone") |
| | | private String peopleAndCarsPhone; |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @TableField("insertTime") |
| | |
| | | return commercialInsuranceTime; |
| | | } |
| | | |
| | | public String getPeopleAndCarsPhone() { |
| | | return peopleAndCarsPhone; |
| | | } |
| | | |
| | | public void setPeopleAndCarsPhone(String peopleAndCarsPhone) { |
| | | this.peopleAndCarsPhone = peopleAndCarsPhone; |
| | | } |
| | | |
| | | public void setCommercialInsuranceTime(Date commercialInsuranceTime) { |
| | | this.commercialInsuranceTime = commercialInsuranceTime; |
| | | } |
| | |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil addCar(Integer modelId, String color, String licensePlate, Date time, String drivingLicensePhoto, String drivingLicenseEndTime, |
| | | String carPhoto, String insurancePhoto, String commercialInsuranceTime, Integer uid,Integer id) throws Exception; |
| | | String carPhoto, String insurancePhoto, String commercialInsuranceTime, Integer uid,Integer id, String peopleAndCarsPhone) throws Exception; |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public ResultUtil addCar(Integer modelId, String color, String licensePlate, Date time, String drivingLicensePhoto, String drivingLicenseEndTime, |
| | | String carPhoto, String insurancePhoto, String commercialInsuranceTime, Integer uid,Integer id) throws Exception { |
| | | String carPhoto, String insurancePhoto, String commercialInsuranceTime, Integer uid,Integer id, String peopleAndCarsPhone) throws Exception { |
| | | |
| | | Car query = carMapper.query(licensePlate); |
| | | if(id==null){ |
| | |
| | | car = new Car(); |
| | | car.setId(id); |
| | | } |
| | | car.setPeopleAndCarsPhone(peopleAndCarsPhone); |
| | | car.setCarModelId(modelId); |
| | | CarModel carModel = carModelMapper.selectById(modelId); |
| | | car.setCarBrandId(carModel.getBrandId()); |
| | |
| | | } |
| | | } |
| | | } |
| | | orderPrivateCarService.updateBatchById(orderList); |
| | | if(orderList.size() > 0){ |
| | | orderPrivateCarService.updateBatchById(orderList); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | --- |
| | | |
| | | #spring: |
| | | # profiles: local |
| | | # datasource: |
| | | # url: jdbc:mysql://Rm-wz9rpe0t74ys3b1h8go.mysql.rds.aliyuncs.com:3306/oktravel?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | # username: root |
| | | # password: Root2020! |
| | | # db-name: guns #用来搜集数据库的所有表 |
| | | # filters: wall,mergeStat |
| | | |
| | | ################# 测试环境 ################### |
| | | spring: |
| | | profiles: local |
| | | datasource: |
| | | url: jdbc:mysql://127.0.0.1:3306/igotravel?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: 123456 |
| | | password: HjKbXilb9zajmXbl |
| | | db-name: guns #用来搜集数据库的所有表 |
| | | filters: wall,mergeStat |
| | | |
| | | ################# 测试环境 ################### |
| | | #spring: |
| | | # profiles: local |
| | | # datasource: |
| | | # url: jdbc:mysql://127.0.0.1:3306/igotravel?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | # username: root |
| | | # password: 123456 |
| | | # db-name: guns #用来搜集数据库的所有表 |
| | | # filters: wall,mergeStat |
| | | |
| | | |
| | | #多数据源情况的配置 |
| | | guns: |
| | |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi</artifactId> |
| | | <version>RELEASE</version> |
| | | <version>5.0.0</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml</artifactId> |
| | | <version>RELEASE</version> |
| | | <version>5.0.0</version> |
| | | </dependency> |
| | | |
| | | <!--shiro依赖--> |
| | |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.core.util.DateUtil; |
| | | import com.stylefeng.guns.core.util.SinataUtil; |
| | | import com.stylefeng.guns.modular.system.model.City; |
| | | import com.stylefeng.guns.modular.system.model.TRegion; |
| | | import com.stylefeng.guns.modular.system.service.ICityService; |
| | | import com.stylefeng.guns.modular.system.service.ITRegionService; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | private ITAdvertisementService tAdvertisementService; |
| | | |
| | | @Autowired |
| | | private ITRegionService tRegionService; |
| | | private ICityService cityService; |
| | | |
| | | /** |
| | | * 跳转到广告设置首页 |
| | |
| | | */ |
| | | @RequestMapping("/tAdvertisement_add") |
| | | public String tAdvertisementAdd(Model model) { |
| | | List<TRegion> list = tRegionService.selectList(new EntityWrapper<TRegion>().eq("parent_id", 0)); |
| | | List<City> list = cityService.selectList(null); |
| | | model.addAttribute("list",list); |
| | | return PREFIX + "tAdvertisement_add.html"; |
| | | } |
| | |
| | | TAdvertisement tAdvertisement = tAdvertisementService.selectById(tAdvertisementId); |
| | | model.addAttribute("item",tAdvertisement); |
| | | LogObjectHolder.me().set(tAdvertisement); |
| | | |
| | | List<TRegion> list = tRegionService.selectList(new EntityWrapper<TRegion>().eq("parent_id", 0)); |
| | | List<City> list = cityService.selectList(null); |
| | | model.addAttribute("list",list); |
| | | return PREFIX + "tAdvertisement_edit.html"; |
| | | } |
| | |
| | | return PREFIX + "tAgreementSmallPieceLogistics.html"; |
| | | } |
| | | |
| | | /** |
| | | * 跳转到新司机培训设置 |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @RequestMapping("/showNewDriverTraining") |
| | | public String showNewDriverTraining(Model model){ |
| | | TAgreement one = tAgreementService.selectOne(new EntityWrapper<TAgreement>().eq("type", 16)); |
| | | model.addAttribute("one",one); |
| | | return PREFIX + "newDriverTraining.html"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改协议 |
| | |
| | | public Object detail(@PathVariable("tAgreementId") Integer tAgreementId) { |
| | | return tAgreementService.selectById(tAgreementId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取协议 |
| | | * @param language |
| | | * @param type |
| | | * @param useType |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/getAgreement") |
| | | @ResponseBody |
| | | public TAgreement getAgreement(Integer language, Integer type, Integer useType){ |
| | | TAgreement tAgreement = tAgreementService.selectOne(new EntityWrapper<TAgreement>().eq("type", type) |
| | | .eq("useType", useType).eq("language", language)); |
| | | return tAgreement; |
| | | } |
| | | } |
| | |
| | | import com.stylefeng.guns.modular.system.dao.CarInsuranceMapper; |
| | | import com.stylefeng.guns.modular.system.model.*; |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.util.PushMinistryOfTransportUtil; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import org.apache.commons.lang.time.DateUtils; |
| | | import org.apache.poi.hdf.extractor.TC; |
| | | import org.apache.poi.ss.usermodel.Cell; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | | import org.apache.poi.ss.usermodel.Sheet; |
| | |
| | | |
| | | @Autowired |
| | | private ITServerCarmodelService itServerCarmodelService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Resource |
| | | private CarInsuranceMapper carInsuranceMapper; |
| | |
| | | public ResultUtil saveCarInsurance(CarInsurance carInsurance){ |
| | | if(carInsurance.getId() == null){ |
| | | carInsuranceMapper.insert(carInsurance); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoVehicleInsurance(carInsurance.getId(), 1); |
| | | } |
| | | } |
| | | }).start(); |
| | | }else{ |
| | | carInsuranceMapper.updateById(carInsurance); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoVehicleInsurance(carInsurance.getId(), 2); |
| | | } |
| | | } |
| | | }).start(); |
| | | } |
| | | |
| | | return ResultUtil.success(); |
| | |
| | | @RequestMapping(value = "/delCarInsurance", method = RequestMethod.POST) |
| | | public ResultUtil delCarInsurance(Integer id){ |
| | | carInsuranceMapper.deleteById(id); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoVehicleInsurance(id, 3); |
| | | } |
| | | } |
| | | }).start(); |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | |
| | | } |
| | | tCarServiceService.insert(service); |
| | | } |
| | | |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoCompanyStat(); |
| | | pushMinistryOfTransportUtil.baseInfoVehicle(tCar.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | |
| | | obj.setCarId(null); |
| | | tDriverService.updateById(obj); |
| | | } |
| | | |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoCompanyStat(); |
| | | pushMinistryOfTransportUtil.baseInfoVehicle(tCar.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | tCarService.updateById(tCar); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){ |
| | | pushMinistryOfTransportUtil.baseInfoVehicle(tCar.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | return SUCCESS_TIP; |
| | | } |
| | | @RequestMapping(value = "/updateAuth") |
| | |
| | | shellList.add("所属分公司[提示:加盟车辆选填]"); |
| | | shellList.add("所属加盟商[提示:加盟车辆选填]"); |
| | | shellList.add("服务模式:专车[是/否]"); |
| | | shellList.add("服务模式:出租车[是/否]"); |
| | | shellList.add("服务模式:跨城出行[是/否]"); |
| | | shellList.add("服务模式:小件同城物流[是/否]"); |
| | | shellList.add("服务模式:小件跨城物流[是/否]"); |
| | | shellList.add("服务模式:包车[是/否]"); |
| | | // shellList.add("服务模式:出租车[是/否]"); |
| | | // shellList.add("服务模式:跨城出行[是/否]"); |
| | | shellList.add("服务模式:市内小件物流[是/否]"); |
| | | // shellList.add("服务模式:小件跨城物流[是/否]"); |
| | | // shellList.add("服务模式:包车[是/否]"); |
| | | shellList.add("车辆品牌"); |
| | | shellList.add("车辆类型"); |
| | | shellList.add("车辆颜色[黑色/银色/白色/红色/黄色/橙色/蓝色]"); |
| | | shellList.add("车牌号"); |
| | | shellList.add("行驶证编号"); |
| | | shellList.add("roadworthiness sticker"); |
| | | shellList.add("年检到期时间[例如 2020-02-02]"); |
| | | shellList.add("商业保险到期时间[例如 2020-02-02]"); |
| | | dataList.add(shellList); |
| | |
| | | three = String.valueOf(cell3.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell4 = row.getCell(4); //服务模式:出租车[是/否] |
| | | String four = null; |
| | | if (SinataUtil.isNotEmpty(cell4)){ |
| | | four = String.valueOf(cell4.getStringCellValue()).trim(); |
| | | } |
| | | // Cell cell4 = row.getCell(4); //服务模式:出租车[是/否] |
| | | // String four = null; |
| | | // if (SinataUtil.isNotEmpty(cell4)){ |
| | | // four = String.valueOf(cell4.getStringCellValue()).trim(); |
| | | // } |
| | | // |
| | | // Cell cell5 = row.getCell(5); //服务模式:跨城出行[是/否] |
| | | // String five = null; |
| | | // if (SinataUtil.isNotEmpty(cell5)){ |
| | | // five = String.valueOf(cell5.getStringCellValue()).trim(); |
| | | // } |
| | | |
| | | Cell cell5 = row.getCell(5); //服务模式:跨城出行[是/否] |
| | | String five = null; |
| | | if (SinataUtil.isNotEmpty(cell5)){ |
| | | five = String.valueOf(cell5.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell6 = row.getCell(6); //服务模式:小件跨城物流[是/否] |
| | | Cell cell6 = row.getCell(4); //服务模式:小件跨城物流[是/否] |
| | | String six = null; |
| | | if (SinataUtil.isNotEmpty(cell6)){ |
| | | six = String.valueOf(cell6.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell7 = row.getCell(7); //服务模式:小件跨城物流[是/否] |
| | | String seven = null; |
| | | if (SinataUtil.isNotEmpty(cell7)){ |
| | | seven = String.valueOf(cell7.getStringCellValue()).trim(); |
| | | } |
| | | // Cell cell7 = row.getCell(7); //服务模式:小件跨城物流[是/否] |
| | | // String seven = null; |
| | | // if (SinataUtil.isNotEmpty(cell7)){ |
| | | // seven = String.valueOf(cell7.getStringCellValue()).trim(); |
| | | // } |
| | | // |
| | | // Cell cell8 = row.getCell(8); //服务模式:包车[是/否] |
| | | // String eight = null; |
| | | // if (SinataUtil.isNotEmpty(cell8)){ |
| | | // eight = String.valueOf(cell8.getStringCellValue()).trim(); |
| | | // } |
| | | |
| | | Cell cell8 = row.getCell(8); //服务模式:包车[是/否] |
| | | String eight = null; |
| | | if (SinataUtil.isNotEmpty(cell8)){ |
| | | eight = String.valueOf(cell8.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell9 = row.getCell(9); //车辆品牌 |
| | | Cell cell9 = row.getCell(5); //车辆品牌 |
| | | String nine = null; |
| | | if (SinataUtil.isNotEmpty(cell9)){ |
| | | nine = String.valueOf(cell9.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell10 = row.getCell(10); //车辆类型 |
| | | Cell cell10 = row.getCell(6); //车辆类型 |
| | | String ten = null; |
| | | if (SinataUtil.isNotEmpty(cell10)){ |
| | | ten = String.valueOf(cell10.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell11 = row.getCell(11); //车辆颜色[黑色/银色/白色/红色/黄色/橙色/蓝色] |
| | | Cell cell11 = row.getCell(7); //车辆颜色[黑色/银色/白色/红色/黄色/橙色/蓝色] |
| | | String eleven = null; |
| | | if (SinataUtil.isNotEmpty(cell11)){ |
| | | eleven = String.valueOf(cell11.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell12 = row.getCell(12); //车牌号 |
| | | Cell cell12 = row.getCell(8); //车牌号 |
| | | String twelve = null; |
| | | if (SinataUtil.isNotEmpty(cell12)){ |
| | | twelve = String.valueOf(cell12.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell13 = row.getCell(13); //行驶证编号 |
| | | Cell cell13 = row.getCell(9); //行驶证编号 |
| | | String thirteen = null; |
| | | if (SinataUtil.isNotEmpty(cell13)){ |
| | | thirteen = String.valueOf(cell13.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell14 = row.getCell(14); //年检到期时间 |
| | | Cell cell14 = row.getCell(10); //年检到期时间 |
| | | String fourteen = null; |
| | | if (SinataUtil.isNotEmpty(cell14)){ |
| | | fourteen = String.valueOf(cell14.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | Cell cell15 = row.getCell(15); //商业保险到期时间 |
| | | Cell cell15 = row.getCell(11); //商业保险到期时间 |
| | | String fifteen = null; |
| | | if (SinataUtil.isNotEmpty(cell15)){ |
| | | fifteen = String.valueOf(cell15.getStringCellValue()).trim(); |
| | | } |
| | | |
| | | if (SinataUtil.isEmpty(zero) || SinataUtil.isEmpty(three) || SinataUtil.isEmpty(four) |
| | | || SinataUtil.isEmpty(five) || SinataUtil.isEmpty(six) || SinataUtil.isEmpty(seven) |
| | | || SinataUtil.isEmpty(eight) || SinataUtil.isEmpty(nine) || SinataUtil.isEmpty(ten) |
| | | if (SinataUtil.isEmpty(zero) || SinataUtil.isEmpty(three) /*|| SinataUtil.isEmpty(four) |
| | | || SinataUtil.isEmpty(five) */|| SinataUtil.isEmpty(six) || /*SinataUtil.isEmpty(seven) |
| | | || SinataUtil.isEmpty(eight) || */SinataUtil.isEmpty(nine) || SinataUtil.isEmpty(ten) |
| | | || SinataUtil.isEmpty(eleven) || SinataUtil.isEmpty(twelve) || SinataUtil.isEmpty(thirteen) |
| | | || SinataUtil.isEmpty(fourteen) || SinataUtil.isEmpty(fifteen)){ |
| | | return new ErrorTip(500, "单元格不能为空"); |
| | |
| | | if (!three.equals("是") && !three.equals("否")){ |
| | | return new ErrorTip(500, "服务模式【专车】内容不正确"); |
| | | } |
| | | //判断服务模式【出租车】 |
| | | if (!four.equals("是") && !four.equals("否")){ |
| | | return new ErrorTip(500, "服务模式【出租车】内容不正确"); |
| | | } |
| | | //判断服务模式【跨城出行】 |
| | | if (!five.equals("是") && !five.equals("否")){ |
| | | return new ErrorTip(500, "服务模式【跨城出行】内容不正确"); |
| | | } |
| | | // //判断服务模式【出租车】 |
| | | // if (!four.equals("是") && !four.equals("否")){ |
| | | // return new ErrorTip(500, "服务模式【出租车】内容不正确"); |
| | | // } |
| | | // //判断服务模式【跨城出行】 |
| | | // if (!five.equals("是") && !five.equals("否")){ |
| | | // return new ErrorTip(500, "服务模式【跨城出行】内容不正确"); |
| | | // } |
| | | //判断服务模式【小件同城物流】 |
| | | if (!six.equals("是") && !six.equals("否")){ |
| | | return new ErrorTip(500, "服务模式【小件同城物流】内容不正确"); |
| | | } |
| | | //判断服务模式【小件跨城物流】 |
| | | if (!seven.equals("是") && !seven.equals("否")){ |
| | | return new ErrorTip(500, "服务模式【小件跨城物流】内容不正确"); |
| | | } |
| | | //判断服务模式【包车】 |
| | | if (!eight.equals("是") && !eight.equals("否")){ |
| | | return new ErrorTip(500, "服务模式【包车】内容不正确"); |
| | | } |
| | | // //判断服务模式【小件跨城物流】 |
| | | // if (!seven.equals("是") && !seven.equals("否")){ |
| | | // return new ErrorTip(500, "服务模式【小件跨城物流】内容不正确"); |
| | | // } |
| | | // //判断服务模式【包车】 |
| | | // if (!eight.equals("是") && !eight.equals("否")){ |
| | | // return new ErrorTip(500, "服务模式【包车】内容不正确"); |
| | | // } |
| | | //判断车辆颜色 |
| | | if (!eleven.equals("黑色") && !eleven.equals("银色") && !eleven.equals("白色") && !eleven.equals("红色") && !eleven.equals("黄色") && !eleven.equals("橙色") && !eleven.equals("蓝色")){ |
| | | return new ErrorTip(500, "车辆颜色内容不正确"); |
| | |
| | | service.setType(1); |
| | | tCarServiceService.insert(service); |
| | | } |
| | | //添加出租车服务模式 |
| | | if ("是".equals(four)){ |
| | | TCarService service = new TCarService(); |
| | | service.setCarId(car.getId()); |
| | | service.setType(2); |
| | | tCarServiceService.insert(service); |
| | | } |
| | | //添加跨城出行服务模式 |
| | | if ("是".equals(five)){ |
| | | TCarService service = new TCarService(); |
| | | service.setCarId(car.getId()); |
| | | service.setType(3); |
| | | tCarServiceService.insert(service); |
| | | } |
| | | // //添加出租车服务模式 |
| | | // if ("是".equals(four)){ |
| | | // TCarService service = new TCarService(); |
| | | // service.setCarId(car.getId()); |
| | | // service.setType(2); |
| | | // tCarServiceService.insert(service); |
| | | // } |
| | | // //添加跨城出行服务模式 |
| | | // if ("是".equals(five)){ |
| | | // TCarService service = new TCarService(); |
| | | // service.setCarId(car.getId()); |
| | | // service.setType(3); |
| | | // tCarServiceService.insert(service); |
| | | // } |
| | | //添加小件同城物流服务模式 |
| | | if ("是".equals(six)){ |
| | | TCarService service = new TCarService(); |
| | |
| | | service.setType(4); |
| | | tCarServiceService.insert(service); |
| | | } |
| | | //添加小件跨城物流服务模式 |
| | | if ("是".equals(seven)){ |
| | | TCarService service = new TCarService(); |
| | | service.setCarId(car.getId()); |
| | | service.setType(5); |
| | | tCarServiceService.insert(service); |
| | | } |
| | | //添加包车服务模式 |
| | | if ("是".equals(eight)){ |
| | | TCarService service = new TCarService(); |
| | | service.setCarId(car.getId()); |
| | | service.setType(6); |
| | | tCarServiceService.insert(service); |
| | | } |
| | | // //添加小件跨城物流服务模式 |
| | | // if ("是".equals(seven)){ |
| | | // TCarService service = new TCarService(); |
| | | // service.setCarId(car.getId()); |
| | | // service.setType(5); |
| | | // tCarServiceService.insert(service); |
| | | // } |
| | | // //添加包车服务模式 |
| | | // if ("是".equals(eight)){ |
| | | // TCarService service = new TCarService(); |
| | | // service.setCarId(car.getId()); |
| | | // service.setType(6); |
| | | // tCarServiceService.insert(service); |
| | | // } |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | |
| | | shellList.add("颜色"); |
| | | shellList.add("服务模式"); |
| | | shellList.add("车牌号"); |
| | | shellList.add("行驶证号码"); |
| | | shellList.add("roadworthiness sticker"); |
| | | shellList.add("座位数"); |
| | | shellList.add("关联司机"); |
| | | shellList.add("年检到期时间"); |
| | |
| | | import com.stylefeng.guns.modular.system.service.ITCompanyCityService; |
| | | import com.stylefeng.guns.modular.system.service.ITRegionService; |
| | | import com.stylefeng.guns.modular.system.service.IUserService; |
| | | import com.stylefeng.guns.modular.system.util.PushMinistryOfTransportUtil; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @Autowired |
| | | private ITCompanyCityService tCompanyCityService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Value("${pushMinistryOfTransport}") |
| | | private boolean pushMinistryOfTransport; |
| | |
| | | addSocpe(subArr,tCompany.getId()); |
| | | |
| | | TCompany tCompany1 = tCompanyService.selectById(tCompany.getId()); |
| | | if(tCompany1.getType() == 1){ |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传平台数据 |
| | | pushMinistryOfTransportUtil.baseInfoCompanyPay();//上传网约车平台公司支付信息 |
| | | pushMinistryOfTransportUtil.baseInfoCompany(tCompany.getId()); |
| | | pushMinistryOfTransportUtil.baseInfoCompanyService(); |
| | | pushMinistryOfTransportUtil.baseInfoCompanyPermit(tCompany.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | } |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | |
| | | import com.stylefeng.guns.core.common.constant.factory.PageFactory; |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.core.util.SinataUtil; |
| | | import com.stylefeng.guns.modular.system.model.TProblem; |
| | | import com.stylefeng.guns.modular.system.model.TSystemNotice; |
| | | import com.stylefeng.guns.modular.system.service.ITSystemNoticeService; |
| | | import com.stylefeng.guns.modular.system.util.PushMinistryOfTransportUtil; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.stylefeng.guns.core.log.LogObjectHolder; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import com.stylefeng.guns.modular.system.model.TComplaint; |
| | | import com.stylefeng.guns.modular.system.service.ITComplaintService; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private ITSystemNoticeService tSystemNoticeService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Value("${pushMinistryOfTransport}") |
| | | private boolean pushMinistryOfTransport; |
| | |
| | | notice.setInsertTime(new Date()); |
| | | notice.setRead(1); |
| | | tSystemNoticeService.insert(notice); |
| | | |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.ratedPassengerComplaint(tComplaint.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | } |
| | | return SUCCESS_TIP; |
| | | } |
| | |
| | | import com.stylefeng.guns.modular.system.model.*; |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.util.HttpRequestUtil; |
| | | import com.stylefeng.guns.modular.system.util.PushMinistryOfTransportUtil; |
| | | import com.stylefeng.guns.modular.system.util.PushURL; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import org.apache.poi.ss.usermodel.Cell; |
| | |
| | | |
| | | @Autowired |
| | | private ITLineService itLineService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Autowired |
| | | private ITDriverTeamService itDriverTeamService; |
| | |
| | | } |
| | | List<DriverTrain> driverTrains = driverTrainMapper.queryAllTrain(driverId); |
| | | for(DriverTrain driverTrain : driverTrains){ |
| | | boolean b = true; |
| | | for(String s : split){ |
| | | String[] s1 = s.split("_"); |
| | | if(ToolUtil.isNotEmpty(s1[0]) && driverTrain.getId() == Integer.valueOf(s1[0])){ |
| | | b = false; |
| | | break; |
| | | } |
| | | } |
| | | if(b){ |
| | | driverTrainMapper.deleteById(driverTrain.getId()); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoDriverEducate(driverTrain.getId(), 3); |
| | | } |
| | | } |
| | | }).start(); |
| | | } |
| | | } |
| | | if(update.size() > 0){ |
| | | for(DriverTrain driverTrain : update){ |
| | | driverTrainMapper.updateById(driverTrain); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoDriverEducate(driverTrain.getId(), 2); |
| | | } |
| | | } |
| | | }).start(); |
| | | } |
| | | } |
| | | if(add.size() > 0){ |
| | | for(DriverTrain driverTrain : add){ |
| | | driverTrainMapper.insert(driverTrain); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoDriverEducate(driverTrain.getId(), 1); |
| | | } |
| | | } |
| | | }).start(); |
| | | } |
| | | } |
| | | |
| | | |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | if(update.size() > 0){ |
| | | for(DriverPunish driverTrain : update){ |
| | | driverPunishMapper.updateById(driverTrain); |
| | | } |
| | | } |
| | | if(add.size() > 0){ |
| | | for(DriverPunish driverTrain : add){ |
| | | driverPunishMapper.insert(driverTrain); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.ratedDriverPunish(driverTrain.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | } |
| | | } |
| | | |
| | |
| | | if (1 == authState){ |
| | | type = 5; |
| | | tDriver.setAuthState(2); |
| | | |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoCompanyStat(); |
| | | pushMinistryOfTransportUtil.baseInfoDriver(id); |
| | | pushMinistryOfTransportUtil.baseInfoDriverApp(id); |
| | | } |
| | | } |
| | | }).start(); |
| | | |
| | | |
| | | if(tDriver.getUid()!=null && tDriver.getuType()!=null && tDriver.getuType() == 2){ |
| | |
| | | TDriver tDriver = tDriverService.selectById(driverId); |
| | | if (1 == optType){ //解冻 |
| | | tDriver.setAuthState(2); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoCompanyStat(); |
| | | pushMinistryOfTransportUtil.baseInfoDriver(driverId); |
| | | } |
| | | } |
| | | }).start(); |
| | | }else if (2 == optType){ //冻结 |
| | | tDriver.setAuthState(3); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoCompanyStat(); |
| | | pushMinistryOfTransportUtil.baseInfoDriver(driverId); |
| | | } |
| | | } |
| | | }).start(); |
| | | } |
| | | tDriver.setRemark(remark); |
| | | tDriverService.updateById(tDriver); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoDriver(tDriver.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.system.model.TPubWithdrawal; |
| | | import com.stylefeng.guns.modular.system.util.OssUploadUtil; |
| | | import com.stylefeng.guns.modular.system.util.PushMinistryOfTransportUtil; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | @Autowired |
| | | private ITVersionManagementService tVersionManagementService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Value("${pushMinistryOfTransport}") |
| | | private boolean pushMinistryOfTransport; |
| | |
| | | import com.stylefeng.guns.modular.system.model.*; |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.util.HttpRequestUtil; |
| | | import com.stylefeng.guns.modular.system.util.PushMinistryOfTransportUtil; |
| | | import com.stylefeng.guns.modular.system.util.PushURL; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private ITDriverService tDriverService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Resource |
| | | private OrderCancelMapper orderCancelMapper; |
| | |
| | | map.put("orderType", "1"); |
| | | String result = HttpRequestUtil.postRequest(PushURL.cancel_order_url, map); |
| | | System.out.println("专车取消:【orderId="+tOrderPrivateCar.getId().toString()+"】,调用接口:"+result); |
| | | |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.orderCancel(tOrderPrivateCarId); |
| | | } |
| | | } |
| | | }).start(); |
| | | |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | |
| | | import com.stylefeng.guns.core.util.SinataUtil; |
| | | import com.stylefeng.guns.modular.system.model.TServerCarmodel; |
| | | import com.stylefeng.guns.modular.system.service.ITServerCarmodelService; |
| | | import com.stylefeng.guns.modular.system.util.PushMinistryOfTransportUtil; |
| | | import net.sf.json.JSONObject; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | |
| | | @Autowired |
| | | private ITServerCarmodelService tServerCarmodelService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Value("${pushMinistryOfTransport}") |
| | | private boolean pushMinistryOfTransport; |
| | |
| | | tSystemPrice.setType(1); |
| | | tSystemPrice.setState(1); |
| | | tSystemPriceService.insert(tSystemPrice); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoCompanyFare(tSystemPrice.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | tSystemPriceService.updateById(tSystemPrice); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport) {//上传数据 |
| | | pushMinistryOfTransportUtil.baseInfoCompanyFare(tSystemPrice.getId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | |
| | | @ResponseBody |
| | | public Object smallSubmit(String json1,String json2) { |
| | | //跨城小件物流 |
| | | TSystemPrice one = tSystemPriceService.selectOne(new EntityWrapper<TSystemPrice>().eq("type", 5).eq("companyId", ShiroKit.getUser().getObjectId())); |
| | | if (SinataUtil.isNotEmpty(one)){ |
| | | one.setContent(json1); |
| | | tSystemPriceService.updateById(one); |
| | | }else{ |
| | | one = new TSystemPrice(); |
| | | one.setState(1); |
| | | one.setType(5); |
| | | one.setCompanyId(ShiroKit.getUser().getObjectId()); |
| | | one.setContent(json1); |
| | | tSystemPriceService.insert(one); |
| | | } |
| | | // TSystemPrice one = tSystemPriceService.selectOne(new EntityWrapper<TSystemPrice>().eq("type", 5).eq("companyId", ShiroKit.getUser().getObjectId())); |
| | | // if (SinataUtil.isNotEmpty(one)){ |
| | | // one.setContent(json1); |
| | | // tSystemPriceService.updateById(one); |
| | | // }else{ |
| | | // one = new TSystemPrice(); |
| | | // one.setState(1); |
| | | // one.setType(5); |
| | | // one.setCompanyId(ShiroKit.getUser().getObjectId()); |
| | | // one.setContent(json1); |
| | | // tSystemPriceService.insert(one); |
| | | // } |
| | | //同城小件物流 |
| | | TSystemPrice two = tSystemPriceService.selectOne(new EntityWrapper<TSystemPrice>().eq("type", 4).eq("companyId", ShiroKit.getUser().getObjectId())); |
| | | if (SinataUtil.isNotEmpty(two)){ |
New file |
| | |
| | | package com.stylefeng.guns.modular.system.dao; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.stylefeng.guns.modular.system.model.City; |
| | | |
| | | public interface CityMapper extends BaseMapper<City> { |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.stylefeng.guns.modular.system.dao.CityMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.stylefeng.guns.modular.system.model.City"> |
| | | <id column="id" property="id"/> |
| | | <result column="chineseName" property="chineseName"/> |
| | | <result column="englishName" property="englishName"/> |
| | | <result column="frenchName" property="frenchName"/> |
| | | </resultMap> |
| | | </mapper> |
| | |
| | | |
| | | <!--根据条件查询广告列表--> |
| | | <select id="getAdvertisementList" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page"> |
| | | SELECT * FROM (SELECT rr.`name` as provinceName,aa.* FROM t_advertisement as aa |
| | | LEFT JOIN t_region as rr on rr.id = aa.provinceId) as o |
| | | SELECT * FROM (SELECT rr.chineseName as provinceName,aa.* FROM t_advertisement as aa |
| | | LEFT JOIN t_city as rr on rr.id = aa.cityId) as o |
| | | <where> |
| | | 1=1 |
| | | <if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''"> |
| | |
| | | <result column="useType" property="useType" /> |
| | | <result column="content" property="content" /> |
| | | <result column="type" property="type" /> |
| | | <result column="language" property="language"/> |
| | | <result column="flag" property="flag" /> |
| | | <result column="insertTime" property="insertTime" /> |
| | | <result column="insertUser" property="insertUser" /> |
| | |
| | | <result column="idCardImgUrl2" property="idCardImgUrl2" /> |
| | | <result column="placeOfEmployment" property="placeOfEmployment" /> |
| | | <result column="birthday" property="birthday" /> |
| | | <result column="email" property="email"/> |
| | | <result column="bankCardNumber" property="bankCardNumber" /> |
| | | <result column="driverNationality" property="driverNationality" /> |
| | | <result column="driverNation" property="driverNation" /> |
| | |
| | | <result column="driverContactAddress" property="driverContactAddress" /> |
| | | <result column="driverAge" property="driverAge" /> |
| | | <result column="driveCard" property="driveCard" /> |
| | | <result column="driveCardImgUrl" property="driveCardImgUrl" /> |
| | | <result column="driveCardImgUrl1" property="driveCardImgUrl1" /> |
| | | <result column="driveCardImgUrl2" property="driveCardImgUrl2" /> |
| | | <result column="driverType" property="driverType" /> |
| | | <result column="getDriverLicenseDate" property="getDriverLicenseDate" /> |
| | | <result column="driverLicenseOn" property="driverLicenseOn" /> |
New file |
| | |
| | | package com.stylefeng.guns.modular.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | |
| | | /** |
| | | * 城市 |
| | | */ |
| | | @TableName("t_city") |
| | | public class City { |
| | | //主键 |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @TableField("id") |
| | | private Integer id; |
| | | //中文名称 |
| | | @TableField("chineseName") |
| | | private String chineseName; |
| | | //英文名称 |
| | | @TableField("englishName") |
| | | private String englishName; |
| | | //法文名称 |
| | | @TableField("frenchName") |
| | | private String frenchName; |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getChineseName() { |
| | | return chineseName; |
| | | } |
| | | |
| | | public void setChineseName(String chineseName) { |
| | | this.chineseName = chineseName; |
| | | } |
| | | |
| | | public String getEnglishName() { |
| | | return englishName; |
| | | } |
| | | |
| | | public void setEnglishName(String englishName) { |
| | | this.englishName = englishName; |
| | | } |
| | | |
| | | public String getFrenchName() { |
| | | return frenchName; |
| | | } |
| | | |
| | | public void setFrenchName(String frenchName) { |
| | | this.frenchName = frenchName; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "City{" + |
| | | "id=" + id + |
| | | ", chineseName='" + chineseName + '\'' + |
| | | ", englishName='" + englishName + '\'' + |
| | | ", frenchName='" + frenchName + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * 所属省Id |
| | | */ |
| | | private Integer provinceId; |
| | | private Integer cityId; |
| | | |
| | | public Integer getProvinceId() { |
| | | return provinceId; |
| | | public Integer getCityId() { |
| | | return cityId; |
| | | } |
| | | |
| | | public void setProvinceId(Integer provinceId) { |
| | | this.provinceId = provinceId; |
| | | public void setCityId(Integer cityId) { |
| | | this.cityId = cityId; |
| | | } |
| | | |
| | | public Integer getState() { |
| | |
| | | */ |
| | | private Integer useType; |
| | | /** |
| | | * 语言类型(1=简体中文,2=英语,3=法语) |
| | | */ |
| | | private Integer language; |
| | | /** |
| | | * 协议内容 |
| | | */ |
| | | private String content; |
| | |
| | | this.useType = useType; |
| | | } |
| | | |
| | | public Integer getLanguage() { |
| | | return language; |
| | | } |
| | | |
| | | public void setLanguage(Integer language) { |
| | | this.language = language; |
| | | } |
| | | |
| | | public String getContent() { |
| | | return content; |
| | | } |
| | |
| | | */ |
| | | private Date birthday; |
| | | /** |
| | | * 邮件 |
| | | */ |
| | | private String email; |
| | | /** |
| | | * 银行卡号 |
| | | */ |
| | | private String bankCardNumber; |
| | |
| | | /** |
| | | * 驾驶证照片 |
| | | */ |
| | | private String driveCardImgUrl; |
| | | private String driveCardImgUrl1; |
| | | /** |
| | | * 驾驶证照片 |
| | | */ |
| | | private String driveCardImgUrl2; |
| | | /** |
| | | * 准驾车型 |
| | | */ |
| | |
| | | this.birthday = birthday; |
| | | } |
| | | |
| | | public String getEmail() { |
| | | return email; |
| | | } |
| | | |
| | | public void setEmail(String email) { |
| | | this.email = email; |
| | | } |
| | | |
| | | public String getBankCardNumber() { |
| | | return bankCardNumber; |
| | | } |
| | |
| | | this.driveCard = driveCard; |
| | | } |
| | | |
| | | public String getDriveCardImgUrl() { |
| | | return driveCardImgUrl; |
| | | public String getDriveCardImgUrl1() { |
| | | return driveCardImgUrl1; |
| | | } |
| | | |
| | | public void setDriveCardImgUrl(String driveCardImgUrl) { |
| | | this.driveCardImgUrl = driveCardImgUrl; |
| | | public void setDriveCardImgUrl1(String driveCardImgUrl1) { |
| | | this.driveCardImgUrl1 = driveCardImgUrl1; |
| | | } |
| | | |
| | | public String getDriveCardImgUrl2() { |
| | | return driveCardImgUrl2; |
| | | } |
| | | |
| | | public void setDriveCardImgUrl2(String driveCardImgUrl2) { |
| | | this.driveCardImgUrl2 = driveCardImgUrl2; |
| | | } |
| | | |
| | | public String getDriverType() { |
| | |
| | | ", driverContactAddress='" + driverContactAddress + '\'' + |
| | | ", driverAge=" + driverAge + |
| | | ", driveCard='" + driveCard + '\'' + |
| | | ", driveCardImgUrl='" + driveCardImgUrl + '\'' + |
| | | ", driverType='" + driverType + '\'' + |
| | | ", getDriverLicenseDate=" + getDriverLicenseDate + |
| | | ", driverLicenseOn=" + driverLicenseOn + |
New file |
| | |
| | | package com.stylefeng.guns.modular.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.stylefeng.guns.modular.system.model.City; |
| | | |
| | | public interface ICityService extends IService<City> { |
| | | } |
New file |
| | |
| | | package com.stylefeng.guns.modular.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.modular.system.dao.CityMapper; |
| | | import com.stylefeng.guns.modular.system.model.City; |
| | | import com.stylefeng.guns.modular.system.service.ICityService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements ICityService { |
| | | } |
| | |
| | | public static String cancel_order_url = "http://116.63.168.184:8081/user/base/order/sendOrderState"; |
| | | public static String freeze_user_url = "http://116.63.168.184:8081/user/base/user/freeze"; |
| | | public static String zull_user_url = "http://116.63.168.184:8081"; |
| | | public static String ministry_of_transport_data = "http://120.77.11.218:8868/ministryOfTransport"; |
| | | public static String ministry_of_transport_ftp = "http://120.77.11.218:8868/ftp"; |
| | | |
| | | // public static String order_push_url = "http://express.feimadache.com:80/driver/base/order/pushOrderState"; |
| | | // public static String driver_auth_url = "http://express.feimadache.com:80/driver/base/driver/sendsms"; |
| | |
| | | // public static String cancel_order_url = "http://express.feimadache.com:80/user/base/order/sendOrderState"; |
| | | // public static String freeze_user_url = "http://express.feimadache.com:80/user/base/user/freeze"; |
| | | // public static String zull_user_url = "http://express.feimadache.com:80"; |
| | | // public static String ministry_of_transport_data = "http://express.feimadache.com:8868/ministryOfTransport"; |
| | | // public static String ministry_of_transport_ftp = "http://express.feimadache.com:8868/ftp"; |
| | | |
| | | /*public static String order_push_url = "http://localhost:80/driver/base/order/pushOrderState"; |
| | | public static String driver_auth_url = "http://localhost:80/driver/base/driver/sendsms"; |
| | | public static String withdraw_auth_url = "http://localhost:80/driver/base/withdrawal/withdrawalAudit"; |
| | | public static String cancel_order_url = "http://localhost:80/user/base/order/sendOrderState"; |
| | | public static String freeze_user_url = "http://localhost:80/user/base/user/freeze"; |
| | | public static String zull_user_url = "http://localhost:80"; |
| | | public static String ministry_of_transport_data = "http://localhost:8868/ministryOfTransport"; |
| | | public static String ministry_of_transport_ftp = "http://localhost:8868/ftp";*/ |
| | | public static String zull_user_url = "http://localhost:80";*/ |
| | | } |
| | |
| | | @Autowired |
| | | private ITLocationService locationService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Value("${pushMinistryOfTransport}") |
| | | private boolean pushMinistryOfTransport; |
| | | |
| | |
| | | @Scheduled(cron = "0 0 1 1 * *") |
| | | public void taskMonth(){ |
| | | try { |
| | | if(pushMinistryOfTransport){ |
| | | List<TDriver> tDrivers = driverService.selectList(new EntityWrapper<TDriver>().eq("authState", 2).ne("flag", 3)); |
| | | for(TDriver driver : tDrivers){ |
| | | pushMinistryOfTransportUtil.baseInfoDriverStat(driver.getId()); |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | spring: |
| | | profiles: local |
| | | datasource: |
| | | url: jdbc:mysql://116.63.168.184:3306/feima?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | url: jdbc:mysql://127.0.0.1:3306/igotravel?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: root |
| | | password: 123456 |
| | | db-name: guns #用来搜集数据库的所有表 |
| | | filters: wall,mergeStat |
| | | |
| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | |
| | | |
| | | <title>喜望出行 - 404 页面</title> |
| | | <title>IGO出行 - 404 页面</title> |
| | | <link rel="shortcut icon" href="${ctxPath}/static/favicon1.ico"> <link href="${ctxPath}/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet"> |
| | | <link href="${ctxPath}/static/css/font-awesome.css?v=4.4.0" rel="stylesheet"> |
| | | <link href="${ctxPath}/static/css/style.css?v=4.1.0" rel="stylesheet"> |
| | |
| | | <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a> |
| | | <form role="search" class="navbar-form-custom" method="post" action="search_results.html"> |
| | | <div class="form-group"> |
| | | <input type="text" placeholder="喜望出行后台管理系统 …" class="form-control" name="top-search" id="top-search" value="喜望出行后台管理系统" disabled> |
| | | <input type="text" placeholder="IGO出行后台管理系统 …" class="form-control" name="top-search" id="top-search" value="IGO出行后台管理系统" disabled> |
| | | </div> |
| | | </form> |
| | | </div> |
| | |
| | | <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="${ctxPath}/blackboard?type=${type}" frameborder="0" data-id="${ctxPath}/blackboard" seamless></iframe> |
| | | </div> |
| | | <div class="footer"> |
| | | <div class="pull-right">© 2019-2021 <a href="#" onclick="return false" target="_blank">喜望出行</a> |
| | | <div class="pull-right">© 2019-2022 <a href="#" onclick="return false" target="_blank">IGO出行</a> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | <meta name="renderer" content="webkit"> |
| | | <title>喜望出行 - 主页</title> |
| | | <title>IGO出行 - 主页</title> |
| | | <link rel="shortcut icon" href="${ctxPath}/static/favicon.ico"> |
| | | <link href="${ctxPath}/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet"> |
| | | <link href="${ctxPath}/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet"> |
| | |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | |
| | | <title>喜望出行 - 登录</title> |
| | | <title>IGO出行 - 登录</title> |
| | | |
| | | <link rel="shortcut icon" href="${ctxPath}/static/favicon.ico"> |
| | | <link href="${ctxPath}/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet"> |
| | |
| | | <img src="${ctxPath}/static/img/index4.png" style="width: 300px;height: 400px;z-index: 1000"> |
| | | <div style="position: relative;left: -20px; max-width: 300px;min-height: 300px;background: white;border-radius: 8px;box-sizing: border-box;padding: 0 30px 0 50px;display: flex;align-items: center;justify-content: center;"> |
| | | <div style="max-height: 100%"> |
| | | <h3 style="color: black;"><img src="${ctxPath}/static/img/logo.png" width="30px" height="30px"/> 喜望出行管理后台</h3> |
| | | <h3 style="color: black;"><img src="${ctxPath}/static/img/logo.png" width="30px" height="30px"/> IGO出行管理后台</h3> |
| | | <br/> |
| | | <h4 style="color: red;">${tips!}</h4> |
| | | <form class="m-t" role="form" action="${ctxPath}/login" method="post"> |
| | |
| | | </label>--> |
| | | </div> |
| | | </div> |
| | | <button type="submit" class="btn full-width m-b" style="background-color: #d56b29;color: black;">登 录</button> |
| | | <button type="submit" class="btn full-width m-b" style="background-color: #82C04B;color: #FFF;">登 录</button> |
| | | </p> |
| | | </form> |
| | | </div> |
| | |
| | | <option value="1">弹窗广告</option> |
| | | <option value="2">首页底部广告</option> |
| | | </#select> |
| | | <#select id="provinceId" name="所属省:"> |
| | | <#select id="cityId" name="所属城市:"> |
| | | <option value="">选择所属省</option> |
| | | @for(province in list){ |
| | | <option value="${province.id}"> ${province.name} </option> |
| | | <option value="${province.id}"> ${province.chineseName} </option> |
| | | @} |
| | | </#select> |
| | | <#select id="isJump" name="是否跳转:" onchange="TAdvertisementInfoDlg.isJump()"> |
| | |
| | | <option value="1" ${1 == item.type ? 'selected=selected' : ''}>弹窗广告</option> |
| | | <option value="2" ${2 == item.type ? 'selected=selected' : ''}>首页底部广告</option> |
| | | </#select> |
| | | <#select id="provinceId" name="所属省:"> |
| | | <option value="">选择所属省</option> |
| | | <#select id="cityId" name="所属城市:"> |
| | | <option value="">选择所属城市</option> |
| | | @for(province in list){ |
| | | <option value="${province.id}" ${province.id == item.provinceId ? 'selected=selected' : ''}> ${province.name} </option> |
| | | <option value="${province.id}" ${province.id == item.cityId ? 'selected=selected' : ''}> ${province.chineseName} </option> |
| | | @} |
| | | </#select> |
| | | <#select id="isJump" name="是否跳转:" onchange="TAdvertisementInfoDlg.isJump()"> |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">常见问题设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 12); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">司机注册协议设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 9); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContentTxt(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">改派说明设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 10); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
New file |
| | |
| | | @layout("/common/_container.html"){ |
| | | <style> |
| | | .newWidth, .single-line{ |
| | | max-width:350px !important;display: initial !important; |
| | | } |
| | | </style> |
| | | <div class="row"> |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">新司机培训设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | | <#button btnCss="info" name="保存" id="ensure" icon="fa-check" clickFun="update_1(${one.id});"/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/javascript"> |
| | | var editor_1 = null; |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 16); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | | if (editor_1.getContentTxt() == ""){ |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/updateAppParam", function(data){ |
| | | Feng.success("编辑成功!"); |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("context", content); |
| | | ajax.set("id", id); |
| | | ajax.start(); |
| | | } |
| | | </script> |
| | | @} |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">计价规则设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 13); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <input type="hidden" id="id1" value="${one.id}"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language1"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | </div> |
| | | </div> |
| | | <div id="tab-2" class="tab-pane"> |
| | | <div class="panel-body"> |
| | | <input type="hidden" id="id2" value="${two.id}"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language2"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea type="text/plain" id="editor_2" style="width:1200px;height:400px;">${two.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | </div> |
| | | </div> |
| | | <div id="tab-3" class="tab-pane"> |
| | | <div class="panel-body"> |
| | | <input type="hidden" id="id3" value="${three.id}"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language3"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea type="text/plain" id="editor_3" style="width:1200px;height:400px;">${three.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | editor_2 = UE.getEditor('editor_2'); |
| | | editor_3 = UE.getEditor('editor_3'); |
| | | |
| | | $('#language1').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id1').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 6); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | $('#language2').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_2.setContent(data.content); |
| | | $('#id2').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 2); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | $('#language3').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_3.setContent(data.content); |
| | | $('#id3').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 1); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(),$('#id1').val()); |
| | | } |
| | | function update_2(id){ |
| | | if (editor_2.getContentTxt() == ""){ |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_2.getContent(),id); |
| | | submitData(editor_2.getContent(),$('#id2').val()); |
| | | } |
| | | function update_3(id){ |
| | | if (editor_3.getContentTxt() == ""){ |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_3.getContent(),id); |
| | | submitData(editor_3.getContent(),$('#id3').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <input type="hidden" id="id1" value="${one.id}"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language1"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | </div> |
| | | </div> |
| | | <div id="tab-2" class="tab-pane"> |
| | | <div class="panel-body"> |
| | | <input type="hidden" id="id2" value="${two.id}"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language2"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea type="text/plain" id="editor_2" style="width:1200px;height:400px;">${two.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | </div> |
| | | </div> |
| | | <div id="tab-3" class="tab-pane"> |
| | | <div class="panel-body"> |
| | | <input type="hidden" id="id3" value="${three.id}"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language3"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea type="text/plain" id="editor_3" style="width:1200px;height:400px;">${three.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | editor_2 = UE.getEditor('editor_2'); |
| | | editor_3 = UE.getEditor('editor_3'); |
| | | |
| | | $('#language1').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id1').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 6); |
| | | ajax.set("useType", 2); |
| | | ajax.start(); |
| | | }) |
| | | $('#language2').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_2.setContent(data.content); |
| | | $('#id2').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 2); |
| | | ajax.set("useType", 2); |
| | | ajax.start(); |
| | | }) |
| | | $('#language3').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_3.setContent(data.content); |
| | | $('#id3').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 1); |
| | | ajax.set("useType", 2); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(),$('#id1').val()); |
| | | } |
| | | function update_2(id){ |
| | | if (editor_2.getContentTxt() == ""){ |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_2.getContent(),id); |
| | | submitData(editor_2.getContent(),$('#id2').val()); |
| | | } |
| | | function update_3(id){ |
| | | if (editor_3.getContentTxt() == ""){ |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_3.getContent(),id); |
| | | submitData(editor_3.getContent(),$('#id3').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">法律法规设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 4); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">关于我们设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 5); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">取消订单说明</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 7); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">充值领券规则设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 8); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">小件物流协议设置</a></li> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">邮寄包裹指南</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 15); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">用户指南设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | if(null != data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | } |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 3); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox1" value="1" onclick="TCarInfoDlg.zcServerClick()"> |
| | | <label for="serverBox1"> 专车 </label> |
| | | </div> |
| | | </div><!-- |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox2" value="2"> |
| | | <label for="serverBox2"> 出租车 </label> |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox3" value="3" onclick="TCarInfoDlg.kcServerClick()"> |
| | | <label for="serverBox3"> 跨城出行 </label> |
| | | </div> |
| | | </div>--> |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox4" value="4"> |
| | | <label for="serverBox4"> 小件物流-同城 </label> |
| | | </div> |
| | | <label for="serverBox4"> 市内小件物流 </label> |
| | | </div><!-- |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox5" value="5"> |
| | | <label for="serverBox5"> 小件物流-跨城 </label> |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox6" value="6"> |
| | | <label for="serverBox6"> 包车 </label> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | </fieldset> |
| | | </div> |
| | |
| | | </#select> |
| | | <#input id="carLicensePlate" name="车牌号" /> |
| | | <#avatar id="carPhoto" name="车辆照片:" /> |
| | | <#input id="drivingLicenseNumber" name="行驶证编号" /> |
| | | <#avatar id="drivingLicensePhoto" name="行驶证照片:" /> |
| | | <#input id="drivingLicenseNumber" name="roadworthiness sticker" /> |
| | | <#avatar id="drivingLicensePhoto" name="roadworthiness sticker照片:" /> |
| | | <#input id="annualInspectionTime" name="年检到期时间" type="text"/> |
| | | <#input id="commercialInsuranceTime" name="商业保险到期时间" type="text"/> |
| | | <#input id="plateColor" name="车牌颜色" /> |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox1" value="1" ${2 == one ? 'checked=checked' : ''} onclick="TCarInfoDlg.zcServerClick()"> |
| | | <label for="serverBox1"> 专车 </label> |
| | | </div> |
| | | </div><!-- |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox2" value="2" ${2 == two ? 'checked=checked' : ''}> |
| | | <label for="serverBox2"> 出租车 </label> |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox3" value="3" ${2 == three ? 'checked=checked' : ''} onclick="TCarInfoDlg.kcServerClick()"> |
| | | <label for="serverBox3"> 跨城出行 </label> |
| | | </div> |
| | | </div>--> |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox4" value="4" ${2 == four ? 'checked=checked' : ''}> |
| | | <label for="serverBox4"> 小件物流-同城 </label> |
| | | </div> |
| | | <label for="serverBox4"> 市内小件物流 </label> |
| | | </div><!-- |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox5" value="5" ${2 == five ? 'checked=checked' : ''}> |
| | | <label for="serverBox5"> 小件物流-跨城 </label> |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox6" value="6" ${2 == six ? 'checked=checked' : ''}> |
| | | <label for="serverBox6"> 包车 </label> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | </fieldset> |
| | | </div> |
| | |
| | | </#select> |
| | | <#input id="carLicensePlate" name="车牌号" value="${item.carLicensePlate}"/> |
| | | <#avatar id="carPhoto" name="车辆照片:" avatarImg="${item.carPhoto}"/> |
| | | <#input id="drivingLicenseNumber" name="行驶证编号" value="${item.drivingLicenseNumber}"/> |
| | | <#avatar id="drivingLicensePhoto" name="行驶证照片:" avatarImg="${item.drivingLicensePhoto}"/> |
| | | <#input id="drivingLicenseNumber" name="roadworthiness sticker" value="${item.drivingLicenseNumber}"/> |
| | | <#avatar id="drivingLicensePhoto" name="roadworthiness sticker照片:" avatarImg="${item.drivingLicensePhoto}"/> |
| | | <#input id="annualInspectionTime" name="年检到期时间" type="text" value="${item.annualInspectionTime}"/> |
| | | <#input id="commercialInsuranceTime" name="商业保险到期时间" type="text" value="${item.commercialInsuranceTime}"/> |
| | | <#input id="plateColor" name="车牌颜色" value="${item.plateColor}"/> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <#input id="birthday" name="出生日期"/> |
| | | <#input id="email" name="邮箱地址:" type="email"/> |
| | | <#input id="driveCard" name="驾驶证号码"/> |
| | | <#avatar id="driveCardImgUrl" name="驾驶证照片:" /> |
| | | <#avatar id="driveCardImgUrl1" name="驾驶证正面照片:" /> |
| | | <#avatar id="driveCardImgUrl2" name="驾驶证背面照片:" /> |
| | | <#input id="driverAge" name="驾龄" /> |
| | | <#input id="idCard" name="身份证号" /> |
| | | <#input id="driverAddress" name="居住地址" /> |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox1" value="1"> |
| | | <label for="serverBox1"> 专车 </label> |
| | | </div> |
| | | </div><!-- |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox2" value="2"> |
| | | <label for="serverBox2"> 出租车 </label> |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox3" value="3" onclick="YesDriverInfoDlg.checkBox()" > |
| | | <label for="serverBox3"> 跨城出行 </label> |
| | | </div> |
| | | </div>--> |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox4" value="4"> |
| | | <label for="serverBox4"> 小件物流-同城 </label> |
| | | </div> |
| | | <label for="serverBox4"> 市内小件物流 </label> |
| | | </div><!-- |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox5" value="5"> |
| | | <label for="serverBox5"> 小件物流-跨城 </label> |
| | |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox6" value="6"> |
| | | <label for="serverBox6"> 包车 </label> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | </fieldset> |
| | | </div> |
| | |
| | | laydate.render({ |
| | | elem: '#registerDate' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#birthday' |
| | | }); |
| | | </script> |
| | | @} |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <#input id="birthday" name="出生日期" value="${item.birthday}"/> |
| | | <#input id="email" name="邮箱地址:" value="${item.email}" type="email"/> |
| | | <#input id="driveCard" name="驾驶证号码" value="${item.driveCard}"/> |
| | | <#avatar id="driveCardImgUrl" name="驾驶证照片:" avatarImg="${item.driveCardImgUrl}"/> |
| | | <#avatar id="driveCardImgUrl1" name="驾驶证正面照片:" avatarImg="${item.driveCardImgUrl1}"/> |
| | | <#avatar id="driveCardImgUrl2" name="驾驶证背面照片:" avatarImg="${item.driveCardImgUrl2}"/> |
| | | <#input id="driverAge" name="驾龄" value="${item.driverAge}"/> |
| | | <#input id="idCard" name="身份证号" value="${item.idCard}"/> |
| | | <#input id="driverAddress" name="居住地址" value="${item.driverAddress}"/> |
| | |
| | | <input type="checkbox" name="serverBox" id="serverBox1" value="1" ${2 == one ? 'checked=checked' : ''}> |
| | | <label for="serverBox1"> 专车 </label> |
| | | </div> |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <!--<div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox2" value="2" ${2 == two ? 'checked=checked' : ''}> |
| | | <label for="serverBox2"> 出租车 </label> |
| | | </div> |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox3" value="3" ${2 == three ? 'checked=checked' : ''} onclick="YesDriverInfoDlg.checkBox()" > |
| | | <label for="serverBox3"> 跨城出行 </label> |
| | | </div> |
| | | </div>--> |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox4" value="4" ${2 == four ? 'checked=checked' : ''}> |
| | | <label for="serverBox4"> 小件物流-同城 </label> |
| | | <label for="serverBox4"> 市内小件物流 </label> |
| | | </div> |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <!--<div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox5" value="5" ${2 == five ? 'checked=checked' : ''}> |
| | | <label for="serverBox5"> 小件物流-跨城 </label> |
| | | </div> |
| | | <div class="checkbox checkbox-success checkbox-inline"> |
| | | <input type="checkbox" name="serverBox" id="serverBox6" value="6" ${2 == six ? 'checked=checked' : ''}> |
| | | <label for="serverBox6"> 包车 </label> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | </fieldset> |
| | | </div> |
| | |
| | | laydate.render({ |
| | | elem: '#registerDate' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#birthday' |
| | | }); |
| | | |
| | | $(function() { |
| | | var serverBox3 = $('#serverBox3').prop('checked'); |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <#label id="companyName" name="邮箱地址" value="${item.email}"/> |
| | | <#label id="companyName" name="出生日期" value="${item.birthday}"/> |
| | | <#label id="companyName" name="所属机构" value="${item.companyName}"/> |
| | | <#label id="driverAge" name="驾龄" value="${item.driverAge}"/> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <#label id="companyName" name="邮箱地址" value="${item.email}"/> |
| | | <#label id="companyName" name="出生日期" value="${item.birthday}"/> |
| | | <#label id="companyName" name="所属机构" value="${item.companyName}"/> |
| | | <#label id="driverAge" name="驾龄" value="${item.driverAge}"/> |
| | | </div> |
| | |
| | | |
| | | <div class="row"> |
| | | <div class="col-sm-11"> |
| | | <!-- |
| | | <div class="ibox-title"> |
| | | <h3>跨城小件物流价格设置:</h3> |
| | | </div> |
| | |
| | | name="num102" id="num102" class="form-control newWidth" /> 元/件<br/> |
| | | </div> |
| | | </div> |
| | | |
| | | --> |
| | | <div class="ibox-title"> |
| | | <h3>同城小件物流价格设置:</h3> |
| | | <h3>市内小件物流价格设置:</h3> |
| | | </div> |
| | | <input type="hidden" id="tcId" name="tcId" |
| | | @if(isNotEmpty(tcId)){ |
| | |
| | | <div class="form-group"> |
| | | <label class="col-sm-1 control-label"></label> |
| | | <div class="col-sm-10"> |
| | | 普通小件价格为(根据起点终点距离收费):<br/> |
| | | 价格为(根据起点终点距离收费):<br/> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | name="num11" id="num11" class="form-control newWidth" />元/件 <br/> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- |
| | | <div class="form-group"> |
| | | <label class="col-sm-1 control-label"></label> |
| | | <div class="col-sm-10"> |
| | |
| | | name="num22" id="num22" class="form-control newWidth" />元/件 <br/> |
| | | </div> |
| | | </div> |
| | | |
| | | --> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | function addSubmit() { |
| | | //验证数据格式-跨城小件物流价格设置 |
| | | var kcId = $("#kcId").val(); |
| | | var num101 = $("#num101").val(); |
| | | var num102 = $("#num102").val(); |
| | | if ("" == num101 || "" == num102){ |
| | | Feng.error("【跨城小件物流价格设置】输入框不能为空"); |
| | | return; |
| | | }else if (!regDouble.test(num101) || !regDouble.test(num102)){ |
| | | Feng.error("【跨城小件物流价格设置】输入框格式不正确"); |
| | | return; |
| | | } |
| | | // var num101 = $("#num101").val(); |
| | | // var num102 = $("#num102").val(); |
| | | // if ("" == num101 || "" == num102){ |
| | | // Feng.error("【跨城小件物流价格设置】输入框不能为空"); |
| | | // return; |
| | | // }else if (!regDouble.test(num101) || !regDouble.test(num102)){ |
| | | // Feng.error("【跨城小件物流价格设置】输入框格式不正确"); |
| | | // return; |
| | | // } |
| | | //验证数据格式-同城小件物流价格设置 |
| | | var tcId = $("#tcId").val(); |
| | | var num1 = $("#num1").val(); |
| | |
| | | var num9 = $("#num9").val(); |
| | | var num10 = $("#num10").val(); |
| | | var num11 = $("#num11").val(); |
| | | var num12 = $("#num12").val(); |
| | | var num13 = $("#num13").val(); |
| | | var num14 = $("#num14").val(); |
| | | var num15 = $("#num15").val(); |
| | | var num16 = $("#num16").val(); |
| | | var num17 = $("#num17").val(); |
| | | var num18 = $("#num18").val(); |
| | | var num19 = $("#num19").val(); |
| | | var num20 = $("#num20").val(); |
| | | var num21 = $("#num21").val(); |
| | | var num22 = $("#num22").val(); |
| | | // var num12 = $("#num12").val(); |
| | | // var num13 = $("#num13").val(); |
| | | // var num14 = $("#num14").val(); |
| | | // var num15 = $("#num15").val(); |
| | | // var num16 = $("#num16").val(); |
| | | // var num17 = $("#num17").val(); |
| | | // var num18 = $("#num18").val(); |
| | | // var num19 = $("#num19").val(); |
| | | // var num20 = $("#num20").val(); |
| | | // var num21 = $("#num21").val(); |
| | | // var num22 = $("#num22").val(); |
| | | |
| | | if ("" == num1 || "" == num2 || "" == num3 || "" == num4 || "" == num5 || "" == num6 || "" == num7 || "" == num8 || "" == num9 || "" == num10 |
| | | || "" == num11 || "" == num12 || "" == num13 || "" == num14 || "" == num15 || "" == num16 || "" == num17 || "" == num18 || "" == num19 || "" == num20 |
| | | || "" == num21 || "" == num22 ){ |
| | | || "" == num11 /*|| "" == num12 || "" == num13 || "" == num14 || "" == num15 || "" == num16 || "" == num17 || "" == num18 || "" == num19 || "" == num20 |
| | | || "" == num21 || "" == num22 */){ |
| | | Feng.error("【同城小件物流价格设置】输入框不能为空"); |
| | | return; |
| | | }else if (!regDouble.test(num1) || !regDouble.test(num2) || !regDouble.test(num3) || !regDouble.test(num4) || !regDouble.test(num5) || !regDouble.test(num6) |
| | | || !regDouble.test(num7) || !regDouble.test(num8) || !regDouble.test(num9) || !regDouble.test(num10) || !regDouble.test(num11) || !regDouble.test(num12) |
| | | || !regDouble.test(num7) || !regDouble.test(num8) || !regDouble.test(num9) || !regDouble.test(num10) || !regDouble.test(num11)/* || !regDouble.test(num12) |
| | | || !regDouble.test(num13) || !regDouble.test(num14) || !regDouble.test(num15) || !regDouble.test(num16) || !regDouble.test(num17) || !regDouble.test(num18) |
| | | || !regDouble.test(num19) || !regDouble.test(num20) || !regDouble.test(num21) || !regDouble.test(num22) ){ |
| | | || !regDouble.test(num19) || !regDouble.test(num20) || !regDouble.test(num21) || !regDouble.test(num22)*/ ){ |
| | | Feng.error("【同城小件物流价格设置】输入框格式不正确"); |
| | | return; |
| | | } |
| | | //封装数据 |
| | | var json1 = '{"num1":"'+num101+'","num2":"'+num102+'"}'; |
| | | // var json1 = '{"num1":"'+num101+'","num2":"'+num102+'"}'; |
| | | var json2 = '{"num1":"'+num1+'","num2":"'+num2+'","num3":"'+num3+'","num4":"'+num4+'","num5":"'+num5+'","num6":"'+num6+'"' + |
| | | ',"num7":"'+num7+'","num8":"'+num8+'","num9":"'+num9+'","num10":"'+num10+'","num11":"'+num11+'","num12":"'+num12+'"' + |
| | | ',"num7":"'+num7+'","num8":"'+num8+'","num9":"'+num9+'","num10":"'+num10+'","num11":"'+num11+/*'","num12":"'+num12+'"' + |
| | | ',"num13":"'+num13+'","num14":"'+num14+'","num15":"'+num15+'","num16":"'+num16+'","num17":"'+num17+'","num18":"'+num18+'"' + |
| | | ',"num19":"'+num19+'","num20":"'+num20+'","num21":"'+num21+'","num22":"'+num22+'"}'; |
| | | ',"num19":"'+num19+'","num20":"'+num20+'","num21":"'+num21+'","num22":"'+num22+*/'"}'; |
| | | |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tSystemPrice/smallSubmit", function(data){ |
| | |
| | | Feng.error("操作失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("kcId", kcId); |
| | | ajax.set("json1", json1); |
| | | // ajax.set("json1", json1); |
| | | ajax.set("tcId", tcId); |
| | | ajax.set("json2", json2); |
| | | ajax.start(); |
| | |
| | | <br/> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">夜间行驶费用设置:</label> |
| | | <div class="col-sm-10"> |
| | |
| | | <br/> |
| | | </div> |
| | | </div> |
| | | |
| | | --> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">高峰期费用设置:</label> |
| | | <div class="col-sm-10"> |
| | |
| | | <br/> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">夜间行驶费用设置:</label> |
| | | <div class="col-sm-10"> |
| | |
| | | <br/> |
| | | </div> |
| | | </div> |
| | | |
| | | --> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">高峰期费用设置:</label> |
| | | <div class="col-sm-10"> |
| | |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '所属省', field: 'provinceName', visible: true, align: 'center', valign: 'middle', |
| | | {title: '所属城市', field: 'provinceName', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | | if(row.provinceName != '' && row.provinceName != null) { |
| | |
| | | provinceCode: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '请先选择所属省' |
| | | message: '请先选择所属城市' |
| | | } |
| | | } |
| | | }, |
| | |
| | | .set('updateTime') |
| | | .set('updateUser') |
| | | .set('state') |
| | | .set('provinceId'); |
| | | .set('cityId'); |
| | | } |
| | | |
| | | /** |
| | |
| | | }, |
| | | events: 'operateEvents' |
| | | }, |
| | | {title: '行驶证<br/>号码', field: 'drivingLicenseNumber', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | {title: 'roadworthiness sticker', field: 'drivingLicenseNumber', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | | if(row.drivingLicenseNumber != '' && row.drivingLicenseNumber != null) { |
| | |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '行驶证<br/>照片', field: 'drivingLicensePhoto', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | {title: 'roadworthiness sticker照片', field: 'drivingLicensePhoto', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | formatter: function (value, row) { |
| | | if (row.drivingLicensePhoto == null || row.drivingLicensePhoto == '') { |
| | | return '<a class = "view" href="javascript:void(0)"><img style="width: 50px;height:50px;" src="' + Feng.ctxPath + '/static/img/NoPIC.png" /></a>'; |
| | |
| | | }, |
| | | events: 'operateEvents' |
| | | }, |
| | | {title: '行驶证<br/>号码', field: 'drivingLicenseNumber', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | {title: 'roadworthiness sticker', field: 'drivingLicenseNumber', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | | if(row.drivingLicenseNumber != '' && row.drivingLicenseNumber != null) { |
| | |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '行驶证<br/>照片', field: 'drivingLicensePhoto', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | {title: 'roadworthiness sticker照片', field: 'drivingLicensePhoto', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | formatter: function (value, row) { |
| | | if (row.drivingLicensePhoto == null || row.drivingLicensePhoto == '') { |
| | | return '<a class = "view" href="javascript:void(0)"><img style="width: 50px;height:50px;" src="' + Feng.ctxPath + '/static/img/NoPIC.png" /></a>'; |
| | |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '出生日期', field: 'birthday', visible: true, align: 'center', valign: 'middle',width:'3%', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | | if(row.birthday != '' && row.birthday != null) { |
| | | var birthday = row.birthday; |
| | | birthday = birthday.substring(0, birthday.indexOf(" ")); |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + birthday + '" onfocus="TUser.tooltip()">' + birthday + '</p>'] |
| | | } |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '驾驶证号码', field: 'driveCard', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | |
| | | .set('licenselImgUrl') |
| | | .set('driverAge') |
| | | .set('driveCard') |
| | | .set('driveCardImgUrl') |
| | | .set('driveCardImgUrl1') |
| | | .set('driveCardImgUrl2') |
| | | .set('driverType') |
| | | .set('getDriverLicenseDate') |
| | | .set('driverLicenseOn') |
| | |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '出生日期', field: 'birthday', visible: true, align: 'center', valign: 'middle',width:'3%', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | | if(row.birthday != '' && row.birthday != null) { |
| | | var birthday = row.birthday; |
| | | birthday = birthday.substring(0, birthday.indexOf(" ")); |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + birthday + '" onfocus="TUser.tooltip()">' + birthday + '</p>'] |
| | | } |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '司机来源', field: 'addType', visible: true, align: 'center', valign: 'middle',width:'5%', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | |
| | | return '' |
| | | } |
| | | } |
| | | }, |
| | | },/* |
| | | {title: '车队', field: 'teamId', visible: true, align: 'center', valign: 'middle',width:'15%',editable:{ |
| | | type: 'select', |
| | | title: '车队', |
| | | source: YesDriver.teamList, |
| | | emptytext: "暂无车队" |
| | | }}, |
| | | }},*/ |
| | | {title: '关联线路', field: 'lineStr', visible: true, align: 'center', valign: 'middle',width:'7%', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | |
| | | .set('licenselImgUrl') |
| | | .set('driverAge') |
| | | .set('driveCard') |
| | | .set('driveCardImgUrl') |
| | | .set('driveCardImgUrl1') |
| | | .set('driveCardImgUrl2') |
| | | .set('driverType') |
| | | .set('getDriverLicenseDate') |
| | | .set('driverLicenseOn') |
| | |
| | | .set('insertUser') |
| | | .set('updateTime') |
| | | .set('updateUser') |
| | | .set('addType'); |
| | | .set('addType') |
| | | .set('birthday') |
| | | .set('email'); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | this.clearData(); |
| | | this.collectData(); |
| | | if(!this.validate()){ |
| | | return ; |
| | | } |
| | | // if(!this.validate()){ |
| | | // return ; |
| | | // } |
| | | var roleType = $("#roleType").val(); //1=平台 2=分公司 3=加盟商 |
| | | var companyType = $("input[name='companyType']:checked").val(); |
| | | if (1 == roleType){ |
| | |
| | | Feng.info("请上传人脸识别照片"); |
| | | return; |
| | | } |
| | | var driveCardImgUrl = $("#driveCardImgUrl").val(); |
| | | if ("" == driveCardImgUrl){ |
| | | Feng.info("请上传驾驶证照片"); |
| | | var driveCardImgUrl1 = $("#driveCardImgUrl1").val(); |
| | | if ("" == driveCardImgUrl1){ |
| | | Feng.info("请上传驾驶证正面照片"); |
| | | return; |
| | | } |
| | | var driveCardImgUrl2 = $("#driveCardImgUrl2").val(); |
| | | if ("" == driveCardImgUrl2){ |
| | | Feng.info("请上传驾驶证背面照片"); |
| | | return; |
| | | } |
| | | var serverBox =[]; |
| | |
| | | |
| | | this.clearData(); |
| | | this.collectData(); |
| | | if(!this.validate()){ |
| | | return ; |
| | | } |
| | | // if(!this.validate()){ |
| | | // return ; |
| | | // } |
| | | var roleType = $("#roleType").val(); //1=平台 2=分公司 3=加盟商 |
| | | var companyType = $("input[name='companyType']:checked").val(); |
| | | if (1 == roleType){ |
| | |
| | | Feng.info("请上传人脸识别照片"); |
| | | return; |
| | | } |
| | | var driveCardImgUrl = $("#driveCardImgUrl").val(); |
| | | if ("" == driveCardImgUrl){ |
| | | Feng.info("请上传驾驶证照片"); |
| | | var driveCardImgUrl1 = $("#driveCardImgUrl1").val(); |
| | | if ("" == driveCardImgUrl1){ |
| | | Feng.info("请上传驾驶证正面照片"); |
| | | return; |
| | | } |
| | | var driveCardImgUrl2 = $("#driveCardImgUrl2").val(); |
| | | if ("" == driveCardImgUrl2){ |
| | | Feng.info("请上传驾驶证背面照片"); |
| | | return; |
| | | } |
| | | var serverBox =[]; |
| | |
| | | var faceImgUrl = new $WebUpload("faceImgUrl"); |
| | | faceImgUrl.setUploadBarId("progressBar"); |
| | | faceImgUrl.init(); |
| | | var driveCardImgUrl = new $WebUpload("driveCardImgUrl"); |
| | | driveCardImgUrl.setUploadBarId("progressBar"); |
| | | driveCardImgUrl.init(); |
| | | var driveCardImgUrl1 = new $WebUpload("driveCardImgUrl1"); |
| | | driveCardImgUrl1.setUploadBarId("progressBar"); |
| | | driveCardImgUrl1.init(); |
| | | var driveCardImgUrl2 = new $WebUpload("driveCardImgUrl2"); |
| | | driveCardImgUrl2.setUploadBarId("progressBar"); |
| | | driveCardImgUrl2.init(); |
| | | var networkCarlssueImg = new $WebUpload("networkCarlssueImg"); |
| | | networkCarlssueImg.setUploadBarId("progressBar"); |
| | | networkCarlssueImg.init(); |
| | |
| | | var btn = ""; |
| | | if(row.type != '' && row.type != null) { |
| | | if (row.type == 4){ |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="同城物流" onfocus="TUser.tooltip()">同城物流</p>'] |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="市内小件物流" onfocus="TUser.tooltip()">市内小件物流</p>'] |
| | | } else if (row.type == 5){ |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="跨城物流" onfocus="TUser.tooltip()">跨城物流</p>'] |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | num16: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '【时间】输入框不能为空' |
| | | } |
| | | } |
| | | }, |
| | | num17: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '【元】输入框不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | message: '【元】输入框不能超过3位数,保留两位小数' |
| | | } |
| | | } |
| | | }, |
| | | num18: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '【元】输入框不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | message: '【元】输入框不能超过3位数,保留两位小数' |
| | | } |
| | | } |
| | | }, |
| | | num19: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '【元】输入框不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | message: '【元】输入框不能超过3位数,保留两位小数' |
| | | } |
| | | } |
| | | }, |
| | | num20: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '【元】输入框不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | message: '【元】输入框不能超过3位数,保留两位小数' |
| | | } |
| | | } |
| | | }, |
| | | num21: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '【元】输入框不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | message: '【元】输入框不能超过3位数,保留两位小数' |
| | | } |
| | | } |
| | | }, |
| | | num22: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '【元】输入框不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | message: '【元】输入框不能超过3位数,保留两位小数' |
| | | } |
| | | } |
| | | }, |
| | | // num16: { |
| | | // validators: { |
| | | // notEmpty: { |
| | | // message: '【时间】输入框不能为空' |
| | | // } |
| | | // } |
| | | // }, |
| | | // num17: { |
| | | // validators: { |
| | | // notEmpty: { |
| | | // message: '【元】输入框不能为空' |
| | | // }, |
| | | // regexp: { |
| | | // regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | // message: '【元】输入框不能超过3位数,保留两位小数' |
| | | // } |
| | | // } |
| | | // }, |
| | | // num18: { |
| | | // validators: { |
| | | // notEmpty: { |
| | | // message: '【元】输入框不能为空' |
| | | // }, |
| | | // regexp: { |
| | | // regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | // message: '【元】输入框不能超过3位数,保留两位小数' |
| | | // } |
| | | // } |
| | | // }, |
| | | // num19: { |
| | | // validators: { |
| | | // notEmpty: { |
| | | // message: '【元】输入框不能为空' |
| | | // }, |
| | | // regexp: { |
| | | // regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | // message: '【元】输入框不能超过3位数,保留两位小数' |
| | | // } |
| | | // } |
| | | // }, |
| | | // num20: { |
| | | // validators: { |
| | | // notEmpty: { |
| | | // message: '【元】输入框不能为空' |
| | | // }, |
| | | // regexp: { |
| | | // regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | // message: '【元】输入框不能超过3位数,保留两位小数' |
| | | // } |
| | | // } |
| | | // }, |
| | | // num21: { |
| | | // validators: { |
| | | // notEmpty: { |
| | | // message: '【元】输入框不能为空' |
| | | // }, |
| | | // regexp: { |
| | | // regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | // message: '【元】输入框不能超过3位数,保留两位小数' |
| | | // } |
| | | // } |
| | | // }, |
| | | // num22: { |
| | | // validators: { |
| | | // notEmpty: { |
| | | // message: '【元】输入框不能为空' |
| | | // }, |
| | | // regexp: { |
| | | // regexp: /^(0|[1-9]\d{0,2})(\.\d{1,2})?$/, |
| | | // message: '【元】输入框不能超过3位数,保留两位小数' |
| | | // } |
| | | // } |
| | | // }, |
| | | num23: { |
| | | validators: { |
| | | notEmpty: { |
| | |
| | | @ApiOperation(value = "删除优惠券", tags = {"用户端-个人中心"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "优惠券id", name = "id", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil delMyCoupon(Integer id, HttpServletRequest request){ |
| | | public ResultUtil delMyCoupon(Integer id, Integer language, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return userCouponRecordService.delMyCoupon(id, uid); |
| | | return userCouponRecordService.delMyCoupon(id, uid, language); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "优惠券id", name = "id", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "赠送用户id", name = "userId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil handselCoupon(Integer id, Integer userId, HttpServletRequest request){ |
| | | public ResultUtil handselCoupon(Integer id, Integer userId, Integer language, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return userCouponRecordService.handselCoupon(id, uid, userId); |
| | | return userCouponRecordService.handselCoupon(id, uid, userId, language); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | |
| | | @ApiOperation(value = "提交反馈意见", tags = {"用户端-个人中心"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "反馈内容", name = "content", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil feedback(String content, HttpServletRequest request){ |
| | | public ResultUtil feedback(String content, Integer language, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(uid == null){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return feedbackService.feedback(content, uid); |
| | | return feedbackService.feedback(content, uid, language); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "纬度", name = "lat", required = true, dataType = "double"), |
| | | @ApiImplicitParam(value = "经度", name = "lnt", required = true, dataType = "double"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | }) |
| | | public ResultUtil<List<BaseWarpper>> queryBusiness(Double lat, Double lnt){ |
| | | public ResultUtil<List<BaseWarpper>> queryBusiness(Double lat, Double lnt, Integer language){ |
| | | try { |
| | | List<BaseWarpper> list = openCityBusinessService.queryBusiness(lat, lnt); |
| | | List<BaseWarpper> list = openCityBusinessService.queryBusiness(lat, lnt, language); |
| | | return ResultUtil.success(list); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | @PostMapping("/queryBusinessById") |
| | | @ApiOperation(value = "选择开通城市获取业务类型", tags = {"用户端-首页"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "开通城市id", name = "id", required = true, dataType = "int") |
| | | @ApiImplicitParam(value = "开通城市id", name = "id", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | }) |
| | | public ResultUtil<List<BaseWarpper>> queryBusinessById(Integer id){ |
| | | public ResultUtil<List<BaseWarpper>> queryBusinessById(Integer id, Integer language){ |
| | | try { |
| | | List<BaseWarpper> list = openCityBusinessService.queryBusinessById(id); |
| | | List<BaseWarpper> list = openCityBusinessService.queryBusinessById(id, language); |
| | | return ResultUtil.success(list); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/openCity") |
| | | @ApiOperation(value = "判断当前是否是开通城市【1.0】", tags = {"用户端-首页"}, notes = "open=1(是),open=2(否)") |
| | | @ApiOperation(value = "判断当前是否是开通城市【1.0】", tags = {"用户端-首页"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "纬度", name = "lat", required = true, dataType = "String"), |
| | | @ApiImplicitParam(value = "经度", name = "lnt", required = true, dataType = "String") |
| | | }) |
| | | public ResultUtil openCity(Double lat, Double lnt){ |
| | | public ResultUtil openCity(Double lat, Double lnt, Integer language){ |
| | | try { |
| | | boolean b = openCityService.openCity(lat, lnt); |
| | | String s = openCityService.openCity(lat, lnt, language); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("open", b ? 1 : 2); |
| | | map.put("name", s); |
| | | return ResultUtil.success(map); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | pageNum = (pageNum - 1) * size; |
| | | List<Map<String, Object>> maps = orderCancelService.queryCancel(uid, 2); |
| | | List<Map<String, Object>> list = orderPrivateCarService.queryMyTravelRecord(uid);//专车 |
| | | List<Map<String, Object>> list1 = orderTaxiService.queryMyTravelRecord(uid);//出租车 |
| | | List<Map<String, Object>> list2 = orderCrossCityService.queryMyTravelRecord(uid);//跨城车 |
| | | // List<Map<String, Object>> list1 = orderTaxiService.queryMyTravelRecord(uid);//出租车 |
| | | // List<Map<String, Object>> list2 = orderCrossCityService.queryMyTravelRecord(uid);//跨城车 |
| | | List<Map<String, Object>> list3 = orderLogisticsService.queryMyTravelRecord(uid);//小件物流 |
| | | List<TransactionDetails> transactionDetails = transactionDetailsService.selectList(new EntityWrapper<TransactionDetails>().eq("state", 1) |
| | | .eq("type", 1).eq("userType", 1).eq("userId", uid).eq("orderType", 3).like("remark", "%跨城订单取消退款%")); |
| | |
| | | list4.add(map); |
| | | } |
| | | list.addAll(maps); |
| | | list.addAll(list1); |
| | | list.addAll(list2); |
| | | // list.addAll(list1); |
| | | // list.addAll(list2); |
| | | list.addAll(list3); |
| | | list.addAll(list4); |
| | | // list.addAll(list4); |
| | | |
| | | List<TravelRecordWarpper> orderWarpper = TravelRecordWarpper.getTravelRecordWarpper(list); |
| | | |
| | |
| | | case 1://专车 |
| | | list = orderPrivateCarService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | break; |
| | | case 2://出租车 |
| | | list = orderTaxiService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | break; |
| | | case 3://跨城 |
| | | list = orderCrossCityService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | break; |
| | | // case 2://出租车 |
| | | // list = orderTaxiService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | // break; |
| | | // case 3://跨城 |
| | | // list = orderCrossCityService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | // break; |
| | | case 4://同城小件物流 |
| | | list = orderLogisticsService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid, orderType); |
| | | break; |
| | | case 5://跨城小件物流 |
| | | list = orderLogisticsService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid, orderType); |
| | | break; |
| | | // case 5://跨城小件物流 |
| | | // list = orderLogisticsService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid, orderType); |
| | | // break; |
| | | } |
| | | }else{ |
| | | //专车 |
| | | List<Map<String, Object>> maps = orderPrivateCarService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | list.addAll(maps); |
| | | //出租车 |
| | | List<Map<String, Object>> list1 = orderTaxiService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | list.addAll(list1); |
| | | //跨城 |
| | | List<Map<String, Object>> list2 = orderCrossCityService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | list.addAll(list2); |
| | | // //出租车 |
| | | // List<Map<String, Object>> list1 = orderTaxiService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | // list.addAll(list1); |
| | | // //跨城 |
| | | // List<Map<String, Object>> list2 = orderCrossCityService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid); |
| | | // list.addAll(list2); |
| | | //同城小件物流 |
| | | List<Map<String, Object>> list3 = orderLogisticsService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid, orderType); |
| | | list.addAll(list3); |
| | | //跨城小件物流 |
| | | List<Map<String, Object>> list4 = orderLogisticsService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid, orderType); |
| | | list.addAll(list4); |
| | | // //跨城小件物流 |
| | | // List<Map<String, Object>> list4 = orderLogisticsService.queryInvoiceOrder(type, startTime, endTime, startMoney, endMoney, uid, orderType); |
| | | // list.addAll(list4); |
| | | } |
| | | |
| | | //分页 |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "id", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "订单类型(1=专车,2=出租车)", name = "orderType", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil pushOrderTaxi(Integer id, Integer orderType){ |
| | | public ResultUtil pushOrderTaxi(Integer id, Integer orderType, Integer language, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | switch (orderType){ |
| | | case 1: |
| | | return orderPrivateCarService.pushOrderPrivateCar(id); |
| | | return orderPrivateCarService.pushOrderPrivateCar(uid, id, language); |
| | | case 2: |
| | | return orderTaxiService.pushOrderTaxi(id); |
| | | } |
| | |
| | | @ApiImplicitParam(value = "订单类型(1=专车,2=出租车,3=跨城)", name = "orderType", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "取消原因", name = "reason", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "备注", name = "remark", required = false, dataType = "string"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil addCancle(Integer id, Integer orderType, String reason, String remark, HttpServletRequest request){ |
| | | public ResultUtil addCancle(Integer id, Integer orderType, String reason, String remark, Integer language, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | |
| | | } |
| | | switch (orderType){ |
| | | case 1: |
| | | return orderPrivateCarService.addCancle(id, reason, remark, uid); |
| | | case 2: |
| | | return orderTaxiService.addCancle(id, reason, remark, uid); |
| | | case 3: |
| | | return orderCrossCityService.addCancle(id, reason, remark, uid); |
| | | return orderPrivateCarService.addCancle(id, reason, remark, uid, language); |
| | | // case 2: |
| | | // return orderTaxiService.addCancle(id, reason, remark, uid); |
| | | // case 3: |
| | | // return orderCrossCityService.addCancle(id, reason, remark, uid); |
| | | case 4: |
| | | return orderLogisticsService.addCancle(id, reason, remark, uid); |
| | | case 5: |
| | | return orderLogisticsService.addCancle(id, reason, remark, uid); |
| | | case 6: |
| | | return orderCharteredCarService.addCancle(id, reason, remark, uid); |
| | | return orderLogisticsService.addCancle(id, reason, remark, uid, language); |
| | | // case 5: |
| | | // return orderLogisticsService.addCancle(id, reason, remark, uid); |
| | | // case 6: |
| | | // return orderCharteredCarService.addCancle(id, reason, remark, uid); |
| | | } |
| | | return ResultUtil.success(); |
| | | }catch (Exception e){ |
| | |
| | | @ApiImplicitParam(value = "司机id", name = "driverId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "投诉原因", name = "reason", required = true, dataType = "String"), |
| | | @ApiImplicitParam(value = "投诉描述", name = "description", required = true, dataType = "String"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil complaintService(Integer driverId, String reason, String description, HttpServletRequest request){ |
| | | public ResultUtil complaintService(Integer driverId, String reason, String description, Integer language, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | complaintService.saveData(driverId, reason, description, uid); |
| | | complaintService.saveData(driverId, reason, description, uid, language); |
| | | return ResultUtil.success(); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | OrderPrivateCar orderPrivateCar = orderPrivateCarService.selectById(orderId); |
| | | orderPrivateCar.setState(9); |
| | | orderPrivateCarService.updateById(orderPrivateCar); |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport){//上传数据 |
| | | pushMinistryOfTransportUtil.ratedPassenger(Integer.valueOf(resultUtil.getData().toString())); |
| | | pushMinistryOfTransportUtil.ratedDriver(orderPrivateCar.getDriverId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | break; |
| | | case 2: |
| | | OrderTaxi orderTaxi = orderTaxiService.selectById(orderId); |
| | |
| | | @ApiOperation(value = "添加客服留言", tags = {"用户端-个人中心"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "留言内容", name = "content", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil leaveMessage(String content, HttpServletRequest request){ |
| | | public ResultUtil leaveMessage(String content, Integer language, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return problemService.leaveMessage(content, uid); |
| | | return problemService.leaveMessage(content, uid, language); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "起点经纬度(103.22121,,30.26123)", name = "startLonLat", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "终点经纬度(103.22121,,30.26123)", name = "endLonLat", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(value = "业务类型(1=专车,2=出租车,3=城际,4=小件物流-同城,5=小件物流-跨城,6=包车)", name = "type", required = true, dataType = "int") |
| | | }) |
| | | public ResultUtil<List<ServerCarModelWarpper>> queryServerCarModel(String startLonLat, String endLonLat, Integer type){ |
| | | public ResultUtil<List<ServerCarModelWarpper>> queryServerCarModel(String startLonLat, String endLonLat, Integer type, Integer language){ |
| | | try { |
| | | return serverCarModelService.queryServerCarModel(startLonLat, endLonLat, type); |
| | | return serverCarModelService.queryServerCarModel(startLonLat, endLonLat, type, language); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | |
| | | @ApiImplicitParam(value = "提现金额", name = "money", required = true, dataType = "double"), |
| | | @ApiImplicitParam(value = "银行卡号", name = "code", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "银行卡只有人姓名", name = "name", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "语言类型(1=简体中文,2=英语,3=法语)", name = "language", required = false, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil withdrawal(Double money, String code, String name, HttpServletRequest request){ |
| | | public ResultUtil withdrawal(Double money, String code, String name, Integer language, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return withdrawalService.withdrawal(money, code, name, uid); |
| | | return withdrawalService.withdrawal(money, code, name, uid, language); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | |
| | | if(ToolUtil.isEmpty(serverCarModelIds)){ |
| | | return ResultUtil.error("请选择服务车型"); |
| | | } |
| | | boolean b = openCityService.openCity(Double.valueOf(startLat), Double.valueOf(startLon)); |
| | | if(!b){ |
| | | return ResultUtil.error("起点暂未开通"); |
| | | } |
| | | // boolean b = openCityService.openCity(Double.valueOf(startLat), Double.valueOf(startLon)); |
| | | // if(!b){ |
| | | // return ResultUtil.error("起点暂未开通"); |
| | | // } |
| | | |
| | | String[] split = serverCarModelIds.split(","); |
| | | List<Map<String, Integer>> list = new ArrayList<>(); |
| | |
| | | * @param uid |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil addCancle(Integer id, String reason, String remark, Integer uid) throws Exception; |
| | | ResultUtil addCancle(Integer id, String reason, String remark, Integer uid, Integer language) throws Exception; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | @Override |
| | | public ResultUtil addCancle(Integer id, String reason, String remark, Integer uid) throws Exception { |
| | | public ResultUtil addCancle(Integer id, String reason, String remark, Integer uid, Integer language) throws Exception { |
| | | if(ToolUtil.isNotEmpty(remark)){ |
| | | if(ToolUtil.isNotEmpty(remark)){ |
| | | List<SensitiveWords> sensitiveWords = sensitiveWordsMapper.selectList(null); |
| | |
| | | } |
| | | } |
| | | |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | OrderLogistics orderLogistics = this.selectById(id); |
| | | Integer integer = null; |
| | | if(null == orderLogistics){ |
| | | return ResultUtil.error("取消订单失败,订单信息有误"); |
| | | return ResultUtil.error(language == 1 ? "取消订单失败,订单信息有误" : language == 2 ? "Failed to cancel the order, the order information is incorrect" : "Échec de l'annulation de la commande, les informations de la commande sont incorrectes"); |
| | | } |
| | | if(orderLogistics.getState() > 5 && orderLogistics.getState() != 7 && orderLogistics.getState() != 11){ |
| | | return ResultUtil.error("取消订单失败,不合法的操作"); |
| | | return ResultUtil.error(language == 1 ? "取消订单失败,不合法的操作" : language == 2 ? "Cancel order failed, illegal operation" : "Échec de l'annulation de la commande, opération illégale"); |
| | | } |
| | | |
| | | if(orderLogistics.getState() == 7){ |
| | |
| | | } |
| | | |
| | | //添加消息 |
| | | systemNoticeService.addSystemNotice(1, "您已成功取消小件物流订单,谢谢使用!", orderLogistics.getUserId(), 1); |
| | | systemNoticeService.addSystemNotice(1, language == 1 ? "您已成功取消小件物流订单,谢谢使用!" : language == 2 ? "You have successfully cancelled the small logistics order, thank you for using" : "Vous avez annulé avec succès la petite commande logistique, merci d'utiliser", orderLogistics.getUserId(), 1); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", integer); |
| | | return ResultUtil.success(map); |
| | |
| | | * @param id |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil pushOrderPrivateCar(Integer id) throws Exception; |
| | | ResultUtil pushOrderPrivateCar(Integer uid, Integer id, Integer language) throws Exception; |
| | | |
| | | |
| | | |
| | |
| | | * @param uid |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil addCancle(Integer id, String reason, String remark, Integer uid) throws Exception; |
| | | ResultUtil addCancle(Integer id, String reason, String remark, Integer uid, Integer language) throws Exception; |
| | | |
| | | |
| | | /** |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil pushOrderPrivateCar(Integer id) throws Exception { |
| | | public ResultUtil pushOrderPrivateCar(Integer uid, Integer id, Integer language) throws Exception { |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | OrderPrivateCar orderPrivateCar = this.selectById(id); |
| | | if(null == orderPrivateCar){ |
| | | return ResultUtil.error("推送订单失败,订单信息有误"); |
| | | return ResultUtil.error(language == 1 ? "推送订单失败,订单信息有误" : language == 2 ? "Failed to push the order, the order information is wrong" : "Impossible de pousser la commande, les informations de commande sont erronées"); |
| | | } |
| | | if(orderPrivateCar.getState() != 1){ |
| | | return ResultUtil.error("订单已被司机接单,不能重复推送"); |
| | | return ResultUtil.error(language == 1 ? "订单已被司机接单,不能重复推送" : language == 2 ? "The order has been taken by the driver and cannot be pushed repeatedly" : "La commande a été prise par le chauffeur et ne peut pas être poussée à plusieurs reprises"); |
| | | } |
| | | //处理摆渡订单的继续推单操作 |
| | | if(orderPrivateCar.getType() == 2){ |
| | |
| | | List<Map<String, Integer>> orders = new ArrayList<>(); |
| | | for(OrderPrivateCar orderPrivateCar1 : list){ |
| | | if(orderPrivateCar1.getState() != 1){ |
| | | return ResultUtil.error("订单已被司机接单,推单取消"); |
| | | return ResultUtil.error(language == 1 ? "订单已被司机接单,推单取消" : language == 2 ? "The order has been taken by the driver, and the push order has been cancelled" : "La commande a été prise par le chauffeur et la commande push a été annulée"); |
| | | } |
| | | Map<String, Integer> map = new HashMap<>(); |
| | | map.put("orderType", 1); |
| | |
| | | List<OrderTaxi> list1 = orderTaxiService.selectList(new EntityWrapper<OrderTaxi>().eq("type", 2).eq("crossCityOrderId", orderPrivateCar.getCrossCityOrderId()).eq("place", orderPrivateCar.getPlace())); |
| | | for(OrderTaxi orderTaxi : list1){ |
| | | if(orderTaxi.getState() != 1){ |
| | | return ResultUtil.error("订单已被司机接单,推单取消"); |
| | | return ResultUtil.error(language == 1 ? "订单已被司机接单,推单取消" : language == 2 ? "The order has been taken by the driver, and the push order has been cancelled" : "La commande a été prise par le chauffeur et la commande push a été annulée"); |
| | | } |
| | | Map<String, Integer> map = new HashMap<>(); |
| | | map.put("orderType", 2); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public ResultUtil addCancle(Integer id, String reason, String remark, Integer uid) throws Exception { |
| | | public ResultUtil addCancle(Integer id, String reason, String remark, Integer uid, Integer language) throws Exception { |
| | | if(ToolUtil.isNotEmpty(remark)){ |
| | | if(ToolUtil.isNotEmpty(remark)){ |
| | | List<SensitiveWords> sensitiveWords = sensitiveWordsMapper.selectList(null); |
| | |
| | | } |
| | | } |
| | | |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | OrderPrivateCar orderPrivateCar = this.selectById(id); |
| | | Integer integer = null; |
| | | if(null == orderPrivateCar){ |
| | | return ResultUtil.error("取消订单失败,订单信息有误"); |
| | | return ResultUtil.error(language == 1 ? "取消订单失败,订单信息有误" : language == 2 ? "Failed to cancel the order, the order information is incorrect" : "Échec de l'annulation de la commande, les informations de la commande sont incorrectes"); |
| | | } |
| | | if(orderPrivateCar.getState() > 5 && orderPrivateCar.getState() != 11){ |
| | | return ResultUtil.error("取消订单失败,不合法的操作"); |
| | | return ResultUtil.error(language == 1 ? "取消订单失败,不合法的操作" : language == 2 ? "Cancel order failed, illegal operation" : "Échec de l'annulation de la commande, opération illégale"); |
| | | } |
| | | if(null == orderPrivateCar.getDriverId()){//没有接单的情况 |
| | | if(orderPrivateCar.getType() == 2){//摆渡车 |
| | | OrderCrossCityServiceImpl.pushEndMap.remove(orderPrivateCar.getCrossCityOrderId());//删除标识数据 |
| | | List<OrderPrivateCar> list = this.selectList(new EntityWrapper<OrderPrivateCar>().eq("type", 2).eq("crossCityOrderId", orderPrivateCar.getCrossCityOrderId()).eq("place", orderPrivateCar.getPlace())); |
| | | for(OrderPrivateCar orderPrivateCar1 : list){ |
| | | orderCancelService.saveData(orderPrivateCar1.getId(), 1, "无司机接单", "无司机接单", null, null, 2, 1, uid); |
| | | orderCancelService.saveData(orderPrivateCar1.getId(), 1, language == 1 ? "无司机接单" : language == 2 ? "No driver to take orders" : "Pas de chauffeur pour prendre les commandes", language == 1 ? "无司机接单" : language == 2 ? "No driver to take orders" : "Pas de chauffeur pour prendre les commandes", null, null, 2, 1, uid); |
| | | orderPrivateCar1.setState(10); |
| | | this.updateById(orderPrivateCar1); |
| | | } |
| | | List<OrderTaxi> list1 = orderTaxiService.selectList(new EntityWrapper<OrderTaxi>().eq("type", 2).eq("crossCityOrderId", orderPrivateCar.getCrossCityOrderId()).eq("place", orderPrivateCar.getPlace())); |
| | | for(OrderTaxi orderTaxi : list1){ |
| | | orderCancelService.saveData(orderTaxi.getId(), 2, "无司机接单", "无司机接单", null, null, 2, 1, uid); |
| | | orderCancelService.saveData(orderTaxi.getId(), 2, language == 1 ? "无司机接单" : language == 2 ? "No driver to take orders" : "Pas de chauffeur pour prendre les commandes", language == 1 ? "无司机接单" : language == 2 ? "No driver to take orders" : "Pas de chauffeur pour prendre les commandes", null, null, 2, 1, uid); |
| | | orderTaxi.setState(10); |
| | | orderTaxiService.updateById(orderTaxi); |
| | | } |
| | | }else{ |
| | | integer = orderCancelService.saveData(id, 1, "无司机接单", "无司机接单", null, null, 2, 1, uid); |
| | | integer = orderCancelService.saveData(id, 1, language == 1 ? "无司机接单" : language == 2 ? "No driver to take orders" : "Pas de chauffeur pour prendre les commandes", language == 1 ? "无司机接单" : language == 2 ? "No driver to take orders" : "Pas de chauffeur pour prendre les commandes", null, null, 2, 1, uid); |
| | | orderPrivateCar.setState(10); |
| | | this.updateById(orderPrivateCar); |
| | | } |
| | |
| | | driver.setState(2); |
| | | driverService.updateById(driver); |
| | | }else{ |
| | | return ResultUtil.error("请完善后台取消规则设置"); |
| | | return ResultUtil.error(language == 1 ? "请完善后台取消规则设置" : language == 2 ? "Please improve the background cancellation rule settings" : "Veuillez améliorer les paramètres de la règle d'annulation en arrière-plan"); |
| | | } |
| | | |
| | | } |
| | |
| | | }).start(); |
| | | |
| | | //添加消息 |
| | | systemNoticeService.addSystemNotice(1, "您已成功取消出行订单,谢谢使用!", orderPrivateCar.getUserId(), 1); |
| | | systemNoticeService.addSystemNotice(1, language == 1 ? "您已成功取消出行订单,谢谢使用!" : language == 2 ? "You have successfully canceled the travel order, thank you for using" : "Vous avez annulé avec succès la commande de voyage, merci d'utiliser", orderPrivateCar.getUserId(), 1); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", integer); |
| | | return ResultUtil.success(map); |
| | |
| | | <result column="driverContactAddress" property="driverContactAddress" /> |
| | | <result column="driverAge" property="driverAge" /> |
| | | <result column="driveCard" property="driveCard" /> |
| | | <result column="driveCardImgUrl" property="driveCardImgUrl" /> |
| | | <result column="driveCardImgUrl1" property="driveCardImgUrl1" /> |
| | | <result column="driveCardImgUrl2" property="driveCardImgUrl2" /> |
| | | <result column="driverType" property="driverType" /> |
| | | <result column="getDriverLicenseDate" property="getDriverLicenseDate" /> |
| | | <result column="driverLicenseOn" property="driverLicenseOn" /> |
| | |
| | | driverContactAddress as driverContactAddress, |
| | | driverAge as driverAge, |
| | | driveCard as driveCard, |
| | | driveCardImgUrl as driveCardImgUrl, |
| | | driveCardImgUrl1 as driveCardImgUrl1, |
| | | driveCardImgUrl2 as driveCardImgUrl2, |
| | | driverType as driverType, |
| | | getDriverLicenseDate as getDriverLicenseDate, |
| | | driverLicenseOn as driverLicenseOn, |
| | |
| | | driverContactAddress as driverContactAddress, |
| | | driverAge as driverAge, |
| | | driveCard as driveCard, |
| | | driveCardImgUrl as driveCardImgUrl, |
| | | driveCardImgUrl1 as driveCardImgUrl1, |
| | | driveCardImgUrl2 as driveCardImgUrl2, |
| | | driverType as driverType, |
| | | getDriverLicenseDate as getDriverLicenseDate, |
| | | driverLicenseOn as driverLicenseOn, |
| | |
| | | insertUser as insertUser, |
| | | updateTime as updateTime, |
| | | updateUser as updateUser |
| | | from t_open_city where flag = 1 and cityId in |
| | | <foreach collection="city" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | from t_open_city where flag = 1 and cityId in ( |
| | | select id from t_city where englishName in |
| | | <foreach collection="city" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | ) |
| | | </select> |
| | | </mapper> |
| | |
| | | * @param uid 投诉人 |
| | | * @throws Exception |
| | | */ |
| | | void saveData(Integer driverId, String reason, String description, Integer uid) throws Exception; |
| | | void saveData(Integer driverId, String reason, String description, Integer uid, Integer language) throws Exception; |
| | | } |
| | |
| | | * @param uid |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil feedback(String content, Integer uid) throws Exception; |
| | | ResultUtil feedback(String content, Integer uid, Integer language) throws Exception; |
| | | } |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | List<BaseWarpper> queryBusiness(Double lat, Double lnt) throws Exception; |
| | | List<BaseWarpper> queryBusiness(Double lat, Double lnt, Integer language) throws Exception; |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | List<BaseWarpper> queryBusinessById(Integer id) throws Exception; |
| | | List<BaseWarpper> queryBusinessById(Integer id, Integer language) throws Exception; |
| | | } |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | boolean openCity(Double lat, Double lnt) throws Exception; |
| | | String openCity(Double lat, Double lnt, Integer language) throws Exception; |
| | | } |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil leaveMessage(String content, Integer uid) throws Exception; |
| | | ResultUtil leaveMessage(String content, Integer uid, Integer language) throws Exception; |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil<List<ServerCarModelWarpper>> queryServerCarModel(String startLonLat, String endLonLat, Integer type) throws Exception; |
| | | ResultUtil<List<ServerCarModelWarpper>> queryServerCarModel(String startLonLat, String endLonLat, Integer type, Integer language) throws Exception; |
| | | |
| | | |
| | | /** |
| | |
| | | * @param uid |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil delMyCoupon(Integer id, Integer uid) throws Exception; |
| | | ResultUtil delMyCoupon(Integer id, Integer uid, Integer language) throws Exception; |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil handselCoupon(Integer id, Integer uid, Integer userId) throws Exception; |
| | | ResultUtil handselCoupon(Integer id, Integer uid, Integer userId, Integer language) throws Exception; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | Integer getAppOpenInfo(Integer type); |
| | | |
| | | |
| | | /** |
| | | * 获取语言环境 |
| | | * @param uid |
| | | * @param language |
| | | * @return |
| | | */ |
| | | Integer queryLanguage(Integer uid, Integer language); |
| | | } |
| | |
| | | * @param uid |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil withdrawal(Double money, String code, String name, Integer uid) throws Exception; |
| | | ResultUtil withdrawal(Double money, String code, String name, Integer uid, Integer language) throws Exception; |
| | | |
| | | |
| | | /** |
| | |
| | | import com.stylefeng.guns.modular.system.model.SensitiveWords; |
| | | import com.stylefeng.guns.modular.system.service.IComplaintService; |
| | | import com.stylefeng.guns.modular.system.service.ISystemNoticeService; |
| | | import com.stylefeng.guns.modular.system.service.IUserInfoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | @Autowired |
| | | private ISystemNoticeService systemNoticeService; |
| | | |
| | | @Autowired |
| | | private IUserInfoService userInfoService; |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public void saveData(Integer driverId, String reason, String description, Integer uid) throws Exception { |
| | | public void saveData(Integer driverId, String reason, String description, Integer uid, Integer language) throws Exception { |
| | | if(ToolUtil.isNotEmpty(description)){ |
| | | List<SensitiveWords> sensitiveWords = sensitiveWordsMapper.selectList(null); |
| | | for(SensitiveWords s : sensitiveWords){ |
| | | description = description.replaceAll(s.getContent(), "***"); |
| | | } |
| | | } |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | Complaint complaint = new Complaint(); |
| | | complaint.setInsertTime(new Date()); |
| | | complaint.setDriverId(driverId); |
| | |
| | | complaint.setIsHandle(0); |
| | | this.insert(complaint); |
| | | |
| | | systemNoticeService.addSystemNotice(1, "您的投诉已提交成功,我们会尽快处理!", uid, 1); |
| | | systemNoticeService.addSystemNotice(1, language == 1 ? "您的投诉已提交成功,我们会尽快处理!" : language == 2 ? "Your complaint has been submitted successfully and we will deal with it as soon as possible" : "Votre plainte a été soumise avec succès et nous la traiterons dès que possible", uid, 1); |
| | | } |
| | | } |
| | |
| | | import com.stylefeng.guns.modular.system.model.SensitiveWords; |
| | | import com.stylefeng.guns.modular.system.service.IFeedbackService; |
| | | import com.stylefeng.guns.modular.system.service.ISystemNoticeService; |
| | | import com.stylefeng.guns.modular.system.service.IUserInfoService; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | @Autowired |
| | | private ISystemNoticeService systemNoticeService; |
| | | |
| | | @Autowired |
| | | private IUserInfoService userInfoService; |
| | | |
| | | |
| | | |
| | | |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil feedback(String content, Integer uid) throws Exception { |
| | | public ResultUtil feedback(String content, Integer uid, Integer language) throws Exception { |
| | | if(ToolUtil.isNotEmpty(content)){ |
| | | if(content.length() > 200){ |
| | | return ResultUtil.error("反馈内容过长"); |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | return ResultUtil.error(language == 1 ? "反馈内容过长" : language == 2 ? "Feedback is too long" : "Les commentaires sont trop longs"); |
| | | } |
| | | List<SensitiveWords> sensitiveWords = sensitiveWordsMapper.selectList(null); |
| | | for(SensitiveWords s : sensitiveWords){ |
| | |
| | | feedback.setUserId(uid); |
| | | this.insert(feedback); |
| | | |
| | | systemNoticeService.addSystemNotice(1, "您的反馈已提交成功,我们会尽快处理!", uid, 1); |
| | | systemNoticeService.addSystemNotice(1, language == 1 ? "您的反馈已提交成功,我们会尽快处理!" : language == 2 ? "Your feedback has been submitted successfully, we will deal with it as soon as possible" |
| | | : "Vos commentaires ont été soumis avec succès, nous les traiterons dès que possible", uid, 1); |
| | | return ResultUtil.success(); |
| | | } |
| | | } |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public List<BaseWarpper> queryBusiness(Double lat, Double lnt) throws Exception { |
| | | public List<BaseWarpper> queryBusiness(Double lat, Double lnt, Integer language) throws Exception { |
| | | if(null == language){ |
| | | language = 2; |
| | | } |
| | | ReverseGeocodeVo reverseGeocode = GoogleMapUtil.getReverseGeocode(lat, lnt); |
| | | if(null == reverseGeocode){ |
| | | return new ArrayList<>(); |
| | |
| | | BaseWarpper baseWarpper = new BaseWarpper(); |
| | | switch (b.getBusinessType()){ |
| | | case 1: |
| | | baseWarpper.setName("专车"); |
| | | baseWarpper.setName(language == 1 ? "专车" : language == 2 ? "special car" : "voiture spéciale"); |
| | | baseWarpper.setId(1); |
| | | break; |
| | | case 2: |
| | | baseWarpper.setName("出租车"); |
| | | baseWarpper.setId(2); |
| | | break; |
| | | case 3: |
| | | baseWarpper.setName("跨城出行"); |
| | | baseWarpper.setId(3); |
| | | break; |
| | | // case 2: |
| | | // baseWarpper.setName(language == 1 ? "出租车" : language == 2 ? "" : ""); |
| | | // baseWarpper.setId(2); |
| | | // break; |
| | | // case 3: |
| | | // baseWarpper.setName(language == 1 ? "跨城出行" : language == 2 ? "" : ""); |
| | | // baseWarpper.setId(3); |
| | | // break; |
| | | case 4: |
| | | baseWarpper.setName("同城小件物流"); |
| | | baseWarpper.setName(language == 1 ? "市内小件物流" : language == 2 ? "Small logistics in the city" : "Petite logistique en ville"); |
| | | baseWarpper.setId(4); |
| | | break; |
| | | case 5: |
| | | baseWarpper.setName("跨城小件物流"); |
| | | baseWarpper.setId(5); |
| | | break; |
| | | case 6: |
| | | baseWarpper.setName("包车"); |
| | | baseWarpper.setId(6); |
| | | break; |
| | | // case 5: |
| | | // baseWarpper.setName(language == 1 ? "跨城小件物流" : language == 2 ? "" : ""); |
| | | // baseWarpper.setId(5); |
| | | // break; |
| | | // case 6: |
| | | // baseWarpper.setName(language == 1 ? "包车" : language == 2 ? "" : ""); |
| | | // baseWarpper.setId(6); |
| | | // break; |
| | | } |
| | | list.add(baseWarpper); |
| | | } |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public List<BaseWarpper> queryBusinessById(Integer id) throws Exception { |
| | | public List<BaseWarpper> queryBusinessById(Integer id, Integer language) throws Exception { |
| | | if(null == language){ |
| | | language = 2; |
| | | } |
| | | List<OpenCityBusiness> openCityBusinesses = openCityBusinessMapper.queryBusinessById(id); |
| | | List<BaseWarpper> list = new ArrayList<>(); |
| | | for(OpenCityBusiness b : openCityBusinesses){ |
| | | BaseWarpper baseWarpper = new BaseWarpper(); |
| | | switch (b.getBusinessType()){ |
| | | case 1: |
| | | baseWarpper.setName("专车"); |
| | | baseWarpper.setName(language == 1 ? "专车" : language == 2 ? "special car" : "voiture spéciale"); |
| | | baseWarpper.setId(1); |
| | | break; |
| | | case 2: |
| | | baseWarpper.setName("出租车"); |
| | | baseWarpper.setId(2); |
| | | break; |
| | | case 3: |
| | | baseWarpper.setName("跨城出行"); |
| | | baseWarpper.setId(3); |
| | | break; |
| | | // case 2: |
| | | // baseWarpper.setName("出租车"); |
| | | // baseWarpper.setId(2); |
| | | // break; |
| | | // case 3: |
| | | // baseWarpper.setName("跨城出行"); |
| | | // baseWarpper.setId(3); |
| | | // break; |
| | | case 4: |
| | | baseWarpper.setName("同城小件物流"); |
| | | baseWarpper.setName(language == 1 ? "市内小件物流" : language == 2 ? "Small logistics in the city" : "Petite logistique en ville"); |
| | | baseWarpper.setId(4); |
| | | break; |
| | | case 5: |
| | | baseWarpper.setName("跨城小件物流"); |
| | | baseWarpper.setId(5); |
| | | break; |
| | | case 6: |
| | | baseWarpper.setName("包车"); |
| | | baseWarpper.setId(6); |
| | | break; |
| | | // case 5: |
| | | // baseWarpper.setName("跨城小件物流"); |
| | | // baseWarpper.setId(5); |
| | | // break; |
| | | // case 6: |
| | | // baseWarpper.setName("包车"); |
| | | // baseWarpper.setId(6); |
| | | // break; |
| | | } |
| | | list.add(baseWarpper); |
| | | } |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public boolean openCity(Double lat, Double lnt) throws Exception { |
| | | public String openCity(Double lat, Double lnt, Integer language) throws Exception { |
| | | ReverseGeocodeVo reverseGeocode = GoogleMapUtil.getReverseGeocode(lat, lnt); |
| | | if(null == reverseGeocode){ |
| | | return false; |
| | | return ""; |
| | | } |
| | | AddressComponentsVo[] addressComponentsVos = reverseGeocode.getAddressComponentsVos(); |
| | | String[] city = new String[addressComponentsVos.length]; |
| | |
| | | } |
| | | List<OpenCity> openCities = openCityMapper.queryByCode(city); |
| | | if(openCities.size() == 0){ |
| | | return false; |
| | | return ""; |
| | | } |
| | | return true; |
| | | City city1 = cityService.selectById(openCities.get(0).getCityId()); |
| | | return language == 1 ? city1.getChineseName() : language == 2 ? city1.getEnglishName() : city1.getFrenchName(); |
| | | } |
| | | } |
| | |
| | | import com.stylefeng.guns.modular.system.model.Problem; |
| | | import com.stylefeng.guns.modular.system.model.SensitiveWords; |
| | | import com.stylefeng.guns.modular.system.service.IProblemService; |
| | | import com.stylefeng.guns.modular.system.service.IUserInfoService; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | @Resource |
| | | private SensitiveWordsMapper sensitiveWordsMapper; |
| | | |
| | | @Autowired |
| | | private IUserInfoService userInfoService; |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil leaveMessage(String content, Integer uid) throws Exception { |
| | | public ResultUtil leaveMessage(String content, Integer uid, Integer language) throws Exception { |
| | | if(ToolUtil.isNotEmpty(content)){ |
| | | if(content.length() > 200){ |
| | | return ResultUtil.error("留言内容过长"); |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | return ResultUtil.error(language == 1 ? "留言内容过长" : language == 2 ? "Message is too long" : "Le message est trop long"); |
| | | } |
| | | List<SensitiveWords> sensitiveWords = sensitiveWordsMapper.selectList(null); |
| | | for(SensitiveWords s : sensitiveWords){ |
| | |
| | | import com.stylefeng.guns.modular.system.model.ServerCarModel; |
| | | import com.stylefeng.guns.modular.system.service.ICompanyCityService; |
| | | import com.stylefeng.guns.modular.system.service.IServerCarModelService; |
| | | import com.stylefeng.guns.modular.system.service.IUserInfoService; |
| | | import com.stylefeng.guns.modular.system.util.GDMapElectricFenceUtil; |
| | | import com.stylefeng.guns.modular.system.util.GDMapGeocodingUtil; |
| | | import com.stylefeng.guns.modular.system.util.GoogleMap.AddressComponentsVo; |
| | |
| | | @Autowired |
| | | private ICompanyCityService companyCityService; |
| | | |
| | | @Autowired |
| | | private IUserInfoService userInfoService; |
| | | |
| | | |
| | | |
| | | |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil<List<ServerCarModelWarpper>> queryServerCarModel(String startLonLat, String endLonLat, Integer type) throws Exception { |
| | | public ResultUtil<List<ServerCarModelWarpper>> queryServerCarModel(String startLonLat, String endLonLat, Integer type, Integer language) throws Exception { |
| | | //查找与起点匹配的企业(经营范围) |
| | | ReverseGeocodeVo reverseGeocode = GoogleMapUtil.getReverseGeocode(Double.valueOf(startLonLat.split(",")[1]), Double.valueOf(startLonLat.split(",")[0])); |
| | | if(null == language){ |
| | | language = 2; |
| | | } |
| | | if(null == reverseGeocode){ |
| | | return ResultUtil.error("获取地址信息失败"); |
| | | return ResultUtil.error(language == 1 ? "获取地址信息失败" : language == 2 ? "Failed to get address information" : "Impossible d'obtenir les informations d'adresse"); |
| | | } |
| | | AddressComponentsVo[] addressComponentsVos = reverseGeocode.getAddressComponentsVos(); |
| | | String[] city = new String[addressComponentsVos.length]; |
| | |
| | | } |
| | | Company query = companyCityService.query(city); |
| | | if(null == query){ |
| | | return ResultUtil.error("起点暂无企业提供服务", new ArrayList<>()); |
| | | return ResultUtil.error(language == 1 ? "起点暂无企业提供服务" : language == 2 ? "The starting point has no enterprises to provide services" : "Le point de départ n'a pas d'entreprises pour fournir des services", new ArrayList<>()); |
| | | } |
| | | Double slnt = Double.valueOf(startLonLat.split(",")[0]); |
| | | Double slat = Double.valueOf(startLonLat.split(",")[1]); |
| | |
| | | Double elat = Double.valueOf(startLonLat.split(",")[1]); |
| | | DistancematrixVo distancematrix = GoogleMapUtil.getDistancematrix(slat, slnt, elat, elnt); |
| | | if(null == distancematrix){ |
| | | return ResultUtil.error("获取预估距离出错", new ArrayList<>()); |
| | | return ResultUtil.error(language == 1 ? "获取预估距离出错" : language == 2 ? "Error getting estimated distance" : "Erreur lors de l'obtention de la distance estimée", new ArrayList<>()); |
| | | } |
| | | long distance1 = distancematrix.getDistance();//距离(米) |
| | | double distance1_ = Double.valueOf(distance1).doubleValue(); |
| | |
| | | |
| | | List<ServerCarModelWarpper> price = this.getPrice(query.getId(), distance1_, duration_, 0, 1); |
| | | if(price.size() == 0){ |
| | | return ResultUtil.error("未获取到可服务的车型", new ArrayList<>()); |
| | | return ResultUtil.error(language == 1 ? "未获取到可服务的车型" : language == 2 ? "No serviceable model available" : "Aucun modèle réparable disponible", new ArrayList<>()); |
| | | } |
| | | return ResultUtil.success(price); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.modular.system.dao.UserCouponRecordMapper; |
| | | import com.stylefeng.guns.modular.system.model.UserCouponRecord; |
| | | import com.stylefeng.guns.modular.system.model.UserInfo; |
| | | import com.stylefeng.guns.modular.system.service.IUserCouponRecordService; |
| | | import com.stylefeng.guns.modular.system.service.IUserInfoService; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | private UserCouponRecordMapper userCouponRecordMapper; |
| | | |
| | | @Autowired |
| | | private IUserInfoService userInfoService; |
| | | |
| | | |
| | | /** |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil delMyCoupon(Integer id, Integer uid) throws Exception { |
| | | public ResultUtil delMyCoupon(Integer id, Integer uid, Integer language) throws Exception { |
| | | UserCouponRecord userCouponRecord = userCouponRecordMapper.selectById(id); |
| | | if(userCouponRecord.getUserId() != uid){ |
| | | return ResultUtil.error("您不能删除此优惠券"); |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | return ResultUtil.error(language == 1 ? "您不能删除此优惠券" : language == 2 ? "You cannot delete this coupon" : "Vous ne pouvez pas supprimer ce coupon"); |
| | | } |
| | | userCouponRecordMapper.deleteById(id); |
| | | return ResultUtil.success(); |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil handselCoupon(Integer id, Integer uid, Integer userId) throws Exception { |
| | | public ResultUtil handselCoupon(Integer id, Integer uid, Integer userId, Integer language) throws Exception { |
| | | UserCouponRecord userCouponRecord = userCouponRecordMapper.selectById(id); |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | if(userCouponRecord.getUserId() != uid){ |
| | | return ResultUtil.error("您不能赠送此优惠券"); |
| | | return ResultUtil.error(language == 1 ? "您不能赠送此优惠券" : language == 2 ? "You cannot gift this coupon" : "Vous ne pouvez pas offrir ce coupon"); |
| | | } |
| | | if(userCouponRecord.getState() != 1){ |
| | | return ResultUtil.error("优惠券已无法使用"); |
| | | return ResultUtil.error(language == 1 ? "优惠券已无法使用" : language == 2 ? "Coupon no longer available" : "Le coupon n'est plus disponible"); |
| | | } |
| | | userCouponRecord.setUserId(userId); |
| | | userCouponRecordMapper.updateById(userCouponRecord); |
| | |
| | | public Integer getAppOpenInfo(Integer type) { |
| | | return userInfoMapper.getAppOpenInfo(type); |
| | | } |
| | | |
| | | @Override |
| | | public Integer queryLanguage(Integer uid, Integer language) { |
| | | UserInfo userInfo = this.selectById(uid); |
| | | if(null != userInfo.getLanguage()){ |
| | | language = userInfo.getLanguage(); |
| | | } |
| | | if(null == language){ |
| | | language = 2; |
| | | } |
| | | return language; |
| | | } |
| | | } |
| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil withdrawal(Double money, String code, String name, Integer uid) throws Exception { |
| | | public ResultUtil withdrawal(Double money, String code, String name, Integer uid, Integer language) throws Exception { |
| | | language = userInfoService.queryLanguage(uid, language); |
| | | if(money.compareTo(0D) <= 0){ |
| | | return ResultUtil.error("提现金额必须大于0"); |
| | | return ResultUtil.error(language == 1 ? "提现金额必须大于0" : language == 2 ? "Withdrawal amount must be greater than 0" : "Le montant du retrait doit être supérieur à 0"); |
| | | } |
| | | UserInfo userInfo = userInfoService.selectById(uid); |
| | | if(null == userInfo.getBalance()){ |
| | | return ResultUtil.error("账户没有余额,不能提现"); |
| | | return ResultUtil.error(language == 1 ? "账户余额不足" : language == 2 ? "Insufficient account balance" : "Solde de compte insuffisant"); |
| | | } |
| | | if(userInfo.getBalance().compareTo(money) < 0){ |
| | | return ResultUtil.error("提现金额必须小于账户余额"); |
| | | return ResultUtil.error(language == 1 ? "账户余额不足" : language == 2 ? "Insufficient account balance" : "Solde de compte insuffisant"); |
| | | } |
| | | |
| | | Withdrawal withdrawal = new Withdrawal(); |
New file |
| | |
| | | package com.stylefeng.guns.modular.system.util.Tingg; |
| | | |
| | | public enum TinggConfigEnum { |
| | | /** |
| | | * 获取token凭证的链接 |
| | | */ |
| | | TOKEN_URL("https://developer.tingg.africa/checkout/v2/custom/oauth/token"), |
| | | /** |
| | | * 客户端ID |
| | | */ |
| | | CLIENT_ID("aca13421-32bd-4e11-b080-9cfe216bed15"), |
| | | /** |
| | | * 客户端密钥 |
| | | */ |
| | | CLIENT_SECRET("Ty1VjIWy1xwScv9GY3Vw7N0TIKhDTqrarEPlatGj"), |
| | | /** |
| | | * 发起支付请求url |
| | | */ |
| | | CHECKOUT_URL("https://developer.tingg.africa/checkout/v2/custom/requests/initiate"), |
| | | ; |
| | | |
| | | |
| | | private String value; |
| | | |
| | | TinggConfigEnum(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | } |
| | |
| | | package com.stylefeng.guns.modular.system.util.Tingg; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.system.util.HttpClientUtil; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import com.stylefeng.guns.modular.system.util.Tingg.model.TokenResponse; |
| | | import org.apache.http.protocol.HTTP; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.net.HttpURLConnection; |
| | | import java.util.Calendar; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.TimeZone; |
| | | |
| | | /** |
| | | * Tingg支付工具类 |
| | | */ |
| | | @Component |
| | | public class TinggPayUtil { |
| | | |
| | | @Autowired |
| | | private HttpClientUtil httpClientUtil; |
| | | |
| | | /** |
| | | * 获取token |
| | | * @return |
| | | */ |
| | | public TokenResponse getToken(){ |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("grant_type", "client_credentials"); |
| | | params.put("client_id", TinggConfigEnum.CLIENT_ID.getValue()); |
| | | params.put("client_secret", TinggConfigEnum.CLIENT_SECRET.getValue()); |
| | | |
| | | String s = httpClientUtil.pushHttpRequset("POST", TinggConfigEnum.TOKEN_URL.getValue(), params, null, "json"); |
| | | if(ToolUtil.isNotEmpty(s)){ |
| | | TokenResponse tokenResponse = JSON.parseObject(s, TokenResponse.class); |
| | | return tokenResponse; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | | public ResultUtil checkoutRequest(String phone, String email, Double amount){ |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("merchantTransactionID", "");//商家的唯一交易标识符 |
| | | params.put("currencyCode", "");//通过的金额所使用的货币 |
| | | params.put("requestAmount", amount);//客户将要支付的总金额 |
| | | params.put("countryCode", "");//商家的默认国家代码 |
| | | params.put("accountNumber", "");//交易的帐号/参考编号 |
| | | params.put("serviceCode", "");//商户的服务代码 |
| | | Calendar.getInstance(TimeZone.getTimeZone("UTC")); |
| | | params.put("dueDate", "");//事务到期日期的格式为YYYY-MM-DD HH:mm:ss。这应该是UTC时间 |
| | | params.put("requestDescription", "");//事务的叙述 |
| | | params.put("customerFirstName", "");//顾客名称 |
| | | params.put("customerLastName", "");//客户的姓氏 |
| | | params.put("MSISDN", phone);//客户的手机号码 |
| | | params.put("customerEmail", email);//客户的邮件 |
| | | params.put("paymentWebhookUrl", "");//这是结帐将使用的URL,用相关的支付细节调用商家,以便商家确认支付 |
| | | |
| | | Map<String, String> header = new HashMap<>(); |
| | | TokenResponse token = getToken(); |
| | | if(null == token || ToolUtil.isNotEmpty(token.getError())){ |
| | | System.err.println("调用支付异常,获取token凭证失败!【" + token.getError() + "-----" + token.getMessage() + "】"); |
| | | return ResultUtil.error("调用支付异常"); |
| | | } |
| | | header.put("Authorization", "Bearer " + token.getAccess_token()); |
| | | header.put("Content-Type", "application/json"); |
| | | |
| | | String s = httpClientUtil.pushHttpRequset("POST", TinggConfigEnum.CHECKOUT_URL.getValue(), params, header, "json"); |
| | | if(ToolUtil.isNotEmpty(s)){ |
| | | |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | package com.stylefeng.guns.modular.system.util.Tingg.model; |
| | | |
| | | public class TokenResponse { |
| | | /** |
| | | * token类型 |
| | | */ |
| | | private String token_type; |
| | | /** |
| | | * token有效时间(秒) |
| | | */ |
| | | private Integer expires_in; |
| | | /** |
| | | * token |
| | | */ |
| | | private String access_token; |
| | | /** |
| | | * 异常 |
| | | */ |
| | | private String error; |
| | | /** |
| | | * 异常提示 |
| | | */ |
| | | private String message; |
| | | |
| | | public String getToken_type() { |
| | | return token_type; |
| | | } |
| | | |
| | | public void setToken_type(String token_type) { |
| | | this.token_type = token_type; |
| | | } |
| | | |
| | | public Integer getExpires_in() { |
| | | return expires_in; |
| | | } |
| | | |
| | | public void setExpires_in(Integer expires_in) { |
| | | this.expires_in = expires_in; |
| | | } |
| | | |
| | | public String getAccess_token() { |
| | | return access_token; |
| | | } |
| | | |
| | | public void setAccess_token(String access_token) { |
| | | this.access_token = access_token; |
| | | } |
| | | |
| | | public String getError() { |
| | | return error; |
| | | } |
| | | |
| | | public void setError(String error) { |
| | | this.error = error; |
| | | } |
| | | |
| | | public String getMessage() { |
| | | return message; |
| | | } |
| | | |
| | | public void setMessage(String message) { |
| | | this.message = message; |
| | | } |
| | | } |
| | |
| | | public List<SwaggerResource> get() { |
| | | List resource=new ArrayList<>(); |
| | | //name可以随便写,location前缀要与zuul配置的path一致。zuul开了token验证,要加上token,否则不用加?token=1 |
| | | // resource.add(swaggerResource("user","/user-server/v2/api-docs","1.0")); |
| | | // resource.add(swaggerResource("driver","/driver-server/v2/api-docs","1.0")); |
| | | resource.add(swaggerResource("user","/user-server/v2/api-docs","1.0")); |
| | | resource.add(swaggerResource("driver","/driver-server/v2/api-docs","1.0")); |
| | | // resource.add(swaggerResource("dispatch","/dispatch-server/v2/api-docs","1.0")); |
| | | return resource; |
| | | } |
| | |
| | | server: |
| | | port: 8081 |
| | | port: 80 |
| | | spring: |
| | | application: |
| | | name: zuul-gateway #服务名称 |
| | |
| | | # Redis·þÎñÆ÷Á¬½Ó¶Ë¿Ú |
| | | #spring.redis.port=16379 |
| | | spring.redis.port=6379 |
| | | #spring.redis.port=6379 |
| | | # Redis·þÎñÆ÷Á¬½ÓÃÜÂ루ĬÈÏΪ¿Õ£© |
| | | #spring.redis.password=mPMHThYzlT8DWgl8HLqwPEyPOiHDPPB5 |
| | | spring.redis.password=123456 |
| | | #spring.redis.password=123456 |
| | | # Á¬½Ó³Ø×î´óÁ¬½ÓÊý£¨Ê¹ÓøºÖµ±íʾûÓÐÏÞÖÆ£© |
| | | spring.redis.jedis.pool.max-active=1024 |
| | | # Á¬½Ó³Ø×î´ó×èÈûµÈ´ýʱ¼ä£¨Ê¹ÓøºÖµ±íʾûÓÐÏÞÖÆ£© |