| | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | |
| | | /** |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-app-user-address/getAppUserAddressById") |
| | | R<TAppUserAddress> getAppUserAddressById(Long id); |
| | | @PostMapping("/t-app-user-address/getAppUserAddressById/{id}") |
| | | R<TAppUserAddress> getAppUserAddressById(@PathVariable("id") Long id); |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/t-app-user/user/getUserById") |
| | | R<TAppUser> getUserById(Long id); |
| | | @PostMapping(value = "/t-app-user/user/getUserById/{id}") |
| | | R<TAppUser> getUserById(@PathVariable("id") Long id); |
| | | |
| | | |
| | | |
| | | @PostMapping("/t-app-user/") |
| | | R updateAppUser(TAppUser appUser); |
| | | @PostMapping("/t-app-user//user/updateAppUser") |
| | | R updateAppUser(@RequestBody TAppUser appUser); |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-app-user-integral-change/addAppUserIntegralChange") |
| | | R addAppUserIntegralChange(TAppUserIntegralChange appUserIntegralChange); |
| | | R addAppUserIntegralChange(@RequestBody TAppUserIntegralChange appUserIntegralChange); |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | |
| | | /** |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-gun/getAllName") |
| | | R<String> getAllName(Integer id); |
| | | @PostMapping("/t-charging-gun/getAllName/{id}") |
| | | R<String> getAllName(@PathVariable("id") Integer id); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-gun/getChargingGunById") |
| | | R<TChargingGun> getChargingGunById(Integer id); |
| | | @PostMapping("/t-charging-gun/getChargingGunById/{id}") |
| | | R<TChargingGun> getChargingGunById(@PathVariable("id") Integer id); |
| | | } |
| | |
| | | import com.ruoyi.order.api.factory.ChargingOrderFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | |
| | | * @param days 天数 |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-order-accounting-strategy/getTotalElectricQuantity") |
| | | R<List<List<Map<String, Object>>>> getTotalElectricQuantity(Integer days, @RequestParam("siteIds") Set<Integer> siteIds); |
| | | @PostMapping("/t-charging-order-accounting-strategy/getTotalElectricQuantity/{days}") |
| | | R<List<List<Map<String, Object>>>> getTotalElectricQuantity(@PathVariable("days") Integer days, @RequestParam("siteIds") Set<Integer> siteIds); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param days |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-order-getDailyChargingDegree-strategy/getUtilizationTrend") |
| | | R<List<Double>> getDailyChargingDegree(Integer days, @RequestParam("siteIds") Set<Integer> siteIds); |
| | | @PostMapping("/t-charging-order-getDailyChargingDegree-strategy/getUtilizationTrend/{days}") |
| | | R<List<Double>> getDailyChargingDegree(@PathVariable("days") Integer days, @RequestParam("siteIds") Set<Integer> siteIds); |
| | | } |
| | |
| | | import com.ruoyi.other.api.factory.CouponFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | |
| | | /** |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-coupon/getCouponById") |
| | | R<TCoupon> getCouponById(Integer id); |
| | | @PostMapping("/t-coupon/getCouponById/{id}") |
| | | R<TCoupon> getCouponById(@PathVariable("id") Integer id); |
| | | } |
| | |
| | | import com.ruoyi.other.api.factory.GoodsFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | |
| | | /** |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-goods/getGoodsById") |
| | | R<TGoods> getGoodsById(Integer id); |
| | | @PostMapping("/t-goods/getGoodsById/{id}") |
| | | R<TGoods> getGoodsById(@PathVariable("id") Integer id); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-role-site/addRoleSite") |
| | | R addRoleSite(List<TRoleSite> roleSites); |
| | | R addRoleSite(@RequestBody List<TRoleSite> roleSites); |
| | | |
| | | /** |
| | | * 删除角色站点数据 |
| | | * @param roleId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/t-role-site/delRoleSite") |
| | | R delRoleSite(Long roleId); |
| | | @DeleteMapping("/t-role-site/delRoleSite/{roleId}") |
| | | R delRoleSite(@PathVariable("roleId") Long roleId); |
| | | } |
| | |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-evaluation-tag/getListByIds") |
| | | R<List<TEvaluationTag>> getListByIds(List<Integer> tagIds); |
| | | R<List<TEvaluationTag>> getListByIds(@RequestBody List<Integer> tagIds); |
| | | } |
| | |
| | | import com.ruoyi.other.api.factory.UserSiteFallbackFactory; |
| | | import org.apache.ibatis.annotations.Delete; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-user-site/getSiteIds") |
| | | R<List<Integer>> getSiteIds(Long userId); |
| | | @PostMapping("/t-user-site/getSiteIds/{userId}") |
| | | R<List<Integer>> getSiteIds(@PathVariable("userId") Long userId); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param userSite |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-user-site/getSiteIds") |
| | | R addUserSite(List<TUserSite> userSite); |
| | | @PostMapping("/t-user-site/addUserSite") |
| | | R addUserSite(@RequestBody List<TUserSite> userSite); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/t-user-site/delUserSite") |
| | | R delUserSite(Long userId); |
| | | @DeleteMapping("/t-user-site/delUserSite/{userId}") |
| | | R delUserSite(@PathVariable("userId") Long userId); |
| | | } |
| | |
| | | * @param user |
| | | */ |
| | | @PostMapping("/user/addSysUser") |
| | | R addSysUser(SysUser user); |
| | | R addSysUser(@RequestBody SysUser user); |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/user/resetPassword") |
| | | R resetPassword(SysUser user); |
| | | R resetPassword(@RequestBody SysUser user); |
| | | } |
| | |
| | | public class TAppCouponController { |
| | | @Autowired |
| | | private TAppCouponService tAppCouponService; |
| | | @Autowired |
| | | private OtherClient otherClient; |
| | | |
| | | @Autowired |
| | | private TAppUserCarService appUserCarService; |
| | |
| | | public AjaxResult<List<TAppUserCar>> carList() { |
| | | // todo 用户id |
| | | List<TAppUserCar> appUserId = appUserCarService.list(new QueryWrapper<TAppUserCar>() |
| | | .eq("app_user_id",tokenService.getLoginUserApplet().getUserid() )); |
| | | .eq("app_user_id",tokenService.getLoginUserApplet().getUserId() )); |
| | | return AjaxResult.ok(appUserId); |
| | | } |
| | | |
| | |
| | | @PostMapping(value = "/getCar") |
| | | public R<Long> getCar() { |
| | | List<TChargingOrder> list = chargingOrderService.list(new LambdaQueryWrapper<TChargingOrder>() |
| | | .eq(TChargingOrder::getAppUserId, tokenService.getLoginUserApplet().getUserid()) |
| | | .eq(TChargingOrder::getAppUserId, tokenService.getLoginUserApplet().getUserId()) |
| | | .isNotNull(TChargingOrder::getAppUserCarId)); |
| | | if (!list.isEmpty()){ |
| | | // 最近使用的车辆id |
| | |
| | | @GetMapping(value = "/addOrderAppeal") |
| | | @ApiOperation(value = "申诉订单", tags = {"小程序-充电记录(个人中心)"}) |
| | | public AjaxResult addOrderAppeal(@RequestBody TOrderAppeal orderAppeal){ |
| | | Long appUserId = tokenService.getLoginUser().getUserid(); |
| | | Long appUserId = tokenService.getLoginUserApplet().getUserId(); |
| | | orderAppeal.setAppUserId(appUserId); |
| | | orderAppeal.setStatus(1); |
| | | orderAppealService.save(orderAppeal); |
| | |
| | | */ |
| | | @Override |
| | | public Map<String, Object> getMyChargingOrderList(GetMyChargingOrderList query) { |
| | | Long appUserId = tokenService.getLoginUser().getUserid(); |
| | | Long appUserId = tokenService.getLoginUserApplet().getUserId(); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | int size = this.baseMapper.getMyChargingOrderList(appUserId, 1, null, null).size(); |
| | | map.put("number", size); |
| | |
| | | */ |
| | | @Override |
| | | public List<MyExchangeOrderList> getMyExchangeOrder(GetMyExchangeOrder query) { |
| | | Long userid = tokenService.getLoginUser().getUserid(); |
| | | Long userid = tokenService.getLoginUserApplet().getUserId(); |
| | | LambdaQueryWrapper<TExchangeOrder> wrapper = new LambdaQueryWrapper<TExchangeOrder>().eq(TExchangeOrder::getDelFlag, 0).eq(TExchangeOrder::getAppUserId, userid); |
| | | if(query.getStatus() == 0){ |
| | | wrapper.ne(TExchangeOrder::getStatus, 4); |
| | |
| | | } |
| | | orderEvaluate = new TOrderEvaluate(); |
| | | BeanUtils.copyProperties(query, orderEvaluate); |
| | | Long userid = tokenService.getLoginUser().getUserid(); |
| | | Long userid = tokenService.getLoginUserApplet().getUserId(); |
| | | orderEvaluate.setAppUserId(userid); |
| | | if(query.getOrderType() == 1){ |
| | | TChargingOrder chargingOrder = chargingOrderService.getById(query.getOrderId()); |
| | |
| | | } |
| | | |
| | | @PostMapping("/getTagList") |
| | | public R<List<TEvaluationTagVO>> getTagList() { |
| | | return R.ok(evaluationTagService.getTagList()); |
| | | public R<List<TEvaluationTagVO>> getTagList(@RequestParam("type") Integer type) { |
| | | return R.ok(evaluationTagService.getTagList(type)); |
| | | } |
| | | |
| | | |
| | |
| | | * 获取评价标签列表 |
| | | * @return |
| | | */ |
| | | List<TEvaluationTagVO> getTagList(); |
| | | List<TEvaluationTagVO> getTagList(Integer type); |
| | | |
| | | |
| | | /** |
| | |
| | | * 查询标签列表 |
| | | * @return |
| | | */ |
| | | List<TEvaluationTagVO> getTagList(); |
| | | List<TEvaluationTagVO> getTagList(Integer type); |
| | | |
| | | |
| | | /** |
| | |
| | | public class TEvaluationTagServiceImpl extends ServiceImpl<TEvaluationTagMapper, TEvaluationTag> implements TEvaluationTagService { |
| | | |
| | | @Override |
| | | public List<TEvaluationTagVO> getTagList() { |
| | | return this.baseMapper.getTagList(); |
| | | public List<TEvaluationTagVO> getTagList(Integer type) { |
| | | return this.baseMapper.getTagList(type); |
| | | } |
| | | |
| | | |
| | |
| | | </sql> |
| | | <select id="getTagList" resultType="com.ruoyi.other.api.vo.TEvaluationTagVO"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from t_evaluation_tag where del_flag = ${@com.ruoyi.common.core.enums.DelFlagEnum@NO.getCode()} ORDER BY `type` |
| | | from t_evaluation_tag where del_flag = ${@com.ruoyi.common.core.enums.DelFlagEnum@NO.getCode()} |
| | | <if test="null != type"> |
| | | and `type` = #{type} |
| | | </if> |
| | | ORDER BY `type` |
| | | </select> |
| | | |
| | | |