| | |
| | | import com.ruoyi.sales.service.PaymentShippingService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @RestController |
| | | @RequestMapping("/paymentShipping") |
| | | @Api(tags = "支付与发货管理") |
| | | @AllArgsConstructor |
| | | public class PaymentShippingController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PaymentShippingService paymentShippingService; |
| | | |
| | | @Autowired |
| | | private PaymentShippingMapper paymentShippingMapper; |
| | | |
| | | @GetMapping("/listPage") |
| | |
| | | @ApiOperation("添加支付与发货信息") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public AjaxResult add(@RequestBody PaymentShipping paymentShipping) { |
| | | String ord = OrderUtils.countTodayByCreateTime(paymentShippingMapper, "ORD","orderNo"); |
| | | String ord = OrderUtils.countTodayByCreateTime(paymentShippingMapper, "ORD","order_no"); |
| | | paymentShipping.setOrderNo(ord); |
| | | boolean save = paymentShippingService.save(paymentShipping); |
| | | return save ? success() : error(); |