| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.UnionpayCarWashService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | return R.ok(unionpayCarWashService.queryById(id)); |
| | | } |
| | | |
| | | @GetMapping("/unionpayDetail") |
| | | public R carWashById(@RequestParam("Id") String id) |
| | | { |
| | | return R.ok(unionpayCarWashService.carWashById(id)); |
| | | } |
| | | |
| | | @PostMapping("/add") |
| | | public int inset(@RequestParam("carWashId") String carWashId, |
| | | @RequestParam("unionpayOrderId") String unionpayOrderId, |
| | | @RequestParam("money") String money) |
| | | { |
| | | return unionpayCarWashService.inset(carWashId,unionpayOrderId,money); |
| | | } |
| | | |
| | | |
| | | } |