瀏覽代碼

feat:“长隆微信支付添加是否开发票功能“

soobin 1 年之前
父節點
當前提交
be3c0dd34f

+ 15 - 0
src/main/java/com/szwl/controller/TOrderController.java

@@ -1840,5 +1840,20 @@ public class TOrderController {
             return R.fail(ResponseCodesEnum.A0001, result);
         }
     }
+
+    @ApiOperation("是否开发票")
+    @GetMapping("/updateIsInvoice")
+    public ResponseModel<?> updateIsInvoice(Long id, Integer isInvoice) {
+        if(id == null || isInvoice ==null ){
+            return R.fail(ResponseCodesEnum.A0001);
+        }
+        TOrder order = orderService.getById(id);
+        if (order ==null) {
+            return R.fail(ResponseCodesEnum.A0001, "订单不存在");
+        }
+        order.setIsInvoice(isInvoice);
+        orderService.updateById(order);
+        return R.ok("修改成功");
+    }
 }
 

File diff suppressed because it is too large
+ 4 - 1
src/main/java/com/szwl/mapper/xml/TOrderMapper.xml


+ 9 - 0
src/main/java/com/szwl/model/entity/TOrder.java

@@ -163,5 +163,14 @@ public class TOrder implements Serializable {
     @ApiModelProperty(value = "设备类型,0:棉花糖,1,爆米花")
     private String machineType;
 
+    @ApiModelProperty(value = "是否通知MQ,0:未通知,1:通知支付成功做糖,2:通知支付失败")
+    private String isNotified;
+
+    @ApiModelProperty(value = "是否开发票,0为否,1为是,默认为0")
+    private Integer isInvoice;
+
+    @ApiModelProperty(value = "退款原因")
+    private String refundReason;
+
 
 }